
/* --- Modern Dark Financial UI Theme (TradingView / Jin10 Pro Style) --- */
:root {
    --bg-main: #131722;
    --bg-header: #181c27;
    --bg-card: #1e222d;
    --bg-input: #2a2e39;
    --text-primary: #d1d4dc;
    --text-secondary: #787b86;
    --accent-blue: #2962ff;
    --accent-blue-hover: #1e53e5;
    --accent-green: #089981;
    --accent-red: #f23645;
    --border-color: #2a2e39;
    --border-highlight: #363a45;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

html {
    /* canvas 未就绪时的底色；画布画在 body 内、内容下方 */
    background-color: #05070c;
    /* 左右预留滚动条槽，避免内容看起来偏左 */
    scrollbar-gutter: stable both-edges;
}

/* Hide hardcoded HTML copy until IP/saved language is applied (prevents Chinese flash). */
html.i18n-pending {
    background-color: #070b14 !important;
}
html.i18n-pending body {
    visibility: hidden !important;
}
html.i18n-ready body {
    visibility: visible;
}

html, body {
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body {
    /* 必须透明，否则会盖住 z-index:-1/0 的 canvas */
    background: transparent !important;
    background-color: transparent !important;
    color: var(--text-primary);
    font-family: 'Space Grotesk', 'Noto Sans SC', -apple-system, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-variant-numeric: tabular-nums lining-nums;
    letter-spacing: -0.01em;
    min-height: 100vh;
    position: relative;
    isolation: isolate;
}

/* =========================================================
   方案 A：强效全站字体替换（每一个元素 100% 覆盖）
   ========================================================= */

/* 1. 强制全站所有文本元素默认使用带有赛博切角感的主字体 */
*,
*::before,
*::after,
html,
body,
button,
input,
select,
textarea,
p,
span,
a,
div,
li,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Noto Sans SC', -apple-system, sans-serif !important;
}

/* 2. 标题类：强化切角拉伸感与高字重 */
h1, h2, h3, h4, h5, h6,
.hero-title,
.card-title,
.modal-title {
    font-weight: 400 !important;
    letter-spacing: -0.03em !important;
}

/* 3. 所有数字、价格、比例、代码、统计数据：强制使用充满高科技仪表感/代码感的 Space Mono */
.ticker-wrap,
.ticker-item,
.price-val,
.stat-value,
.stat-num,
.bar-labels,
.user-badge,
.number,
.live-quote-price,
.live-quote-change,
.live-quote-meta strong,
.eco-detail-value,
.price-details .val,
.sentiment-labels,
[class*="price"],
[class*="stat"],
[class*="percent"],
[class*="count"],
[class*="num"],
[class*="badge"],
code,
pre {
    font-family: 'Space Mono', monospace !important;
    font-feature-settings: "tnum" 1 !important;
    font-variant-numeric: tabular-nums lining-nums !important;
}

body.modal-open { overflow: hidden; }
body.intro-playing { overflow: hidden; }

/* 进站开场视频 */
.intro-video-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    background: #05070c;
    overflow: hidden;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    opacity: 1;
    transition: opacity 0.42s ease;
}

.intro-video-overlay.is-visible,
.intro-video-overlay:not([hidden]) {
    display: flex !important;
}

.intro-video-overlay[hidden] {
    display: none !important;
}

.intro-video-overlay.is-exiting {
    opacity: 0;
}

body.intro-playing {
    overflow: hidden !important;
}

.intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #07090f;
    pointer-events: none;
}

.intro-video-veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(120% 70% at 50% 18%, rgba(255, 214, 102, 0.12), transparent 55%),
        radial-gradient(90% 60% at 50% 100%, rgba(0, 0, 0, 0.55), transparent 62%),
        linear-gradient(180deg, rgba(5, 7, 12, 0.28) 0%, transparent 22%, transparent 72%, rgba(5, 7, 12, 0.55) 100%);
    z-index: 1;
}

.intro-video-captions {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    text-align: center;
}

.intro-caption-pair,
.intro-caption-pulse,
.intro-caption-ath {
    margin: 0;
    font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
    color: #f7f8fb;
    text-shadow:
        0 0 12px rgba(255, 255, 255, 0.85),
        0 0 28px rgba(255, 220, 140, 0.35);
}

.intro-caption-pair {
    margin-top: 16%;
    font-size: clamp(1.7rem, 7vw, 2.6rem);
    letter-spacing: 0.14em;
}

.intro-caption-pulse {
    margin-top: 0.45rem;
    font-size: clamp(0.72rem, 2.6vw, 0.95rem);
    letter-spacing: 0.22em;
    color: rgba(245, 247, 250, 0.92);
}

.intro-caption-ath {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 18%;
    font-size: clamp(0.82rem, 3.4vw, 1.15rem);
    letter-spacing: 0.08em;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.intro-video-overlay.is-finale .intro-caption-ath {
    opacity: 1;
    transform: none;
}

.phone-shell-body .intro-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 500;
}

/* 全局取消粗体：全部正文字重 */
html, body, button, input, select, textarea,
h1, h2, h3, h4, h5, h6,
strong, b, th, label,
.btn-primary, .btn-link, .chip, .chip-more-btn,
.section-title, .hero-title, .live-quote-symbol, .live-quote-price,
.bottom-tab-label, .peer-author, .tv-float-cta {
    font-weight: 400 !important;
}
strong, b { font-weight: 400 !important; }


/* ==========================================
   3D 动态背景与半透明毛玻璃覆盖样式
   ========================================== */

/* 1. Canvas：固定铺满视口，位于内容层之下 */
#cyber-canvas {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 0 !important;
    pointer-events: none !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.main-container {
    position: relative;
    z-index: 1;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* 顶栏 Header：高透毛玻璃 */
.site-header,
header {
    background: rgba(18, 22, 32, 0.38) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 0.8rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.logo {
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.logo--tradingview {
    gap: 0.45rem;
    letter-spacing: 0;
}

.logo-mark {
    display: block;
    flex-shrink: 0;
    width: 1.55rem;
    height: 1.55rem;
    object-fit: contain;
    border-radius: 5px;
    background: #0b0e14;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.logo-icon {
    color: var(--accent-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 4px;
    background: rgba(41, 98, 255, 0.15);
    font-size: 0.7rem;
}

.logo-text {
    font-weight: 400;
    letter-spacing: -0.01em;
}

.logo-accent { color: var(--accent-blue); }

.nav-links { display: none; }

/* 底部导航按钮栏（原顶部菜单） */
/* 跟随滚动的 TradingView 官方入口：上滑上移，下滑下移（仍可见可点） */
.tv-float-cta {
    position: fixed;
    left: 50%;
    bottom: calc(4.55rem + env(safe-area-inset-bottom, 0px));
    z-index: 155;
    transform: translate(-50%, 140%);
    opacity: 0;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: min(86vw, 320px);
    padding: 0.78rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(120deg, #1a6cff 0%, #14b8a6 45%, #f5c518 100%);
    background-size: 200% 200%;
    border: 1px solid rgba(255, 230, 150, 0.45);
    box-shadow:
        0 10px 28px rgba(20, 60, 160, 0.45),
        0 0 22px rgba(41, 98, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, opacity 0.22s ease, bottom 0.3s ease, filter 0.2s ease;
    white-space: nowrap;
    animation: official-cta-pulse 2.4s ease-in-out infinite;
}

@keyframes official-cta-pulse {
    0%, 100% {
        background-position: 0% 50%;
        box-shadow:
            0 10px 28px rgba(20, 60, 160, 0.45),
            0 0 18px rgba(41, 98, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.28);
    }
    50% {
        background-position: 100% 50%;
        box-shadow:
            0 12px 32px rgba(20, 140, 170, 0.5),
            0 0 28px rgba(245, 197, 24, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }
}

.tv-float-cta.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
    bottom: calc(4.55rem + env(safe-area-inset-bottom, 0px));
}

/* 向下滚动：按钮下移，但仍保留可见可点击 */
.tv-float-cta.is-down {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
    bottom: calc(3.35rem + env(safe-area-inset-bottom, 0px));
}

.tv-float-cta.is-hidden {
    transform: translate(-50%, 140%);
    opacity: 0;
    pointer-events: none;
}

.tv-float-cta[hidden] {
    display: none !important;
}

.tv-float-cta:hover {
    filter: brightness(1.06);
}

.tv-float-cta:active {
    transform: translate(-50%, 2px) scale(0.98);
}

.tv-loading-modal .modal-box {
    text-align: center;
    max-width: 340px;
}

.tv-loading-modal .tv-loading-title {
    margin-bottom: 0.55rem;
}

.tv-loading-modal .tv-loading-text {
    margin-bottom: 0.9rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 400;
}

.tv-loading-modal .tv-loading-countdown {
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.tv-loading-spinner {
    width: 34px;
    height: 34px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    border: 3px solid rgba(120, 160, 255, 0.2);
    border-top-color: #5b8cff;
    animation: tv-spin 0.8s linear infinite;
}

/* White human-verification gate (intentionally off-theme) */
.human-verify-modal {
    z-index: 260;
    background: rgba(15, 23, 42, 0.55);
}
.human-verify-card {
    width: min(92vw, 420px);
    max-height: min(88vh, 720px);
    overflow: auto;
    margin: auto;
    border-radius: 18px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    padding: 1.15rem 1.15rem 1rem;
}
.human-verify-brand {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.55rem;
}
.human-verify-shield {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    font-size: 1.25rem;
}
.human-verify-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}
.human-verify-card h2 {
    margin: 0.1rem 0 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
}
.human-verify-desc {
    margin: 0 0 0.95rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #475569;
}
.human-step {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.8rem;
    margin-bottom: 0.7rem;
    background: #f8fafc;
}
.human-step.is-done {
    border-color: #86efac;
    background: #f0fdf4;
}
.human-step[hidden] {
    display: none !important;
}
.human-step-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.35rem;
}
.human-step-num {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #2563eb;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}
.human-step-head h3 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
}
.human-step-hint,
.human-step-status {
    margin: 0 0 0.55rem;
    font-size: 0.8rem;
    color: #64748b;
}
.human-step-status.is-ok { color: #15803d; font-weight: 700; }
.human-step-status.is-bad { color: #b91c1c; font-weight: 700; }
.human-img-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    margin: 0.35rem 0 0.55rem;
}
.human-img-tile {
    position: relative;
    aspect-ratio: 1;
    padding: 0;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    background: #e2e8f0;
    cursor: pointer;
}
.human-img-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
}
.human-img-tile.is-picked {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}
.human-img-tile.is-picked::after {
    content: "✓";
    position: absolute;
    top: 4px;
    right: 4px;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    line-height: 1;
}
.human-img-tile:disabled {
    cursor: default;
    opacity: 0.95;
}
.human-img-actions {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}
.human-img-verify,
.human-img-refresh {
    min-height: 2.35rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
}
.human-img-verify {
    border: 0;
    background: #2563eb;
    color: #fff;
}
.human-img-verify:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.human-img-refresh {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
}
.human-math-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
}
.human-math-options button {
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 10px;
    min-height: 2.5rem;
    font-weight: 700;
    cursor: pointer;
}
.human-math-options button.is-correct {
    border-color: #16a34a;
    background: #dcfce7;
}
.human-math-options button.is-wrong {
    border-color: #ef4444;
    background: #fee2e2;
}
.human-slider-track {
    position: relative;
    height: 3rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    user-select: none;
    touch-action: none;
}
.human-slider-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: linear-gradient(90deg, #93c5fd, #2563eb);
}
.human-slider-label {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    color: #475569;
    pointer-events: none;
    padding-left: 2.2rem;
}
.human-slider-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 2.5rem;
    height: calc(3rem - 8px);
    border: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
    cursor: grab;
    z-index: 2;
    font-weight: 800;
    color: #2563eb;
}
.human-slider-track.is-done .human-slider-label {
    color: #fff;
    font-weight: 700;
}
.human-check {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin: 0.35rem 0 0.8rem;
    font-size: 0.86rem;
    color: #334155;
}
.human-check input {
    margin-top: 0.15rem;
    width: 1.05rem;
    height: 1.05rem;
}
.human-verify-submit {
    width: 100%;
    min-height: 2.85rem;
    border: 0;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
}
.human-verify-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.human-verify-error {
    margin: 0.55rem 0 0;
    color: #b91c1c;
    font-size: 0.82rem;
    font-weight: 700;
}
.human-verify-footnote {
    margin: 0.7rem 0 0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: #94a3b8;
}
.human-verify-processing {
    text-align: center;
    padding: 2rem 0.5rem 1.4rem;
}
.human-verify-processing h2 {
    margin: 0.2rem 0 0.45rem;
    font-size: 1.15rem;
}
.human-verify-processing p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}
.human-verify-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    border: 3px solid #dbeafe;
    border-top-color: #2563eb;
    animation: tv-spin 0.75s linear infinite;
}

@keyframes tv-spin {
    to { transform: rotate(360deg); }
}

.bottom-tab-bar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 160;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.1rem;
    padding: 0.35rem 0.35rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    background: rgba(12, 16, 28, 0.92);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    border-top: 1px solid rgba(120, 160, 255, 0.18);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
    /* 避免被祖先 transform / 滚动容器带着跑 */
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.bottom-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    min-height: 52px;
    padding: 0.28rem 0.1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.15s, background 0.15s;
}

.bottom-tab-icon {
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.85;
}

.bottom-tab-label {
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.bottom-tab:hover {
    color: #fff;
    background: rgba(41, 98, 255, 0.1);
}

.bottom-tab.active {
    color: #fff;
    background: rgba(41, 98, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(41, 98, 255, 0.35);
}

.bottom-tab.active .bottom-tab-icon {
    color: #7eb0ff;
    opacity: 1;
}

.user-badge {
    background: var(--bg-input);
    border: 1px solid var(--border-highlight);
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 语言切换 */
.lang-switcher {
    position: relative;
    z-index: 220;
}

.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 34px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(120, 160, 255, 0.28);
    background: rgba(30, 36, 52, 0.72);
    color: #fff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 400;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lang-toggle-btn:hover {
    border-color: rgba(120, 160, 255, 0.5);
    background: rgba(41, 98, 255, 0.18);
}

.lang-toggle-icon { font-size: 0.95rem; line-height: 1; }
.lang-caret { opacity: 0.7; font-size: 0.75rem; }

.lang-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    width: min(86vw, 280px);
    max-height: min(62vh, 420px);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(120, 160, 255, 0.22);
    background: rgba(16, 20, 32, 0.94);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 230;
}

.lang-panel[hidden] { display: none !important; }

.lang-search {
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    padding: 0.55rem 0.7rem;
    font: inherit;
    font-size: 0.82rem;
}

.lang-list {
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-height: min(48vh, 320px);
    padding-right: 0.1rem;
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #d1d4dc;
    padding: 0.55rem 0.6rem;
    font: inherit;
    font-size: 0.84rem;
    cursor: pointer;
}

.lang-option:hover,
.lang-option.active {
    background: rgba(41, 98, 255, 0.2);
    color: #fff;
}

.lang-option-code {
    font-size: 0.7rem;
    opacity: 0.65;
}

.lang-nick-link {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: var(--accent-blue);
    font: inherit;
    font-size: 0.78rem;
    padding: 0.55rem 0.35rem 0.2rem;
    cursor: pointer;
    text-align: left;
}

.lang-nick-link:hover { text-decoration: underline; }

.badge-status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(8, 153, 129, 0.18);
}

.badge-name { font-weight: 400; color: #fff; }

/* 容器布局 */
.main-container {
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1.5rem calc(5.5rem + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

/* 全站卡片/面板水平居中（相对主栏） */
.main-container .home-slot-card,
.main-container .dark-card,
.main-container .glass-card,
.main-container .theme-glass-panel,
.main-container .ticker-wrap,
.main-container .section-block,
.main-container .home-sentiment-block,
.main-container .signals-grid,
.main-container .community-list,
.main-container .peer-journal-list,
.main-container .tv-pro-details {
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    max-width: 100%;
}

.page { display: none !important; }
.page.active { display: block !important; animation: fade-in 180ms ease; }

@keyframes fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

.section-block { margin-bottom: 2.5rem; }

.section-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 400;
    color: #fff;
}

.section-subtitle,
.section-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.tv-affiliate-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
}

.tv-affiliate-link:hover { text-decoration: underline; }

/* 暗黑卡片容器：统一高透 Glassmorphism，透出动态背景 */
.dark-card,
.glass-card,
.signal-card,
.paper-card,
.card {
    background: rgba(16, 20, 32, 0.28) !important;
    backdrop-filter: blur(8px) saturate(115%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(115%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 8px 28px 0 rgba(0, 0, 0, 0.28) !important;
}

/* 预留大格子保持虚线边框 */
.dark-card.home-slot-card,
.home-slot-card {
    border: 1px dashed var(--border-highlight) !important;
}

.chip-stack {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}

.chip-stack .chip-row {
    margin-bottom: 0;
}

.chip-row--hot {
    padding-bottom: 0.35rem;
    border-bottom: 1px dashed rgba(245, 197, 24, 0.22);
}

.chip-more-btn {
    border: 1px solid rgba(41, 98, 255, 0.45);
    background: rgba(41, 98, 255, 0.14);
    color: #9db7ff;
    border-radius: 999px;
    padding: 0.18rem 0.7rem;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip-more-btn:hover {
    background: rgba(41, 98, 255, 0.24);
    border-color: var(--accent-blue);
    color: #fff;
}

.chip-more-btn[aria-expanded="true"] {
    background: rgba(41, 98, 255, 0.28);
    border-color: var(--accent-blue);
    color: #fff;
}

.chip-row--std {
    display: none;
}

.chip-row--std[hidden] {
    display: none !important;
}

.chip-row--std.is-open {
    display: flex !important;
    animation: fade-in 180ms ease;
}

/* 普通品种：灰色样式，与当红黄色区分 */
.chip-row--std .chip:not(.active) {
    color: #8b9099;
    border-color: rgba(120, 123, 134, 0.45);
    background: rgba(42, 46, 57, 0.65);
}

.market-pick-hint {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.market-live-board {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.55rem;
    animation: fade-in 220ms ease;
}

.market-live-board[hidden] {
    display: none !important;
}

/* 盘口：上方品种格子压缩，下方真实盘放大 */
.market-controls-panel--compact {
    padding: 0.7rem 0.75rem 0.65rem !important;
}

.market-controls-panel--compact .section-title-wrap {
    margin-bottom: 0.45rem;
}

.market-controls-panel--compact .section-title {
    font-size: 0.95rem;
}

.market-controls-panel--compact .section-subtitle {
    font-size: 0.72rem;
    margin-top: 0.1rem;
}

.market-controls-panel--compact .chip-stack {
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}

.market-controls-panel--compact .chip-row {
    gap: 0.28rem;
}

.market-controls-panel--compact .chip-row--std {
    max-height: 4.6rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.15rem;
}

.market-controls-panel--compact .chip-more-btn {
    padding: 0.14rem 0.55rem;
    font-size: 0.68rem;
}

.market-controls-panel--compact .chip {
    padding: 0.14rem 0.42rem;
    font-size: 0.68rem;
}

.market-controls-panel--compact .chip-active-label {
    margin: 0 0 0.4rem;
    font-size: 0.74rem;
}

.market-controls-panel--compact .interval-row {
    gap: 0.28rem;
}

.market-controls-panel--compact .interval-btn {
    padding: 0.28rem 0.45rem;
    font-size: 0.7rem;
}

.market-controls-panel--compact .market-pick-hint {
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

#page-market .live-quote-bar {
    margin: 0 0 0.65rem;
    padding: 1.15rem 1.2rem 1.2rem;
    gap: 0.85rem 1.35rem;
}

#page-market .live-quote-symbol {
    font-size: 1.35rem;
}

#page-market .live-quote-price {
    font-size: 2.35rem;
    line-height: 1.05;
}

#page-market .live-quote-change {
    font-size: 1.15rem;
}

#page-market .live-quote-meta {
    font-size: 1.05rem;
    gap: 0.85rem 1.15rem;
}

#page-market .live-quote-meta strong {
    font-size: 1.12rem;
}

#page-market .live-quote-meta .live-pulse {
    font-size: 1rem;
}

#page-market .live-candle-card {
    margin: 0;
    padding: 1rem 1rem 0.9rem !important;
    min-height: min(52vh, 460px);
}

#page-market #live-candle-canvas {
    height: min(42vh, 360px);
}

.chip {
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 0.22rem 0.55rem;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s;
}

.chip.hot {
    color: #f5c518;
    border-color: rgba(245, 197, 24, 0.35);
}

.chip:hover {
    border-color: var(--border-highlight);
    color: #fff;
}

.chip.active {
    background: rgba(41, 98, 255, 0.2);
    border-color: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(41, 98, 255, 0.25);
}

.chip-active-label {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin: -0.35rem 0 0.85rem;
}

.chip-active-label strong { color: #fff; font-weight: 400; }

.home-panel {
    min-height: 40vh;
}

.home-panel .home-ticker-title { margin: 0.4rem 0 0.25rem; }
.home-panel .section-subtitle { margin-bottom: 1rem; }

/* --- 首页新增高级组件样式 --- */

.home-sentiment-block {
    margin: 0.35rem 0 1.5rem;
    width: 100%;
    padding: 0.95rem 0.95rem 1.05rem;
    box-sizing: border-box;
}

/* 图1：情绪区半透明毛玻璃底 */
.home-sentiment-block.sentiment-glass {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(24, 30, 46, 0.55), rgba(14, 18, 30, 0.42));
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-sentiment-block .section-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding: 0 0.15rem;
}

.home-sentiment-block .section-title {
    margin: 0;
    padding-right: 0.35rem;
    line-height: 1.4;
}

.slot-badge--live {
    color: var(--accent-green);
    border-color: rgba(8, 153, 129, 0.35);
    background: rgba(8, 153, 129, 0.12);
}

/* 跑马灯：毛玻璃 */
.ticker-wrap {
    background: rgba(12, 14, 20, 0.4) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 0.8rem;
    font-weight: 400;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.ticker-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: ticker-scroll 22s linear infinite;
}

.ticker-wrap:hover .ticker-track { animation-play-state: paused; }

.ticker-item {
    display: flex;
    gap: 0.5rem;
    white-space: nowrap;
    align-items: center;
}

.ticker-item .symbol { color: #fff; }
.ticker-item .up { color: var(--accent-green); }
.ticker-item .down { color: var(--accent-red); }

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Hero 内容（图1，嵌入预留格子） */
.hero-section,
.hero-signal-block {
    display: block;
    padding: 1.35rem 0 1rem;
}

.hero-content { min-width: 0; width: 100%; }

.hero-title {
    font-size: clamp(1.55rem, 6.4vw, 2rem);
    font-weight: 400;
    color: #fff;
    margin: 0 0 0.65rem;
    line-height: 1.3;
}

.hero-title .highlight { color: var(--accent-blue); }

.hero-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin: 0 0 1.15rem;
    line-height: 1.55;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-box { min-width: 0; }

.stat-num {
    display: block;
    font-size: 1.35rem;
    font-weight: 400;
    color: #fff;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 事件倒计时卡片 */
.event-countdown-card {
    background: linear-gradient(135deg, #1e222d 0%, #171b26 100%);
    border: 1px solid rgba(41, 98, 255, 0.3);
    text-align: center;
    padding: 1.15rem 1rem;
}

.event-tag {
    font-size: 0.75rem;
    color: #f5c518;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.event-name {
    font-size: 0.9rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 0.8rem;
}

.countdown-timer {
    font-size: 1.6rem;
    font-weight: 400;
    font-family: monospace;
    color: var(--accent-blue);
    background: var(--bg-main);
    padding: 0.4rem;
    border-radius: 6px;
    margin-bottom: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.countdown-timer.is-live { color: var(--accent-green); }

.event-impact {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 图1 大格子：对齐手绘红框大小 */
.home-slot-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1.35rem;
    width: 100%;
    padding: 1.35rem 1.15rem 1.55rem;
    border: 1px dashed var(--border-highlight);
    border-radius: 14px;
    /* 高透，首屏即可看到后方波浪/流星 */
    background: linear-gradient(180deg, rgba(30, 34, 45, 0.22), rgba(19, 23, 34, 0.30)) !important;
    backdrop-filter: blur(6px) saturate(115%) !important;
    -webkit-backdrop-filter: blur(6px) saturate(115%) !important;
    margin: 0.75rem 0 1.35rem;
    box-sizing: border-box;
}

.home-slot-card--hero-size,
.home-slot-card--drawn-size {
    /* 对齐手绘大红框：接近首屏高度，并保持水平居中 */
    min-height: min(82vh, 680px);
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 1.45rem 1.15rem 1.65rem;
}

.home-slot-card .slot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-shrink: 0;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(54, 58, 69, 0.85);
}

.home-slot-card .slot-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.35;
}

.home-slot-card .slot-badge {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--accent-green);
    border: 1px solid rgba(8, 153, 129, 0.35);
    border-radius: 999px;
    padding: 0.12rem 0.45rem;
    background: rgba(8, 153, 129, 0.12);
}

/* 图1：礼包领取格子 */
.gift-pack-row {
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem 0.15rem 1rem;
}

.gift-pack-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.gift-pack-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.55rem;
    color: rgba(209, 212, 220, 0.88);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.35;
}

.gift-pack-text {
    margin: 0;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.4;
}

.gift-pack-claim-btn {
    flex-shrink: 0;
    align-self: center;
    min-width: 4.6rem;
    min-height: 2.45rem;
    padding: 0.55rem 1rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd54f 0%, #ffb300 45%, #ff8f00 100%);
    color: #1a1200;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 160, 0, 0.28);
    transition: transform 0.18s ease, filter 0.18s ease;
}

.gift-pack-claim-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.gift-pack-claim-btn:active {
    transform: translateY(1px) scale(0.98);
}

.gift-claim-modal .gift-claim-box,
.entry-unlock-modal .entry-unlock-box {
    text-align: center;
    max-width: 360px;
    background: linear-gradient(165deg, rgba(36, 48, 78, 0.96), rgba(16, 20, 32, 0.98));
    border: 1px solid rgba(255, 193, 7, 0.28);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 28px rgba(255, 179, 0, 0.12);
}

.gift-claim-title,
.entry-unlock-title {
    margin: 0 0 0.55rem;
    color: #fff;
    font-size: 1.18rem;
    font-weight: 400;
    line-height: 1.35;
}

.gift-claim-sub {
    margin: 0 0 1rem;
    color: #ffe082;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.45;
}

.gift-claim-body {
    margin: 0 0 1.2rem;
    padding: 0.85rem 0.9rem;
    border-radius: 10px;
    background: rgba(8, 12, 20, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.gift-claim-body p {
    margin: 0 0 0.55rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.gift-claim-body p:last-child { margin-bottom: 0; }

.gift-claim-actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: stretch;
}

.gift-redeem-btn {
    width: 100%;
    min-height: 2.7rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 400;
    background: linear-gradient(135deg, #4c8dff 0%, #2962ff 50%, #1540d8 100%);
    box-shadow: 0 8px 22px rgba(41, 98, 255, 0.35);
}

.gift-backpack-btn {
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: rgba(209, 212, 220, 0.85);
    font-size: 0.84rem;
    padding: 0.35rem 0.2rem;
}

.gift-backpack-btn:hover { color: #fff; }

.entry-unlock-modal { z-index: 240; }

.entry-unlock-kicker {
    margin: 0 0 0.65rem;
    color: #8fb4ff;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.entry-unlock-promo {
    margin: 0 0 1.25rem;
    padding: 0.8rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.28);
    color: #ffe9a8;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.55;
}

.entry-unlock-btn,
a.entry-unlock-btn {
  text-decoration: none;
  box-sizing: border-box;
}
a.entry-unlock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.entry-unlock-btn {
    position: relative;
    width: 100%;
    min-height: 2.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 400;
    background: linear-gradient(135deg, #ff7043 0%, #f44336 45%, #d32f2f 100%);
    box-shadow: 0 10px 26px rgba(244, 67, 54, 0.35);
}

.entry-unlock-btn:disabled,
.entry-unlock-btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.15);
    pointer-events: none;
}

.entry-unlock-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.entry-unlock-btn.is-ready .entry-unlock-countdown { display: none; }

.entry-unlock-hint,
.entry-copy-link {
    margin: 0.75rem 0 0;
    color: var(--text-secondary);
    font-size: 0.78rem;
}
button.entry-copy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.1rem;
    padding: 0.35rem 0.6rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9ec1ff;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    cursor: pointer;
}
button.entry-copy-link:hover {
    color: #fff;
}
button.entry-copy-link.is-copied {
    color: #7dffa8;
    text-decoration: none;
}

.home-slot-card .slot-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.55rem;
    min-height: 0;
    padding: 0.45rem 0 0.25rem;
}

.home-slot-card .slot-body--alpha-only {
    justify-content: space-between;
}

.home-slot-card .slot-body--hero {
    display: flex;
    align-items: center;
}

.home-slot-card .slot-body--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.home-slot-card .slot-hero {
    flex-shrink: 0;
    padding: 0.35rem 0 0.15rem;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.55rem;
}

.home-slot-card .slot-spacer {
    flex: 0 0 auto;
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 0;
    height: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.home-slot-card .hero-title {
    font-size: clamp(1.55rem, 6.4vw, 2rem);
    line-height: 1.3;
}

.home-slot-card .hero-desc {
    margin-bottom: 0;
    line-height: 1.7;
}

/* ==========================================
   方案 1 专属样式：黄金发光标题与双按钮
   ========================================== */

/* 图3：标题区增加左右内边距，避免贴边 */
.hero-section .slot-hero.hero-content {
    padding: 0.35rem 0.35rem 0.55rem;
    box-sizing: border-box;
}

.hero-section .hero-title {
    padding: 0 0.05rem;
    text-wrap: pretty;
    word-break: normal;
    overflow-wrap: anywhere;
    max-width: 100%;
    font-size: clamp(1.55rem, 6.4vw, 2rem);
    line-height: 1.3;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 0 0 0.65rem;
}

.hero-section .hero-desc {
    padding: 0 0.1rem;
    margin: 0.15rem 0 0;
    line-height: 1.7;
    max-width: 36em;
    font-size: 0.92rem;
}

/* 主标题：金色渐变与柔和发光 */
.hero-title .gold-highlight {
    background: linear-gradient(135deg, #FFF176 0%, #FFB300 50%, #FF8F00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 12px rgba(255, 179, 0, 0.45));
    font-weight: 400;
}

/* 副标题：高透暖金文本 */
.gold-sub {
    color: #FFECB3 !important;
    opacity: 0.9;
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.2);
}

/* 图2：统计区与按钮拉开间距 */
.hero-section .hero-stats {
    display: flex;
    gap: 1.5rem;
    margin: 0.35rem 0 0;
    padding: 1rem 1rem;
    border-radius: 12px;
    background: rgba(18, 24, 38, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.hero-section .hero-actions {
    margin-top: 0.15rem;
}

.hero-section .stat-value {
    display: block;
    font-size: 1.55rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.hero-section .stat-label {
    display: block;
    font-size: 0.74rem;
    color: #9aa0ad;
    margin-top: 0.28rem;
    line-height: 1.35;
}

/* 预留区域外框：收起，把垂直空间让给主标题 */
.hero-preview-box {
    border: none;
    border-radius: 0;
    height: 0;
    min-height: 0;
    max-height: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: transparent;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.hero-preview-box .slot-placeholder {
    color: inherit;
}

/* --- 图1：更显眼生动的按钮组 --- */
.hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    flex-shrink: 0;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 0.9rem;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease, border-color 0.22s ease;
    text-align: left;
    text-decoration: none;
    font: inherit;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
}

.hero-actions .btn-primary::after,
.hero-actions .btn-secondary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.22) 45%, transparent 70%);
    transform: translateX(-120%);
    animation: hero-btn-sheen 3.2s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.hero-actions .btn-icon,
.hero-actions .btn-text {
    position: relative;
    z-index: 1;
}

.hero-actions .btn-icon {
    font-size: 1.45rem;
    line-height: 1;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-actions .btn-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hero-actions .btn-title {
    font-weight: 400;
    font-size: 0.92rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.hero-actions .btn-sub {
    font-size: 0.68rem;
    opacity: 0.82;
    margin-top: 4px;
    line-height: 1.3;
}

/* 主按钮（盘口）：更亮的 TradingView 蓝 + 呼吸光 */
.hero-actions .btn-primary {
    background: linear-gradient(135deg, #4c8dff 0%, #2962ff 42%, #1540d8 100%);
    border: 1px solid rgba(180, 210, 255, 0.55);
    color: #ffffff;
    box-shadow:
        0 0 0 1px rgba(41, 98, 255, 0.25),
        0 8px 22px rgba(41, 98, 255, 0.45),
        0 0 28px rgba(76, 141, 255, 0.35);
    animation: hero-btn-pulse-blue 2.4s ease-in-out infinite;
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px) scale(1.015);
    filter: brightness(1.08);
    box-shadow:
        0 0 0 1px rgba(41, 98, 255, 0.4),
        0 12px 28px rgba(41, 98, 255, 0.55),
        0 0 36px rgba(76, 141, 255, 0.45);
    background: linear-gradient(135deg, #5a98ff 0%, #3370ff 42%, #1a49e6 100%);
}

/* 次按钮（日历）：暖金描边毛玻璃，对比更强 */
.hero-actions .btn-secondary {
    background: linear-gradient(145deg, rgba(255, 193, 7, 0.16), rgba(30, 34, 45, 0.72) 55%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 213, 79, 0.55);
    color: #ffe9a8;
    box-shadow:
        0 0 0 1px rgba(255, 193, 7, 0.12),
        0 8px 20px rgba(255, 160, 0, 0.18),
        0 0 22px rgba(255, 193, 7, 0.16);
    animation: hero-btn-pulse-gold 2.8s ease-in-out infinite;
}

.hero-actions .btn-secondary .btn-icon {
    background: rgba(255, 193, 7, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 213, 79, 0.28);
}

.hero-actions .btn-secondary:hover {
    background: linear-gradient(145deg, rgba(255, 193, 7, 0.28), rgba(42, 46, 57, 0.88) 55%);
    border-color: rgba(255, 224, 130, 0.75);
    color: #fff6d0;
    transform: translateY(-3px) scale(1.015);
    box-shadow:
        0 0 0 1px rgba(255, 193, 7, 0.22),
        0 12px 26px rgba(255, 160, 0, 0.28),
        0 0 30px rgba(255, 193, 7, 0.28);
}

.hero-actions .btn-primary:active,
.hero-actions .btn-secondary:active {
    transform: translateY(1px) scale(0.985);
}

@keyframes hero-btn-sheen {
    0%, 55% { transform: translateX(-120%); opacity: 0; }
    65% { opacity: 0.85; }
    80%, 100% { transform: translateX(120%); opacity: 0; }
}

@keyframes hero-btn-pulse-blue {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(41, 98, 255, 0.25),
            0 8px 22px rgba(41, 98, 255, 0.42),
            0 0 22px rgba(76, 141, 255, 0.28);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(41, 98, 255, 0.4),
            0 10px 26px rgba(41, 98, 255, 0.55),
            0 0 34px rgba(76, 141, 255, 0.48);
    }
}

@keyframes hero-btn-pulse-gold {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(255, 193, 7, 0.12),
            0 8px 20px rgba(255, 160, 0, 0.16),
            0 0 18px rgba(255, 193, 7, 0.12);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(255, 193, 7, 0.28),
            0 10px 24px rgba(255, 160, 0, 0.28),
            0 0 28px rgba(255, 193, 7, 0.28);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary,
    .hero-actions .btn-primary::after,
    .hero-actions .btn-secondary::after {
        animation: none !important;
    }
}

.slot-placeholder {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.5;
}

@media (max-width: 430px) {
    .gift-pack-row {
        flex-wrap: wrap;
    }
    .gift-pack-claim-btn {
        width: 100%;
    }
    .gift-pack-text {
        font-size: 0.92rem;
    }
    .hero-actions {
        gap: 0.65rem;
    }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        gap: 0.5rem;
        padding: 0.85rem 0.7rem;
    }
    .hero-actions .btn-title {
        font-size: 0.84rem;
    }
    .hero-actions .btn-sub {
        font-size: 0.64rem;
    }
    .home-slot-card .hero-title,
    .hero-section .hero-title {
        font-size: clamp(1.5rem, 6.2vw, 1.9rem);
        line-height: 1.3;
    }
    .hero-section .hero-stats {
        gap: 1rem;
        padding: 0.95rem 0.9rem;
    }
    .hero-section .slot-hero.hero-content {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }
}

/* 图3：实时跳动报价条 */
.live-quote-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    padding: 0.85rem 1.1rem;
    margin: 0.85rem 0 1rem;
    border: 1px solid rgba(41, 98, 255, 0.28);
    background: linear-gradient(90deg, rgba(41, 98, 255, 0.08), rgba(30, 34, 45, 0.95));
}

.live-quote-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.65rem 0.9rem;
}

.live-quote-symbol {
    font-weight: 400;
    color: #fff;
    font-size: 1.2rem;
}

.live-quote-price {
    font-size: 2rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    color: #fff;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.live-quote-price.flash-up {
    color: var(--accent-green);
    text-shadow: 0 0 12px rgba(8, 153, 129, 0.35);
}

.live-quote-price.flash-down {
    color: var(--accent-red);
    text-shadow: 0 0 12px rgba(242, 54, 69, 0.35);
}

.live-quote-change {
    font-size: 1.05rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.live-quote-change.up { color: var(--accent-green); }
.live-quote-change.down { color: var(--accent-red); }

.live-quote-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.live-quote-meta strong {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.live-pulse {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-green);
    font-weight: 400;
    letter-spacing: 0.04em;
}

/* 图2：话题影响标签 */
.impact-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.3;
    border: 1px solid transparent;
    white-space: nowrap;
}

.impact-tag.high {
    color: #ffb4b8;
    background: rgba(242, 54, 69, 0.16);
    border-color: rgba(242, 54, 69, 0.35);
}

.impact-tag.mid {
    color: #f5d27a;
    background: rgba(245, 197, 24, 0.12);
    border-color: rgba(245, 197, 24, 0.3);
}

.impact-tag.low {
    color: #9aa3b5;
    background: rgba(120, 123, 134, 0.16);
    border-color: rgba(120, 123, 134, 0.35);
}

.private-journal-title {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.peer-journal-title-top {
    margin-top: 0;
}

.home-panel > .ticker-wrap {
    margin-bottom: 0.35rem;
}

/* 情绪仪表盘 Grid — 格子统一尺寸 */
.sentiment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch;
}

.sentiment-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    min-height: 7.75rem;
    height: 100%;
    box-sizing: border-box;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0.6rem;
    min-height: 1.35rem;
}

.asset-title {
    color: #fff;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ratio-text {
    flex-shrink: 0;
    white-space: nowrap;
}

.ratio-text.bullish { color: var(--accent-green); }
.ratio-text.bearish { color: var(--accent-red); }

.progress-bar {
    height: 8px;
    background: var(--accent-red);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--accent-green);
}

.card-foot {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 手机端 / 窄屏适配 */
@media (max-width: 860px) {
    .hero-section,
    .hero-signal-block {
        padding: 1rem 0 0.55rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6.2vw, 1.9rem);
        line-height: 1.3;
    }
    .hero-desc { font-size: 0.9rem; margin-bottom: 1rem; }
    .hero-stats { gap: 1rem; }
    .stat-num { font-size: 1.2rem; }

    .home-slot-card {
        padding: 1.25rem 0.95rem 1.4rem;
        margin: 0.7rem 0 1.1rem;
        gap: 1.2rem;
    }

    .home-slot-card--hero-size,
    .home-slot-card--drawn-size {
        min-height: min(84vh, 660px);
        width: 100%;
        padding: 1.4rem 1rem 1.55rem;
    }
    .home-slot-card .slot-title { font-size: 0.92rem; }
    .home-slot-card .slot-body { gap: 1.45rem; }
    .home-slot-card .hero-title,
    .hero-section .hero-title {
        font-size: clamp(1.5rem, 6.2vw, 1.9rem);
        line-height: 1.3;
    }

    .sentiment-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .ticker-wrap {
        padding: 0.5rem 0.75rem;
        gap: 1.25rem;
    }
}

.phone-shell-body .hero-section,
.phone-shell-body .hero-signal-block {
    padding: 0.85rem 0 0.45rem;
}

.phone-shell-body .hero-title {
    font-size: clamp(1.5rem, 6.2vw, 1.9rem);
    line-height: 1.3;
}
.phone-shell-body .home-slot-card--hero-size,
.phone-shell-body .home-slot-card--drawn-size {
    min-height: min(80vh, 640px);
    width: 100%;
}
.phone-shell-body .home-slot-card .hero-title {
    font-size: clamp(1.5rem, 6.2vw, 1.9rem);
    line-height: 1.3;
}
.phone-shell-body .home-slot-card .slot-body {
    gap: 1.5rem;
    justify-content: space-between;
}
.phone-shell-body .home-slot-card .slot-hero {
    min-height: 0;
    gap: 0.55rem;
}
.phone-shell-body .sentiment-grid { grid-template-columns: 1fr; gap: 0.75rem; }

.peer-journal-title { margin-top: 0; }

.peer-journal-list {
    display: grid;
    gap: 0.85rem;
}

.peer-journal-card {
    padding: 1rem 1.1rem;
    transition: border-color 0.2s;
}

.peer-journal-card:hover {
    border-color: var(--border-highlight);
}

.peer-journal-card.expanded {
    border-color: rgba(41, 98, 255, 0.45);
}

.peer-journal-head { cursor: pointer; }

.peer-journal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
    align-items: center;
    margin-bottom: 0.55rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.peer-expand-hint {
    margin-left: auto;
    color: var(--accent-blue);
    font-weight: 400;
    font-size: 0.75rem;
}

.peer-social-bubbles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.social-bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 0.55rem 0.7rem;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s;
}

.social-bubble:hover {
    border-color: var(--border-highlight);
    background: var(--bg-input);
}

.social-bubble .bubble-icon { font-size: 0.95rem; }
.social-bubble .bubble-count {
    min-width: 1.2rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.like-bubble.active {
    border-color: rgba(242, 54, 69, 0.45);
    color: #ff7a85;
    background: rgba(242, 54, 69, 0.1);
}

.like-bubble.active .bubble-count {
    background: rgba(242, 54, 69, 0.16);
    color: #ff7a85;
}

.comment-bubble:hover,
.comment-bubble:focus-visible {
    border-color: rgba(41, 98, 255, 0.45);
    color: #c9d7ff;
}

.peer-journal-detail {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color);
}

.peer-detail-block { margin-bottom: 0.7rem; }
.peer-detail-block h4 {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}
.peer-detail-block p {
    color: var(--text-primary);
    font-size: 0.88rem;
    line-height: 1.65;
    white-space: pre-wrap;
}

.peer-comments-panel {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color);
}

.peer-comments-list { margin-bottom: 0.75rem; }

.peer-comment-item {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.5rem;
}

.peer-comment-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.peer-comment-item p {
    color: var(--text-primary);
    font-size: 0.86rem;
    line-height: 1.55;
}

.peer-comments-empty {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-bottom: 0.6rem;
}

.peer-comment-form textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: #fff;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    font: inherit;
    font-size: 0.88rem;
    resize: vertical;
    margin-bottom: 0.55rem;
}

.peer-comment-form .btn-primary {
    width: 100%;
}

.peer-author { color: #fff; font-weight: 400; }
.peer-symbol {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    color: #c9d7ff;
    font-weight: 400;
}
.peer-result {
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    font-weight: 400;
}
.peer-result.win { background: rgba(8, 153, 129, 0.15); color: var(--accent-green); }
.peer-result.loss { background: rgba(242, 54, 69, 0.15); color: var(--accent-red); }
.peer-result.flat { background: rgba(245, 197, 24, 0.12); color: #f5c518; }
.peer-content {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.65;
}

.peer-time { margin-left: auto; }

.interval-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: -0.2rem 0 0.85rem;
}

.interval-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 6px;
    padding: 0.28rem 0.55rem;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s;
}

.interval-btn:hover { color: #fff; border-color: var(--border-highlight); }

.interval-btn.active {
    background: rgba(41, 98, 255, 0.2);
    border-color: var(--accent-blue);
    color: #fff;
}

.live-candle-card {
    display: block;
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    padding: 0.85rem 0.9rem 0.75rem !important;
    margin: 0.85rem 0 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.live-candle-card--tap:hover,
.live-candle-card--tap:focus-visible {
    border-color: rgba(120, 170, 255, 0.45) !important;
    box-shadow: 0 10px 28px rgba(41, 98, 255, 0.18) !important;
    outline: none;
}

.live-candle-card--tap:active {
    transform: scale(0.992);
}

.live-candle-tap-hint {
    display: block;
    margin-top: 0.45rem;
    color: #8fb4ff;
    font-size: 0.74rem;
    font-weight: 400;
}

.live-candle-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.live-candle-head strong {
    display: block;
    color: #fff;
    font-size: 0.92rem;
}

.live-candle-sub {
    display: block;
    margin-top: 0.15rem;
    color: var(--text-secondary);
    font-size: 0.72rem;
}

#live-candle-canvas {
    display: block;
    width: 100%;
    height: 280px;
    border-radius: 8px;
    background: rgba(8, 12, 20, 0.55);
    border: 1px solid rgba(54, 58, 69, 0.75);
}

.live-candle-ohlc {
    margin-top: 0.45rem;
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-variant-numeric: tabular-nums;
}

.tv-pro-details {
    margin: 0 0 1rem;
    border-radius: 10px;
    border: 1px solid rgba(120, 160, 255, 0.16);
    background: rgba(16, 22, 36, 0.35);
    overflow: hidden;
}

.tv-pro-details > summary {
    cursor: pointer;
    list-style: none;
    padding: 0.75rem 0.95rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 400;
    user-select: none;
}

.tv-pro-details > summary::-webkit-details-marker { display: none; }

.tv-pro-details > summary::before {
    content: "▸ ";
    color: var(--accent-blue);
}

.tv-pro-details[open] > summary::before { content: "▾ "; }

.tv-pro-details[open] > summary {
    border-bottom: 1px solid rgba(54, 58, 69, 0.75);
    color: #c9d7ff;
}

.tv-pro-details .tv-widget-container {
    margin: 0;
    border: 0;
    border-radius: 0;
}

.tv-widget-container {
    padding: 0;
    overflow: visible;
    position: relative;
    z-index: 2;
    isolation: isolate;
    touch-action: auto;
}

.tv-widget-container.tv-advanced {
    padding: 0;
    background: #1e222d;
}

#tv-widget-mount {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 560px;
    pointer-events: auto;
    touch-action: auto;
}

#tv-widget-mount iframe {
    pointer-events: auto !important;
    touch-action: auto !important;
    position: relative;
    z-index: 4;
}

.tradingview-widget-container,
.tradingview-widget-container__widget {
    width: 100%;
    min-height: 560px;
    height: 560px;
    pointer-events: auto;
    touch-action: auto;
}

.widget-fallback {
    margin-top: 0.55rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
    padding: 0 0.55rem 0.55rem;
    pointer-events: none;
}

/* Prevent phone scroll container from eating chart toolbar taps */
.phone-shell-body .tv-advanced,
.phone-shell-body #tv-widget-mount {
    touch-action: auto;
    -webkit-user-select: none;
    user-select: none;
}

/* 策略信号网格 */
.signals-panel {
    margin: 0 0 1rem;
}

.signals-panel .section-title-wrap {
    margin-bottom: 0.85rem;
}

.signals-panel .signals-grid {
    margin-top: 0.25rem;
}

.signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.signals-empty,
.form-error {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.form-error { color: var(--accent-red); }

.signal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    position: relative;
    transition: border-color 0.2s, transform 0.2s;
}

.signal-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

.card-top,
.signal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.55rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.symbol-name,
.signal-symbol {
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.03em;
}

.type-pill {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.type-pill.BUY { background: rgba(8, 153, 129, 0.15); color: var(--accent-green); }
.type-pill.SELL { background: rgba(242, 54, 69, 0.15); color: var(--accent-red); }

.price-details,
.price-box {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.8rem;
    margin-bottom: 1rem;
}

.price-row,
.price-box > div {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.price-row:last-child,
.price-box > div:last-child { margin-bottom: 0; }

.price-row .label,
.price-box span { color: var(--text-secondary); }

.price-row .val,
.price-box strong {
    font-weight: 400;
    color: #fff;
}

.price-row .val-sl { color: var(--accent-red); }
.price-row .val-tp { color: var(--accent-green); }

.signal-author {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
    margin-bottom: 0;
}

/* 看多/看空情感比例条 */
.sentiment-bar-wrap,
.sentiment {
    margin-bottom: 1rem;
}

.sentiment-labels,
.sentiment-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
}

.sentiment-labels .bull { color: var(--accent-green); }
.sentiment-labels .bear { color: var(--accent-red); }

.sentiment-progress,
.sentiment-bar {
    height: 6px;
    background: var(--accent-red);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
}

.sentiment-fill,
.sentiment-bar > span {
    display: block;
    height: 100%;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

/* 投票按钮组 */
.vote-actions,
.vote-row {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.btn-vote,
.vote-btn {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 6px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-vote.bull:hover,
.vote-btn.bullish:hover,
.vote-btn.bullish.active {
    background: rgba(8, 153, 129, 0.2);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.btn-vote.bear:hover,
.vote-btn.bearish:hover,
.vote-btn.bearish.active {
    background: rgba(242, 54, 69, 0.2);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.btn-vote:disabled,
.vote-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-vote.bull.active:disabled {
    background: rgba(8, 153, 129, 0.2);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.btn-vote.bear.active:disabled {
    background: rgba(242, 54, 69, 0.2);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.tv-link-block,
.tv-mini {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.tv-link-block:hover,
.tv-mini:hover { color: var(--accent-blue); }

.btn-strategy-order {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-top: 0.85rem;
    padding: 0.72rem 0.9rem;
    border: 1px solid rgba(41, 98, 255, 0.55);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(41, 98, 255, 0.95), rgba(20, 140, 170, 0.9));
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(20, 60, 160, 0.28);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-strategy-order:hover { filter: brightness(1.06); }
.btn-strategy-order:active { transform: scale(0.98); }

.btn-official-site {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin: 0.15rem 0 0.35rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 220, 120, 0.45);
    border-radius: 14px;
    background: linear-gradient(120deg, #1a6cff 0%, #14b8a6 48%, #f5c518 100%);
    background-size: 200% 200%;
    color: #fff;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow:
        0 10px 26px rgba(20, 60, 160, 0.35),
        0 0 20px rgba(245, 197, 24, 0.2);
    animation: official-cta-pulse 2.4s ease-in-out infinite;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-official-site:hover { filter: brightness(1.07); }
.btn-official-site:active { transform: scale(0.98); }

.eco-row-hint {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.calendar-controls-panel .eco-status {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
}

.eco-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.eco-empty-card {
    padding: 1.1rem;
    text-align: center;
    color: var(--text-secondary);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(18, 22, 32, 0.4);
}

.eco-impact-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(30, 34, 45, 0.72), rgba(16, 20, 30, 0.78));
    padding: 0.9rem 0.95rem;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.eco-impact-card:hover,
.eco-impact-card:focus-visible {
    border-color: rgba(41, 98, 255, 0.45);
    outline: none;
}

.eco-impact-card.is-open {
    border-color: rgba(90, 140, 255, 0.5);
    background: linear-gradient(180deg, rgba(36, 52, 92, 0.55), rgba(16, 20, 30, 0.85));
}

.eco-impact-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.eco-impact-title-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.eco-impact-tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #ffd98a;
    background: rgba(245, 197, 24, 0.14);
    border: 1px solid rgba(245, 197, 24, 0.35);
}

.eco-impact-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.35;
}

.eco-impact-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}

.eco-impact-card .eco-expand-chevron {
    width: 1.45rem;
    height: 1.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(41, 98, 255, 0.16);
    color: #9ec1ff;
    margin-left: 0;
}

.eco-impact-detail {
    margin-top: 0.8rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: eco-detail-in 160ms ease;
}

.eco-impact-detail[hidden] {
    display: none !important;
}

.calendar-controls-panel .eco-table-wrap {
    margin-top: 0;
}

.stamp-mark {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 2px solid;
    border-radius: 4px;
    padding: 0.12rem 0.4rem;
    font-size: 0.72rem;
    font-weight: 400;
    transform: rotate(10deg);
    opacity: 0.9;
    pointer-events: none;
}

.stamp-mark.bullish { color: var(--accent-green); border-color: var(--accent-green); }
.stamp-mark.bearish { color: var(--accent-red); border-color: var(--accent-red); }

/* 宏观日历 */
.calendar-actions { display: flex; align-items: center; gap: 0.8rem; }

.live-tag {
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.04em;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 1.4s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(8, 153, 129, 0.45); }
    50% { box-shadow: 0 0 0 7px rgba(8, 153, 129, 0); }
}

.eco-tabs,
.eco-filters,
.eco-date-bar {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.eco-date-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.2rem;
}

.eco-tab,
.eco-filter,
.eco-day {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s;
}

.eco-day {
    min-width: 48px;
    text-align: center;
    padding: 0.4rem 0.45rem;
}

.eco-day .w { display: block; font-size: 0.68rem; }
.eco-day .d { display: block; font-weight: 400; color: var(--text-primary); }

.eco-tab.active,
.eco-filter.active,
.eco-day.active {
    background: rgba(41, 98, 255, 0.16);
    border-color: rgba(41, 98, 255, 0.45);
    color: #c9d7ff;
}

.eco-day.active .d { color: #fff; }

.eco-status,
.eco-swipe-hint {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.45rem;
}

/* 主题半透明玻璃面板：透出赛博波浪背景 */
.theme-glass-panel {
    position: relative;
    z-index: 1;
    margin: 0 0 1rem;
    padding: 1rem 1.05rem 1.05rem;
    border-radius: 12px;
    background:
        linear-gradient(165deg, rgba(36, 52, 92, 0.28), rgba(14, 18, 30, 0.42) 48%, rgba(10, 14, 24, 0.5)),
        rgba(16, 22, 36, 0.38);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    border: 1px solid rgba(120, 160, 255, 0.18);
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(180, 210, 255, 0.08);
}

.theme-glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(120% 80% at 10% -10%, rgba(56, 120, 255, 0.16), transparent 55%);
}

.theme-glass-panel > * {
    position: relative;
    z-index: 1;
}

.market-controls-panel .section-title-wrap {
    margin-bottom: 0.85rem;
}

.market-controls-panel .chip-row {
    margin-bottom: 0.7rem;
}

.market-controls-panel .chip-active-label {
    margin: 0 0 0.7rem;
}

.market-controls-panel .interval-row {
    margin: 0;
}

.calendar-controls-panel .section-title-wrap {
    margin-bottom: 0.75rem;
}

.calendar-controls-panel .eco-tabs,
.calendar-controls-panel .eco-date-bar,
.calendar-controls-panel .eco-filters {
    margin-bottom: 0.55rem;
}

.calendar-controls-panel .eco-status {
    margin-bottom: 0.3rem;
}

.calendar-controls-panel .eco-swipe-hint {
    margin-bottom: 0;
}

.calendar-controls-panel .eco-tab,
.calendar-controls-panel .eco-filter,
.calendar-controls-panel .eco-day {
    background: rgba(30, 36, 52, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.calendar-controls-panel .eco-tab.active,
.calendar-controls-panel .eco-filter.active,
.calendar-controls-panel .eco-day.active {
    background: rgba(41, 98, 255, 0.28);
}

.eco-table-wrap,
.calendar-card {
    padding: 0;
    overflow: hidden;
}

.eco-table-wrap {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    cursor: default;
}

.eco-table-wrap.dragging,
.eco-table-wrap:active { cursor: default; user-select: none; }

.eco-table,
.calendar-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
    table-layout: fixed;
}

.eco-table th:nth-child(1),
.eco-table td.eco-time { width: 4.2rem; }
.eco-table th:nth-child(3),
.eco-table td.eco-stars-cell { width: 6.2rem; text-align: right; }

.eco-table th,
.calendar-table th {
    background: #161a25;
    padding: 0.8rem 0.85rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    border-bottom: 1px solid var(--border-color);
}

.eco-table td,
.calendar-table td {
    padding: 0.85rem 0.85rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    vertical-align: middle;
}

.eco-table tr:last-child td,
.calendar-table tr:last-child td { border-bottom: none; }

.eco-row {
    cursor: pointer;
    transition: background 0.15s ease;
}

.eco-row:hover td,
.eco-row:focus-visible td {
    background: rgba(41, 98, 255, 0.08);
    outline: none;
}

.eco-row.expanded td {
    background: rgba(41, 98, 255, 0.12);
    border-bottom-color: transparent;
}

.eco-time {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
    font-weight: 400;
}

.eco-name {
    font-weight: 400;
    color: #fff;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.15rem 0.2rem;
    line-height: 1.4;
}

.eco-flag {
    color: var(--accent-blue);
    margin-right: 0.2rem;
    font-size: 0.75rem;
    font-weight: 400;
}

.eco-expand-chevron {
    margin-left: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 400;
}

.eco-detail-row td {
    padding: 0 0.85rem 0.85rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.eco-detail-row.open td {
    animation: eco-detail-in 160ms ease;
}

@keyframes eco-detail-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.eco-detail-panel {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.85rem 0.9rem;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(30, 48, 90, 0.45), rgba(12, 14, 20, 0.72));
    border: 1px solid rgba(90, 140, 255, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.eco-detail-brief {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #c8d4ef;
}

.eco-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.7rem;
}

.eco-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
}

.eco-detail-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.eco-detail-value {
    font-size: 0.92rem;
    color: #fff;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    word-break: break-word;
}

.eco-detail-value .impact {
    font-size: 0.78rem;
}

@media (min-width: 720px) {
    .eco-detail-panel {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .eco-table th:nth-child(1),
    .eco-table td.eco-time { width: 5rem; }
    .eco-table th:nth-child(3),
    .eco-table td.eco-stars-cell { width: 7rem; }
}

.stars,
.star-rating { color: var(--text-secondary); letter-spacing: 0.02em; }
.stars.mid,
.star-rating.high { color: #f5c518; }
.stars.high,
.star-rating.critical { color: var(--accent-red); }
.stars.low { color: var(--text-secondary); }

.impact {
    display: inline-block;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 400;
}

.impact.bull { background: rgba(242, 54, 69, 0.15); color: #ff7a85; }
.impact.bear { background: rgba(8, 153, 129, 0.15); color: #26a69a; }
.impact.flat { background: rgba(245, 197, 24, 0.12); color: #f5c518; }
.actual-up { color: #ff7a85; font-weight: 400; }
.actual-down { color: #26a69a; font-weight: 400; }

/* 社区 */
.community-list { display: grid; gap: 0.8rem; margin-bottom: 1rem; }

.community-card {
    background: rgba(18, 22, 34, 0.42) !important;
    backdrop-filter: blur(14px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(120%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px;
    padding: 1.1rem;
    cursor: pointer;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35) !important;
    transition: border-color 0.2s, transform 0.2s;
}

.community-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-1px);
}

.community-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.community-card h3 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.4rem;
}

.community-card .excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.community-card .stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.7rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.composer-card { padding: 1.25rem; }
.composer-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1rem;
    color: #fff;
}

.composer-card input,
.composer-card textarea,
.modal-box input,
.modal-box select,
.journal-box textarea,
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: #fff;
    border-radius: 6px;
    padding: 0.7rem 0.8rem;
    font: inherit;
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
}

.composer-card textarea { min-height: 110px; resize: vertical; }

.community-detail { display: none; }
.community-detail.active { display: block; }
.detail-back { margin-bottom: 0.8rem; }

.detail-article {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.1rem;
}

.detail-article h2 {
    margin: 0.4rem 0 0.8rem;
    font-size: 1.25rem;
    color: #fff;
}

.detail-article .body {
    white-space: pre-wrap;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.detail-actions {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 0.8rem;
}

.like-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font: inherit;
    font-weight: 400;
    cursor: pointer;
}

.like-btn.liked {
    border-color: rgba(242, 54, 69, 0.5);
    color: #ff7a85;
}

.comments-block { margin-top: 1rem; }
.comments-block h3 { margin-bottom: 0.7rem; color: #fff; }

.comment-item {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.55rem;
}

.comment-item .c-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
}

/* 日志 Textarea */
.journal-box { padding: 1.25rem; }

.journal-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.journal-hint { color: var(--text-secondary); font-weight: 400; }

.journal-box textarea {
    width: 100%;
    height: 140px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.8rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    margin: 0.8rem 0;
    resize: vertical;
}

.journal-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.status-msg { color: var(--accent-green); font-size: 0.88rem; }
.status-msg.error { color: var(--accent-red); }

/* 通用按钮 & 弹窗 */
.btn-primary {
    background: var(--accent-blue);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover { background: var(--accent-blue-hover); }

.btn-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font: inherit;
    font-size: 0.8rem;
    text-decoration: underline;
}

.btn-link:hover { color: var(--text-primary); }

.modal-overlay {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 400 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    padding: 1rem;
}

.modal-overlay[hidden] { display: none !important; }

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
    display: flex !important;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: 8px;
    padding: 1.8rem;
    width: 90%;
    max-width: 420px;
}

.modal-box h2 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.modal-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.modal-box input,
.modal-box select {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.6rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    align-items: center;
    margin-top: 1.2rem;
}

@media (max-width: 760px) {
    .site-header { padding: 0.75rem 1rem; }
    .nav-links { display: none; }
    .user-badge { margin-left: auto; }
    .main-container {
        margin: 1.25rem auto;
        /* 左右收窄，主格子更接近手绘红框全宽 */
        padding: 0 0.55rem calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }
    .signals-grid {
        grid-template-columns: 1fr;
    }
    .tradingview-widget-container,
    .tradingview-widget-container__widget {
        min-height: 480px;
        height: 520px;
    }
    .peer-time { margin-left: 0; }
    .peer-expand-hint { width: 100%; margin-left: 0; }
}

/* 手机端分享外壳：桌面打开也呈现手机观看效果 */
body.phone-shell-body {
    background:
        radial-gradient(900px 420px at 50% -10%, rgba(41, 98, 255, 0.16), transparent 55%),
        #07090f !important;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 18px 12px;
    isolation: auto;
    overflow: hidden; /* 页面滚动交给内部 .phone-scroll */
}

.phone-device {
    width: min(390px, 100%);
    height: min(844px, calc(100vh - 36px));
    background: transparent;
    border-radius: 32px;
    border: 10px solid #151a26;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

/* 手机壳内：canvas 贴合机身，绝对铺满，内容叠在其上 */
body.phone-shell-body #cyber-canvas {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
}

.phone-notch {
    height: 18px;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(16, 20, 30, 0.72);
    border-bottom: 1px solid rgba(42, 46, 57, 0.8);
    position: relative;
    z-index: 2;
}

.phone-notch::after {
    content: "";
    width: 92px;
    height: 6px;
    border-radius: 999px;
    background: #2a2e39;
}

.phone-scroll {
    flex: 1;
    min-height: 0; /* flex 子项可滚动，避免内容被裁切后无法下滑 */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
    background: transparent !important;
    overscroll-behavior: contain;
    touch-action: pan-y;
    scrollbar-gutter: stable both-edges;
    box-sizing: border-box;
}

.phone-scroll.chart-lock {
    overflow-y: hidden;
    touch-action: none;
}

.phone-shell-body .site-header {
    padding: 0.7rem 0.85rem;
}

.phone-shell-body .header-inner {
    max-width: none;
    gap: 0.65rem;
}

.phone-shell-body .nav-links { display: none; }

.phone-shell-body .main-container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 1rem auto;
    padding: 0 0.65rem 1.25rem;
    overflow-x: hidden;
}

.phone-shell-body .site-header {
    box-sizing: border-box;
}

.phone-shell-body .home-panel,
.phone-shell-body .home-slot-card,
.phone-shell-body .dark-card,
.phone-shell-body .theme-glass-panel,
.phone-shell-body .ticker-wrap,
.phone-shell-body .section-block,
.phone-shell-body .hero-title,
.phone-shell-body .hero-desc {
    max-width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

/* 底栏必须挂在 .phone-device 上，不能放进 .phone-scroll，否则会跟着内容上移 */
.phone-shell-body .bottom-tab-bar {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 20;
}

.phone-shell-body .tv-float-cta {
    position: absolute !important;
    left: 50%;
    bottom: 4.55rem;
    z-index: 21;
}

.phone-shell-body .tv-float-cta.is-visible {
    bottom: 4.55rem;
}

.phone-shell-body .tv-float-cta.is-down {
    bottom: 3.35rem;
}

.phone-shell-body .phone-scroll {
    padding-bottom: 6.5rem;
}

.phone-shell-body .signals-grid {
    grid-template-columns: 1fr;
}

.phone-shell-body .modal-overlay {
    position: absolute !important;
    inset: 0;
    z-index: 400 !important;
}

.phone-shell-body .site-header,
.phone-shell-body .lang-switcher {
    overflow: visible;
}

.phone-shell-body .lang-panel {
    z-index: 450;
}

.phone-shell-body .phone-device {
    position: relative;
}

@media (max-width: 430px) {
    body.phone-shell-body { padding: 0; }
    .phone-device {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
    .phone-notch { display: none; }
}

