.figma-metal-page {
    --metal-content: 1270px;
    --metal-section: 1320px;
    --metal-gutter: 64px;
    --metal-wide-shell: 1858px;
    background: #fff;
    color: #1f2937;
}

.figma-metal-page a {
    text-decoration: none;
}

.footer {
    opacity: 1;
}

.hx-market-strip {
    height: 48px;
    overflow: hidden;
    background: #1c1b1b;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hx-market-strip-inner {
    width: min(var(--container, 1280px), calc(100% - 64px));
    height: 48px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    white-space: nowrap;
    font-size: 12px;
    line-height: 16px;
}

.hx-market-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
}

.hx-market-item b {
    color: #fff;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
}

.hx-market-item i {
    font-size: 10px;
    line-height: 15px;
}

.figma-metal-page .up,
.figma-metal-page .hx-market-item i.up,
.figma-metal-page [data-change].up {
    color: #00b23e;
    font-style: normal;
}

.figma-metal-page .down,
.figma-metal-page .hx-market-item i.down,
.figma-metal-page [data-change].down {
    color: #e60012;
    font-style: normal;
}

.metal-terminal-hero {
    height: 942px;
    padding: 33px 0 29px;
    box-sizing: border-box;
    background: #fff;
}

.metal-terminal-frame {
    width: min(1320px, calc(100% - 64px));
    height: 880px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 256px minmax(0, 1fr);
    column-gap: 24px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.metal-terminal-sidebar {
    width: 256px;
    height: 880px;
    overflow: hidden;
    padding: 0;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.metal-side-title {
    position: relative;
    height: 57px;
    padding-left: 28px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
    background: #f3f4f6;
    color: #111827;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    box-sizing: border-box;
}

.metal-side-title::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 20px;
    width: 4px;
    height: 16px;
    background: #c5a059;
}

.metal-side-content {
    padding: 16px;
}

.metal-side-group {
    width: 222px;
}

.metal-side-heading {
    display: block;
    margin: 0 0 12px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
}

.metal-side-list {
    display: grid;
    gap: 8px;
}

.metal-side-row {
    height: 36px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 4px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    box-sizing: border-box;
}

.metal-side-row.active {
    background: #f9f6f0;
}

.metal-side-row span {
    display: block;
}

.metal-side-row em {
    font-style: normal;
    font-weight: 400;
}

.metal-side-list.compact .metal-side-row {
    height: 20px;
}

.metal-side-separator {
    width: 222px;
    height: 1px;
    margin: 16px 0;
    background: #f3f4f6;
}

.metal-terminal-main {
    position: relative;
    height: 880px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #F3F4F6;
    border-radius: 8px;
}

.metal-terminal-head,
.metal-terminal-price,
.metal-terminal-tools,
.metal-trade-actions,
.metal-terminal-metrics,
.metal-order-book,
.gold-board-stats,
.metal-advantage-grid,
.hot-products-row {
    display: flex;
}

.metal-terminal-head {
    position: absolute;
    left: 26px;
    top: 26px;
    width: 976px;
    height: 60px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.metal-terminal-head strong {
    display: block;
    color: #111827;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
}

.metal-terminal-head span {
    display: block;
    margin-top: 0;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.metal-terminal-price {
    align-items: flex-end;
    gap: 12px;
}

.metal-terminal-price b {
    color: #111827;
    font-size: 24px;
}

.metal-terminal-tools {
    position: absolute;
    left: 26px;
    top: 102px;
    width: 976px;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.metal-terminal-tools::-webkit-scrollbar {
    display: none;
}

.metal-terminal-tools button {
    flex: 0 0 auto;
}

.metal-terminal-tools button {
    height: 28px;
    padding: 0 11px;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    background: #fff;
    color: #4b5563;
    font-size: 12px;
}

.metal-terminal-tools button[type="button"] {
    border-color: transparent;
    background: transparent;
}

.metal-terminal-tools button.active {
    background: #111827;
    color: #fff;
}

.metal-terminal-separator {
    width: 1px;
    height: 16px;
    margin: 0 8px;
    background: #e5e7eb;
}

.metal-terminal-chart {
    position: absolute;
    left: 26px;
    top: 163px;
    width: 976px;
    height: 339px;
    overflow: hidden;
    margin-top: 0;
    border: 1px solid #eff2f6;
    background: #fff;
}

.metal-main-chart {
    width: 100%;
    height: 339px;
    position: relative;
    background: #fff;
}

.metal-main-chart span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
}

.metal-main-chart table,
.metal-main-chart canvas {
    display: block;
}

.metal-trade-actions {
    position: absolute;
    left: 26px;
    top: 520px;
    width: 976px;
    height: 98px;
    gap: 16px;
    margin: 0;
    max-width: none;
    align-items: center;
}

.metal-trade-actions a {
    flex: 1;
    height: 82px;
    padding: 17px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    box-sizing: border-box;
}

.metal-trade-actions b {
    font-family: Manrope, Arial, sans-serif;
    font-size: 22px;
    line-height: 28px;
}

.metal-trade-actions span {
    color: inherit;
}

.metal-buy {
    color: #16a34a;
    background: #eaf8ee;
    border-color: #dcfce7;
}

.metal-sell {
    color: #ef4444;
    background: #fff1f2;
    border-color: #fee2e2;
}

.metal-terminal-metrics {
    position: absolute;
    left: 26px;
    top: 634px;
    width: 976px;
    height: 76px;
    justify-content: center;
    gap: 0;
    margin-top: 0;
    border: 1px solid #f0f2f5;
    border-radius: 4px;
}

.metal-terminal-metrics div {
    flex: 1;
    min-width: 0;
    padding-top: 8px;
    text-align: center;
    border-right: 1px solid #f0f2f5;
}

.metal-terminal-metrics div:last-child {
    border-right: 0;
}

.metal-terminal-metrics span {
    display: block;
    color: #9ca3af;
    font-size: 10px;
    line-height: 15px;
}

.metal-terminal-metrics b {
    display: block;
    margin-top: 0;
    color: #111827;
    font-size: 14px;
    line-height: 20px;
}

.metal-terminal-metrics small {
    display: block;
    margin-top: 0;
    color: #4b5563;
    font-size: 10px;
    line-height: 15px;
}

.metal-order-book {
    position: absolute;
    left: 26px;
    top: 726px;
    width: 976px;
    height: 128px;
    gap: 32px;
    margin-top: 0;
}

.metal-order-book > div {
    flex: 1;
}

.metal-order-book strong {
    display: block;
    margin-bottom: 8px;
    color: #4b5563;
    font-size: 12px;
    line-height: 16px;
}

.metal-order-book p {
    display: flex;
    justify-content: space-between;
    margin: 0 0 4px;
    color: #4b5563;
    font-size: 12px;
    line-height: 16px;
}

.metal-order-book p:last-child {
    margin-bottom: 0;
}

.metal-order-book div:first-child span {
    color: #22c55e;
}

.metal-order-book div:last-child span {
    color: #ef4444;
}

/* 桌面端横向流式: 保留垂直绝对定位以匹配 1920 设计稿间距, 横向用 left:26+right:38 自适应主区宽度 */
.metal-terminal-head,
.metal-terminal-tools,
.metal-terminal-chart,
.metal-trade-actions,
.metal-terminal-metrics,
.metal-order-book {
    right: 38px;
    width: auto;
}

.metal-learning-bg {
    width: min(var(--metal-wide-shell), calc(100% - 62px));
    margin: 0 auto 0 26px;
    padding-bottom: 31px;
    overflow: hidden;
    border-radius: 42px;
    background: linear-gradient(180deg, rgba(255, 145, 0, 0.86) 0%, rgba(255, 255, 255, 0.86) 100%);
}

.gold-board-section {
    height: 424px;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
}

.gold-board {
    width: 100%;
    height: 424px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    position: relative;
}

.gold-board h2,
.metal-section-title h2,
.hot-products-section h2 {
    margin: 0;
    color: #1f2937;
    font-size: 48px;
    line-height: 56px;
    font-weight: 900;
    letter-spacing: 0;
    text-align: center;
}

.gold-board h2 {
    color: #fff;
    position: absolute;
    top: 77px;
    left: 0;
    width: 100%;
}

.gold-board p,
.metal-section-title p {
    margin: 0 auto;
    color: #4b5563;
    font-size: 24px;
    line-height: 40px;
    font-weight: 500;
    text-align: center;
}

.gold-board p {
    width: min(var(--metal-content), calc(100% - var(--metal-gutter)));
    position: absolute;
    top: 152px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-weight: 700;
}

.gold-board-stats {
    width: min(var(--metal-content), calc(100% - var(--metal-gutter)));
    position: absolute;
    top: 262px;
    left: max(32px, calc((100% - var(--metal-content)) / 2 + 5px));
    transform: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 16px;
    margin: 0;
}

.gold-board-stats div {
    width: auto;
    height: 115px;
    min-height: 0;
    padding: 17px 41px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(249, 250, 251, 0.4);
    border: 1px solid #f3f4f6;
    border-radius: 4px;
    text-align: left;
}

.gold-board-stats div:last-child {
    background: rgba(255, 255, 255, 0.4);
}

.gold-board-stats strong {
    display: block;
    color: #1f2937;
    font-size: 24px;
    line-height: 32px;
    font-weight: 900;
}

.gold-board-stats small {
    font-size: 14px;
}

.gold-board-stats span {
    display: block;
    margin: 0;
    color: #d3610b;
    font-size: 14px;
    line-height: 16px;
    font-weight: 700;
}

.gold-board-stats em {
    display: block;
    color: #22c55e;
    font-size: 16px;
    font-style: normal;
    line-height: 15px;
    font-weight: 400;
}

.gold-board-stats em.down {
    color: #ef4444;
}

.metal-kline-section,
.metal-indicator-section,
.metal-advantage-section,
.metal-factor-section {
    box-sizing: border-box;
}

.metal-kline-section {
    min-height: 563px;
    padding: 39px 32px 44px;
    background: transparent;
    position: relative;
}

.metal-kline-section .metal-section-title {
    max-width: 1320px;
    margin: 0 auto;
    text-align: center;
}

.metal-kline-section .metal-section-title p {
    margin-top: 7px;
}

.metal-indicator-section {
    width: min(var(--metal-section), calc(100% - var(--metal-gutter)));
    min-height: 670px;
    margin: 5px auto 0;
    padding: 54px 24px 37px;
    position: relative;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
}

.metal-indicator-section .metal-section-title {
    text-align: center;
}

.metal-indicator-section .metal-section-title p {
    margin-top: 12px;
}

.metal-advantage-section {
    width: min(var(--metal-section), calc(100% - var(--metal-gutter)));
    min-height: 401px;
    margin: 61px auto 0;
    padding: 53px 24px 76px;
    position: relative;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
}

.metal-advantage-section .metal-section-title {
    text-align: center;
}

.metal-products-bg {
    padding: 64px 0 63px;
    background: linear-gradient(180deg, #ffffff 0%, #fff8ef 31%, #ffedd3 100%);
}

.metal-factor-section {
    width: min(var(--metal-content), calc(100% - var(--metal-gutter)));
    min-height: 640px;
    margin: 0 auto;
    padding: 29px 0 50px;
    position: relative;
    background: transparent;
}

.metal-factor-section .metal-section-title {
    width: 100%;
    text-align: center;
}

.metal-factor-section .metal-section-title p {
    margin-top: 16px;
    line-height: 46px;
}

.metal-knowledge-grid {
    max-width: 1270px;
    margin: 35px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
}

.metal-knowledge-grid article {
    min-height: 160px;
    padding: 24px 40px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 4px;
}

.metal-knowledge-grid h3,
.metal-indicator-grid h3,
.metal-advantage-grid h3,
.metal-factor-grid h3 {
    margin: 0;
    color: #c5a059;
    font-size: 24px;
    line-height: 20px;
    font-weight: 700;
}

.metal-knowledge-grid p,
.metal-indicator-grid p,
.metal-advantage-grid p,
.metal-factor-grid p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 27px;
}

.metal-knowledge-grid h3 {
    margin-bottom: 12px;
}

.metal-knowledge-grid p {
    line-height: 16px;
}

.metal-knowledge-grid article:first-child p,
.metal-knowledge-grid article:nth-child(4) p {
    line-height: 27px;
}

.metal-knowledge-grid p + p {
    margin-top: 10px;
}

.metal-indicator-grid {
    margin: 59px 0 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.metal-indicator-grid article {
    min-height: 412px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.metal-indicator-grid img {
    display: block;
    width: 100%;
    height: 206px;
    object-fit: cover;
    object-position: center center;
}

.metal-indicator-grid h3,
.metal-indicator-grid p,
.metal-indicator-grid span {
    margin-left: 31px;
    margin-right: 31px;
}

.metal-indicator-grid h3 {
    margin-top: 25px;
    color: #1f2937;
    font-size: 20px;
    line-height: 20px;
}

.metal-indicator-grid p {
    margin-top: 15px;
}

.metal-indicator-grid span {
    display: inline-block;
    width: max-content;
    max-width: calc(100% - 62px);
    margin-top: 15px;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    font-size: 14px;
    line-height: 15px;
}

.metal-indicator-grid span.down {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.metal-advantage-grid {
    margin: 40px 0 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.metal-advantage-grid article {
    min-width: 0;
    min-height: 176px;
    padding-top: 5px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.metal-advantage-grid img {
    width: 93px;
    height: 93px;
    margin: 0 0 14px;
    object-fit: contain;
}

.metal-advantage-grid h3 {
    color: #1f2937;
    font-size: 20px;
    line-height: 16px;
    font-weight: 700;
}

.metal-advantage-grid p {
    margin-top: 12px;
    color: #4b5563;
    font-size: 14px;
    line-height: 27px;
}

.metal-factor-grid {
    margin: 39px 0 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 16px;
}

.metal-factor-grid article {
    min-height: 126px;
    padding: 16px 160px 16px 54px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    background: #faf7f3;
    border: 1px solid #eed6d6;
    border-radius: 4px;
}

.metal-factor-grid article > div {
    position: relative;
    z-index: 1;
}

.metal-factor-grid h3 {
    margin: 8px 0 13px;
    color: #1f2937;
    font-size: 24px;
    line-height: 20px;
    font-weight: 700;
}

.metal-factor-grid p {
    color: #6b7280;
    font-size: 14px;
    line-height: 27px;
}

.metal-factor-grid img {
    position: absolute;
    right: -1px;
    top: -1px;
    width: 137px;
    height: 125px;
    max-width: none;
    border-radius: 6px;
    object-fit: cover;
    pointer-events: none;
}

.hot-products-section {
    width: min(var(--metal-section), calc(100% - var(--metal-gutter)));
    min-height: 289px;
    margin: 0 auto;
    padding: 47px 25px 62px;
    position: relative;
    box-sizing: border-box;
    background: transparent;
}

.hot-products-section h2 {
    text-align: center;
}

.hot-products-row {
    width: 100%;
    margin: 55px 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.hot-products-row div {
    width: auto;
    height: 97px;
    padding: 17px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 4px;
    box-sizing: border-box;
    text-align: center;
}

.hot-products-row span {
    display: block;
    color: #374151;
    font-size: 12px;
    line-height: 16px;
}

.hot-products-row b {
    display: block;
    margin-top: 4px;
    color: #111827;
    font-size: 18px;
    line-height: 28px;
}

.hot-products-row i {
    display: block;
    color: #22c55e;
    font-size: 10px;
    font-style: normal;
    line-height: 15px;
}

.hot-products-row i.down {
    color: #ef4444;
}

/* ==============================================
   Section scroll entrance — 与首页风格统一
   ============================================== */
@keyframes sectionEntrance {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: none; }
}

.metal-learning-bg,
.metal-indicator-section,
.metal-advantage-section,
.metal-products-bg {
    opacity: 0;
}

.metal-learning-bg.in-view,
.metal-indicator-section.in-view,
.metal-advantage-section.in-view,
.metal-products-bg.in-view {
    animation: sectionEntrance 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
    .metal-learning-bg,
    .metal-indicator-section,
    .metal-advantage-section,
    .metal-products-bg {
        opacity: 1;
        animation: none !important;
    }
}

/* ==============================================
   Hover & Transition — 与首页风格统一
   ============================================== */
.metal-side-row {
    transition: background 200ms ease, border-color 200ms ease;
}

.metal-side-row:hover {
    background: #f9f6f0;
    border-color: #e5d5b0;
}

.metal-trade-actions a {
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.metal-trade-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.gold-board-stats div {
    transition: transform 280ms ease, box-shadow 280ms ease;
}

.gold-board-stats div:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.metal-knowledge-grid article {
    transition: transform 280ms ease;
}

.metal-knowledge-grid article:hover {
    transform: translateY(-4px);
}

.metal-indicator-grid article {
    transition: transform 280ms ease;
}

.metal-indicator-grid article:hover {
    transform: translateY(-6px);
}

.metal-indicator-grid article:hover img {
    transform: scale(1.04);
}

.metal-indicator-grid img {
    transition: transform 400ms ease;
}

.metal-advantage-grid article {
    transition: transform 280ms ease;
}

.metal-advantage-grid article:hover {
    transform: translateY(-4px);
}

.metal-factor-grid article {
    transition: transform 280ms ease, box-shadow 280ms ease;
}

.metal-factor-grid article:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.hot-products-row div {
    transition: transform 280ms ease, border-color 280ms ease;
}

.hot-products-row div:hover {
    transform: translateY(-4px);
    border-color: #f3f4f6;
}

.metal-terminal-tools button {
    transition: background 160ms ease, color 160ms ease;
}

.metal-terminal-tools button:hover {
    background: #f3f4f6;
}

.metal-terminal-tools button.active:hover {
    background: #111827;
}

/* ==============================================
   Narrow Desktop (≤ 1400px) — ticker bar scroll
   ============================================== */
@media (max-width: 1400px) {
    .hx-market-strip-inner {
        justify-content: flex-start;
        gap: 32px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .hx-market-strip-inner::-webkit-scrollbar {
        display: none;
    }
}

/* ==============================================
   Responsive: Tablet & below (≤ 1080px)
   ============================================== */
@media (max-width: 1080px) {
    .figma-metal-page {
        overflow-x: hidden;
    }

    .hx-market-strip,
    .hx-market-strip-inner {
        height: 40px;
    }

    .hx-market-strip-inner {
        width: calc(100% - 32px);
    }

    .hx-market-item i {
        font-size: 12px;
    }

    .metal-terminal-hero,
    .gold-board-section,
    .metal-kline-section,
    .metal-indicator-section,
    .metal-advantage-section,
    .metal-factor-section,
    .hot-products-section {
        height: auto;
        margin-top: 0;
    }

    .metal-terminal-hero {
        padding: 20px 0 36px;
    }

    .metal-terminal-frame {
        width: calc(100% - 32px);
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
        row-gap: 12px;
        height: auto;
        min-height: auto;
    }

    /* Sidebar → horizontal chip selector (preserves instrument switching) */
    .metal-terminal-sidebar {
        display: block;
        width: 100%;
        min-width: 0;
        height: auto;
        padding: 0;
        border: 0;
        background: transparent;
        overflow: visible;
    }

    .metal-side-title,
    .metal-side-separator {
        display: none;
    }

    .metal-side-content {
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .metal-side-group,
    .metal-side-group-compact {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .metal-side-heading {
        display: flex;
        flex: 0 0 auto;
        width: 36px;
        align-items: center;
        margin: 0;
        padding: 0;
        color: #6b7280;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }

    .metal-side-list,
    .metal-side-list.compact {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 2px 2px 6px;
        margin: 0;
    }

    .metal-side-list::-webkit-scrollbar,
    .metal-side-list.compact::-webkit-scrollbar {
        display: none;
    }

    .metal-side-row,
    .metal-side-list.compact .metal-side-row {
        flex: 0 0 auto;
        width: auto;
        min-width: 124px;
        height: 40px;
        padding: 0 14px;
        border: 1px solid #f3f4f6;
        border-radius: 999px;
        background: #fff;
        font-size: 13px;
        gap: 8px;
    }

    .metal-side-row.active {
        background: #f9f6f0;
        border-color: #c5a059;
        color: #8a6c2c;
    }

    .metal-side-row em {
        font-size: 12px;
    }

    /* 非可点 chip (外汇/指数 div 容器) - 略淡的视觉区分 */
    div.metal-side-row {
        background: #fafafa;
        cursor: default;
    }

    .metal-terminal-main {
        min-width: 0;
        height: auto;
        padding: 20px;
        overflow: visible;
        box-sizing: border-box;
    }

    .metal-terminal-head,
    .metal-terminal-tools,
    .metal-terminal-chart,
    .metal-trade-actions,
    .metal-terminal-metrics,
    .metal-order-book {
        position: static;
        width: auto;
        max-width: 100%;
        min-width: 0;
        height: auto;
        box-sizing: border-box;
    }

    .metal-terminal-tools button,
    .metal-trade-actions a {
        min-width: 0;
    }

    .metal-terminal-tools,
    .metal-terminal-chart,
    .metal-trade-actions,
    .metal-terminal-metrics,
    .metal-order-book {
        margin-top: 16px;
    }

    /* K线工具栏: 横向滚动，避免按钮换行混乱 */
    .metal-terminal-tools {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    /* 仅保留周期切换，隐藏无交互的装饰按钮（平板与手机一致） */
    .metal-terminal-tools button[type="button"],
    .metal-terminal-separator {
        display: none;
    }

    .metal-terminal-tools::-webkit-scrollbar {
        display: none;
    }

    .metal-terminal-tools button {
        flex: 0 0 auto;
        height: 34px;
        padding: 0 14px;
    }

    .metal-terminal-metrics div {
        padding: 10px 8px 12px;
    }

    .metal-terminal-metrics span,
    .metal-terminal-metrics small {
        font-size: 12px;
        line-height: 17px;
    }

    .metal-main-chart {
        height: 320px;
        padding-right: 10px;
        box-sizing: border-box;
    }

    .gold-board {
        height: auto;
        padding: 40px 22px;
    }

    .metal-learning-bg {
        width: calc(100% - 24px);
        margin: 0 auto;
        border-radius: 24px;
        padding-bottom: 24px;
    }

    .gold-board h2,
    .gold-board p,
    .gold-board-stats,
    .metal-kline-section .metal-section-title,
    .metal-indicator-section .metal-section-title,
    .metal-advantage-section .metal-section-title,
    .metal-factor-section .metal-section-title,
    .metal-knowledge-grid,
    .metal-indicator-grid,
    .metal-advantage-grid,
    .metal-factor-grid,
    .hot-products-section h2,
    .hot-products-row {
        position: static;
        inset: auto;
        transform: none;
        width: auto;
    }

    .gold-board-stats,
    .metal-knowledge-grid,
    .metal-indicator-grid,
    .metal-advantage-grid,
    .metal-factor-grid,
    .hot-products-row {
        margin-top: 28px;
    }

    .gold-board-stats div {
        height: auto;
        min-height: 100px;
        padding: 16px 22px;
    }

    .metal-kline-section,
    .metal-indicator-section,
    .metal-advantage-section,
    .metal-factor-section,
    .hot-products-section {
        width: calc(100% - 24px);
        padding: 40px 20px;
        box-sizing: border-box;
    }

    .metal-kline-section {
        width: 100%;
    }

    .metal-indicator-section,
    .metal-advantage-section {
        margin-top: 28px;
    }

    .metal-products-bg {
        padding: 36px 0 44px;
    }

    .metal-factor-section .metal-section-title p {
        line-height: 26px;
    }

    .hot-products-row i {
        font-size: 12px;
    }

    .metal-factor-grid article {
        height: auto;
        min-height: 120px;
        padding: 16px 130px 16px 24px;
    }

    .metal-factor-grid img {
        width: 110px;
        height: 100%;
    }

    .metal-indicator-grid,
    .metal-factor-grid {
        grid-template-columns: 1fr;
    }

    .metal-indicator-grid article {
        height: auto;
    }

    /* Fix: 四大优势在原 CSS 用 flex-wrap 修不了 grid 布局 */
    .metal-advantage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 16px;
    }

    .metal-advantage-grid article {
        height: auto;
    }

    .gold-board-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hot-products-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gold-board h2,
    .metal-section-title h2,
    .hot-products-section h2 {
        font-size: 32px;
        line-height: 40px;
    }

    .gold-board p,
    .metal-section-title p {
        font-size: 16px;
        line-height: 26px;
    }
}

/* ==============================================
   Responsive: Mobile (≤ 768px)
   ============================================== */
@media (max-width: 768px) {
    .hx-market-strip {
        height: 36px;
    }

    .hx-market-strip-inner {
        width: calc(100% - 24px);
        height: 36px;
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        font-size: 12px;
    }

    .hx-market-strip-inner::-webkit-scrollbar {
        display: none;
    }

    .hx-market-item {
        flex: 0 0 auto;
        gap: 6px;
    }

    .hx-market-item b {
        font-size: 13px;
        line-height: 18px;
    }

    .metal-terminal-frame,
    .gold-board-stats,
    .metal-knowledge-grid,
    .metal-indicator-grid,
    .metal-advantage-grid,
    .metal-factor-grid,
    .hot-products-row {
        width: 100%;
    }

    .metal-terminal-frame {
        width: calc(100% - 24px);
    }

    .metal-learning-bg {
        width: calc(100% - 20px);
        border-radius: 20px;
    }

    .metal-terminal-main {
        padding: 16px;
    }

    /* 标题 / 价格: 标题在上，价格在下 (单独列允许它显著呈现) */
    .metal-terminal-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .metal-terminal-head strong {
        font-size: 20px;
        line-height: 28px;
    }

    .metal-terminal-head span {
        font-size: 12px;
    }

    .metal-terminal-price {
        align-items: center;
        gap: 8px;
    }

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

    /* 工具栏: 仅保留周期切换，隐藏无交互的装饰按钮 */
    .metal-terminal-tools button[type="button"],
    .metal-terminal-separator {
        display: none;
    }

    /* 买入/卖出: 保持横向并排 - 关键 CTA 必须可见可点 */
    .metal-trade-actions {
        flex-direction: row;
        gap: 10px;
    }

    .metal-trade-actions a {
        height: 72px;
        padding: 12px 8px;
        border-radius: 6px;
    }

    .metal-trade-actions b {
        font-size: 18px;
        line-height: 24px;
    }

    .metal-trade-actions span {
        font-size: 12px;
    }

    /* 技术指标: 2列网格代替单列竖排 (5 个数据更紧凑) */
    .metal-terminal-metrics {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 12px;
        height: auto;
        border-radius: 6px;
    }

    .metal-terminal-metrics div {
        flex: none;
        padding: 8px 10px;
        text-align: left;
        border: 0;
        background: #fafbfc;
        border-radius: 4px;
        min-width: 0;
    }

    .metal-terminal-metrics div:last-child {
        grid-column: 1 / -1;
    }

    .metal-terminal-metrics span,
    .metal-terminal-metrics small {
        font-size: 12px;
        line-height: 16px;
    }

    .metal-terminal-metrics b {
        font-size: 15px;
        line-height: 22px;
        margin-top: 2px;
    }

    /* 买盘 / 卖盘: 保持双列对照 (天然 pair, 拆开反而失去意义) */
    .metal-order-book {
        flex-direction: row;
        gap: 14px;
    }

    .metal-order-book > div {
        min-width: 0;
    }

    .metal-order-book p {
        font-size: 12px;
        line-height: 19px;
    }

    .metal-order-book strong {
        font-size: 12px;
    }

    .metal-main-chart {
        height: 300px;
    }

    .gold-board {
        padding: 36px 20px;
    }

    .gold-board-stats {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gold-board-stats div {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 14px 18px;
    }

    .gold-board-stats strong {
        font-size: 20px;
        line-height: 28px;
    }

    .metal-knowledge-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .metal-knowledge-grid article {
        height: auto;
        padding: 20px 22px;
    }

    .metal-knowledge-grid p {
        line-height: 22px;
    }

    .metal-indicator-grid img {
        height: 180px;
    }

    .metal-indicator-grid h3,
    .metal-indicator-grid p,
    .metal-indicator-grid span {
        margin-left: 20px;
        margin-right: 20px;
    }

    .metal-indicator-grid span {
        max-width: calc(100% - 40px);
    }

    .metal-indicator-grid h3 {
        margin-top: 18px;
    }

    .metal-indicator-grid p {
        margin-top: 12px;
    }

    .metal-indicator-grid article {
        padding-bottom: 20px;
    }

    .metal-advantage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 12px;
    }

    .metal-advantage-grid img {
        width: 72px;
        height: 72px;
        margin-bottom: 10px;
    }

    .metal-advantage-grid h3 {
        font-size: 16px;
        line-height: 22px;
    }

    .metal-advantage-grid p {
        font-size: 13px;
        line-height: 22px;
        margin-top: 8px;
    }

    .metal-factor-grid article {
        padding: 14px 108px 14px 18px;
        min-height: 110px;
    }

    .metal-factor-grid img {
        width: 96px;
        height: 100%;
    }

    .metal-factor-grid h3 {
        font-size: 18px;
        line-height: 22px;
        margin: 4px 0 8px;
    }

    .metal-factor-grid p {
        font-size: 13px;
        line-height: 22px;
    }

    .hot-products-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .hot-products-row div {
        width: 100%;
        height: auto;
        min-height: 86px;
        padding: 14px 10px;
    }

    .hot-products-row b {
        font-size: 16px;
        line-height: 24px;
    }

    .gold-board h2,
    .metal-section-title h2,
    .hot-products-section h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .gold-board p,
    .metal-section-title p {
        font-size: 14px;
        line-height: 22px;
    }

    .metal-knowledge-grid h3,
    .metal-indicator-grid h3,
    .metal-factor-grid h3 {
        font-size: 18px;
        line-height: 24px;
    }

    .metal-kline-section,
    .metal-indicator-section,
    .metal-advantage-section,
    .metal-factor-section,
    .hot-products-section {
        width: calc(100% - 20px);
        padding: 32px 16px;
    }

    .metal-kline-section {
        width: 100%;
    }
}

/* ==============================================
   Responsive: Small Mobile (≤ 480px)
   ============================================== */
@media (max-width: 480px) {
    .metal-terminal-frame {
        width: calc(100% - 20px);
    }

    .metal-terminal-main {
        padding: 14px;
    }

    .metal-side-row {
        min-width: 118px;
        height: 40px;
        font-size: 13px;
    }

    .metal-terminal-tools {
        gap: 6px;
    }

    .metal-terminal-tools button {
        height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }

    .metal-main-chart {
        height: 280px;
    }

    .metal-trade-actions a {
        height: 64px;
        padding: 10px 6px;
    }

    .metal-trade-actions b {
        font-size: 16px;
        line-height: 22px;
    }

    .metal-trade-actions span {
        font-size: 12px;
    }

    .metal-terminal-metrics b {
        font-size: 14px;
    }

    .metal-order-book {
        gap: 10px;
    }

    .metal-order-book p span,
    .metal-order-book p b {
        font-size: 12px;
    }

    .metal-advantage-grid p br,
    .metal-factor-grid p br {
        display: none;
    }

    .metal-factor-grid article {
        padding: 12px 88px 12px 14px;
        min-height: 100px;
    }

    .metal-factor-grid img {
        width: 78px;
    }

    .metal-factor-grid h3 {
        font-size: 16px;
        line-height: 22px;
        margin: 0 0 6px;
    }

    .metal-factor-grid p {
        font-size: 12px;
        line-height: 20px;
    }

    .metal-advantage-grid img {
        width: 64px;
        height: 64px;
    }

    .metal-knowledge-grid article {
        padding: 18px 18px;
    }

    .hot-products-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hot-products-row div {
        padding: 14px 8px;
    }

    .gold-board h2,
    .metal-section-title h2,
    .hot-products-section h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .gold-board p,
    .metal-section-title p {
        font-size: 14px;
        line-height: 22px;
    }

    .metal-learning-bg {
        width: calc(100% - 16px);
        border-radius: 16px;
    }

    .metal-kline-section,
    .metal-indicator-section,
    .metal-advantage-section,
    .metal-factor-section,
    .hot-products-section {
        width: calc(100% - 16px);
        padding: 28px 14px;
    }

    .metal-kline-section {
        width: 100%;
    }

    .gold-board {
        padding: 32px 16px;
    }
}
