/* ================================================================
   智选量化 Pro — 高质感金融 App 视觉
   ================================================================ */

:root {
    --brand: #E02020;
    --brand-2: #FF4D4F;
    --brand-glow: rgba(224, 32, 32, 0.18);
    --brand-soft: #FFF5F5;
    --bg: #F2F3F7;
    --card: #FFFFFF;
    --text: #1D2129;
    --text-2: #4E5969;
    --text-3: #86909C;
    --line: rgba(0, 0, 0, 0.06);
    --line-2: rgba(0, 0, 0, 0.04);
    --up: #F5222D;
    --up-soft: #FFF1F0;
    --down: #00B578;
    --down-soft: #E8FFEA;
    --gold: #FA8C16;
    --blue: #1677FF;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 28px rgba(224,32,32,0.12);
    --radius: 14px;
    --radius-sm: 8px;
    --tab-h: 54px;
    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-t: env(safe-area-inset-top, 0px);
    --side-w: 210px;
    --header-red: linear-gradient(160deg, #FF4D4F 0%, #D42020 45%, #B01010 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    height: 100%;
    background: #F5F5F5;
    overscroll-behavior: none;
}

body {
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Microsoft YaHei", sans-serif;
    background: #F5F5F5;
    color: var(--text);
    line-height: 1.45;
    height: 100%;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior: none;
}

.num, .quote-mid, .quote-pct, .index-val, .index-chg, .plate-val, .pick-score, .stat-num, .leader-price-val {
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "Helvetica Neue", "DM Sans", "DIN Alternate", sans-serif;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
.mobile-only { display: block; }
.desktop-only { display: none; }

/* ===== Icons ===== */
.ico {
    display: block;
    width: 22px; height: 22px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.ico-home    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386909C' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 10.5L12 4l8 6.5V19a1 1 0 01-1 1h-4.5v-5.5H9.5V20H5a1 1 0 01-1-1v-9.5z'/%3E%3C/svg%3E"); }
.ico-news    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386909C' stroke-width='1.8'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Cpath d='M8 8h8M8 12h6M8 16h4'/%3E%3C/svg%3E"); }
.ico-high    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386909C' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 16l5-6 4 4 7-8'/%3E%3Cpath d='M15 6h5v5'/%3E%3C/svg%3E"); }
.ico-ma      { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386909C' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 18h16M7 18V11M11 18V7M15 18v-5M19 18v-8'/%3E%3C/svg%3E"); }
.ico-leader  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386909C' stroke-width='1.8'%3E%3Cpath d='M12 2l2.2 6.8H21l-5.5 4.2 2.1 6.5L12 17.3 6.4 19.5l2.1-6.5L3 8.8h6.8z'/%3E%3C/svg%3E"); }
.ico-pick    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386909C' stroke-width='1.8'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L20 20'/%3E%3C/svg%3E"); }
.ico-trend   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386909C' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 18h16M7 18V10M11 18V6M15 18v-5M19 18V8'/%3E%3C/svg%3E"); }
.ico-sector  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386909C' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 16l5-6 4 4 7-8'/%3E%3Cpath d='M15 6h5v5'/%3E%3C/svg%3E"); }
.ico-strong  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386909C' stroke-width='1.8'%3E%3Cpath d='M12 2l2.2 6.8H21l-5.5 4.2 2.1 6.5L12 17.3 6.4 19.5l2.1-6.5L3 8.8h6.8z'/%3E%3C/svg%3E"); }
.ico-pullback{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386909C' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 17l5-7 4 4 5-8 4 5'/%3E%3C/svg%3E"); }
.ico-futures { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386909C' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 19h16M6 19V9M10 19V5M14 19v-7M18 19v-4'/%3E%3C/svg%3E"); }
.ico-download{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386909C' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E"); }

.tab-item.active .ico-home    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E02020' stroke='%23E02020' stroke-width='1.2'%3E%3Cpath d='M4 10.5L12 4l8 6.5V19a1 1 0 01-1 1h-4.5v-5.5H9.5V20H5a1 1 0 01-1-1v-9.5z'/%3E%3C/svg%3E"); }
.tab-item.active .ico-news    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E02020' stroke-width='2'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Cpath d='M8 8h8M8 12h6M8 16h4'/%3E%3C/svg%3E"); }
.tab-item.active .ico-high    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E02020' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 16l5-6 4 4 7-8'/%3E%3Cpath d='M15 6h5v5'/%3E%3C/svg%3E"); }
.tab-item.active .ico-ma      { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E02020' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 18h16M7 18V11M11 18V7M15 18v-5M19 18v-8'/%3E%3C/svg%3E"); }
.tab-item.active .ico-leader  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E02020' stroke-width='2'%3E%3Cpath d='M12 2l2.2 6.8H21l-5.5 4.2 2.1 6.5L12 17.3 6.4 19.5l2.1-6.5L3 8.8h6.8z'/%3E%3C/svg%3E"); }
.tab-item.active .ico-pick    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E02020' stroke-width='2'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L20 20'/%3E%3C/svg%3E"); }
.tab-item.active .ico-futures { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E02020' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 19h16M6 19V9M10 19V5M14 19v-7M18 19v-4'/%3E%3C/svg%3E"); }
.tab-item.active .ico-download{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E02020' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E"); }

.side-menu-item.active .ico { filter: brightness(0) saturate(100%) invert(18%) sepia(90%) saturate(6000%) hue-rotate(350deg); }

/* ===== Layout ===== */
.app {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100svh;
    min-height: 100dvh;
    background: #F5F5F5;
}

.viewport {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.page-body { animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

.page-stack, .home-stack {
    padding: 10px 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-stack { padding-top: 0; margin-top: -18px; position: relative; z-index: 2; }

/* ===== Brand ===== */
.brand-mark {
    flex-shrink: 0;
    display: block;
    line-height: 0;
    filter: drop-shadow(0 2px 6px rgba(224, 32, 32, 0.25));
}

.brand-mark-sm svg { display: block; }

.brand-word {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.brand-word strong {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.brand-word em {
    font-size: 9px;
    font-weight: 600;
    font-style: normal;
    color: var(--text-3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.topbar-brand-compact { gap: 0; }


/* ===== Top Bar（子页面顶栏） ===== */
.app-topbar {
    background: #fff;
    padding-top: var(--safe-t);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px 6px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.topbar-status {
    font-size: 10px;
    font-weight: 600;
    color: var(--up);
    background: var(--up-soft);
    border: 1px solid #FFCCC7;
    padding: 3px 8px;
    border-radius: 10px;
}

.topbar-date {
    font-size: 11px;
    color: var(--text-3);
    background: #F5F5F5;
    padding: 4px 8px;
    border-radius: 6px;
}

.topbar-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    background: #FAFAFA;
    border-radius: 50%;
    color: var(--text-2);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.topbar-btn:active { background: #F0F0F0; }
.topbar-btn.spin { animation: spin 0.6s ease; }

.topbar-page {
    padding: 0 14px 8px;
}

.topbar-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.topbar-index-scroll {
    padding: 0 14px 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.topbar-index-scroll::-webkit-scrollbar { display: none; }

.topbar-index {
    display: flex;
    gap: 8px;
    min-width: min-content;
}

.topbar-idx {
    flex: 0 0 auto;
    min-width: 82px;
    padding: 8px 10px;
    background: #F7F8FA;
    border: 1px solid #EBEDF0;
    border-radius: 10px;
    text-align: center;
}

.topbar-idx-name {
    font-size: 10px;
    color: var(--text-3);
    margin-bottom: 2px;
}

.topbar-idx-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.topbar-idx-chg {
    font-size: 10px;
    font-weight: 600;
    margin-top: 2px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Tab Bar ===== */
.tab-bar {
    flex-shrink: 0;
    z-index: 200;
    display: flex;
    background: #fff;
    border-top: 1px solid var(--line);
    height: calc(var(--tab-h) + var(--safe-b));
    padding-bottom: var(--safe-b);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-3);
    position: relative;
    padding-top: 4px;
}

.tab-icon-wrap { display: grid; place-items: center; }
.tab-item .ico { width: 23px; height: 23px; }
.tab-label { font-size: 9px; font-weight: 500; }

.tab-item.active { color: var(--brand); }
.tab-item.active .tab-label { font-weight: 700; }

.tab-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--brand);
    border-radius: 0 0 3px 3px;
}

/* ===== Cards ===== */
.float-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.8);
}

.section-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--line-2);
}

.section-card.flush { border-radius: var(--radius); }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 14px 10px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 7px;
}

.section-title::before {
    content: '';
    width: 3px;
    height: 15px;
    background: linear-gradient(180deg, var(--brand-2), var(--brand));
    border-radius: 2px;
}

.section-link {
    font-size: 12px;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 2px;
}

.section-link::after { content: '›'; font-size: 14px; }

.section-body.flush { padding: 0; }

.count-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 3px 8px;
    border-radius: 10px;
}

/* ===== Stat Panel ===== */
.stat-panel {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 14px 6px;
    gap: 0;
}

.stat-cell {
    text-align: center;
    position: relative;
}

.stat-cell:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 15%; height: 70%;
    width: 1px;
    background: var(--line);
}

.stat-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.1;
}

.stat-label {
    font-size: 10px;
    color: var(--text-3);
    margin-top: 4px;
}

/* ===== Quick Grid ===== */
.quick-panel { padding: 16px 8px; }

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.quick-item span {
    font-size: 11px;
    color: var(--text-2);
    font-weight: 500;
}

.quick-icon {
    width: 46px; height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
}

.quick-icon svg { width: 22px; height: 22px; }

.si-red   { background: linear-gradient(145deg, #FFF0F0, #FFE4E4); color: var(--brand); }
.si-blue  { background: linear-gradient(145deg, #EEF5FF, #DEEAFF); color: var(--blue); }
.si-green { background: linear-gradient(145deg, #EDFFF3, #D5FAE5); color: var(--down); }
.si-gold  { background: linear-gradient(145deg, #FFF7E6, #FFE8C2); color: var(--gold); }

/* ===== List ===== */
.list-cols {
    display: flex;
    padding: 6px 14px 8px;
    font-size: 11px;
    color: var(--text-3);
    background: #FAFBFC;
    border-bottom: 1px solid var(--line);
}

.list-cols span:first-child { flex: 1; }
.list-cols span { width: 68px; text-align: right; }

.list-cols.cols-3 span { width: 60px; }

/* ===== Quote Row ===== */
.q-row {
    display: flex;
    align-items: center;
    padding: 13px 14px;
    border-bottom: 1px solid var(--line-2);
    transition: background .15s;
    min-height: 60px;
}

.q-row:last-child { border-bottom: none; }
.q-row:active { background: #FAFBFC; }

.q-rank {
    width: 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-3);
    margin-right: 8px;
    flex-shrink: 0;
    text-align: center;
}
.q-rank.r1 { color: var(--brand); font-size: 16px; }
.q-rank.r2 { color: #FA8C16; }
.q-rank.r3 { color: #FAAD14; }

.q-info { flex: 1; min-width: 0; }

.q-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.q-sub {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.q-tags { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }

.q-tag {
    font-size: 9px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--brand-soft);
    color: var(--brand);
}

.q-price {
    width: 68px;
    text-align: right;
    font-size: 16px;
    font-weight: 600;
}

.q-chg-wrap { width: 68px; text-align: right; }

.q-chg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 26px;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.q-chg.up   { background: var(--up);   color: #fff; }
.q-chg.down { background: var(--down); color: #fff; }
.q-chg.flat { background: #F0F0F0; color: var(--text-3); }

/* ===== Plate Row ===== */
.p-row {
    display: flex;
    align-items: center;
    padding: 13px 14px;
    border-bottom: 1px solid var(--line-2);
}

.p-row:last-child { border-bottom: none; }
.p-row:active { background: #FAFBFC; }

.p-info { flex: 1; min-width: 0; }
.p-name { font-size: 15px; font-weight: 600; }
.p-sub  { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.p-val  { width: 68px; text-align: right; font-size: 15px; font-weight: 700; }
.p-extra { width: 60px; text-align: right; font-size: 11px; color: var(--text-3); }

/* ===== Notice / Seg ===== */
.notice-bar {
    font-size: 12px;
    color: var(--text-2);
    background: linear-gradient(90deg, #FFFBF0, #FFF);
    border: 1px solid #FFE7BA;
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notice-bar::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

.seg-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 0;
}

.seg-bar::-webkit-scrollbar { display: none; }

.seg-item {
    flex: 0 0 auto;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all .2s;
}

.seg-item.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: 0 2px 8px var(--brand-glow);
}

/* ===== Flash News ===== */
.flash-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid var(--line-2);
    position: relative;
}

.flash-item:last-child { border-bottom: none; }

.flash-time {
    flex-shrink: 0;
    width: 44px;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
    padding-top: 2px;
}

.flash-body { flex: 1; min-width: 0; border-left: 2px solid var(--brand-soft); padding-left: 12px; }

.flash-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--text);
}

.flash-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-3);
}

.flash-src { color: var(--brand); font-weight: 600; }

.flash-tags { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }

.c-tag {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 3px;
    background: #FFF7E6;
    color: #D46B08;
    border: 1px solid #FFE7BA;
}

/* ===== Leader ===== */
.leader-stack { display: flex; flex-direction: column; gap: 10px; }

.leader-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line-2);
    overflow: hidden;
}

.leader-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px 8px;
}

.leader-sector {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.leader-sector::before {
    content: '';
    width: 3px; height: 13px;
    background: var(--brand);
    border-radius: 1px;
}

.leader-pct { font-size: 15px; font-weight: 700; }

.leader-hero {
    display: flex;
    align-items: center;
    margin: 0 10px;
    padding: 12px;
    background: linear-gradient(135deg, #FFF8F8 0%, #FFF 100%);
    border: 1px solid #FFE4E4;
    border-radius: 10px;
    gap: 10px;
}

.leader-badge {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    padding: 3px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px var(--brand-glow);
}

.leader-info { flex: 1; min-width: 0; }
.leader-name { font-size: 16px; font-weight: 700; }
.leader-code { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.leader-price { text-align: right; }
.leader-price-val { font-size: 17px; font-weight: 700; }
.leader-price-chg { font-size: 13px; font-weight: 600; }

.leader-followers { padding: 4px 0; }

/* ===== Pick Card ===== */
.pick-stack { display: flex; flex-direction: column; gap: 10px; }

.pick-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line-2);
    padding: 14px;
    overflow: hidden;
    position: relative;
}

.pick-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), #FF7875);
    opacity: 0;
}

.pick-card.top::before { opacity: 1; }

.pick-head {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.pick-rank {
    width: 26px; height: 26px;
    border-radius: 7px;
    background: #F2F3F5;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-3);
    flex-shrink: 0;
}

.pick-rank.r1 { background: linear-gradient(135deg, #FF4D4F, #CF1322); color: #fff; box-shadow: 0 2px 8px var(--brand-glow); }
.pick-rank.r2 { background: linear-gradient(135deg, #FF7A45, #FA541C); color: #fff; }
.pick-rank.r3 { background: linear-gradient(135deg, #FFC53D, #FA8C16); color: #fff; }

.pick-main { flex: 1; min-width: 0; }
.pick-name { font-size: 16px; font-weight: 700; }
.pick-meta { font-size: 11px; color: var(--text-3); margin-top: 3px; }

.pick-score-box { text-align: center; flex-shrink: 0; }
.pick-score { font-size: 24px; font-weight: 800; color: var(--brand); line-height: 1; }
.pick-score-lbl { font-size: 9px; color: var(--text-3); margin-top: 2px; }

.pick-factors {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.pick-factors::-webkit-scrollbar { display: none; }

.pick-fac {
    flex: 0 0 auto;
    min-width: 54px;
    text-align: center;
    background: #F7F8FA;
    border-radius: 6px;
    padding: 6px 8px;
}

.pick-fac-name { font-size: 9px; color: var(--text-3); }
.pick-fac-val  { font-size: 14px; font-weight: 700; margin-top: 2px; }

.pick-reason {
    margin-top: 10px;
    padding: 10px 12px;
    background: #FAFBFC;
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.6;
    border-left: 3px solid var(--brand);
}

/* ===== States ===== */
.up   { color: var(--up) !important; }
.down { color: var(--down) !important; }
.flat { color: var(--text-3) !important; }

.loading, .empty, .error-box {
    text-align: center;
    padding: 36px 16px;
    color: var(--text-3);
    font-size: 13px;
}

.error-box { color: var(--brand); }

.skeleton-row {
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer { to { background-position: -200% 0; } }

.mock-tag {
    font-size: 10px;
    color: var(--gold);
    background: #FFF7E6;
    border: 1px solid #FFE7BA;
    padding: 2px 7px;
    border-radius: 4px;
}

.mob-only-list { display: block; }
.desk-only-table { display: none; }

/* ===== Desktop ===== */
@media (min-width: 768px) {
    html, body { height: auto; overflow: auto; }

    .mobile-only { display: none !important; }
    .desktop-only { display: flex; }
    .mob-only-list { display: none; }
    .desk-only-table { display: block; }

    .app { flex-direction: row; height: auto; min-height: 100vh; overflow: visible; }
    .viewport { flex: 1; margin-left: var(--side-w); overflow: visible; }
    .page-stack, .home-stack { padding: 0; margin-top: 0; gap: 14px; }
    .home-page { max-width: 480px; margin: 0 auto; }
    .home-top { border-radius: 0; }

    .side-nav {
        width: var(--side-w);
        flex-direction: column;
        background: var(--card);
        border-right: 1px solid var(--line);
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 100;
    }

    .side-brand {
        display: flex; align-items: center; gap: 10px;
        padding: 22px 16px;
        border-bottom: 1px solid var(--line);
    }

    .side-logo {
        width: 38px; height: 38px;
        background: linear-gradient(135deg, var(--brand-2), var(--brand));
        color: #fff;
        border-radius: 10px;
        display: grid; place-items: center;
        font-weight: 800; font-size: 17px;
        box-shadow: 0 4px 12px var(--brand-glow);
    }

    .side-brand strong { display: block; font-size: 15px; }
    .side-brand span { font-size: 11px; color: var(--text-3); }

    .side-menu { flex: 1; padding: 10px; flex-direction: column; }

    .side-menu-item {
        display: flex; align-items: center; gap: 9px;
        padding: 10px 12px;
        border-radius: 8px;
        font-size: 14px;
        color: var(--text-2);
        margin-bottom: 2px;
        transition: .15s;
    }

    .side-menu-item.active {
        background: var(--brand-soft);
        color: var(--brand);
        font-weight: 600;
    }

    .side-foot { padding: 14px 16px; border-top: 1px solid var(--line); }

    .desk-header {
        justify-content: space-between;
        align-items: center;
        padding: 18px 24px;
        background: var(--card);
        border-bottom: 1px solid var(--line);
        margin: 0 0 18px;
        box-shadow: var(--shadow-sm);
    }

    .desk-header h1 { font-size: 22px; font-weight: 800; }
    .desk-header p { font-size: 13px; color: var(--text-3); margin-top: 2px; }
    .desk-header-right { display: flex; align-items: center; gap: 10px; }

    .btn-line {
        border: 1.5px solid var(--brand);
        color: var(--brand);
        background: #fff;
        padding: 6px 16px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }

    .page-body { padding: 0 24px 24px; }

    .stat-panel { grid-template-columns: repeat(5, 1fr); }
    .leader-grid-desk { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (min-width: 1200px) {
    .leader-grid-desk { grid-template-columns: repeat(3, 1fr); }
}

.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-wrap th, .table-wrap td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line-2); }
.table-wrap th { color: var(--text-3); font-weight: 500; font-size: 12px; background: #FAFBFC; }
.table-wrap tbody tr:hover { background: #FAFBFC; }

/* ================================================================
   首页 — 同花顺发现页风格
   ================================================================ */
.viewport-home { background: #F5F5F5; }
.viewport-home .page-body { padding: 0; }

.home-page { background: #F5F5F5; padding-bottom: 8px; }
.home-error-banner {
    margin: 10px 12px 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff1f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
    font-size: 13px;
    line-height: 1.5;
}

/* 顶部搜索栏 */
.home-top {
    background: #fff;
    padding: calc(var(--safe-t) + 8px) 12px 10px;
    border-bottom: 1px solid var(--line);
}

.home-top-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-top-bar .topbar-brand { flex-shrink: 0; }

.home-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 20px;
    padding: 9px 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    font-size: 13px;
    color: #999;
}

.home-bell {
    width: 36px; height: 36px;
    border: none;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.home-top-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.home-top-nav {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.home-top-nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    border-radius: 10px;
    padding: 10px 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.home-top-nav-item:active {
    background: #FFF5F5;
    transform: scale(0.98);
}

.home-top-nav-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
}

.home-top-nav-icon .ico {
    width: 20px;
    height: 20px;
    background-size: contain;
}

.home-top-nav .ico-high {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E02020' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 16l5-6 4 4 7-8'/%3E%3Cpath d='M15 6h5v5'/%3E%3C/svg%3E");
}

.home-top-nav .ico-ma {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E02020' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 18h16M7 18V11M11 18V7M15 18v-5M19 18v-8'/%3E%3C/svg%3E");
}

.home-top-nav .ico-leader {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E02020' stroke-width='1.8'%3E%3Cpath d='M12 2l2.2 6.8H21l-5.5 4.2 2.1 6.5L12 17.3 6.4 19.5l2.1-6.5L3 8.8h6.8z'/%3E%3C/svg%3E");
}

/* 快捷入口 */
.home-actions {
    display: flex;
    justify-content: space-around;
    padding: 12px 8px 6px;
    background: #fff;
}

.home-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #333;
    width: 20%;
}

.home-action-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(145deg, #FFF0F0, #FFE0E0);
    color: var(--brand);
    display: grid;
    place-items: center;
    position: relative;
}

.home-action-icon svg { width: 22px; height: 22px; }

.home-action-badge {
    position: absolute;
    top: -4px; right: -10px;
    font-size: 8px;
    font-weight: 700;
    color: #fff;
    background: var(--brand);
    padding: 1px 4px;
    border-radius: 4px;
}

.home-actions-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 6px 0 10px;
    background: #fff;
}

.home-actions-dots span {
    width: 12px; height: 3px;
    border-radius: 2px;
    background: #E0E0E0;
}

.home-actions-dots span.active {
    background: var(--brand);
    width: 18px;
}

/* 公告轮播 — 紧凑条 */
.home-notice {
    margin: 0 12px 8px;
    background: linear-gradient(90deg, #FFF1F0, #FFF);
    border: 1px solid #FFCCC7;
    border-radius: 8px;
    padding: 7px 10px;
    overflow: hidden;
}

.home-notice-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-notice-tag {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: var(--brand);
    padding: 2px 6px;
    border-radius: 3px;
}

.home-notice-text {
    flex: 1;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-notice-dots {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.home-notice-dots span {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #FFCCC7;
}

.home-notice-dots span.active { background: var(--brand); }

/* 图片轮播 */
.home-carousel {
    margin: 0 12px 10px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.home-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    aspect-ratio: 343 / 120;
    min-height: 110px;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0z' fill='none' stroke='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.carousel-slide.theme-red {
    background: linear-gradient(135deg, #FF6B6B 0%, #E02020 50%, #A8071A 100%);
}

.carousel-slide.theme-blue {
    background: linear-gradient(135deg, #69B1FF 0%, #1677FF 50%, #0958D9 100%);
}

.carousel-slide.theme-purple {
    background: linear-gradient(135deg, #B37FEB 0%, #722ED1 50%, #531DAB 100%);
}

.carousel-slide-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.carousel-slide-title {
    font-size: 17px;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.carousel-slide-sub {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}

.home-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}

.home-carousel-dots span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: all 0.2s;
}

.home-carousel-dots span.active {
    background: #fff;
    width: 14px;
    border-radius: 3px;
}

/* 通用分区 */
.home-section {
    margin: 0 12px 10px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.home-section-blue {
    background: linear-gradient(180deg, #E8F4FF 0%, #F0F7FF 40%, #fff 100%);
    padding-bottom: 2px;
}

.home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px 8px;
}

.home-section-head h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.home-more {
    font-size: 12px;
    color: #999;
}

.home-more::after { content: ' ›'; }

.home-mini-search {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 1px solid #E8E8E8;
    border-radius: 14px;
    padding: 4px 10px;
    font-size: 11px;
    color: #999;
}

/* 趋势票（沿用市场概览布局） */
.home-market { padding: 0 12px 12px; }

/* 首页 TOP3 领奖台（板块 / 强势票 / 五日线） */
.home-strong-sectors,
.home-strong-stocks,
.home-ma5-podium {
    padding: 0 12px 4px;
}

.home-podium-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-podium-link:active {
    opacity: 0.96;
}

.home-podium {
    margin: 0;
}

.home-podium .tr-stage-title {
    letter-spacing: 0.06em;
}

.tr-podium-few {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    align-items: stretch;
}

.topic-list-empty {
    padding: 28px 16px 32px;
    text-align: center;
    font-size: 13px;
    color: var(--text-3);
}

.home-module-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-module-link:active {
    opacity: 0.92;
}

.hm-trend-dots {
    padding: 0 12px;
}

.hm-top {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
    margin-bottom: 10px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.hm-top.hm-switching {
    opacity: 0.35;
    transform: translateY(2px);
    pointer-events: none;
}

.hm-trend-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: -4px 0 8px;
}

.hm-trend-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #E0E0E0;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
}

.hm-trend-dot.active {
    background: var(--brand);
    transform: scale(1.3);
}

.hm-bottom {
    transition: opacity 0.25s ease;
}

.hm-bottom.hm-switching {
    opacity: 0.65;
}

.hm-index {
    background: #FAFAFA;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #F0F0F0;
}

.hm-index-label {
    font-size: 13px;
    color: #666;
}

.hm-index-label span {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
    margin-top: 4px;
}

.hm-index-chg {
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
}

.hm-temp {
    background: #FAFAFA;
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid #F0F0F0;
}

.hm-temp-head {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.hm-temp-val { color: var(--brand); font-weight: 700; font-size: 14px; }

.hm-strength-days {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.hm-strength-day {
    flex: 1;
    text-align: center;
    font-size: 9px;
    font-weight: 600;
    padding: 3px 0;
    background: #FFF1F0;
    border-radius: 4px;
    border: 1px solid #FFCCC7;
    line-height: 1.2;
}

.hm-strength-track {
    position: relative;
    height: 8px;
    background: #F0F0F0;
    border-radius: 4px;
    overflow: visible;
}

.hm-strength-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, #FFCCC7, #FF7875, #FF4D4F);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 8px rgba(255, 77, 79, 0.25);
}

.hm-strength-thumb {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    transform: translateY(-50%);
    background: #fff;
    border: 2px solid #FF4D4F;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(255, 77, 79, 0.35);
    transition: left 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}

.hm-strength-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 9px;
    color: #BFBFBF;
}

.hm-strength-score {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand);
    background: #FFF1F0;
    padding: 1px 8px;
    border-radius: 10px;
}

.hm-temp-desc {
    font-size: 10px;
    color: #999;
    margin-top: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hm-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.hm-stat {
    background: #FAFAFA;
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #F0F0F0;
}

.hm-stat-title { font-size: 11px; color: #999; margin-bottom: 4px; }
.hm-stat-val   { font-size: 15px; font-weight: 700; }
.hm-stat-sub   { font-size: 10px; margin-top: 3px; }

/* 强势板块 — 三日阶梯热力卡 */
.home-strong-wrap {
    padding-bottom: 4px;
}

.home-strong-scroll {
    display: flex;
    gap: 10px;
    padding: 2px 12px 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.home-strong-scroll::-webkit-scrollbar { display: none; }

.ss-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 0 12px 10px;
}

.ss-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #E0E0E0;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
}

.ss-dot.active {
    background: var(--brand);
    transform: scale(1.3);
}

a.ss-card {
    flex: 0 0 118px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #F0F0F0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 10px 10px 9px;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

a.ss-card:active {
    transform: scale(0.98);
    transition: transform 0.15s;
}

.ss-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.ss-rank {
    font-size: 11px;
    font-weight: 800;
    color: #D9D9D9;
}

.ss-rank.r1 { color: var(--brand); }
.ss-rank.r2 { color: #FA8C16; }
.ss-rank.r3 { color: #FAAD14; }

.ss-badge {
    font-size: 9px;
    font-weight: 700;
    color: #D48806;
    background: #FFF7E6;
    border: 1px solid #FFE7BA;
    padding: 1px 5px;
    border-radius: 3px;
}

.ss-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.ss-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 44px;
    margin-bottom: 8px;
}

.ss-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}

.ss-bar {
    width: 100%;
    max-width: 22px;
    height: var(--h, 30%);
    min-height: 6px;
    background: linear-gradient(180deg, #FF7875, #FF4D4F);
    border-radius: 3px 3px 1px 1px;
    transform-origin: bottom;
    animation: ssBarGrow 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--delay);
    transform: scaleY(0);
}

@keyframes ssBarGrow {
    to { transform: scaleY(1); }
}

.ss-bar-val {
    font-size: 8px;
    font-weight: 600;
    line-height: 1;
}

.ss-pct {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.ss-total {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    margin-top: 3px;
    opacity: 0.8;
}

.ss-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid #F5F5F5;
    font-size: 9px;
    gap: 4px;
}

.ss-limit {
    font-weight: 700;
    flex-shrink: 0;
}

.ss-leader {
    color: #BFBFBF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* 连板相似 — 卡片横滑 */
.home-board-scroll {
    display: flex;
    gap: 10px;
    padding: 2px 14px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.home-board-scroll::-webkit-scrollbar { display: none; }

a.hm-board-card {
    flex: 0 0 148px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.9);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

a.hm-board-card:active {
    transform: scale(0.98);
    transition: transform 0.15s;
}

.hm-board-card-top {
    padding: 14px 12px 10px;
    flex: 1;
}

.hm-board-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-board-code {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}

.hm-board-badge {
    display: inline-block;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 600;
    color: var(--brand);
    background: #FFF1F0;
    border: 1px solid #FFCCC7;
    padding: 3px 8px;
    border-radius: 4px;
}

.hm-board-card-predict {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: linear-gradient(90deg, #FFF8F8, #FFF1F0);
    border-top: 1px solid #FFE4E4;
}

.hm-board-predict-label {
    font-size: 10px;
    color: #999;
}

.hm-board-predict {
    font-size: 17px;
    font-weight: 800;
}

/* 板块表现 — 紧凑排行条 */
.home-sector-area {
    padding: 0 12px 12px;
}

.sp-panel {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #F0F0F0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

a.sp-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid #F5F5F5;
    color: inherit;
    text-decoration: none;
}

a.sp-row:last-child { border-bottom: none; }

.sp-panel.sp-ready a.sp-row {
    animation: spRowIn 0.35s ease both;
    animation-delay: var(--delay);
}

a.sp-row:active { background: #FAFAFA; }

a.sp-row.is-top {
    background: linear-gradient(90deg, #FFFAF8, #fff 40%);
}

@keyframes spRowIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.sp-rank {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #BFBFBF;
    background: #F5F5F5;
    border-radius: 4px;
}

.sp-rank.r1 { color: #D48806; background: #FFF7E6; }
.sp-rank.r2 { color: #8C8C8C; background: #F0F0F0; }
.sp-rank.r3 { color: #AD6800; background: #FFFBE6; }

.sp-info {
    flex: 1;
    min-width: 0;
}

.sp-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sp-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 5em;
    flex-shrink: 0;
}

.sp-leader {
    flex: 1;
    font-size: 10px;
    color: #BFBFBF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.sp-leader::before {
    content: '·';
    margin-right: 4px;
    color: #E8E8E8;
}

.sp-count {
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    line-height: 1;
}

.sp-count::after {
    content: '板';
    font-size: 9px;
    font-weight: 500;
    color: #BFBFBF;
    margin-left: 1px;
}

.sp-ma5 {
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
    color: #FA8C16;
}

.sp-ma5::after {
    content: '距5线';
    font-size: 8px;
    font-weight: 500;
    color: #BFBFBF;
    margin-left: 1px;
}

.sp-pct {
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    min-width: 52px;
    text-align: right;
}

.sp-bar {
    height: 2px;
    background: #F5F5F5;
    border-radius: 1px;
    margin-top: 5px;
    overflow: hidden;
}

.sp-fill {
    height: 100%;
    width: var(--bar-w, 0);
    background: linear-gradient(90deg, #FFCCC7, #FF4D4F);
    border-radius: 1px;
}

.sp-panel.sp-ready .sp-fill {
    width: 0;
    animation: spBarGrow 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--delay) + 0.1s);
}

@keyframes spBarGrow {
    from { width: 0; }
    to { width: var(--bar-w); }
}

/* 量化精选行 */
.home-pick-list { padding-bottom: 4px; }

.hm-pick-row {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    border-bottom: 1px solid #F5F5F5;
    gap: 10px;
}

.hm-pick-row:last-child { border-bottom: none; }

.hm-pick-rank {
    width: 22px;
    font-size: 14px;
    font-weight: 700;
    color: #ccc;
    text-align: center;
    flex-shrink: 0;
}

.hm-pick-rank.r1 { color: var(--brand); }
.hm-pick-rank.r2 { color: #FA8C16; }
.hm-pick-rank.r3 { color: #FAAD14; }

.hm-pick-info { flex: 1; min-width: 0; }
.hm-pick-name { font-size: 15px; font-weight: 600; }
.hm-pick-sub  { font-size: 11px; color: #999; margin-top: 2px; }

.hm-pick-right { text-align: right; }
.hm-pick-price { font-size: 16px; font-weight: 600; }
.hm-pick-pct   { font-size: 13px; font-weight: 600; }

/* 首页新闻资讯 */
.home-news-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 12px 14px;
}

.hm-news-card {
    display: flex;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: #FAFBFC;
    border: 1px solid #F0F0F0;
    border-radius: 10px;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.hm-news-card:active {
    background: #F5F5F5;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}

.hm-news-time {
    flex-shrink: 0;
    width: 42px;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
    padding-top: 2px;
}

.hm-news-body { flex: 1; min-width: 0; }

.hm-news-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hm-news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: 11px;
    color: #999;
}

.hm-news-src { color: var(--brand); font-weight: 600; }

.hm-news-heat { color: #FA8C16; font-weight: 500; }

.hm-news-tags {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.hm-news-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    background: #FFF7E6;
    color: #D46B08;
    border: 1px solid #FFE7BA;
}

/* ================================================================
   专题页
   ================================================================ */

.viewport-topic {
    background: #F5F5F5;
}

/* 专题页顶栏：白底简洁，无红色 */
.topic-subnav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: calc(var(--safe-t) + 10px) 14px 10px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topic-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--text);
    background: #F5F5F5;
}

.topic-back:active { background: #EBEBEB; }

.topic-subnav-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.topic-subnav-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.topic-refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #F5F5F5;
    color: var(--text-2);
    cursor: pointer;
}

.topic-refresh:active { background: #EBEBEB; }

.topic-page {
    padding: 10px 14px 24px;
    gap: 14px;
    background: #F5F5F5;
}

.topic-page .topic-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Hero：磨砂白卡 + 网格纹理 ── */
.topic-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.95) inset,
        0 8px 24px rgba(15, 23, 42, 0.06),
        0 2px 6px rgba(15, 23, 42, 0.04);
}

.topic-hero-fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 85%);
}

.topic-hero-fx::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.85), transparent 65%);
    filter: blur(2px);
}

.topic-hero-inner {
    position: relative;
    padding: 18px 18px 16px;
}

.topic-hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.topic-hero-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--text-3);
    opacity: 0.7;
}

.topic-hero-badge {
    display: flex;
    align-items: baseline;
    gap: 3px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.9) inset,
        0 2px 8px rgba(0,0,0,0.04);
}

.topic-hero-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.topic-hero-unit {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 500;
}

.topic-hero-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.topic-hero-desc {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-2);
}

/* ── 卡片：浮层白瓷 + 顶光 ── */
.tc-card {
    position: relative;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.98) inset,
        0 4px 16px rgba(15, 23, 42, 0.05),
        0 1px 3px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    animation: tcReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--i, 0) * 0.06s);
}

.tc-card.is-featured {
    box-shadow:
        0 1px 0 rgba(255,255,255,1) inset,
        0 12px 32px rgba(15, 23, 42, 0.08),
        0 4px 8px rgba(15, 23, 42, 0.04);
}

.tc-card.is-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
}

@keyframes tcReveal {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

/* 头部 */
.tc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 10px;
}

.tc-rank {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-3);
    background: linear-gradient(145deg, #F8F9FB, #ECEEF2);
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.9) inset,
        0 2px 4px rgba(0,0,0,0.04);
}

.tc-rank.r1 {
    color: #5C4A1F;
    background: linear-gradient(145deg, #FFF8E6, #F5E6B8);
    border-color: rgba(180, 140, 40, 0.2);
    box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 2px 6px rgba(180,140,40,0.15);
}

.tc-rank.r2 {
    color: #4A4F57;
    background: linear-gradient(145deg, #F5F6F8, #DDE1E8);
    border-color: rgba(100,110,130,0.15);
}

.tc-rank.r3 {
    color: #6B4E2E;
    background: linear-gradient(145deg, #FBF0E6, #E8D0B8);
    border-color: rgba(160,120,80,0.15);
}

.tc-title-block { flex: 1; min-width: 0; }

.tc-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.tc-sub {
    margin-top: 3px;
    font-size: 11px;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-sep {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #D0D3D9;
    flex-shrink: 0;
}

.tc-quote {
    flex-shrink: 0;
    text-align: right;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
}

.tc-quote:has(.up) {
    background: var(--up-soft);
    border-color: #FFCCC7;
}

.tc-quote:has(.down) {
    background: var(--down-soft);
    border-color: #B7EB8F;
}

.tc-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.tc-pct {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 700;
}

/* ── 数据区：内凹面板 ── */
.tc-viz {
    margin: 0 10px 10px;
    padding: 10px 12px 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, #FFFAFA 0%, #FFF5F5 100%);
    border: 1px solid #FFE8E8;
    box-shadow:
        0 2px 6px rgba(245, 34, 45, 0.04) inset,
        0 1px 0 rgba(255,255,255,0.8) inset;
}

.tc-viz-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 11px;
    color: var(--text-3);
    font-weight: 500;
}

.tc-viz-label b {
    font-weight: 700;
}

/* 柱状图 */
.tc-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    min-height: 68px;
    padding-top: 4px;
}

.tc-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.tc-bar {
    width: 100%;
    max-width: 22px;
    height: 48px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

.tc-bar::before {
    content: '';
    display: block;
    width: 100%;
    height: var(--h, 35%);
    min-height: 6px;
    border-radius: 3px 3px 1px 1px;
    background: linear-gradient(180deg, #FF7875 0%, #FF4D4F 55%, #F5222D 100%);
    box-shadow:
        0 -1px 0 rgba(255,255,255,0.35) inset,
        0 4px 10px rgba(245, 34, 45, 0.22);
    transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.tc-bar.peak::before {
    background: linear-gradient(180deg, #FFA39E 0%, #FF4D4F 50%, #CF1322 100%);
    box-shadow:
        0 -2px 0 rgba(255,255,255,0.45) inset,
        0 0 12px rgba(245, 34, 45, 0.28),
        0 6px 14px rgba(245, 34, 45, 0.2);
}

.tc-bar-cap {
    position: absolute;
    bottom: calc(var(--h, 35%) - 1px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% + 2px);
    height: 2px;
    background: rgba(255,255,255,0.7);
    border-radius: 1px;
    box-shadow: 0 0 6px rgba(255,255,255,0.5);
    pointer-events: none;
}

.tc-bar-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: 0.02em;
}

.tc-bar-val {
    font-size: 9px;
    font-weight: 700;
    color: var(--up);
}

.tc-bar-val.down { color: var(--down); }

.ft-card:has(.tc-meter-fill.down) .tc-meter-txt {
    color: var(--down);
    background: var(--down-soft);
}

/* 底部 */
.tc-ai-insight {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 8px 14px 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
}
.tc-ai-insight p { margin: 0; flex: 1; }
.tc-ai-tag {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 4px;
    color: #1d4ed8;
    background: #dbeafe;
}

.tc-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 12px;
    border-top: 1px solid rgba(0,0,0,0.04);
}

.tc-pill {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    color: var(--up);
    background: var(--up-soft);
    border: 1px solid #FFCCC7;
    box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset;
}

.tc-pill.outline {
    background: transparent;
    color: var(--text-3);
    border-color: rgba(0,0,0,0.06);
}

.tc-meter { flex: 1; min-width: 0; }

.tc-meter-track {
    position: relative;
    height: 4px;
    background: rgba(0,0,0,0.06);
    border-radius: 2px;
    overflow: visible;
}

.tc-meter-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #FFCCC7, #FF4D4F);
    box-shadow: 0 0 8px rgba(245, 34, 45, 0.2);
    transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.tc-meter-thumb {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    transform: translateY(-50%);
    background: #fff;
    border: 2px solid #FF4D4F;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(245, 34, 45, 0.25);
    transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.tc-meter-txt {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    color: var(--up);
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--up-soft);
}

.tc-footer-note {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: 0.02em;
}

/* 强势票芯片 */
.tc-viz-chips .tc-chips {
    display: flex;
    gap: 6px;
}

.tc-chip {
    flex: 1;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 4px;
    border-radius: 8px;
    color: var(--up);
    background: var(--up-soft);
    border: 1px solid #FFCCC7;
    box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset;
}

.tc-chip em {
    display: block;
    font-size: 9px;
    font-weight: 600;
    font-style: normal;
    color: var(--text-3);
    margin-bottom: 2px;
}

/* MA5 图表 */
.tc-viz-ma5 .tc-ma5-chart {
    position: relative;
    height: 64px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 22px;
}

.tc-ma5-grid {
    position: absolute;
    inset: 0 0 22px;
    background:
        linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 100% 16px, 24px 100%;
    border-radius: 6px;
    opacity: 0.6;
}

.tc-ma5-base {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    height: 1px;
    background: rgba(0,0,0,0.15);
}

.tc-ma5-base span {
    position: absolute;
    left: 0;
    bottom: 4px;
    font-size: 9px;
    font-weight: 600;
    color: var(--text-3);
    padding: 2px 6px;
    background: rgba(255,255,255,0.7);
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.05);
}

.tc-ma5-candle {
    position: relative;
    z-index: 1;
    margin-left: auto;
    margin-right: 16px;
    width: 28px;
    height: var(--gap, 24px);
    min-height: 18px;
    max-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.tc-ma5-candle::before {
    content: '';
    flex: 1;
    width: 2px;
    min-height: 8px;
    background: linear-gradient(180deg, transparent, rgba(245, 34, 45, 0.45));
}

.tc-ma5-candle::after {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: linear-gradient(145deg, #FF7875, #F5222D);
    border: 1px solid rgba(245, 34, 45, 0.25);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.4) inset,
        0 3px 8px rgba(245, 34, 45, 0.2);
}

.tc-ma5-tip {
    position: absolute;
    top: -2px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    padding: 2px 6px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* ── 趋势票专题：统一面板 ── */
.trend-page.is-loading .tr-podium-skeleton,
.trend-page.is-loading .tr-row-skeleton {
    animation: shimmer 1.2s infinite;
}

.tr-podium-skeleton {
    height: 140px;
    border-radius: 12px;
}

.tr-row-skeleton {
    height: 72px;
    border-radius: 12px;
    background: #fff;
}

.trend-page {
    padding: 8px 12px 16px;
    gap: 10px;
}

.tr-panel {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

.tr-panel--bottom {
    margin-top: 4px;
}

.tr-podium-section-head {
    padding: 16px 16px 0;
    background: #fff;
}

.tr-podium-section-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.tr-podium-section-desc {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-3);
}

.tr-panel--bottom .tr-stage {
    border-radius: 0 0 14px 14px;
    padding-top: 14px;
}

.tr-podium--compact {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    align-items: stretch;
}

.tr-podium--compact .tr-podium-card {
    order: unset !important;
}

.tr-stage {
    margin: 0;
    padding: 12px 12px 14px;
    background:
        radial-gradient(ellipse 70% 80% at 50% -20%, rgba(255,215,120,0.12), transparent 60%),
        linear-gradient(165deg, #2C3040 0%, #3A3F52 100%);
}

.tr-stage-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.tr-stage-icon {
    color: rgba(255, 215, 120, 0.9);
    flex-shrink: 0;
}

.tr-stage-title {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.08em;
}

.tr-stage-desc {
    margin: 0 0 10px;
    padding: 0 8px;
    font-size: 10px;
    line-height: 1.45;
    color: rgba(255,255,255,0.45);
    text-align: center;
}

/* ── 全部趋势票（产品级列表） ── */
.tr-list {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.9) inset,
        0 8px 32px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.tr-list-head {
    padding: 20px 16px 0;
    background: linear-gradient(180deg, #FFFCFC 0%, #fff 42%);
    position: sticky;
    top: 0;
    z-index: 6;
}

.tr-list-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.tr-list-kicker {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: rgba(224,32,32,0.55);
}

.tr-list-title {
    margin-top: 4px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.tr-list-desc {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-3);
}

.tr-list-stat {
    flex-shrink: 0;
    min-width: 72px;
    padding: 12px 14px 10px;
    text-align: center;
    border-radius: 14px;
    background: linear-gradient(160deg, #FFF5F5 0%, #fff 100%);
    border: 1px solid rgba(224,32,32,0.1);
    box-shadow: 0 4px 14px rgba(224,32,32,0.08);
}

.tr-list-stat-num {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
    letter-spacing: -0.03em;
}

.tr-list-stat-unit {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
}

.tr-list-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 0 16px;
    height: 46px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #E8E8E8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    color: var(--text-3);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tr-list-search:focus-within {
    border-color: rgba(224,32,32,0.25);
    box-shadow: 0 4px 16px rgba(224,32,32,0.08);
}

.tr-list-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--text);
    outline: none;
    min-width: 0;
}

.tr-list-input::placeholder { color: #BFBFBF; }

.tr-item-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: 0.02em;
}

.tr-list-sort-wrap {
    margin-top: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F0F0F0;
}

.tr-list-sort {
    display: flex;
    gap: 6px;
    padding: 5px;
    border-radius: 14px;
    background: #F3F4F6;
    border: 1px solid #EBEBEB;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tr-list-sort::-webkit-scrollbar {
    display: none;
}

.tr-sort-btn {
    flex: 0 0 auto;
    min-width: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
    padding: 0 8px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.tr-sort-btn:active {
    opacity: 0.85;
}

.tr-sort-btn.is-active {
    background: #fff;
    color: var(--brand);
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.tr-sort-icon {
    flex-shrink: 0;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.15s, transform 0.15s, width 0.15s;
}

.tr-sort-icon path {
    fill: currentColor;
}

.tr-sort-btn.is-active .tr-sort-icon {
    opacity: 0.75;
    width: 9px;
}

.tr-sort-btn.is-active[data-dir="desc"] .tr-sort-icon {
    transform: rotate(180deg);
}

.tr-list-body {
    padding: 8px 12px 14px;
    background: #F4F5F7;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tr-row {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ECEEF2;
    overflow: hidden;
    transition: box-shadow 0.15s;
}

.tr-row:active {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.tr-row-main {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px 10px;
}

.tr-row-idx-wrap {
    flex-shrink: 0;
    width: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.tr-row-idx {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-2);
    line-height: 1;
}

.tr-row.is-dragon .tr-row-idx {
    color: var(--brand);
}

.tr-row-dragon {
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 4px;
    color: #8B6914;
    background: linear-gradient(180deg, #FFF8E6 0%, #FFEFCC 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.tr-row.is-dragon {
    border-color: rgba(224, 32, 32, 0.12);
    background: linear-gradient(180deg, #FFFCFC 0%, #fff 48%);
}

.tr-row.is-dragon .tr-row-dragon {
    color: #B8860B;
}

.tr-row.is-dragon .tr-row-idx { font-size: 17px; }
.tr-row.is-dragon[data-rank="1"] .tr-row-idx { color: #C9A020; font-size: 18px; }
.tr-row.is-dragon[data-rank="2"] .tr-row-idx { color: #8E99A8; }
.tr-row.is-dragon[data-rank="3"] .tr-row-idx { color: #B87333; }

.tr-row-info {
    flex: 1;
    min-width: 0;
}

.tr-row-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.tr-row-meta {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tr-row-quote {
    flex-shrink: 0;
    text-align: right;
    min-width: 72px;
}

.tr-row-price {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.tr-row-pct {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.tr-row-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px 10px 58px;
}

.tr-row-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-2);
    padding: 3px 8px;
    border-radius: 6px;
    background: #F5F6F8;
}

.tr-row-tag--accent {
    color: var(--up);
    background: var(--up-soft);
}

.tr-list-empty {
    padding: 48px 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-3);
    background: #fff;
    border-radius: 12px;
    border: 1px dashed #E0E0E0;
}

@media (max-width: 360px) {
    .tr-list-head { padding: 16px 14px 0; }
    .tr-list-title { font-size: 18px; }
    .tr-list-stat { min-width: 60px; padding: 8px 10px; }
    .tr-list-stat-num { font-size: 20px; }
    .tr-row-name { font-size: 15px; }
    .tr-row-foot { padding-left: 46px; }
    .tr-sort-btn { height: 34px; font-size: 12px; min-width: 56px; }
    .tr-list-body { padding: 8px 10px 12px; }
}

.tr-podium {
    display: grid;
    grid-template-columns: 1fr 1.08fr 1fr;
    align-items: end;
    gap: 6px;
}

.tr-podium-card.rank-1 { order: 2; }
.tr-podium-card.rank-2 { order: 1; }
.tr-podium-card.rank-3 { order: 3; }

.tr-podium-card {
    border-radius: 10px;
    overflow: hidden;
    animation: trPodiumIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tr-podium-card.rank-1 { animation-delay: 0.06s; }
.tr-podium-card.rank-2 { animation-delay: 0s; }
.tr-podium-card.rank-3 { animation-delay: 0.12s; }

@keyframes trPodiumIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(var(--ty, 0)); }
}

.tr-podium-card.rank-1 { --ty: -3px; }

.tr-podium-inner {
    position: relative;
    padding: 8px 7px 7px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.tr-podium-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #D0D3D9;
}

.tr-podium-card.rank-1 .tr-podium-inner {
    padding: 9px 8px 8px;
    border-color: rgba(255, 215, 120, 0.45);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.tr-podium-card.rank-1 .tr-podium-inner::before {
    background: linear-gradient(90deg, #F5E6B8, #D4AF37, #F5E6B8);
}

.tr-podium-card.rank-2 .tr-podium-inner::before {
    background: linear-gradient(90deg, #E5E7EB, #9CA3AF, #E5E7EB);
}

.tr-podium-card.rank-3 .tr-podium-inner::before {
    background: linear-gradient(90deg, #E8D0B8, #B87333, #E8D0B8);
}

.tr-podium-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.tr-podium-rank {
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-3);
}

.tr-podium-card.rank-1 .tr-podium-rank { color: #B8860B; font-size: 16px; }
.tr-podium-card.rank-2 .tr-podium-rank { color: #6B7280; }
.tr-podium-card.rank-3 .tr-podium-rank { color: #B87333; }

.tr-podium-medal {
    font-size: 8px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    color: var(--text-3);
    background: #F5F5F5;
}

.tr-podium-card.rank-1 .tr-podium-medal {
    color: #8B6914;
    background: #FFF8E6;
}

.tr-podium-name {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tr-podium-card.rank-1 .tr-podium-name { font-size: 13px; }

.tr-podium-meta {
    margin-top: 1px;
    font-size: 9px;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tr-podium-card.rank-2 .tr-podium-meta,
.tr-podium-card.rank-3 .tr-podium-meta {
    font-size: 8px;
}

.tr-podium-stats {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-top: 4px;
}

.tr-podium-total {
    font-size: 14px;
    font-weight: 800;
    color: var(--up);
    line-height: 1;
}

.tr-podium-card.rank-1 .tr-podium-total { font-size: 16px; }

.tr-podium-price {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-2);
}

.tr-podium-pct {
    font-size: 10px;
    font-weight: 700;
}

.tr-podium-foot {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #F5F5F5;
}

.tr-podium-pill {
    font-size: 8px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    color: var(--up);
    background: var(--up-soft);
}

@media (max-width: 380px) {
    .tr-podium {
        gap: 4px;
    }

    .tr-podium-card.rank-2,
    .tr-podium-card.rank-3 {
        width: calc(50% - 2px);
    }

    .tr-podium-card.rank-1 {
        margin-bottom: 6px;
    }

    .tr-podium-card.rank-2 { margin-right: 2px; }
    .tr-podium-card.rank-3 { margin-left: 2px; }
}

/* 桌面端 */
@media (min-width: 768px) {
    .topic-page {
        padding: 0;
        max-width: 720px;
        background: transparent;
    }

    .topic-page .topic-list { display: none; }

    .topic-page .tr-panel {
        display: none;
    }

    .topic-page .desk-only-table {
        display: block;
        margin-top: 0;
    }

    .trend-page .tr-panel,
    .trend-page .tr-list {
        display: none;
    }
}

/* ================================================================
   量化页
   ================================================================ */

.quant-page {
    padding: 0 12px 20px;
    gap: 10px;
}

.quant-nav {
    display: flex;
    gap: 0;
    margin: 0 -12px 4px;
    padding: 0 6px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
}

.quant-nav::-webkit-scrollbar { display: none; }

.quant-tab {
    flex: 0 0 auto;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-3);
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.quant-tab.active {
    color: var(--text);
    font-weight: 700;
}

.quant-tab.active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 2px;
    background: var(--up);
    border-radius: 2px 2px 0 0;
}

.quant-panel {
    min-height: 120px;
}

.qt-panel {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.qt-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 8px;
}

.qt-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.qt-section {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.qt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 10px;
    border-bottom: 1px solid #F5F5F5;
}

.qt-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.qt-count {
    font-size: 11px;
    color: var(--text-3);
    padding: 3px 8px;
    background: #F5F5F5;
    border-radius: 10px;
}

.qt-cols,
.qt-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr 0.7fr;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
}

.qt-cols {
    padding-top: 8px;
    padding-bottom: 6px;
    font-size: 11px;
    color: var(--text-3);
    font-weight: 500;
}

.qt-cols span:nth-child(3),
.qt-cols span:nth-child(4),
.qt-row .qt-price,
.qt-row .qt-pct {
    text-align: right;
}

.qt-body .qt-row {
    padding: 11px 14px;
    border-bottom: 1px solid #F5F5F5;
}

.qt-body .qt-row:last-child {
    border-bottom: none;
}

.qt-body .qt-row:active {
    background: #FAFAFA;
}

.qt-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qt-sector {
    font-size: 12px;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qt-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.qt-pct {
    font-size: 13px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .quant-page {
        max-width: 720px;
        padding: 0;
    }
}

/* ================================================================
   资讯页
   ================================================================ */

.news-page {
    padding: 0 12px 20px;
    gap: 10px;
    background: #F5F5F5;
}

/* 资讯专属顶栏 */
.news-topbar {
    margin: 0 -12px;
    padding: calc(var(--safe-t) + 10px) 14px 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.news-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.news-top-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--up);
    background: var(--up-soft);
    border: 1px solid #FFCCC7;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.news-live-dot-sm {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--up);
    animation: nwPulse 1.5s ease infinite;
}

@keyframes nwPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.news-top-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.02em;
    line-height: 1;
}

.news-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-top-search,
.news-top-refresh {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    background: #FAFAFA;
    border-radius: 50%;
    color: var(--text-2);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.news-top-search:active,
.news-top-refresh:active { background: #F0F0F0; }

.news-top-refresh.spin { animation: spin 0.6s ease; }

.news-top-ticker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 10px;
    background: #F7F8FA;
    border-radius: 8px;
    overflow: hidden;
}

.news-ticker-label {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: var(--text);
    padding: 3px 6px;
    border-radius: 3px;
}

.news-ticker-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.news-ticker-track {
    display: flex;
    width: max-content;
    animation: newsTicker 24s linear infinite;
    will-change: transform;
}

.news-ticker-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    padding-right: 20px;
}

.news-ticker-item {
    font-size: 12px;
    color: var(--text-2);
    white-space: nowrap;
    flex-shrink: 0;
}

.news-ticker-item::before {
    content: '·';
    margin-right: 8px;
    color: var(--text-3);
}

.news-ticker-group .news-ticker-item:first-child::before { content: none; }

@keyframes newsTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.news-top-channels {
    display: flex;
    gap: 0;
    margin-top: 10px;
    border-bottom: 1px solid #F0F0F0;
}

.news-channel {
    flex: 1;
    text-align: center;
    padding: 10px 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-3);
    position: relative;
    cursor: pointer;
}

.news-channel.active {
    color: var(--text);
    font-weight: 700;
}

.news-channel.active::after {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 0;
    height: 2px;
    background: var(--up);
    border-radius: 2px 2px 0 0;
}

.news-top-sources {
    display: flex;
    gap: 8px;
    padding: 8px 14px 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.news-top-sources::-webkit-scrollbar { display: none; }

.news-src-pill {
    flex: 0 0 auto;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-2);
    background: #F5F5F5;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.news-src-pill.active {
    color: var(--up);
    background: var(--up-soft);
    border-color: #FFCCC7;
    font-weight: 600;
}

.viewport-news {
    background: #F5F5F5;
}

/* 头条区（参考排行 + 详情卡） */
.nw-hd {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.nw-hd-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 10px;
}

.nw-hd-label {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.nw-hd-vline {
    width: 1px;
    height: 14px;
    background: #E0E0E0;
    flex-shrink: 0;
}

.nw-hd-update {
    font-size: 12px;
    color: var(--text-3);
    font-weight: 400;
}

.nw-hd-rank-wrap {
    position: relative;
    padding: 0 14px 12px;
}

.nw-hd-flame {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 72px;
    height: 72px;
    opacity: 0.12;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='%23F5222D'%3E%3Cpath d='M32 8c-4 12-12 16-12 28a12 12 0 1 0 24 0c0-6-4-10-8-16 2 8-2 12-4 12s-6-4-4-12c-6 6-8 14-4 20 6-8 4-16 0-24z'/%3E%3C/svg%3E") center/contain no-repeat;
    pointer-events: none;
}

.nw-hd-rank {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.nw-hd-rank-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.nw-hd-num {
    flex-shrink: 0;
    width: 22px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}

.nw-hd-num.r1 { color: #F5222D; }
.nw-hd-num.r2 { color: #FA8C16; }
.nw-hd-num.r3 { color: #FAAD14; }

.nw-hd-rank-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-hd-split {
    height: 1px;
    background: #F0F0F0;
    margin: 0 14px;
}

.nw-hd-rank-item.is-clickable,
.nw-hd-featured.is-clickable,
.nw-item.is-clickable {
    cursor: pointer;
    transition: background 0.15s ease;
}

.nw-hd-rank-item.is-clickable:active,
.nw-hd-featured.is-clickable:active,
.nw-item.is-clickable:active {
    background: #FAFAFA;
}

.nw-hd-featured {
    display: block;
    padding: 14px;
}

.nw-hd-featured-summary {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-hd-featured-main {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding-right: 4px;
}

.nw-hd-featured-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-hd-featured-meta {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-3);
}

.nw-hd-thumb {
    grid-column: 2;
    grid-row: 1;
    width: 108px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(135deg, #4A6FA5 0%, #2C4A6E 100%);
}

.nw-hd-thumb-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.35)),
        radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.15), transparent 60%);
}

.nw-hd-thumb-src {
    position: absolute;
    left: 6px;
    bottom: 6px;
    right: 6px;
    font-size: 9px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nw-hd-stock {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 8px 12px;
    background: #F5F5F5;
    border-radius: 6px;
}

.nw-hd-stock-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.nw-hd-stock-pct {
    font-size: 14px;
    font-weight: 700;
}

.nw-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--up-soft);
    color: var(--up);
    border: 1px solid #FFCCC7;
}

.nw-src {
    color: var(--brand);
    font-weight: 600;
}

.nw-heat {
    color: #FA8C16;
    font-weight: 600;
}

/* 快讯时间轴 */
.news-feed {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.nw-item {
    display: flex;
    gap: 0;
    position: relative;
}

.nw-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 27px;
    top: 28px;
    bottom: 0;
    width: 1px;
    background: #F0F0F0;
}

.nw-item-time {
    flex-shrink: 0;
    width: 56px;
    padding: 14px 0 14px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.nw-clock {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
}

.nw-item.latest .nw-clock {
    color: var(--up);
}

.nw-dot {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #E0E0E0;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #E0E0E0;
}

.nw-item.latest .nw-dot {
    background: var(--up);
    box-shadow: 0 0 0 1px var(--up), 0 0 8px rgba(245, 34, 45, 0.3);
}

.nw-item-body {
    flex: 1;
    min-width: 0;
    padding: 14px 14px 14px 8px;
    border-bottom: 1px solid #F5F5F5;
}

.nw-item:last-child .nw-item-body { border-bottom: none; }

.nw-item:active .nw-item-body { background: #FAFAFA; }

.nw-item-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text);
}

.nw-item.latest .nw-item-title {
    font-weight: 700;
}

.nw-item-summary {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-item-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.nw-item-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .news-page {
        max-width: 720px;
        padding: 0;
    }
}

/* ================================================================
   期货页
   ================================================================ */

.futures-page {
    padding: 0 12px 20px;
    gap: 10px;
}

.ft-summary {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding: 12px 14px;
}

.ft-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ft-summary-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.ft-summary-time {
    font-size: 11px;
    color: var(--text-3);
}

.ft-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.ft-rules {
    background: linear-gradient(135deg, #fff 0%, #f8faff 100%);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 10px 12px;
}

.ft-rules-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ft-rule-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 11px;
    color: var(--text-2);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.ft-rule-chip em {
    font-style: normal;
    font-weight: 700;
    color: var(--text);
}

.ft-rule-chip.up { border-color: rgba(224, 32, 32, 0.2); color: #b91c1c; }
.ft-rule-chip.down { border-color: rgba(22, 119, 255, 0.2); color: #1d4ed8; }

.ft-ma-chart,
.ft-platform-chart {
    position: relative;
    height: 88px;
    margin-top: 8px;
    border-radius: 10px;
    background: linear-gradient(180deg, #fafbfc 0%, #f3f5f8 100%);
    overflow: hidden;
}

.ft-ma-chart svg,
.ft-platform-chart svg {
    width: 100%;
    height: 100%;
}

.ft-ma-line {
    stroke: rgba(114, 46, 209, 0.75);
    stroke-width: 1.2;
    stroke-dasharray: 4 3;
}

.ft-line.up { fill: none; stroke: var(--up); stroke-width: 1.8; }
.ft-line.down { fill: none; stroke: var(--down); stroke-width: 1.8; }

.ft-index-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    background: #FAFBFC;
    border-radius: 8px;
}

.ft-index-label {
    font-size: 11px;
    color: var(--text-3);
}

.ft-index-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.ft-index-chg {
    font-size: 11px;
    font-weight: 600;
}

.ft-panel { min-height: 120px; }

.ft-nav {
    margin-top: 0;
}

.ft-strategy-head {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding: 12px 14px;
}

.ft-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ft-head-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.ft-head-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--brand);
    padding: 3px 10px;
    background: var(--brand-soft);
    border-radius: 20px;
}

.ft-head-desc {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-3);
}

.ft-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 8px;
}

.ft-card .tc-viz.ft-viz-down {
    background: linear-gradient(180deg, #F6FFED 0%, #E8FFEA 100%);
    border-color: #B7EB8F;
    box-shadow: 0 2px 6px rgba(0, 181, 120, 0.04) inset, 0 1px 0 rgba(255,255,255,0.8) inset;
}

.ft-card .tc-quote:has(.down) {
    background: var(--down-soft);
    border-color: #B7EB8F;
}

.tc-pill.down {
    color: var(--down);
    background: var(--down-soft);
    border-color: #B7EB8F;
}

.tc-meter-fill.down {
    background: linear-gradient(90deg, #B7EB8F, #00B578);
    box-shadow: 0 0 8px rgba(0, 181, 120, 0.2);
}

.ft-card .tc-meter-track:has(.tc-meter-fill.down) .tc-meter-thumb {
    border-color: #00B578;
    box-shadow: 0 1px 4px rgba(0, 181, 120, 0.25);
}

.ft-platform-chart {
    position: relative;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.04);
}

.ft-platform-chart svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ft-zone {
    fill: rgba(250, 140, 22, 0.12);
    stroke: rgba(250, 140, 22, 0.35);
    stroke-width: 0.4;
    stroke-dasharray: 2 1.5;
}

.ft-line {
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.ft-line.up {
    stroke: var(--up);
    filter: drop-shadow(0 1px 2px rgba(245, 34, 45, 0.25));
}

.ft-line.down {
    stroke: var(--down);
    filter: drop-shadow(0 1px 2px rgba(0, 181, 120, 0.25));
}

.ft-break-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.ft-break-tag.up {
    color: var(--up);
    background: var(--up-soft);
    border: 1px solid #FFCCC7;
}

.ft-break-tag.down {
    color: var(--down);
    background: var(--down-soft);
    border: 1px solid #B7EB8F;
}

.ft-breakout .tc-footer {
    flex-wrap: wrap;
}

/* ================================================================
   软件下载页
   ================================================================ */

.download-page {
    padding: 0 12px 24px;
    gap: 14px;
}

.dl-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 140px;
}

.dl-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #FF4D4F 0%, #D42020 45%, #B01010 100%);
}

.dl-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px 24px;
    color: #fff;
    text-align: center;
}

.dl-app-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.dl-slogan {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
}

.dl-update-tag {
    margin-top: 12px;
    font-size: 11px;
    padding: 3px 12px;
    background: rgba(255,255,255,0.18);
    border-radius: 20px;
}

.dl-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dl-soft-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    animation: tcReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--i, 0) * 0.05s);
}

.dl-soft-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px 10px;
}

.dl-soft-logo {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    border-radius: 12px;
    background: var(--brand-color, var(--brand));
    box-shadow: 0 4px 12px color-mix(in srgb, var(--brand-color, var(--brand)) 35%, transparent);
}

.dl-soft-info { flex: 1; min-width: 0; }

.dl-soft-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

.dl-soft-desc {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-3);
}

.dl-soft-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px 10px;
}

.dl-tag-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    color: var(--brand-color, var(--brand));
    background: color-mix(in srgb, var(--brand-color, var(--brand)) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--brand-color, var(--brand)) 20%, transparent);
}

.dl-soft-platforms {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #F5F5F5;
}

.dl-plat-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #F5F5F5;
    transition: background 0.15s;
}

.dl-plat-btn:last-child { border-bottom: none; }
.dl-plat-btn:active { background: #FAFBFC; }

.dl-plat-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #F5F5F5;
    color: var(--text-2);
    flex-shrink: 0;
}

.dl-plat-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dl-plat-text strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.dl-plat-text em {
    font-size: 11px;
    color: var(--text-3);
    font-style: normal;
}

.dl-plat-arrow {
    flex-shrink: 0;
    color: var(--text-3);
}

.page-app_download .desk-header { display: none; }

@media (min-width: 768px) {
    .download-page {
        max-width: 520px;
        margin: 0 auto;
        padding-top: 20px;
    }

    .futures-page {
        max-width: 720px;
        margin: 0 auto;
    }

    .ft-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ft-rules-inner {
        flex-direction: column;
    }
}

/* 用户中心 */
.user-center-page { padding: 14px; gap: 14px; }
.uc-hero { background: #fff; border-radius: 12px; padding: 24px 18px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.uc-hero h2 { font-size: 20px; margin-bottom: 6px; }
.uc-hero p { font-size: 13px; color: var(--text-3); margin-bottom: 16px; }
.uc-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #ff7875, var(--brand)); color: #fff; font-size: 22px; font-weight: 700; display: grid; place-items: center; margin: 0 auto 10px; }
.uc-sub { font-size: 13px; color: var(--text-3); margin-bottom: 12px; }
.uc-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.uc-tab { border: 1px solid var(--line); background: #f5f5f5; padding: 6px 18px; border-radius: 20px; font-size: 13px; cursor: pointer; }
.uc-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.uc-form { display: flex; flex-direction: column; gap: 10px; max-width: 280px; margin: 0 auto; }
.uc-form input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.uc-btn { background: var(--brand); color: #fff; border: none; border-radius: 8px; padding: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.uc-btn-line { background: #f5f5f5; color: var(--text); }
.uc-btn-sm { padding: 8px 14px; font-size: 13px; }
.uc-hint, .uc-err { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.uc-err { color: var(--brand); }
.uc-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 0; }
.uc-links a { background: #fafafa; border-radius: 8px; padding: 12px; text-align: center; font-size: 13px; font-weight: 600; }

/* ===== 首页全屏加载遮罩 ===== */
.home-page.is-home-loading {
    pointer-events: none;
}

.home-load-overlay {
    position: fixed;
    inset: 0;
    z-index: 950;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
}

.home-load-overlay[hidden] {
    display: none !important;
}

.home-load-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
}

.home-load-orbit {
    position: relative;
    width: 88px;
    height: 88px;
    margin-bottom: 22px;
}

.home-load-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}

.home-load-ring-1 {
    border-top-color: var(--brand);
    border-right-color: rgba(224, 32, 32, 0.25);
    animation: splash-spin 1.1s linear infinite;
}

.home-load-ring-2 {
    inset: 10px;
    border-bottom-color: #FF7875;
    border-left-color: rgba(255, 120, 117, 0.2);
    animation: splash-spin-rev 0.85s linear infinite;
}

.home-load-core {
    position: absolute;
    inset: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF7875, #E02020);
    box-shadow: 0 8px 24px rgba(224, 32, 32, 0.28);
    animation: splash-pulse 1.6s ease-in-out infinite;
}

.home-load-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
}

.home-load-desc {
    font-size: 13px;
    color: var(--text-3);
    margin: 0 0 18px;
}

.home-load-bar {
    width: 120px;
    height: 3px;
    border-radius: 999px;
    background: #EEE;
    overflow: hidden;
}

.home-load-bar i {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #FF7875, #E02020);
    animation: splash-bar 1.2s ease-in-out infinite;
}

@keyframes splash-spin {
    to { transform: rotate(360deg); }
}

@keyframes splash-spin-rev {
    to { transform: rotate(-360deg); }
}

@keyframes splash-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.92); opacity: 0.88; }
}

@keyframes splash-bar {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

/* ===== 资讯详情弹层 ===== */
body.news-modal-open {
    overflow: hidden;
}

.news-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.news-detail-modal[hidden] {
    display: none !important;
}

.news-detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.news-detail-sheet {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: min(88vh, 720px);
    min-height: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    animation: news-sheet-up 0.28s ease;
}

@keyframes news-sheet-up {
    from { transform: translateY(24px); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
}

.news-detail-head {
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}

.news-detail-close {
    float: right;
    width: 32px;
    height: 32px;
    border: none;
    background: #F5F5F5;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    color: var(--text-2);
    cursor: pointer;
}

.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 10px;
    clear: both;
}

.news-detail-src {
    color: var(--brand);
    font-weight: 600;
}

.news-detail-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text);
    margin: 0;
}

.news-detail-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.news-detail-content {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-2);
    white-space: pre-wrap;
    word-break: break-word;
}

.news-detail-summary {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-2);
    margin: 0;
}

.news-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.news-detail-foot {
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
}

.news-detail-link {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.news-detail-note {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--text-3);
}

@media (min-width: 768px) {
    .news-detail-modal {
        align-items: center;
        padding: 24px;
    }

    .news-detail-sheet {
        border-radius: 16px;
        max-height: min(80vh, 640px);
    }
}

