/* ========================================
   Commodities Page Styles - 贵金属 & 大宗商品
   ======================================== */

/* ========================================
   Page Banner (Hero) Section - Matching Original
   ======================================== */
.page-banner {
    padding-top: 100px;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
}

.page-banner.white-banner {
    background: #fff;
}

.page-banner .inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Top Section: Title + Image */
.page-banner-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 40px 0 0;
    position: relative;
}

.page-banner-title {
    flex: 0 0 45%;
    padding-top: 40px;
}

.page-banner-title h1 {
    font-size: 100px;
    font-weight: 700;
    line-height: 1.1;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -2px;
}

.page-banner-title h1 span {
    color: #C6FF00;
    display: block;
}

.page-banner-img {
    flex: 0 0 50%;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.page-banner-img img.desktop-img {
    max-width: 100%;
    height: auto;
    display: block;
    animation: floatAnimation 4s ease-in-out infinite;
}

.page-banner-img img.mobile-img {
    display: none;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Bottom Section: Description + Features */
.page-banner-bottom {
    display: flex;
    gap: 60px;
    padding: 60px 0 80px;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.page-banner-text {
    flex: 0 0 35%;
}

.page-banner-text p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.page-banner-text p:last-child {
    margin-bottom: 0;
}

/* Features Section */
.page-banner-features {
    flex: 1;
    display: flex;
    gap: 40px;
    background: #f8f8f8;
    border-radius: 20px;
    padding: 40px;
}

.features-left {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
}

.features-left h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 15px;
}

.features-intro {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

.features-left .btn {
    align-self: flex-start;
    padding: 14px 30px;
    font-size: 14px;
    border-radius: 30px;
}

.features-right {
    flex: 1;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.feature-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.feature-icon i {
    color: #C6FF00;
    font-size: 10px;
}

/* ========================================
   Commodities Chart Section
   ======================================== */
.commodities-chart-section {
    padding: 60px 0;
    background: #fff;
}

.chart-widget-container {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.market-tabs {
    display: flex;
    gap: 5px;
    padding: 15px 20px;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.market-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.market-tab:hover {
    background: #e8e8e8;
}

.market-tab.active {
    background: #1a1a1a;
    color: #fff;
}

.tradingview-chart-wrapper {
    display: flex;
    min-height: 500px;
}

.tradingview-widget-container {
    flex: 1;
}

.commodities-pairs-sidebar {
    width: 300px;
    background: #fafafa;
    border-left: 1px solid #eee;
    padding: 15px;
    overflow-y: auto;
}

.pair-item {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.pair-item:last-child {
    border-bottom: none;
}

.pair-item:hover {
    background: #f0f0f0;
}

.pair-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pair-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pair-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pair-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.pair-fullname {
    font-size: 11px;
    color: #999;
}

.pair-data {
    text-align: right;
}

.pair-price {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.pair-change {
    display: block;
    font-size: 12px;
    font-weight: 600;
}

.pair-change.positive {
    color: #22c55e;
}

.pair-change.negative {
    color: #ef4444;
}

/* ========================================
   4-Step Trading Process
   ======================================== */
.commodities-steps-section {
    padding: 80px 0;
    background: #f8f8f8;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 16px;
    color: #666;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.step-item {
    text-align: center;
    padding: 30px 20px;
    position: relative;
    background: #fff;
    border-radius: 12px;
}

.step-number {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon img {
    max-width: 100%;
    max-height: 100%;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 14px;
    color: #666;
}

.steps-cta {
    text-align: center;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

/* ========================================
   FAQ Section
   ======================================== */
.commodities-faq-section {
    padding: 80px 0;
    background: #fff;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #ccc;
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.faq-question:hover {
    background: #fafafa;
}

.faq-num {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-right: 15px;
    min-width: 30px;
}

.faq-text {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.faq-arrow {
    font-size: 14px;
    color: #666;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    padding: 0 25px 0 70px;
}

/* ========================================
   Start Trading CTA Section
   ======================================== */
.commodities-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #d4f000 0%, #C6FF00 50%, #b8e600 100%);
    position: relative;
    overflow: hidden;
}

.commodities-cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.commodities-cta-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.2;
}

.commodities-cta-desc {
    font-size: 16px;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.commodities-cta-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-outline-dark {
    background: transparent;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
}

.btn-outline-dark:hover {
    background: #1a1a1a;
    color: #fff;
}

/* ========================================
   Join CTA Section
   ======================================== */
.join-cta-section {
    padding: 80px 0;
    background: #1a1a1a;
}

.join-cta-content {
    text-align: center;
}

.join-cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
}

.join-cta-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Footer Links Grid */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-green);
}

.footer-apps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-apps .app-badge img {
    height: 40px;
}

/* Footer Badges Section */
.footer-badges-section {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-badge-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.footer-badge-item img {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.footer-badge-item p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1200px) {
    .page-banner-title h1 {
        font-size: 80px;
    }
    
    .page-banner-bottom {
        flex-direction: column;
        gap: 40px;
    }
    
    .page-banner-text {
        flex: none;
    }
    
    .page-banner-features {
        flex-direction: column;
    }
    
    .features-left {
        flex: none;
    }
    
    .features-left .btn {
        margin-bottom: 20px;
    }
}

@media (max-width: 992px) {
    .page-banner-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .page-banner-title {
        flex: none;
        padding-top: 20px;
        order: 1;
    }
    
    .page-banner-title h1 {
        font-size: 64px;
    }
    
    .page-banner-img {
        flex: none;
        justify-content: center;
        order: 2;
        margin-top: 30px;
    }
    
    .page-banner-img img.desktop-img {
        display: none;
    }
    
    .page-banner-img img.mobile-img {
        display: block;
        max-width: 350px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tradingview-chart-wrapper {
        flex-direction: column;
    }
    
    .commodities-pairs-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #eee;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .pair-item {
        flex: 1 1 calc(50% - 10px);
        border-bottom: none;
        background: #fff;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-badges-section {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding-top: 80px;
    }
    
    .page-banner-title h1 {
        font-size: 48px;
    }
    
    .page-banner-features {
        padding: 25px;
    }
    
    .features-left h2 {
        font-size: 18px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .commodities-cta-title {
        font-size: 36px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .join-cta-content h2 {
        font-size: 28px;
    }
    
    .market-tabs {
        flex-wrap: wrap;
    }
    
    .commodities-pairs-sidebar {
        flex-direction: column;
    }
    
    .pair-item {
        flex: none;
        width: 100%;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .page-banner-title h1 {
        font-size: 42px;
    }
    
    .page-banner-img img.mobile-img {
        max-width: 280px;
    }
    
    .page-banner-text p {
        font-size: 14px;
    }
    
    .commodities-cta-actions,
    .join-cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .commodities-cta-actions .btn,
    .join-cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-badge-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}
