/* ===== Recommend Trade Page Styles ===== */

/* ===== Section 1: Banner ===== */
.trade-banner {
    background-color: #DC0000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 600px;
    display: flex;
    align-items: center;
    padding: 118px 0 86px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.trade-banner-content {
    text-align: center;
}

.trade-banner-title {
    font-size: 68px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 36px;
    color: #FFFFFF;
}

.trade-banner-subtitle {
    font-size: 20px;
    color: #E4E4E4;
    margin-bottom: 150px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1;
}

.trade-banner-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.trade-banner-stat {
    text-align: center;
    margin-bottom: 86px;
}

.trade-banner-stat-number {
    font-size: 68px;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.trade-banner-stat-label {
    font-size: 20px;
    color: #EBB7B7;
    margin-top: 17px;
    display: block;
    line-height: 1;
}

/* ===== Section 2: Product Tabs ===== */
.trade-tabs-section {
    padding: 83px 0 85px;
    background: #fff;
}

.trade-tabs-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 0;
}

.trade-tabs-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    padding: 45px 20px 35px;
    border-radius: 0;
    background: #F3F4F8;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.trade-tabs-item:first-child {
    border-radius: 12px 0 0 12px;
}

.trade-tabs-item:last-child {
    border-radius: 0 12px 12px 0;
}

.trade-tabs-item:hover {
    background-color: #DD0000;
}

.trade-tabs-item:hover .trade-tabs-text h3,
.trade-tabs-item:hover .trade-tabs-text p {
    color: #FFFFFF;
}

.trade-tabs-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
}

/* 贵金属: 44×41 */
.trade-tabs-item:nth-child(1) .trade-tabs-icon img {
    width: 44px;
    height: 41px;
    filter: brightness(0) saturate(100%) invert(79%) sepia(68%) saturate(1200%) hue-rotate(2deg) brightness(103%);
}

/* 股票CFD: 36×40 */
.trade-tabs-item:nth-child(2) .trade-tabs-icon img {
    width: 36px;
    height: 40px;
}

/* 外汇: 37×30 */
.trade-tabs-item:nth-child(3) .trade-tabs-icon img {
    width: 37px;
    height: 30px;
}

/* 指数: 31×31 */
.trade-tabs-item:nth-child(4) .trade-tabs-icon img {
    width: 31px;
    height: 31px;
}

/* hover 时所有图标变白 */
.trade-tabs-item:hover .trade-tabs-icon img {
    filter: brightness(0) invert(1);
}

.trade-tabs-text h3 {
    font-size: 28px;
    font-weight: 600;
    color: #111111;
    margin: 0 0 12px;
}

.trade-tabs-text p {
    font-size: 16px;
    color: #333333;
    margin: 0;
}

/* ===== Section 2.5: 多元化产品 ===== */
.trade-metal-section {
    padding: 114px 0 102px;
    background: #F3F4F8;
}

.trade-metal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trade-metal-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #EBEDF0;
    border-top-width: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.trade-metal-card.gold {
    border-top-color: #FFC000;
}

.trade-metal-card.silver {
    border-top-color: #D5D5D5;
}

.trade-metal-card.plat {
    border-top-color: #E1E1E1;
}

.trade-metal-card.pall {
    border-top-color: #D09500;
}

.trade-metal-card:hover,
.trade-stock-card:hover,
.trade-forex-card:hover,
.trade-index-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.trade-metal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 21px;
}

.trade-metal-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.trade-metal-badge.gold {
    background: #FFF3CD;
    color: #FFC000;
}

.trade-metal-badge.silver {
    background: #F0F0F0;
    color: #9A9A9A;
}

.trade-metal-badge.plat {
    background: #F8F9FA;
    color: #A9A9A9;
}

.trade-metal-badge.pall {
    background: #FEF3E2;
    color: #B7860A;
}

.trade-metal-name-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.trade-metal-name {
    font-size: 18px;
    font-weight: bold;
    color: #333333;
}

.trade-metal-code {
    font-size: 18px;
    font-weight: bold;
    color: #333333;
}

.trade-metal-price {
    font-size: 28px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 6px;
}

.trade-metal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.trade-metal-change {
    font-size: 14px;
    font-weight: 500;
}

.trade-metal-change.up {
    color: var(--color-bullish, #20B531);
}

.trade-metal-change.down {
    color: var(--color-bearish, #DD0000);
}

.trade-metal-unit {
    font-size: 14px;
    color: #666666;
}

.trade-metal-range {
    font-size: 14px;
    color: #999999;
}

/* ===== Section 2a: Stock CFD ===== */
.trade-stock-section {
    padding: 114px 0 112px;
    background: #fff;
}

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

.trade-section-title {
    font-size: 48px;
    font-weight: bold;
    color: #222222;
    line-height: 1;
    margin-bottom: 30px;
}

.trade-section-desc {
    font-size: 24px;
    color: #666666;
    line-height: 1;
    font-weight: 300;
}

.trade-stock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 53px;
}

.trade-stock-card {
    border-radius: 12px;
    padding: 35px 15px 23px 14px;
    transition: all 0.3s ease;
    background: #F5F7FB;
}


.trade-stock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 27px;
}

.trade-stock-logo {
    width: 51px;
    height: auto;
    flex-shrink: 0;
    margin-right: 30px;
}

.trade-stock-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.trade-stock-name {
    font-size: 24px;
    font-weight: 600;
    color: #111111;
    line-height: 1;
    margin-bottom: 15px;
}

.trade-stock-info {
    margin-left: 25px;
}

.trade-stock-company {
    font-size: 14px;
    color: #333333;
    font-weight: 300;
    line-height: 1;
}

.trade-stock-price-specs-wrap {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 33px 32px 23px 25px;
    margin-bottom: 17px;
}

.trade-stock-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.trade-stock-specs::before {
    content: '';
    display: block;
    grid-column: 1 / -1;
    height: 2px;
    background: #EEEEEE;
    margin-bottom: 2px;
}

.trade-stock-price {
    font-size: 28px;
    font-weight: bold;
    color: #111111;
    line-height: 1;
}

.trade-stock-change-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 13px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.trade-stock-change-col.up {
    color: var(--color-bullish, #20B531);
}

.trade-stock-change-col.down {
    color: var(--color-bearish, #DD0000);
}

.trade-stock-change-val,
.trade-stock-change-pct {
    display: block;
    width: 72px;
    text-align: right;
}

.trade-stock-change-col.up .trade-stock-change-val::before {
    content: '↑ ';
}

.trade-stock-change-col.down .trade-stock-change-val::before {
    content: '↓ ';
}

.trade-stock-specs {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: space-between;
    row-gap: 28px;
    column-gap: 47px;
}

.trade-stock-specs>div {
    display: flex;
    align-items: center;
    gap: 42px;
}

.trade-stock-spec-label {
    font-size: 14px;
    color: #555555;
    line-height: 1;
}

.trade-stock-spec-value {
    font-size: 14px;
    color: #555555;
    line-height: 1;
    margin-left: auto;
}

.trade-stock-btns {
    display: flex;
    gap: 19px;
}

.trade-stock-btn {
    flex: 1;
    border: none;
    border-radius: 6px;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
    text-align: center;
    line-height: 1;
    width: 191px;
    height: 57px;
    justify-content: center;
    align-items: center;
    display: flex;
}

.trade-stock-btn:hover {
    opacity: 0.85;
}

.trade-stock-btn.buy {
    background: #22B46D;
}

.trade-stock-btn.sell {
    background: #FF4D4F;
}

/* ===== Section 2b: Forex ===== */
.trade-forex-section {
    padding: 113px 0 134px;
    background: #F3F4F8;
}

.trade-forex-section .trade-section-header {
    margin-bottom: 87px;
}

.trade-forex-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trade-forex-card {
    background: #fff;
    border-radius: 12px;
    padding: 45px 20px 24px 20px;
    transition: all 0.3s ease;
}


.trade-forex-pair {
    font-size: 24px;
    font-weight: 700;
    color: #333333;
    line-height: 1;
    margin-bottom: 20px;
    text-align: center;
}

.trade-forex-name {
    font-size: 14px;
    color: #666666;
    line-height: 1;
    margin-bottom: 49px;
    text-align: center;
}

.trade-forex-price-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 38px;
    gap: 24px;
    justify-content: center;
}

.trade-forex-price {
    font-size: 28px;
    font-weight: 700;
    color: #333333;
    line-height: 1;
}

.trade-forex-change {
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    line-height: 1;
}

.trade-forex-change.up {
    color: var(--color-bullish, #20B531);
}

.trade-forex-change.up::before {
    content: '↑ ';
}

.trade-forex-change.down {
    color: var(--color-bearish, #DD0000);
}

.trade-forex-change.down::before {
    content: '↓ ';
}

.trade-forex-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding-top: 16px;
    border-top: 2px solid #F4F4F4;
    text-align: center;
}

.trade-forex-spec {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.trade-forex-spec-label {
    font-size: 14px;
    color: #666666;
    line-height: 1;
}

.trade-forex-spec-value {
    font-size: 18px;

    color: #333333;
    line-height: 1;
}

/* ===== Section 2c: Index ===== */
.trade-index-section {
    padding: 105px 0 115px;
    background: #fff;
}

.trade-index-section .trade-section-header {
    margin-bottom: 75px;
}

.trade-index-section .trade-section-title {
    color: #222222;
}

.trade-index-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 38px 40px;
}

.trade-index-card {
    background: #F5F7FB;
    border-radius: 12px;
    padding: 36px 26px 30px 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.trade-index-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.trade-index-name {
    font-size: 28px;
    font-weight: bold;
    color: #333333;
    line-height: 1;
    margin-bottom: 19px;
}

.trade-index-subtitle {
    font-size: 16px;
    color: #666666;
    line-height: 1;
    margin-bottom: 44px;
    display: flex;
    align-items: center;
}

.trade-index-metrics {
    display: flex;
    gap: 36px;
}

.trade-index-metric {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trade-index-metric-label {
    font-size: 14px;
    color: #999999;
    line-height: 1;
}

.trade-index-metric-value {
    font-size: 22px;
    font-weight: 600;
    color: #333333;
    line-height: 1;
}

.trade-index-metric-value.up {
    color: var(--color-bullish, #20B531);
}

.trade-index-metric-value.down {
    color: var(--color-bearish, #DD0000);
}

.trade-index-chart {
    width: 281px;
    height: 169px;
    flex-shrink: 0;
    background: #FFFFFF;
    border-radius: 6px;
    overflow: hidden;
    pointer-events: none;
}

.trade-index-chart img {
    width: 281px;
    height: 169px;
    object-fit: cover;
    border-radius: 6px;
}

/* ===== Section 3: Compare Table ===== */
.trade-compare-section {
    padding: 108px 0;
    background: #F7F8FA;
}

.trade-compare-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.trade-compare-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.trade-compare-table thead th {
    background: #DD0000;
    color: #fff;
    padding: 34px 0 32px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    border: none;
}

.trade-compare-table thead th:first-child {
    width: auto;
    text-align: center;
}

.trade-compare-table tbody td {
    background: #fff;
    padding: 18px 24px;
    font-size: 24px;
    color: #666666;
    text-align: center;
    border-bottom: 2px solid #EEEEEE;
}

.trade-compare-table tbody td:first-child {
    font-weight: 500;
    color: #333333;
}

.trade-compare-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== Section 4: Features ===== */
.trade-feature-section {
    padding: 116px 0 110px;
    background: #fff;
}

.trade-feature-section .trade-section-header {
    margin-bottom: 85px;
}

.trade-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.trade-feature-card {
    background: #F7F8FA;
    border-radius: 12px;
    padding: 50px 16px 36px;
    text-align: center;
    transition: all 0.3s ease;
}

.trade-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.trade-feature-icon {
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trade-feature-card:nth-child(1) .trade-feature-icon img {
    width: 59px;
    height: 58px;
}

.trade-feature-card:nth-child(2) .trade-feature-icon img {
    width: 58px;
    height: 58px;
}

.trade-feature-card:nth-child(3) .trade-feature-icon img {
    width: 58px;
    height: 58px;
}

.trade-feature-card:nth-child(4) .trade-feature-icon img {
    width: 51px;
    height: 59px;
}

.trade-feature-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 18px;
}

.trade-feature-card p {
    font-size: 16px;
    color: #333333;
    line-height: 1;
    font-weight: 200;
}

/* ===== Section 5: Trading Hours (Gantt) ===== */
.trade-hours-section {
    padding: 108px 0 102px;
    background: #F3F4F8;
}

.trade-hours-section .trade-section-header {
    margin-bottom: 62px;
}

.trade-hours-chart {
    background: #fff;
    border-radius: 16px;
    padding: 63px 35px 74px 42px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.trade-hours-axis {
    display: flex;
    margin-bottom: 69px;
    position: relative;
}

.trade-hours-axis-market {
    width: 120px;
    flex-shrink: 0;
    font-size: 24px;
    color: #333333;
}

.trade-hours-axis-label {
    flex: 1;
    text-align: center;
    font-size: 18px;
    color: #888888;
    display: flex;
    align-items: center;
}

.trade-hours-row {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.trade-hours-row:last-child {
    margin-bottom: 0;
}

.trade-hours-market {
    width: 120px;
    flex-shrink: 0;
}

.trade-hours-market-name {
    font-size: 24px;
    font-weight: 400;
    color: #333333;
}


.trade-hours-bar-track {
    flex: 1;
    height: 40px;
    position: relative;
}

.trade-hours-bar {
    position: absolute;
    height: 40px;
    background: #DD0000;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F4F4F4;
    font-size: 18px;
    font-weight: 500;
}

/* ===== Section 6: CTA ===== */
.trade-cta {
    background: linear-gradient(135deg, #DC0000 0%, #8B0000 100%);
    background-size: cover;
    background-position: center;
    padding: 146px 0 117px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.trade-cta h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.trade-cta p {
    font-size: 20px;
    color: #FFDCD2;
    margin-bottom: 69px;
}

.trade-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 41px;
    margin-bottom: 28px;
}

.trade-cta-hotline {
    font-size: 16px;
    color: #FFEEEA;
    text-align: center;
    margin-bottom: 12px !important;
}

.trade-cta .btn-contact {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: #fff;
    border-radius: 6px;
    font-size: 16px;
    padding: 10px 32px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.trade-cta .btn-contact:hover {
    background: #fff;
    color: #DC0000;
    border-color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.trade-cta-buttons .btn-white {
    background: #fff;
    color: #C81D0B;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 400;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    width: 206px;
    height: 67px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trade-cta-buttons .btn-white:hover {
    color: #DC0000;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

.trade-cta-buttons .btn-outline-white {
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: #fff;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 400;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    width: 206px;
    height: 67px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trade-cta-buttons .btn-outline-white:hover {
    background: #fff;
    color: #DC0000;
    border-color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
    .trade-banner {
        height: auto;
        min-height: clamp(360px, 116.25vw, 620px);
        display: block;
        overflow: hidden;
        padding: 120px 0 40px;
    }

    .trade-banner-title {
        font-size: 28px;
    }

    .trade-banner-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .trade-banner-stats {
        gap: 24px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .trade-banner-stat-number {
        font-size: 32px;
    }

    .trade-banner-stat-label {
        font-size: 14px;
        margin-top: 8px;
    }

    .trade-tabs-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .trade-tabs-item {
        padding: 16px;
        gap: 10px;
    }

    .trade-tabs-icon {
        height: 32px;
    }

    .trade-tabs-item:nth-child(1) .trade-tabs-icon img {
        width: 33px;
        height: 31px;
    }

    .trade-tabs-item:nth-child(2) .trade-tabs-icon img {
        width: 27px;
        height: 30px;
    }

    .trade-tabs-item:nth-child(3) .trade-tabs-icon img {
        width: 28px;
        height: 23px;
    }

    .trade-tabs-item:nth-child(4) .trade-tabs-icon img {
        width: 23px;
        height: 23px;
    }

    .trade-tabs-text h3 {
        font-size: 15px;
    }

    .trade-tabs-text p {
        font-size: 12px;
    }

    .trade-metal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trade-stock-grid {
        grid-template-columns: 1fr;
    }

    .trade-forex-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trade-index-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trade-section-title {
        font-size: 24px;
    }

    .trade-section-desc {
        font-size: 18px;
    }

    .trade-compare-table {
        font-size: 13px;
    }

    .trade-compare-table thead th,
    .trade-compare-table tbody td {
        padding: 12px 10px;
        font-size: 13px;
    }

    .trade-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trade-hours-chart {
        padding: 20px;
        overflow-x: auto;
    }

    .trade-hours-axis {
        margin-left: 80px;
    }

    .trade-hours-market {
        width: 80px;
    }

    .trade-hours-market-name {
        font-size: 12px;
    }

    .trade-cta {
        padding: 60px 0;
    }

    .trade-cta h2 {
        font-size: 28px;
    }

    .trade-cta p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .trade-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .trade-cta-buttons .btn-white,
    .trade-cta-buttons .btn-outline-white {
        padding: 16px 32px;
        font-size: 16px;
        width: 240px;
        text-align: center;
    }
}

/* ===== Mobile: ≤768px ===== */
@media (max-width: 768px) {

    /* --- Banner --- */
    .trade-banner {
        min-height: auto;
        padding: 100px 0 30px;
    }

    .trade-banner-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .trade-banner-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
        line-height: 1.4;
        padding: 0 16px;
    }

    .trade-banner-stats {
        gap: 16px;
    }

    .trade-banner-stat {
        margin-bottom: 30px;
    }

    .trade-banner-stat-number {
        font-size: 26px;
    }

    .trade-banner-stat-label {
        font-size: 12px;
    }

    /* --- Section common --- */
    .trade-tabs-section {
        padding: 40px 0;
    }

    .trade-metal-section {
        padding: 50px 0;
    }

    .trade-stock-section {
        padding: 50px 0;
    }

    .trade-forex-section {
        padding: 50px 0;
    }

    .trade-index-section {
        padding: 50px 0;
    }

    .trade-compare-section {
        padding: 50px 0;
    }

    .trade-feature-section {
        padding: 50px 0;
    }

    .trade-hours-section {
        padding: 50px 0;
    }

    .trade-section-header {
        margin-bottom: 36px;
    }

    .trade-section-title {
        font-size: 22px;
        margin-bottom: 14px;
    }

    .trade-section-desc {
        font-size: 15px;
        line-height: 1.5;
        padding: 0 8px;
    }

    .trade-forex-section .trade-section-header,
    .trade-index-section .trade-section-header,
    .trade-feature-section .trade-section-header {
        margin-bottom: 36px;
    }

    /* --- Tabs --- */
    .trade-tabs-nav {
        gap: 8px;
    }

    .trade-tabs-item {
        padding: 14px 10px;
        gap: 8px;
        border-radius: 8px !important;
    }

    .trade-tabs-text h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .trade-tabs-text p {
        font-size: 11px;
    }

    /* --- Metal --- */
    .trade-metal-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .trade-metal-header {
        margin-bottom: 14px;
    }

    .trade-metal-price {
        font-size: 24px;
    }

    .trade-metal-name,
    .trade-metal-code {
        font-size: 16px;
    }

    /* --- Stock --- */
    .trade-stock-grid {
        gap: 20px;
    }

    .trade-stock-card {
        padding: 24px 14px 18px;
    }

    .trade-stock-name {
        font-size: 20px;
    }

    .trade-stock-price {
        font-size: 22px;
    }

    .trade-stock-price-specs-wrap {
        padding: 20px 16px 16px;
    }

    .trade-stock-btn {
        font-size: 16px;
        height: 46px;
        width: auto;
    }

    .trade-stock-specs {
        column-gap: 16px;
        row-gap: 18px;
    }

    .trade-stock-specs>div {
        gap: 12px;
    }

    .trade-stock-info {
        margin-left: 0;
    }

    /* --- Forex --- */
    .trade-forex-grid {
        gap: 12px;
    }

    .trade-forex-card {
        padding: 30px 16px 20px;
    }

    .trade-forex-pair {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .trade-forex-name {
        font-size: 13px;
        margin-bottom: 28px;
    }

    .trade-forex-price {
        font-size: 22px;
    }

    .trade-forex-price-row {
        margin-bottom: 24px;
        gap: 16px;
    }

    .trade-forex-spec-value {
        font-size: 16px;
    }

    /* --- Index --- */
    .trade-index-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .trade-index-card {
        flex-direction: column;
        padding: 24px 20px;
    }

    .trade-index-chart {
        width: 100%;
        height: 140px;
        flex-shrink: 1;
        order: -1;
        margin-bottom: 12px;
    }

    .trade-index-chart img {
        width: 100%;
        height: 140px;
    }

    .trade-index-name {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .trade-index-subtitle {
        margin-bottom: 20px;
    }

    .trade-index-metrics {
        gap: 20px;
    }

    .trade-index-metric-value {
        font-size: 18px;
    }

    /* --- Compare table --- */
    .trade-compare-table {
        min-width: 600px;
    }

    .trade-compare-table thead th,
    .trade-compare-table tbody td {
        padding: 12px 8px;
        font-size: 14px;
    }

    /* --- Features --- */
    .trade-feature-grid {
        gap: 16px;
    }

    .trade-feature-card {
        padding: 30px 14px 24px;
    }

    .trade-feature-card h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .trade-feature-card p {
        font-size: 14px;
        line-height: 1.4;
    }

    /* --- Trading Hours --- */
    .trade-hours-chart {
        padding: 16px 12px;
        overflow-x: auto;
    }

    .trade-hours-axis {
        margin-left: 0;
        margin-bottom: 30px;
        min-width: 560px;
    }

    .trade-hours-axis-market {
        width: 70px;
        font-size: 13px;
    }

    .trade-hours-axis-label {
        font-size: 12px;
    }

    .trade-hours-row {
        min-width: 560px;
        margin-bottom: 20px;
    }

    .trade-hours-market {
        width: 70px;
    }

    .trade-hours-market-name {
        font-size: 13px;
    }

    .trade-hours-bar {
        height: 32px;
        font-size: 12px;
    }

    .trade-hours-bar-track {
        height: 32px;
    }

    /* --- CTA --- */
    .trade-cta {
        padding: 50px 0 40px;
    }

    .trade-cta h2 {
        font-size: 24px;
    }

    .trade-cta p {
        font-size: 14px;
        margin-bottom: 24px;
        padding: 0 16px;
    }

    .trade-cta-buttons .btn-white,
    .trade-cta-buttons .btn-outline-white {
        width: 200px;
        height: 52px;
        font-size: 15px;
    }

    .trade-cta-hotline {
        font-size: 13px;
    }
}

/* ===== Small phone: ≤480px ===== */
@media (max-width: 480px) {

    /* --- Banner --- */
    .trade-banner {
        padding: 90px 0 24px;
    }

    .trade-banner-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .trade-banner-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .trade-banner-stats {
        gap: 8px 16px;
    }

    .trade-banner-stat {
        min-width: calc(50% - 16px);
        margin-bottom: 16px;
    }

    .trade-banner-stat-number {
        font-size: 22px;
    }

    .trade-banner-stat-label {
        font-size: 11px;
    }

    /* --- Section common --- */
    .trade-tabs-section,
    .trade-metal-section,
    .trade-stock-section,
    .trade-forex-section,
    .trade-index-section,
    .trade-compare-section,
    .trade-feature-section,
    .trade-hours-section {
        padding: 36px 0;
    }

    .trade-section-header {
        margin-bottom: 28px;
    }

    .trade-section-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .trade-section-desc {
        font-size: 14px;
    }

    /* --- Tabs --- */
    .trade-tabs-item {
        padding: 12px 6px;
        gap: 6px;
    }

    .trade-tabs-icon {
        height: 26px;
    }

    .trade-tabs-item:nth-child(1) .trade-tabs-icon img {
        width: 26px;
        height: 24px;
    }

    .trade-tabs-item:nth-child(2) .trade-tabs-icon img {
        width: 22px;
        height: 24px;
    }

    .trade-tabs-item:nth-child(3) .trade-tabs-icon img {
        width: 22px;
        height: 18px;
    }

    .trade-tabs-item:nth-child(4) .trade-tabs-icon img {
        width: 18px;
        height: 18px;
    }

    .trade-tabs-text h3 {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .trade-tabs-text p {
        font-size: 10px;
    }

    /* --- Metal --- */
    .trade-metal-card {
        padding: 18px 16px;
    }

    .trade-metal-header {
        margin-bottom: 10px;
    }

    .trade-metal-price {
        font-size: 22px;
    }

    .trade-metal-badge {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .trade-metal-name,
    .trade-metal-code {
        font-size: 15px;
    }

    .trade-metal-change,
    .trade-metal-unit,
    .trade-metal-range {
        font-size: 13px;
    }

    /* --- Stock --- */
    .trade-stock-grid {
        gap: 16px;
    }

    .trade-stock-card {
        padding: 20px 12px 16px;
    }

    .trade-stock-header {
        margin-bottom: 16px;
    }

    .trade-stock-name {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .trade-stock-company {
        font-size: 13px;
    }

    .trade-stock-logo {
        width: 40px;
        margin-right: 0;
    }

    .trade-stock-price {
        font-size: 20px;
    }

    .trade-stock-change-col {
        font-size: 14px;
        gap: 8px;
    }

    .trade-stock-change-val,
    .trade-stock-change-pct {
        width: auto;
    }

    .trade-stock-price-specs-wrap {
        padding: 16px 14px 14px;
        margin-bottom: 12px;
    }

    .trade-stock-specs {
        row-gap: 14px;
        column-gap: 10px;
    }

    .trade-stock-specs>div {
        gap: 8px;
    }

    .trade-stock-btns {
        gap: 12px;
    }

    .trade-stock-btn {
        font-size: 15px;
        height: 42px;
    }

    /* --- Forex --- */
    .trade-forex-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .trade-forex-card {
        padding: 24px 16px 18px;
    }

    .trade-forex-pair {
        font-size: 20px;
    }

    .trade-forex-name {
        margin-bottom: 20px;
    }

    .trade-forex-price {
        font-size: 22px;
    }

    .trade-forex-price-row {
        margin-bottom: 20px;
        gap: 12px;
    }

    /* --- Index --- */
    .trade-index-card {
        padding: 20px 16px;
    }

    .trade-index-chart {
        height: 120px;
    }

    .trade-index-chart img {
        height: 120px;
    }

    .trade-index-name {
        font-size: 18px;
    }

    .trade-index-subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .trade-index-metrics {
        gap: 12px;
    }

    .trade-index-metric-label {
        font-size: 12px;
    }

    .trade-index-metric-value {
        font-size: 16px;
    }

    /* --- Compare table --- */
    .trade-compare-table {
        min-width: 520px;
    }

    .trade-compare-table thead th,
    .trade-compare-table tbody td {
        padding: 10px 6px;
        font-size: 13px;
    }

    /* --- Features --- */
    .trade-feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .trade-feature-card {
        padding: 24px 16px 20px;
    }

    .trade-feature-icon {
        margin-bottom: 16px;
    }

    .trade-feature-card:nth-child(1) .trade-feature-icon img,
    .trade-feature-card:nth-child(2) .trade-feature-icon img,
    .trade-feature-card:nth-child(3) .trade-feature-icon img {
        width: 40px;
        height: 40px;
    }

    .trade-feature-card:nth-child(4) .trade-feature-icon img {
        width: 36px;
        height: 42px;
    }

    .trade-feature-card h3 {
        font-size: 18px;
    }

    .trade-feature-card p {
        font-size: 13px;
    }

    /* --- CTA --- */
    .trade-cta {
        padding: 40px 0 32px;
    }

    .trade-cta h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .trade-cta p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .trade-cta-buttons {
        gap: 12px;
    }

    .trade-cta-buttons .btn-white,
    .trade-cta-buttons .btn-outline-white {
        width: 180px;
        height: 48px;
        font-size: 14px;
    }

    .trade-cta-hotline {
        font-size: 12px;
    }
}

/* ===== Index Fullscreen K-line Overlay (kline.html style) ===== */
.idx-fs-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    flex-direction: column;
}
.idx-fs-overlay.active {
    display: flex;
}

/* --- Header: 与 kline.html .kl-price-header 一致 --- */
.idx-fs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 30px 16px 26px;
    background: #FFFFFF;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.idx-fs-price-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.idx-fs-symbol-name {
    font-size: 20px;
    font-weight: bold;
    color: #181818;
}
.idx-fs-current-price {
    font-size: 20px;
    font-weight: bold;
    color: #20B531;
}
.idx-fs-current-price.down {
    color: #F04945;
}
.idx-fs-price-diff,
.idx-fs-price-pct {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    background: #EEEEEE;
    color: #666;
    margin-left: 6px;
}
.idx-fs-price-diff.up,
.idx-fs-price-pct.up {
    background: rgba(32, 181, 49, 0.15);
    color: var(--color-bullish, #20B531);
}
.idx-fs-price-diff.down,
.idx-fs-price-pct.down {
    background: #EEEEEE;
    color: var(--color-bearish, #F04945);
}
.idx-fs-close-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 20px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    color: #666;
    flex-shrink: 0;
    transition: background 0.2s;
}
.idx-fs-close-btn:hover {
    background: #e0e0e0;
    color: #333;
}

/* --- Toolbar bar: 周期 + 图表工具 同一行 --- */
.idx-fs-toolbar-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px 12px 26px;
    background: #FFFFFF;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    gap: 16px;
}
.idx-fs-period-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}
.idx-fs-period-tab {
    padding: 6px 14px;
    font-size: 13px;
    color: #888;
    background: transparent;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.idx-fs-period-tab:hover {
    color: #555;
    background: #f5f5f5;
}
.idx-fs-period-tab.active {
    color: #FFFFFF;
    background: #E13838;
    border-color: #E13838;
}

/* --- Chart Toolbar: K线/线形/区域 + 画图/设置 --- */
.idx-fs-chart-toolbar {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}
.idx-fs-chart-types,
.idx-fs-chart-tools {
    display: flex;
    gap: 2px;
}
.idx-fs-chart-types {
    background: rgba(0,0,0,0.03);
    border-radius: 4px;
    padding: 2px;
}
.idx-fs-type-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 13px;
    color: #888;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    font-family: inherit;
}
.idx-fs-type-btn:hover {
    color: #555;
    background: rgba(0,0,0,0.05);
}
.idx-fs-type-btn.active {
    color: #FFFFFF;
    background: #E13838;
}

/* --- Chart wrap: 图表 + 设置面板 --- */
.idx-fs-chart-wrap {
    flex: 1;
    min-height: 0;
    position: relative;
}
.idx-fs-chart {
    width: 100%;
    height: 100%;
    background: #fff;
}

/* --- Settings Panel: 与 kline.html .kl-settings-panel 一致 --- */
.idx-fs-settings-panel {
    display: none;
    position: absolute;
    top: 12px;
    right: 16px;
    width: 240px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    z-index: 10;
}
.idx-fs-settings-panel.open {
    display: block;
}
.idx-fs-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
}
.idx-fs-settings-header span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.idx-fs-settings-close {
    border: none;
    background: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
}
.idx-fs-settings-close:hover {
    color: #333;
}
.idx-fs-settings-body {
    padding: 10px 14px 14px;
}
.idx-fs-setting-row {
    margin-bottom: 12px;
}
.idx-fs-setting-row:last-child {
    margin-bottom: 0;
}
.idx-fs-setting-row label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}
.idx-fs-setting-options {
    display: flex;
    gap: 6px;
}
.idx-fs-setting-opt {
    flex: 1;
    padding: 5px 0;
    font-size: 13px;
    color: #666;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    font-family: inherit;
}
.idx-fs-setting-opt:hover {
    border-color: #ccc;
    background: #f0f0f0;
}
.idx-fs-setting-opt.active {
    border-color: #E13838;
    color: #E13838;
    background: #FFF5F5;
}

/* --- Draw Panel: 与 kline.css .kl-draw-panel 一致 --- */
.idx-fs-draw-panel {
    display: none;
    position: absolute;
    top: 12px;
    left: 16px;
    z-index: 90;
    width: 254px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.idx-fs-draw-panel.open {
    display: block;
}
.idx-fs-draw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
}
.idx-fs-draw-header span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.idx-fs-draw-close {
    border: none;
    background: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
}
.idx-fs-draw-close:hover {
    color: #333;
}
.idx-fs-draw-body {
    padding: 10px 14px 14px;
}
.idx-fs-draw-section {
    margin-bottom: 12px;
}
.idx-fs-draw-section:last-child {
    margin-bottom: 0;
}
.idx-fs-draw-section > label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}
.idx-fs-draw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}
.idx-fs-draw-tool {
    padding: 5px 4px;
    font-size: 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fafafa;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.idx-fs-draw-tool:hover {
    border-color: #ccc;
    background: #f0f0f0;
}
.idx-fs-draw-tool.active {
    border-color: #1a56e8;
    color: #1a56e8;
    background: #eef3ff;
    font-weight: 600;
}
.idx-fs-draw-colors {
    display: flex;
    gap: 8px;
    align-items: center;
}
.idx-fs-draw-color {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s, transform 0.15s;
    flex-shrink: 0;
}
.idx-fs-draw-color:hover {
    transform: scale(1.2);
}
.idx-fs-draw-color.active {
    border-color: #333;
    transform: scale(1.2);
}
.idx-fs-draw-styles {
    display: flex;
    gap: 6px;
}
.idx-fs-draw-styles .idx-fs-setting-opt {
    flex: 1;
    min-width: 40px;
}
.idx-fs-draw-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}
.idx-fs-draw-action {
    flex: 1;
    padding: 7px 0;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    text-align: center;
}
.idx-fs-draw-action[data-action="undo"] {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #555;
}
.idx-fs-draw-action[data-action="undo"]:hover {
    background: #e8e8e8;
}
.idx-fs-draw-action[data-action="clear"] {
    background: #fff5f5;
    border: 1px solid #ffc5c5;
    color: #E13838;
}
.idx-fs-draw-action[data-action="clear"]:hover {
    background: #ffe0e0;
}

/* --- Mobile Overlay --- */
@media (max-width: 768px) {
    /* 指数卡片移动端 */
    .trade-index-card {
        -webkit-tap-highlight-color: rgba(0,0,0,0.05);
    }

    /* 弹窗 Header */
    .idx-fs-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 16px 8px;
        gap: 6px;
        position: relative;
    }
    .idx-fs-close-btn {
        position: absolute;
        top: 10px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 18px;
        line-height: 32px;
    }
    .idx-fs-symbol-name { font-size: 15px; }
    .idx-fs-current-price { font-size: 17px; }
    .idx-fs-price-diff,
    .idx-fs-price-pct { font-size: 11px; padding: 2px 6px; }

    /* 工具栏：周期 + 图表类型 */
    .idx-fs-toolbar-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 6px 12px;
        gap: 6px;
    }
    .idx-fs-period-bar {
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }
    .idx-fs-period-bar::-webkit-scrollbar { display: none; }
    .idx-fs-period-tab {
        font-size: 12px;
        padding: 4px 10px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .idx-fs-chart-toolbar {
        gap: 8px;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }
    .idx-fs-chart-toolbar::-webkit-scrollbar { display: none; }
    .idx-fs-chart-types,
    .idx-fs-chart-tools {
        flex-shrink: 0;
    }
    .idx-fs-type-btn {
        font-size: 12px;
        padding: 4px 10px;
        white-space: nowrap;
    }

    /* 移动端隐藏画图/设置按钮及面板（与 kline.html 一致） */
    .idx-fs-chart-tools {
        display: none !important;
    }
    .idx-fs-draw-panel,
    .idx-fs-settings-panel {
        display: none !important;
    }
}