:root {
    --bg-base: #050816;
    --bg-elevated: rgba(12, 18, 36, 0.72);
    --bg-card: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.09) 0%,
        rgba(255, 255, 255, 0.03) 42%,
        rgba(255, 255, 255, 0.015) 100%
    );
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #cbd5e1;
    --accent: #38bdf8;
    --accent-strong: #0ea5e9;
    --accent-deep: #2563eb;
    --success: #22c55e;
    --warning: #facc15;
    --danger: #ef4444;
    --radius-sm: 16px;
    --radius-md: 22px;
    --radius-lg: 28px;
    --radius-xl: 32px;
    --shadow-soft:
        0 4px 6px rgba(0, 0, 0, 0.12),
        0 18px 40px rgba(0, 0, 0, 0.28);
    --shadow-card:
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 12px 32px rgba(0, 0, 0, 0.34),
        0 28px 64px rgba(2, 6, 23, 0.42);
    --shadow-card-hover:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 18px 42px rgba(0, 0, 0, 0.38),
        0 36px 80px rgba(14, 165, 233, 0.12);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --font-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.background-grid {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 44px 44px;
    z-index: -2;
    animation: gridDrift 28s linear infinite;
}

body::before {
    content: "";
    position: fixed;
    top: -22%;
    right: -8%;
    width: 760px;
    height: 760px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1), transparent 72%);
    z-index: -1;
    animation: glowPulse 10s ease-in-out infinite;
}

body::after {
    content: "";
    position: fixed;
    bottom: -18%;
    left: 18%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 248px;
    height: 100vh;
    background: rgba(8, 13, 28, 0.88);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 18px 0 48px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
    padding: 48px 24px;
}

.sidebar-logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--accent);
    margin-bottom: 72px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-item {
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition:
        transform 0.35s var(--ease-out),
        background 0.35s var(--ease-out),
        border-color 0.35s var(--ease-out),
        box-shadow 0.35s var(--ease-out),
        color 0.35s var(--ease-out);
}

.menu-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.menu-item.active {
    background: linear-gradient(120deg, var(--accent-strong), var(--accent-deep));
    border-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(14, 165, 233, 0.28);
}

.main-content {
    margin-left: 248px;
    padding: 56px clamp(28px, 3.2vw, 64px) 88px;
    max-width: none;
    width: calc(100% - 248px);
    box-sizing: border-box;
}

.layout-analytics {
    display: block;
}

.layout-documents {
    display: block;
}

#section-ai {
    display: block;
}

.risk-layout {
    display: block;
}

@media (min-width: 1180px) {
    .layout-documents {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
        gap: 36px 40px;
        align-items: start;
    }

    .risk-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(260px, 32%);
        gap: 24px 28px;
        align-items: stretch;
    }

    #section-risk .risk-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1480px) {
    .layout-documents {
        grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
    }
}

.topbar {
    margin-bottom: 72px;
    animation: fadeInUp 0.7s var(--ease-out) both;
}

.top-title {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.top-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
    margin-top: 14px;
    max-width: 42rem;
}

.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
    min-height: 56vh;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s var(--ease-out) 0.08s both;
}

.hero-left {
    width: 60%;
}

.hero-tag {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 28px;
    animation: tagFloat 4.5s ease-in-out infinite;
}

.hero-left h1 {
    font-size: clamp(2.8rem, 5vw, 4.25rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 28px;
}

.hero-left p {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-secondary);
    max-width: 38rem;
}

.hero-right {
    width: 35%;
}

.glass-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(24px) saturate(140%);
    box-shadow: var(--shadow-card);
    transition:
        transform 0.45s var(--ease-out),
        border-color 0.45s var(--ease-out),
        box-shadow 0.45s var(--ease-out);
    animation: fadeInUp 0.75s var(--ease-out) both;
}

.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 255, 255, 0.02) 28%,
        transparent 55%
    );
    pointer-events: none;
}

.glass-card:hover {
    border-color: rgba(56, 189, 248, 0.28);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.card-title {
    position: relative;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.risk-score {
    position: relative;
    font-size: clamp(4rem, 7vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
    color: var(--accent);
}

.risk-status {
    position: relative;
    margin-top: 8px;
    color: var(--success);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

section {
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 2.5vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 88px 0 36px;
}

.text-input-card {
    padding: 40px;
}

.pdf-input {
    width: 100%;
    margin-bottom: 28px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    transition:
        border-color 0.35s var(--ease-out),
        background 0.35s var(--ease-out),
        box-shadow 0.35s var(--ease-out);
}

.pdf-input:hover,
.pdf-input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

textarea {
    width: 100%;
    min-height: 280px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.98rem;
    line-height: 1.85;
    padding: 24px;
    resize: vertical;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition:
        border-color 0.35s var(--ease-out),
        background 0.35s var(--ease-out),
        box-shadow 0.35s var(--ease-out);
}

textarea::placeholder {
    color: rgba(148, 163, 184, 0.72);
}

textarea:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.34);
    background: rgba(255, 255, 255, 0.05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 4px rgba(56, 189, 248, 0.12);
}

button {
    width: 100%;
    margin-top: 24px;
    padding: 18px 22px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(120deg, var(--accent-strong), var(--accent-deep));
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.18) inset,
        0 14px 30px rgba(37, 99, 235, 0.28);
    transition:
        transform 0.35s var(--ease-out),
        box-shadow 0.35s var(--ease-out),
        filter 0.35s var(--ease-out);
}

button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 18px 36px rgba(37, 99, 235, 0.34);
}

button:active {
    transform: translateY(0);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.data-card {
    min-height: 220px;
}

.dashboard-grid .glass-card:nth-child(1) {
    animation-delay: 0.1s;
}

.dashboard-grid .glass-card:nth-child(2) {
    animation-delay: 0.16s;
}

.dashboard-grid .glass-card:nth-child(3) {
    animation-delay: 0.22s;
}

.dashboard-grid .glass-card:nth-child(4) {
    animation-delay: 0.28s;
}

.small-title {
    position: relative;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.big-number {
    position: relative;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--accent);
}

.analysis-result {
    position: relative;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.85;
    color: var(--success);
}

.risk-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.risk-item {
    min-height: 240px;
}

.risk-grid .glass-card:nth-child(1) {
    animation-delay: 0.12s;
}

.risk-grid .glass-card:nth-child(2) {
    animation-delay: 0.18s;
}

.risk-grid .glass-card:nth-child(3) {
    animation-delay: 0.24s;
}

.risk-label {
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 22px;
}

.risk-value {
    position: relative;
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.red .risk-value {
    color: var(--danger);
}

.yellow .risk-value {
    color: var(--warning);
}

.green .risk-value {
    color: var(--success);
}

.risk-desc {
    position: relative;
    font-size: 0.98rem;
    line-height: 1.85;
    color: var(--text-muted);
}

.pdf-content {
    max-height: min(72vh, 720px);
    overflow-y: auto;
    padding: 36px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.risk-aside {
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 0;
}

.risk-aside-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.risk-aside-lead,
.risk-aside-hint {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.risk-aside-hint {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.risk-aside-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.risk-aside-list li {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.risk-aside-k {
    display: inline-block;
    min-width: 3em;
    margin-right: 8px;
    font-weight: 700;
    color: var(--accent);
}

.metric-card .big-number.is-placeholder,
.risk-item .risk-value.is-placeholder {
    color: var(--text-secondary);
    font-weight: 600;
    opacity: 0.9;
}

.statement-card li.is-placeholder {
    opacity: 0.78;
    color: var(--text-secondary);
}

.pdf-content::-webkit-scrollbar {
    width: 8px;
}

.pdf-content::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}

.pdf-content pre {
    position: relative;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-muted);
}

.statement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 28px;
}

.statement-card {
    min-height: 280px;
}

.statement-grid .glass-card:nth-child(1) {
    animation-delay: 0.1s;
}

.statement-grid .glass-card:nth-child(2) {
    animation-delay: 0.16s;
}

.statement-grid .glass-card:nth-child(3) {
    animation-delay: 0.22s;
}

.statement-grid .glass-card:nth-child(4) {
    animation-delay: 0.28s;
}

.statement-title {
    position: relative;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}

.statement-card li {
    position: relative;
    font-size: 0.98rem;
    line-height: 2.05;
    color: var(--text-muted);
}

.note-card {
    position: relative;
    padding: 36px;
    font-size: 1rem;
    line-height: 2;
    color: var(--text-muted);
}

.meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.92rem;
}

.insight-card,
.enterprise-card {
    margin-top: 28px;
}

.insight-text,
.enterprise-desc,
.metric-note {
    position: relative;
    color: var(--text-muted);
    line-height: 1.85;
}

.insight-text {
    margin-top: 12px;
}

.keyword-grid,
.metrics-grid {
    display: grid;
    gap: 24px;
    margin-top: 28px;
}

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

.metrics-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric-card,
.keyword-card {
    min-height: 180px;
}

.enterprise-name {
    position: relative;
    margin-top: 12px;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--accent);
}

button.is-loading {
    opacity: 0.82;
    cursor: wait;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tagFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes gridDrift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 44px 44px;
    }
}

@keyframes glowPulse {
    0%,
    100% {
        opacity: 0.85;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 1200px) {
    .main-content {
        padding: 48px 40px 72px;
    }

    .dashboard-grid,
    .risk-grid,
    .keyword-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    #section-risk .risk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1179px) {
    .layout-documents {
        display: block;
    }

    .risk-layout {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .risk-aside {
        order: 3;
    }
}

@media (max-width: 900px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        box-shadow: none;
    }

    .main-content {
        margin-left: 0;
        padding: 32px 24px 56px;
        width: 100%;
    }

    .hero-section {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
    }

    .hero-left,
    .hero-right {
        width: 100%;
    }

    .dashboard-grid,
    .risk-grid,
    .statement-grid,
    .keyword-grid,
    .metrics-grid {
        grid-template-columns: 1fr;
    }

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

    .metrics-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .metrics-note {
        grid-column: 1;
    }
}

/* ========== Theme: Analyst (Stripe / Notion-like, light) ========== */

body.theme-analyst .data-workspace > section {
    margin-bottom: 48px;
}

body.theme-analyst .data-workspace > .layout-documents {
    margin-bottom: 48px;
}

body.theme-analyst {
    --bg-base: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #475569;
    --accent: #ea580c;
    --accent-strong: #c2410c;
    --accent-deep: #9a3412;
    --accent-soft: #fff7ed;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --border-subtle: #e2e8f0;
    --shadow-card:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-card-hover:
        0 2px 4px rgba(15, 23, 42, 0.06),
        0 8px 24px rgba(15, 23, 42, 0.08);
    background: var(--bg-base);
    color: var(--text-primary);
}

body.theme-analyst .background-grid {
    display: block;
    opacity: 0.28;
    animation: none;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.2) 1px, transparent 0);
    background-size: 28px 28px;
}

body.theme-analyst::before,
body.theme-analyst::after {
    display: none;
    content: none;
}

/* —— 首屏：流体背景（仅 hero 区域，受 monopo 类站点启发，自实现）—— */
.hero-atmosphere {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: -8px -4px 0;
    padding: 0 4px 48px;
    border-radius: 0 0 28px 28px;
    background: linear-gradient(180deg, #ffffff 0%, #fffdfb 42%, #fff7ed 100%);
}

.hero-fluid {
    position: absolute;
    inset: -12% -8% -8% -8%;
    z-index: 0;
    pointer-events: none;
    filter: saturate(1.08);
}

.hero-fluid__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.85;
    mix-blend-mode: multiply;
    will-change: transform;
}

.hero-fluid__blob--1 {
    width: min(58vw, 520px);
    height: min(58vw, 520px);
    top: -8%;
    left: -6%;
    background: radial-gradient(circle, rgba(255, 237, 213, 0.95) 0%, rgba(254, 215, 170, 0.5) 55%, transparent 70%);
    animation: hero-fluid-drift-a 28s ease-in-out infinite;
}

.hero-fluid__blob--2 {
    width: min(48vw, 440px);
    height: min(48vw, 440px);
    top: 12%;
    right: -4%;
    background: radial-gradient(circle, rgba(255, 247, 237, 0.98) 0%, rgba(251, 146, 60, 0.35) 50%, transparent 68%);
    animation: hero-fluid-drift-b 34s ease-in-out infinite;
}

.hero-fluid__blob--3 {
    width: min(42vw, 380px);
    height: min(42vw, 380px);
    bottom: -6%;
    left: 22%;
    background: radial-gradient(circle, rgba(254, 243, 199, 0.9) 0%, rgba(253, 186, 116, 0.4) 52%, transparent 72%);
    animation: hero-fluid-drift-c 31s ease-in-out infinite;
}

.hero-fluid__blob--4 {
    width: min(36vw, 320px);
    height: min(36vw, 320px);
    bottom: 8%;
    right: 18%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 237, 213, 0.55) 45%, transparent 70%);
    animation: hero-fluid-drift-d 26s ease-in-out infinite;
    mix-blend-mode: soft-light;
    opacity: 0.65;
}

.hero-fluid__vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(
        ellipse 85% 70% at 50% 45%,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 55%,
        rgba(255, 250, 245, 0.55) 100%
    );
}

.hero-fluid__grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.hero-atmosphere__inner {
    position: relative;
    z-index: 3;
    padding-top: 8px;
}

@keyframes hero-fluid-drift-a {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    40% {
        transform: translate(4%, -5%) scale(1.06);
    }

    70% {
        transform: translate(-3%, 4%) scale(0.96);
    }
}

@keyframes hero-fluid-drift-b {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-5%, 5%) scale(1.05);
    }
}

@keyframes hero-fluid-drift-c {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    45% {
        transform: translate(6%, 3%) scale(1.04);
    }

    80% {
        transform: translate(-4%, -4%) scale(0.98);
    }
}

@keyframes hero-fluid-drift-d {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    60% {
        transform: translate(-3%, -6%) scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-fluid__blob {
        animation: none !important;
    }
}

/* —— 数据区：正式、无流体，偏报表阅读 —— */
.data-workspace {
    position: relative;
    margin-top: 8px;
    padding-top: 36px;
    padding-bottom: 56px;
    border-top: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, var(--bg-base) 12%, var(--bg-base) 100%);
}

.data-workspace::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 120px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, transparent 100%);
}

.data-workspace > section,
.data-workspace > .layout-documents {
    position: relative;
    z-index: 1;
}

.data-workspace .section-title-inline {
    border-left: 3px solid var(--accent);
    padding-left: 12px;
    margin-left: 0;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.data-workspace .glass-card {
    border: 1px solid #e5e7eb;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 1px 3px rgba(15, 23, 42, 0.05);
}

.data-workspace .glass-card:hover {
    border-color: #d1d5db;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 4px 14px rgba(15, 23, 42, 0.06);
}

.data-workspace .metrics-table {
    border: 1px solid #e5e7eb;
}

.data-workspace .metrics-row:nth-child(odd) {
    background: #fafafa;
}

.data-workspace .pdf-content,
.data-workspace .statement-card,
.data-workspace .note-card {
    border-color: #e5e7eb;
}

.data-workspace .pdf-content pre {
    font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
    font-size: 0.88rem;
    line-height: 1.65;
    font-feature-settings: "tnum" 1;
    color: #334155;
}

.data-workspace .statement-title {
    font-size: 1.05rem;
    font-weight: 650;
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.data-workspace .statement-card li {
    color: #334155;
    font-size: 0.92rem;
}

.data-workspace .note-card {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #475569;
}

.data-workspace .dashboard-grid .data-card,
.data-workspace .keyword-card {
    min-height: 160px;
}

body.theme-analyst .sidebar {
    background: #ffffff;
    border-right: 1px solid var(--border-subtle);
    box-shadow: 1px 0 0 rgba(15, 23, 42, 0.04);
}

body.theme-analyst .sidebar-logo {
    color: var(--accent);
}

body.theme-analyst .menu-item {
    background: #f8fafc;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

body.theme-analyst .menu-item:hover {
    background: #f1f5f9;
    color: var(--text-primary);
    border-color: var(--border-subtle);
    transform: none;
}

body.theme-analyst .menu-item.active {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

body.theme-analyst .glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    backdrop-filter: none;
    box-shadow: var(--shadow-card);
    animation: none;
}

body.theme-analyst .glass-card::before {
    display: none;
}

body.theme-analyst .glass-card:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
    box-shadow: var(--shadow-card-hover);
}

body.theme-analyst .topbar {
    margin-bottom: 40px;
    animation: none;
}

.hero-atmosphere .meta-pill {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.theme-analyst .top-kicker {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

body.theme-analyst .meta-pill {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

body.theme-analyst .hero-section {
    min-height: auto;
    margin-bottom: 40px;
    padding-bottom: 8px;
    animation: none;
}

body.theme-analyst .hero-tag {
    animation: none;
    background: rgba(255, 247, 237, 0.9);
    border: 1px solid rgba(251, 146, 60, 0.35);
    color: var(--accent-strong);
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.78rem;
}

body.theme-analyst .hero-score-card {
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 8px 32px rgba(234, 88, 12, 0.08);
}

body.theme-analyst .hero-left h1 {
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    margin-bottom: 16px;
}

body.theme-analyst .hero-left p {
    font-size: 1rem;
    color: var(--text-secondary);
}

body.theme-analyst .hero-score-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

body.theme-analyst .section-head {
    margin-bottom: 20px;
}

body.theme-analyst .section-title-inline {
    font-size: 1.25rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: var(--text-primary);
}

body.theme-analyst .section-lead {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 52rem;
}

body.theme-analyst .section-title,
body.theme-analyst section .section-title {
    margin: 56px 0 20px;
}

body.theme-analyst .section-upload .section-title,
body.theme-analyst .section-briefing .section-title-inline {
    margin: 0;
}

body.theme-analyst .section-upload {
    margin-bottom: 8px;
}

body.theme-analyst .section-briefing {
    margin-bottom: 16px;
}

body.theme-analyst .section-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

body.theme-analyst .badge-ai {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #c2410c;
    border: 1px solid #fdba74;
}

body.theme-analyst .badge-ai-muted {
    background: #f1f5f9;
    color: var(--text-secondary);
    border-color: var(--border-subtle);
}

body.theme-analyst .upload-panel {
    padding: 0;
    overflow: hidden;
}

body.theme-analyst .upload-panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border-subtle);
    background: #fafbfc;
}

body.theme-analyst .upload-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(145deg, #fff7ed, #ffedd5);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(251, 146, 60, 0.25);
}

body.theme-analyst .upload-panel-title {
    font-weight: 650;
    font-size: 1rem;
}

body.theme-analyst .upload-panel-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

body.theme-analyst .upload-dropzone {
    position: relative;
    margin: 20px 24px 0;
    min-height: 120px;
    border: 1.5px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    background: #fafbfc;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

body.theme-analyst .upload-dropzone.is-dragover {
    border-color: var(--accent);
    background: #fff7ed;
}

body.theme-analyst .upload-dropzone .pdf-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
    border: none;
    padding: 0;
}

body.theme-analyst .upload-dropzone-text {
    pointer-events: none;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

body.theme-analyst .upload-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 24px 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

body.theme-analyst .upload-divider::before,
body.theme-analyst .upload-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

body.theme-analyst .upload-textarea {
    margin: 16px 24px 0;
    width: calc(100% - 48px);
    min-height: 140px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    color: var(--text-primary);
    padding: 14px 16px;
    font-size: 0.92rem;
    resize: vertical;
    box-shadow: none;
}

body.theme-analyst .upload-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

body.theme-analyst .upload-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 20px 24px 22px;
    border-top: 1px solid var(--border-subtle);
    background: #fafbfc;
}

body.theme-analyst .btn-primary {
    width: auto;
    min-width: 200px;
    margin-top: 0;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    background: linear-gradient(180deg, #f97316 0%, #ea580c 55%, #c2410c 100%);
    color: #ffffff;
    border: 1px solid rgba(194, 65, 12, 0.35);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

body.theme-analyst .btn-primary:hover {
    transform: translateY(-1px);
    filter: none;
    opacity: 0.96;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.28);
}

body.theme-analyst .upload-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

body.theme-analyst .briefing-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: 8px;
}

body.theme-analyst .briefing-card {
    padding: 20px 18px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

body.theme-analyst .briefing-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

body.theme-analyst .briefing-index {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(145deg, #fb923c, #ea580c);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(234, 88, 12, 0.25);
}

body.theme-analyst .briefing-label {
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

body.theme-analyst .briefing-headline {
    font-size: 0.95rem;
    font-weight: 650;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.35;
}

body.theme-analyst .briefing-body {
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--text-muted);
    flex: 1;
    white-space: pre-wrap;
}

body.theme-analyst .lens-strip {
    margin-top: 22px;
    padding: 20px 22px 22px;
    border: 1px solid var(--border-subtle);
}

body.theme-analyst .lens-strip__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

body.theme-analyst .lens-strip__title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

body.theme-analyst .lens-strip__hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

body.theme-analyst .lens-strip__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

body.theme-analyst .lens-block--wide {
    grid-column: 1 / -1;
}

body.theme-analyst .lens-block--full {
    grid-column: 1 / -1;
}

body.theme-analyst .lens-block__label {
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

body.theme-analyst .lens-block__value {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
    color: var(--text-primary);
    line-height: 1.45;
}

body.theme-analyst .lens-block__text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-muted);
    white-space: pre-wrap;
}

@media (max-width: 640px) {
    body.theme-analyst .lens-strip__grid {
        grid-template-columns: 1fr;
    }
}

body.theme-analyst .insight-text {
    white-space: pre-wrap;
}

body.theme-analyst .insight-card-prominent {
    margin-top: 24px;
    padding: 22px 24px;
    border-left: 3px solid var(--accent);
}

body.theme-analyst .insight-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

body.theme-analyst .insight-card-hint {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

body.theme-analyst .risk-alert-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #fecaca;
    background: linear-gradient(90deg, #fef2f2 0%, #fff7ed 100%);
}

body.theme-analyst .risk-alert-score {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 16px 20px;
    background: #ffffff;
    border-right: 1px solid #fecaca;
    min-width: 140px;
}

body.theme-analyst .risk-alert-label {
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--danger);
}

body.theme-analyst .risk-alert-score strong {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

body.theme-analyst .risk-alert-status {
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--warning);
}

body.theme-analyst .risk-alert-text {
    flex: 1;
    padding: 16px 20px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #7f1d1d;
    display: flex;
    align-items: center;
}

body.theme-analyst .metrics-table {
    padding: 0;
    overflow: hidden;
}

body.theme-analyst .metrics-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(100px, 140px) minmax(0, 2fr);
    gap: 16px;
    align-items: center;
    padding: 14px 22px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
}

body.theme-analyst .metrics-row:last-child {
    border-bottom: none;
}

body.theme-analyst .metrics-name {
    font-weight: 600;
    color: var(--text-primary);
}

body.theme-analyst .metrics-value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    font-size: 1rem;
}

body.theme-analyst .metrics-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.45;
}

body.theme-analyst .risk-item.red {
    border-color: #fecaca;
    background: #fffafa;
}

body.theme-analyst .risk-item.yellow {
    border-color: #fde68a;
    background: #fffbeb;
}

body.theme-analyst .risk-item.green {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

body.theme-analyst .risk-aside-hint {
    border-top-color: var(--border-subtle);
}

body.theme-analyst .pdf-content pre,
body.theme-analyst .statement-card li,
body.theme-analyst .note-card {
    color: var(--text-secondary);
}

body.theme-analyst .big-number {
    color: var(--accent);
}

body.theme-analyst .analysis-result {
    color: var(--success);
    font-size: 0.92rem;
}

@media (max-width: 1280px) {
    body.theme-analyst .briefing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero-atmosphere {
        margin-left: 0;
        margin-right: 0;
        padding-bottom: 32px;
        border-radius: 0 0 18px 18px;
    }

    body.theme-analyst .briefing-grid {
        grid-template-columns: 1fr;
    }

    body.theme-analyst .risk-alert-bar {
        flex-direction: column;
    }

    body.theme-analyst .risk-alert-score {
        border-right: none;
        border-bottom: 1px solid #fecaca;
    }
}

/* 白底主题：逐层深入分隔 + 折叠深层模块 */
body.theme-analyst .cognitive-divider {
    position: relative;
    height: 1px;
    margin: clamp(40px, 7vh, 80px) 0;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

body.theme-analyst .cognitive-divider::after {
    content: "逐层深入";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0 14px;
    background: var(--bg-base);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

body.theme-analyst .layer-deep {
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: #ffffff;
    margin-bottom: clamp(28px, 4vh, 40px);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

body.theme-analyst .layer-deep__summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    transition: background 0.2s ease;
}

body.theme-analyst .layer-deep__summary::-webkit-details-marker {
    display: none;
}

body.theme-analyst .layer-deep__summary::after {
    content: "+";
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1;
}

body.theme-analyst .layer-deep[open] .layer-deep__summary::after {
    content: "−";
}

body.theme-analyst .layer-deep__summary:hover {
    background: #f8fafc;
}

body.theme-analyst .layer-deep__title {
    color: var(--text-primary);
}

body.theme-analyst .layer-deep__hint {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
}

body.theme-analyst .layer-deep__body {
    padding: 0 22px 22px;
    border-top: 1px solid var(--border-subtle);
    background: #fafbfc;
}

body.theme-analyst .layer-deep__body .dashboard-grid,
body.theme-analyst .layer-deep__body .keyword-grid {
    margin-top: 18px;
}
