/* ==========================================
   嵩云资产 - 科技金融主题样式表
   Deep Blue + Tech 主题
   ========================================== */

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a1f2e;
    --bg-card-hover: #1e2538;
    --bg-nav: rgba(10, 14, 26, 0.95);
    --text-primary: #e8edf5;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-blue-dark: #1d4ed8;
    --accent-gold: #f59e0b;
    --accent-gradient: linear-gradient(135deg, #3b82f6, #06b6d4);
    --accent-gradient-warm: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --profit-color: #ef4444;
    --loss-color: #22c55e;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(59, 130, 246, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================
   导航栏
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(33, 150, 243, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   首页 Hero
   ========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(33, 150, 243, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 188, 212, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 20%, rgba(33, 150, 243, 0.04) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(33, 150, 243, 0.12);
    border: 1px solid rgba(33, 150, 243, 0.25);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-title br {
    display: none;
}

@media (min-width: 640px) {
    .hero-title br {
        display: inline;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-indicators {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 32px;
    margin-top: 64px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.indicator-item {
    text-align: center;
}

.indicator-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.indicator-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ==========================================
   通用按钮
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(33, 150, 243, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    background: rgba(33, 150, 243, 0.1);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ==========================================
   通用 Section 样式
   ========================================== */

section {
    padding: 80px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ==========================================
   核心业务
   ========================================== */

.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
}

.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(33, 150, 243, 0.2);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(33, 150, 243, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--accent-cyan);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-features {
    list-style: none;
}

.service-features li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features i {
    color: var(--profit-color);
    font-size: 0.75rem;
}

/* ==========================================
   模拟盘数据
   ========================================== */

.portfolio-section {
    background: var(--bg-primary);
}

.portfolio-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 8px;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.summary-card:hover {
    border-color: rgba(33, 150, 243, 0.2);
    background: var(--bg-card-hover);
}

.summary-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
}

.total-asset .summary-value {
    color: var(--accent-cyan);
}

.total-profit .summary-value {
    color: var(--profit-color);
}

.total-profit.negative .summary-value {
    color: var(--loss-color);
}

.profit-rate .summary-value {
    color: var(--profit-color);
}

.profit-rate.negative .summary-value {
    color: var(--loss-color);
}

.available-cash .summary-value {
    color: var(--text-secondary);
}

.frozen-money .summary-value {
    color: #f0ad4e;
}

/* 委托挂单 */
#pendingOrders {
    margin-bottom: 16px;
}

.pending-header h3 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pending-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(240,173,78,0.08);
    border: 1px solid rgba(240,173,78,0.2);
    border-radius: 8px;
    font-size: 0.85rem;
}

.pending-item .stock-name {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 70px;
}

.pending-item .stock-code {
    color: var(--text-muted);
    min-width: 70px;
}

.pending-item .pending-dir {
    color: var(--loss-color);
    font-weight: 500;
    min-width: 40px;
}

.pending-item .pending-price {
    color: var(--text-primary);
    min-width: 70px;
}

.pending-item .pending-shares {
    color: var(--text-secondary);
    min-width: 70px;
}

.pending-item .pending-status {
    color: #f0ad4e;
    font-size: 0.8rem;
    background: rgba(240,173,78,0.15);
    padding: 2px 8px;
    border-radius: 4px;
}

.update-time {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 8px 0 32px;
}

.holdings-container {
    max-width: 1100px;
    margin: 0 auto;
}

.holdings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.holdings-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.holdings-legend {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
}

.legend-profit::before,
.legend-loss::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 6px;
}

.legend-profit::before {
    background: var(--profit-color);
}

.legend-loss::before {
    background: var(--loss-color);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.holdings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.holdings-table th {
    background: var(--bg-card);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.holdings-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}

.holdings-table tbody tr {
    transition: var(--transition);
}

.holdings-table tbody tr:hover {
    background: rgba(33, 150, 243, 0.04);
}

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

.loading-row {
    text-align: center;
    padding: 40px 16px !important;
    color: var(--text-muted);
}

.stock-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stock-code {
    color: var(--text-muted);
    font-weight: 400;
}

.profit-positive {
    color: var(--profit-color);
}

.profit-negative {
    color: var(--loss-color);
}

.progress-bar-wrap {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* ==========================================
   团队成员
   ========================================== */

.team-section {
    background: var(--bg-secondary);
    overflow: hidden;
}

/* ==========================================
   组织架构图
   ========================================== */
.org-chart {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.org-level {
    display: flex;
    justify-content: center;
    gap: 60px;
    position: relative;
}

.org-top {
    margin-bottom: 0;
}

.org-mid {
    margin: 0;
    gap: 120px;
}

.org-bottom {
    margin-top: 0;
    gap: 24px;
}

.org-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    text-align: center;
    min-width: 160px;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.org-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.org-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.2rem;
    color: #fff;
}

.org-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.org-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* 角色颜色 */
.org-ceo .org-icon { background: linear-gradient(135deg, #f57c00, #ffa726); }
.org-ceo { border-color: rgba(255, 193, 7, 0.3); }
.org-vp .org-icon { background: linear-gradient(135deg, #01579b, #29b6f6); }
.org-vp { border-color: rgba(41, 182, 246, 0.2); }
.org-supervisor .org-icon { background: linear-gradient(135deg, #b71c1c, #ef5350); }
.org-supervisor { border-color: rgba(239, 83, 80, 0.2); }
.org-ta .org-icon { background: linear-gradient(135deg, #00695c, #26a69a); }
.org-ta { border-color: rgba(38, 166, 154, 0.2); }
.org-hedge .org-icon { background: linear-gradient(135deg, #e65100, #ff9800); }
.org-hedge { border-color: rgba(255, 152, 0, 0.2); }
.org-buffett .org-icon { background: linear-gradient(135deg, #4a148c, #ab47bc); }
.org-buffett { border-color: rgba(171, 71, 188, 0.2); }
.org-cc .org-icon { background: linear-gradient(135deg, #0d47a1, #42a5f5); }
.org-cc { border-color: rgba(66, 165, 245, 0.2); }

/* 连接线 - 使用CSS连线 */
.org-lines, .org-lines-bottom {
    position: relative;
    height: 40px;
    display: flex;
    justify-content: center;
}

.line-v {
    position: absolute;
    width: 2px;
    height: 40px;
    background: rgba(41, 182, 246, 0.3);
    top: 0;
    left: 50%;
}

.line-h {
    position: absolute;
    width: 60%;
    height: 2px;
    background: rgba(41, 182, 246, 0.25);
    top: 20px;
    left: 20%;
}

.org-lines-bottom .line-h {
    width: 75%;
    left: 12.5%;
}

/* 响应式 */
@media (max-width: 768px) {
    .org-mid {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    .org-bottom {
        flex-wrap: wrap;
        gap: 12px;
    }
    .org-card {
        min-width: 130px;
        padding: 14px 16px;
    }
    .org-lines, .org-lines-bottom { display: none; }
}

/* ==========================================
   联系我们
   ========================================== */

.contact-section {
    background: var(--bg-primary);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item i {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(33, 150, 243, 0.1);
    border-radius: var(--radius-sm);
    color: var(--accent-cyan);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
}

.form-group {
    margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ==========================================
   页脚
   ========================================== */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
    text-align: center;
}

.footer-content {
    max-width: 700px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================
   返回顶部
   ========================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(33, 150, 243, 0.4);
}

/* ==========================================
   动画
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   响应式 - 移动端
   ========================================== */

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg-nav);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 12px 16px;
        width: 100%;
    }

    section {
        padding: 60px 16px;
    }

    .hero {
        min-height: 90vh;
        padding: 80px 16px 40px;
    }

    .hero-indicators {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px 16px;
        margin-top: 40px;
    }

    .indicator-value {
        font-size: 1.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .summary-card {
        padding: 16px;
    }

    .summary-value {
        font-size: 1.2rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .holdings-table {
        font-size: 0.8rem;
    }

    .holdings-table th,
    .holdings-table td {
        padding: 10px 12px;
    }

    .progress-bar-wrap {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .hero-indicators {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 12px;
    }

    .portfolio-summary {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   数据加载状态
   ========================================== */

.error-state {
    text-align: center;
    padding: 40px 20px;
}

.error-state i {
    font-size: 2.5rem;
    color: var(--loss-color);
    margin-bottom: 12px;
}

.error-state p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================
   隐私政策弹窗
   ========================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid rgba(79,195,247,0.2);
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    color: var(--accent-light);
    margin-bottom: 8px;
}

.modal-content h3 {
    color: var(--accent);
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1rem;
}

.modal-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.modal-footer {
    text-align: center;
    color: var(--text-muted) !important;
    font-size: 0.8rem !important;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 联系表单隐私声明 */
.form-privacy {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

.form-privacy a {
    color: var(--accent);
    text-decoration: underline;
}

/* 页脚合规声明 */
.footer-icp {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
}

.footer-security {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
    opacity: 0.7;
}

/* Print */
/* ==========================================
   总资产走势图
   ========================================== */
.etf-section {
    padding: 60px 24px 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.etf-section .update-time.center {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.6;
    margin-top: 8px;
}

.chart-header-bar {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 1.4rem;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
}

.chart-update {
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.chart-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-val {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: ui-monospace, Consolas, monospace;
    font-variant-numeric: tabular-nums;
}

.stat-val.up   { color: #ef5350; }
.stat-val.down { color: #4caf50; }

.chart-canvas-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    overflow: hidden;
}

.chart-canvas-wrap {
    position: relative;
}

.chart-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: auto;
}

/* 悬停提示框 */
.chart-tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(26, 31, 46, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 14px;
    text-align: center;
    z-index: 10;
    backdrop-filter: blur(4px);
    min-width: 80px;
}

.chart-tooltip .tip-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.chart-tooltip .tip-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: ui-monospace, Consolas, monospace;
    font-variant-numeric: tabular-nums;
}

.chart-tooltip .tip-pct {
    font-size: 0.75rem;
    font-weight: 500;
    font-family: ui-monospace, Consolas, monospace;
}

.chart-tooltip .tip-pct.up   { color: #ef5350; }
.chart-tooltip .tip-pct.down { color: #4caf50; }

.chart-note {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.78rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.chart-note strong {
    color: var(--text-primary);
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

/* Print */
@media print {
    .navbar,
    .back-to-top {
        display: none;
    }
}

/* ==========================================
   四维模型分析样式
   ========================================== */
.four-dimension-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.four-dimension-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 60px;
    align-items: center;
}

.four-dimension-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    flex: 1;
    border: 1px solid var(--border-color);
}

.four-dimension-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: white;
}

.four-dimension-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.four-dimension-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 15px;
}

.four-dimension-features {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.feature-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 12px;
    color: var(--text-secondary);
}

@media (max-width: 992px) {
    .four-dimension-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .four-dimension-features {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .four-dimension-features {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   UI/UX Pro Max 视觉增强（2026-06-03）
   ========================================== */

/* 卡片悬浮动效增强 */
.section-card,
.card,
.feature-card,
.team-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.section-card:hover,
.card:hover,
.feature-card:hover,
.team-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* 渐变文字微调 */
.gradient-text,
[class*="gradient"] {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 数据卡片高亮 - 持仓盈亏等数字 */
.data-value,
.stat-value,
.price-up {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.profit-color,
.price-up {
    color: var(--profit-color);
}

.loss-color,
.price-down {
    color: var(--loss-color);
}

/* 表格行 hover 效果增强 */
.table-row:hover,
.data-row:hover,
.position-row:hover {
    background: rgba(59, 130, 246, 0.06);
    transition: background 0.2s ease;
}

/* 边框发光微效果 */
.accent-border {
    border: 1px solid var(--border-glow);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.05);
}

/* 分隔线更柔和 */
hr,
.divider,
.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

/* 按钮点击反馈 */
.btn:active {
    transform: scale(0.97);
}

/* 徽章标签优化 */
.badge,
.tag,
.label-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* 平滑滚动增强 */
html {
    scroll-behavior: smooth;
}

/* 页面加载淡入效果（可选类，需要HTML配合添加 fade-in） */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.05); }
    50% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.15); }
}

.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}
