/* ========================================================================= 
   项目: Gold Vault - 可视化大盘终端UI主题 (金黑极简质感版)
   Logo 配色关联: Pure Black (#000000) & Metallic Gold (#D4AF37, #FFDF00)
========================================================================= */

:root {
    /* 核心调色板：纯黑与赤金 */
    --bg-dark: #050505;
    --bg-panel: rgba(15, 15, 15, 0.85); /* 极深的深灰玻璃 */
    
    --gold-primary: #D4AF37;   /* 典雅质感金 */
    --gold-bright: #FFDF00;    /* 高亮跳动金 */
    --gold-dark: #8B6508;      /* 暗金边框 */
    
    --text-main: #EAEAEA;
    --text-muted: #888888;
    
    --danger: #FF3B30;
    
    /* 玻璃边缘特效与内外发光 */
    --glow-gold: 0 0 15px rgba(212, 175, 55, 0.4);
    --border-glass: 1px solid rgba(212, 175, 55, 0.2);
}

/* 基础重置与排版 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* =========================================================
   背景氛围层: 暗调颗粒 + 金色光晕流动
========================================================= */
.background-effects {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #0a0a09 0%, #000000 100%);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    animation: drift 20s infinite alternate ease-in-out;
}

.orb-gold-1 {
    width: 600px; height: 600px;
    background: var(--gold-primary);
    top: -10%; left: -10%;
}

.orb-gold-2 {
    width: 500px; height: 500px;
    background: var(--gold-dark);
    bottom: -20%; right: -10%;
    animation-delay: -5s;
}

.noise-overlay {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

@keyframes drift {
    100% { transform: translate(50px, 50px); }
}

/* =========================================================
   全局大盘 Dashboard 外框框架
========================================================= */
.dashboard-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 100vh;
}

/* 导航终端头 */
.dash-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 12px;
}

.dash-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 黑金蝴蝶 Logo 介入 */
.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
    animation: logoGlow 4s infinite alternate;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4)); transform: scale(1); }
    100% { filter: drop-shadow(0 0 15px rgba(255, 223, 0, 0.8)); transform: scale(1.02); }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-text .highlight {
    color: var(--gold-primary);
}

.version-tag {
    font-size: 0.7rem;
    background: var(--gold-dark);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: top;
    font-weight: bold;
}

.nav-center-slogan {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.nav-center-slogan .highlight {
    color: var(--gold-bright);
    text-shadow: 0 0 5px rgba(255, 223, 0, 0.5);
}

.warning-ticker {
    color: var(--danger);
    font-size: 0.75rem;
    animation: flashDanger 2s infinite;
}

@keyframes flashDanger {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; text-shadow: 0 0 8px rgba(255, 59, 48, 0.6); }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-right: 0.5rem;
    padding-right: 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    padding: 0.4rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--glow-gold);
}

.network-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.dot.live {
    width: 6px; height: 6px;
    background-color: #32D74B;
    border-radius: 50%;
    box-shadow: 0 0 8px #32D74B;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(50, 215, 75, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(50, 215, 75, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(50, 215, 75, 0); }
}

/* =========================================================
   UI 面板通用样式 (Glassmorphism & Sci-Fi Borders)
========================================================= */
.ui-frame {
    background: var(--bg-panel);
    border: var(--border-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.ui-frame::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}

.frame-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.icon-block {
    width: 12px; height: 12px;
    background: var(--gold-primary);
    transform: rotate(45deg);
    box-shadow: var(--glow-gold);
}

.icon-block.pulse {
    background: var(--gold-bright);
    animation: goldPulse 1.5s infinite alternate;
}

@keyframes goldPulse {
    0% { transform: rotate(45deg) scale(0.9); opacity: 0.6; }
    100% { transform: rotate(45deg) scale(1.2); opacity: 1; box-shadow: 0 0 15px var(--gold-bright); }
}

.frame-header h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-primary);
    letter-spacing: 1px;
}

/* =========================================================
   核心网格排版: Dashboard Main
========================================================= */
.dash-main-grid {
    display: grid;
    /* 核心区：左侧较窄（全局雷达），右侧较宽（个人仓位为主 C 位） */
    grid-template-columns: 1fr 1.3fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    flex-grow: 1;
}

/* =========================================================
   左侧大盘：全网监控雷达
========================================================= */
.global-stats-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1.2rem;
    border-radius: 8px;
    transition: transform 0.2s;
}

.stat-item:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.05);
}

.stat-item.border-gold {
    border-color: rgba(212, 175, 55, 0.6);
    background: rgba(212, 175, 55, 0.1);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

.gold-glow {
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* =========================================================
   右侧 C 位面板：我的独立分红舱 (Personal Terminal)
========================================================= */
.highlight-frame {
    border: 1px solid var(--gold-primary);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15) inset, 0 8px 32px rgba(0,0,0,0.8);
    background: rgba(15, 12, 5, 0.9);
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
}

.status-badge.disconnected { background: rgba(255,59,48,0.2); color: var(--danger); }
.status-badge.connected { background: rgba(50,215,75,0.2); color: #32D74B; }

.user-console-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 个人基础三围 */
.user-top-metrics, .user-bottom-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.user-bottom-metrics {
    grid-template-columns: 1fr;
    border-top: 1px dashed rgba(255,255,255,0.1);
    padding-top: 1rem;
}

.u-metric {
    background: rgba(0,0,0,0.5);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.u-metric label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.u-metric .val {
    font-size: 1.2rem;
    font-weight: 600;
}

.gold-text {
    color: var(--gold-primary);
}

/* 核心核弹领取区 (视觉极度放大) */
.core-claim-zone {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(0,0,0,0.8) 100%);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.core-claim-zone::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 200px; height: 200px;
    background: var(--gold-primary);
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
}

.core-claim-zone > * { position: relative; z-index: 1; }

.core-claim-zone label {
    font-size: 0.9rem;
    color: var(--gold-primary);
    letter-spacing: 1px;
}

.huge-claim-data {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--gold-bright);
    margin: 1rem 0 1.5rem;
    text-shadow: 0 0 20px rgba(255, 223, 0, 0.8), 0 0 40px rgba(255, 223, 0, 0.4);
    letter-spacing: -2px;
}

.btn-gold {
    background: linear-gradient(90deg, #D4AF37, #FFDF00);
    color: #000;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    width: 100%;
    max-width: 400px;
}

.btn-gold:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 223, 0, 0.6);
    background: linear-gradient(90deg, #FFDF00, #FFF8DC);
}

.btn-gold:disabled {
    background: #333;
    color: #666;
    box-shadow: none;
    cursor: not-allowed;
    border: 1px solid #444;
}

.claim-footer {
    margin-top: 1.2rem;
    font-size: 0.8rem;
    color: rgba(255,59,48,0.9);
}

/* =========================================================
   左下：运行法则网格
========================================================= */
.mech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mech-card {
    background: rgba(0,0,0,0.4);
    border-top: 2px solid rgba(255,255,255,0.05);
    padding: 1.2rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.mech-card:hover {
    border-top-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
}

.m-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.2);
    margin-bottom: -10px;
}

.mech-card h4 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.mech-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================================================
   右下：高级终端 FAQ 折叠面板
========================================================= */
.panel-faq {
    display: flex;
    flex-direction: column;
}

.faq-accordion-scrollable {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
    max-height: 400px; /* 维持网格高度一致性 */
}

/* 自定义滚动条金光版 */
.faq-accordion-scrollable::-webkit-scrollbar {
    width: 6px;
}
.faq-accordion-scrollable::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.5);
}
.faq-accordion-scrollable::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 3px;
}

.accordion-item {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 0.5rem;
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1rem 0.5rem;
    text-align: left;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.accordion-header:hover {
    color: var(--gold-primary);
}

.accordion-icon {
    font-family: 'JetBrains Mono', monospace;
    color: var(--gold-primary);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}
.accordion-item.active .accordion-header {
    color: var(--gold-bright);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.accordion-content p {
    padding: 0 0.5rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* =========================================================
   页脚与通用组件
========================================================= */
.dash-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-top: 1px dashed rgba(255,255,255,0.1);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #666;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 4px; height: 4px;
    background: var(--gold-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.btn-primary {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: var(--glow-gold);
}

.btn-connected {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s;
    outline: none;
}

.btn-connected:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--gold-primary);
}

/* =========================================================
   响应式折叠逻辑 (Mobile / Tablet)
========================================================= */
@media (max-width: 1200px) {
    .dash-main-grid {
        grid-template-columns: 1fr;
    }
    .core-claim-zone {
        padding: 2rem 1rem;
    }
    .mech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dash-nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .user-top-metrics, .global-stats-inner {
        grid-template-columns: 1fr;
    }
    .mech-grid {
        grid-template-columns: 1fr;
    }
    .huge-claim-data {
        font-size: 2.2rem;
    }
}
