/* =====================================================
   AI Insight - Invest Section Shared Styles
   继承主站 Stone 色系 + 琥珀强调色，扩展投资专用色
   ===================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* ---- 继承主站变量（与 video.css / reports.ejs 保持一致）---- */
    --bg: #fafaf9;
    --bg-alt: #f5f5f4;
    --card: #ffffff;
    --border: #e7e5e4;
    --border-dark: #d6d3d1;
    --text: #1c1917;
    --text-secondary: #57534e;
    --text-tertiary: #78716c;
    --accent: #c4956a;
    --accent-soft: #d4a574;

    /* ---- 投资板块扩展色 ---- */
    --invest-success: #15803d;
    --invest-success-bg: #f0fdf4;
    --invest-success-border: #bbf7d0;
    --invest-danger: #dc2626;
    --invest-danger-bg: #fef2f2;
    --invest-danger-border: #fecaca;
    --invest-neutral: #78716c;
    --invest-neutral-bg: #f5f5f4;

    /* 金融强调色：比主琥珀更深沉，用于大标题数字、估值高亮 */
    --invest-gold: #b45309;
    --invest-gold-bg: rgba(180, 83, 9, 0.08);

    /* ---- 赛道标签色系（6 个主赛道）---- */
    --sector-llm-bg: rgba(124, 58, 237, 0.08);
    --sector-llm-text: #6d28d9;
    --sector-robot-bg: rgba(37, 99, 235, 0.08);
    --sector-robot-text: #1d4ed8;
    --sector-infra-bg: rgba(5, 150, 105, 0.08);
    --sector-infra-text: #047857;
    --sector-agent-bg: rgba(196, 149, 106, 0.12);
    --sector-agent-text: #92400e;
    --sector-chip-bg: rgba(220, 38, 38, 0.08);
    --sector-chip-text: #b91c1c;
    --sector-app-bg: rgba(15, 118, 110, 0.08);
    --sector-app-text: #0f766e;

    /* ---- 融资轮次色 ---- */
    --round-seed: rgba(196, 149, 106, 0.15);
    --round-seed-text: #92400e;
    --round-a: rgba(37, 99, 235, 0.12);
    --round-a-text: #1d4ed8;
    --round-b: rgba(22, 163, 74, 0.12);
    --round-b-text: #15803d;
    --round-c: rgba(124, 58, 237, 0.12);
    --round-c-text: #6d28d9;
    --round-growth: rgba(217, 119, 6, 0.12);
    --round-growth-text: #b45309;
    --round-ipo: rgba(220, 38, 38, 0.12);
    --round-ipo-text: #b91c1c;
}

/* =====================================================
   基础
   ===================================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =====================================================
   布局
   ===================================================== */
.invest-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 兼容主站 .container 类（与 video.css 一致） */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.invest-header-section {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border);
}

.invest-header-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 8px;
    color: var(--text);
}

.invest-header-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
}

/* 卡片网格：响应式 3→2→1 列 */
.invest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0 60px;
}

/* =====================================================
   Header（与主站 sticky 磨砂玻璃一致）
   ===================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 249, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
}

.logo:hover { text-decoration: none; }

.logo-mark {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

.nav a {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.15s;
    text-decoration: none;
}

.nav a:hover, .nav a.active {
    color: var(--accent);
    background: rgba(196, 149, 106, 0.08);
}

/* 投资页面导航高亮 */
.nav-invest-active {
    color: var(--accent) !important;
    background: rgba(196, 149, 106, 0.08) !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn {
    padding: 7px 16px;
    background: var(--text);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
    text-decoration: none;
}

.login-btn:hover {
    background: #292524;
    text-decoration: none;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

/* =====================================================
   研报卡片（.invest-card）
   ===================================================== */
.invest-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.invest-card:hover {
    border-color: rgba(196, 149, 106, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
    text-decoration: none;
}

/* 精选卡片 */
.invest-card.featured {
    border-top: 4px solid var(--accent);
}

.invest-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.invest-card-meta-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.invest-card-date {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-left: auto;
    white-space: nowrap;
    font-feature-settings: 'tnum';
}

.invest-card-num {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    font-feature-settings: 'tnum';
    margin-bottom: 4px;
}

.invest-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 4px;
}

.invest-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 卡片底部数据行 */
.invest-card-data {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    flex-wrap: wrap;
}

.invest-card-data .amount {
    font-size: 15px;
}

/* =====================================================
   公司卡片（.company-card）
   ===================================================== */
.company-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.company-card:hover {
    border-color: rgba(196, 149, 106, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    text-decoration: none;
}

.company-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    object-fit: contain;
    padding: 4px;
    background: var(--bg-alt);
}

.company-logo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.company-info {
    flex: 1;
    min-width: 0;
}

.company-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.company-oneliner {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

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

.company-stat strong {
    color: var(--text);
    font-weight: 600;
}

/* =====================================================
   融资时间线（.funding-timeline）
   ===================================================== */
.funding-timeline {
    position: relative;
    padding-left: 24px;
    margin: 24px 0 40px;
}

.funding-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding: 0 0 28px 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -28px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--invest-gold);
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 2px var(--invest-gold);
    transition: transform 0.15s;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
}

/* 最新节点加强样式 */
.timeline-item.latest .timeline-dot {
    width: 12px;
    height: 12px;
    left: -29px;
    top: 3px;
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.2);
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 4px;
    font-feature-settings: 'tnum';
}

.timeline-amount {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--invest-gold);
    margin-bottom: 6px;
    font-feature-settings: 'tnum';
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.timeline-investors {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.timeline-detail {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =====================================================
   标签系统
   ===================================================== */

/* 赛道标签 */
.sector-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.sector-tag.llm    { background: var(--sector-llm-bg);    color: var(--sector-llm-text); }
.sector-tag.robot  { background: var(--sector-robot-bg);  color: var(--sector-robot-text); }
.sector-tag.infra  { background: var(--sector-infra-bg);  color: var(--sector-infra-text); }
.sector-tag.agent  { background: var(--sector-agent-bg);  color: var(--sector-agent-text); }
.sector-tag.chip   { background: var(--sector-chip-bg);   color: var(--sector-chip-text); }
.sector-tag.app    { background: var(--sector-app-bg);    color: var(--sector-app-text); }

/* 融资轮次标签（.round-tag 或 .round-badge）*/
.round-tag,
.round-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.round-seed   { background: var(--round-seed);   color: var(--round-seed-text); }
.round-a,
.round-series-a { background: var(--round-a);    color: var(--round-a-text); }
.round-b,
.round-series-b { background: var(--round-b);    color: var(--round-b-text); }
.round-c,
.round-series-c { background: var(--round-c);    color: var(--round-c-text); }
.round-growth { background: var(--round-growth); color: var(--round-growth-text); }
.round-ipo    { background: var(--round-ipo);    color: var(--round-ipo-text); }

/* 通用 invest-tag 变体 */
.invest-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.tag-sector { background: var(--bg-alt);                     color: var(--text-secondary); }
.tag-stage  { background: rgba(37, 99, 235, 0.1);            color: #1d4ed8; }
.tag-hot    { background: var(--invest-gold-bg);              color: var(--invest-gold); }
.tag-new    { background: rgba(22, 163, 74, 0.1);             color: var(--invest-success); }
.tag-pro    { background: rgba(196, 149, 106, 0.12);          color: var(--accent); }
.tag-max    { background: linear-gradient(135deg, #c4956a, #7c3aed); color: #fff; }

/* 涨跌信号色 */
.signal-up   { color: var(--invest-success); font-weight: 600; }
.signal-down { color: var(--invest-danger);  font-weight: 600; }

/* 估值/金额高亮 */
.valuation,
.amount {
    font-weight: 700;
    color: var(--invest-gold);
    font-feature-settings: 'tnum';
    letter-spacing: -0.01em;
}

/* =====================================================
   筛选栏（.invest-filters）
   ===================================================== */
.invest-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.invest-filter-btn,
.filter-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.invest-filter-btn:hover,
.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.invest-filter-btn.active,
.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* 排序下拉 */
.sort-select {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    margin-left: auto;
    outline: none;
}

.sort-select:focus {
    border-color: var(--accent);
}

/* 分页 */
.invest-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 32px 0;
}

.page-btn {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.page-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* =====================================================
   数据表格（.invest-table）
   ===================================================== */
.invest-table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.invest-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.invest-table th {
    padding: 10px 16px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.invest-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

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

.invest-table tr:hover td {
    background: var(--bg-alt);
}

.invest-table td.amount,
.invest-table td.valuation {
    color: var(--invest-gold);
    font-weight: 700;
    font-feature-settings: 'tnum';
}

.invest-table td.featured-row {
    font-weight: 600;
    color: var(--text);
}

.invest-table td.pos { color: var(--invest-success); font-weight: 600; }
.invest-table td.neg { color: var(--invest-danger);  font-weight: 600; }
.invest-table td.num { font-feature-settings: 'tnum'; font-weight: 600; color: var(--text); }

/* =====================================================
   详情页正文排版（.invest-detail）
   ===================================================== */
.invest-detail {
    max-width: 760px;
    line-height: 1.8;
}

.invest-detail h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 48px 0 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.invest-detail h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--text);
}

.invest-detail p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.invest-detail ul,
.invest-detail ol {
    padding-left: 22px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.invest-detail li { margin-bottom: 6px; }

.invest-detail sup {
    font-size: 0.7em;
    vertical-align: super;
    color: var(--accent);
    font-weight: 600;
}

.invest-detail sup a {
    color: var(--accent);
    text-decoration: none;
}

.invest-detail sup a:hover { text-decoration: underline; }

/* 作者/日期/赛道信息 */
.invest-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.invest-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.invest-meta-label {
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

/* 摘要块（浅琥珀底）*/
.invest-summary-box {
    background: linear-gradient(135deg, rgba(196, 149, 106, 0.08) 0%, rgba(196, 149, 106, 0.04) 100%);
    border: 1px solid rgba(196, 149, 106, 0.2);
    border-radius: 14px;
    padding: 24px 28px;
    margin: 28px 0;
}

.invest-summary-box h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 12px;
}

.invest-summary-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.invest-summary-box ul li {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    padding: 4px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.6;
}

.invest-summary-box ul li::before {
    content: '▸';
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 1px;
}

/* =====================================================
   KPI 数据卡片（.kpi-grid）
   ===================================================== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.kpi-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
    font-feature-settings: 'tnum';
}

.kpi-value.gold { color: var(--invest-gold); }

.kpi-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    line-height: 1.4;
}

/* =====================================================
   信号卡片（正面/负面）
   ===================================================== */
.signal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.signal-box {
    padding: 20px;
    border-radius: 10px;
    border: 1px solid;
}

.signal-box.positive {
    background: var(--invest-success-bg);
    border-color: var(--invest-success-border);
}

.signal-box.negative {
    background: var(--invest-danger-bg);
    border-color: var(--invest-danger-border);
}

.signal-box h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.signal-box.positive h4 { color: var(--invest-success); }
.signal-box.negative h4 { color: var(--invest-danger); }

.signal-box ul {
    list-style: none;
    padding: 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.signal-box ul li::before { content: "• "; }

/* =====================================================
   图表容器（.chart-container）
   ===================================================== */
.chart-container {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.chart-container canvas {
    max-height: 320px;
}

.chart-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

/* =====================================================
   主要/次要按钮
   ===================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--accent-soft);
    text-decoration: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    text-decoration: none;
}

.btn-secondary:hover,
.btn-secondary.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--invest-gold-bg);
    text-decoration: none;
}

/* =====================================================
   返回链接
   ===================================================== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
    transition: color 0.2s;
    text-decoration: none;
}

.back-link:hover {
    color: var(--accent);
    text-decoration: none;
}

/* =====================================================
   引用块
   ===================================================== */
.invest-quote {
    background: var(--card);
    border-left: 3px solid var(--accent);
    padding: 18px 22px;
    border-radius: 0 10px 10px 0;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.invest-quote p {
    color: var(--text);
    font-style: italic;
    margin: 0 0 6px;
    font-size: 0.95rem;
}

.invest-quote-author {
    font-size: 13px;
    color: var(--text-tertiary);
    font-style: normal;
}

/* =====================================================
   登录墙（.invest-login-wall）
   ===================================================== */
.invest-login-wall {
    position: relative;
    margin: 0;
    padding: 60px 32px 48px;
    text-align: center;
    background: var(--bg);
}

.invest-login-wall::before {
    content: '';
    position: absolute;
    top: -160px;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(180deg, rgba(250, 250, 249, 0) 0%, var(--bg) 100%);
    pointer-events: none;
}

.invest-login-wall-card {
    max-width: 420px;
    margin: 0 auto;
    padding: 36px 32px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06), 0 2px 12px rgba(0, 0, 0, 0.03);
}

.invest-login-wall h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.invest-login-wall p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.invest-login-wall .login-btn-wall {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 28px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    width: 100%;
}

.invest-login-wall .login-btn-wall:hover {
    background: var(--accent-soft);
    text-decoration: none;
}

/* SMS 登录分区线 */
.lw-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--text-tertiary);
    font-size: 13px;
}

.lw-divider::before,
.lw-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.lw-tabs {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.lw-tab {
    flex: 1;
    padding: 8px;
    background: var(--bg);
    border: none;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.15s;
}

.lw-tab.lw-tab-active { background: var(--accent); color: #fff; }
.lw-tab:not(.lw-tab-active):hover { background: var(--card); }

.lw-sms-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.lw-prefix {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.lw-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--card);
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
}

.lw-input:focus { border-color: var(--accent); }
.lw-input::placeholder { color: var(--text-tertiary); }

.lw-send-btn {
    padding: 8px 14px;
    background: var(--card);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.15s;
    min-width: 100px;
}

.lw-send-btn:hover:not(:disabled) { background: var(--accent); color: #fff; }

.lw-send-btn:disabled {
    border-color: var(--border);
    color: var(--text-tertiary);
    cursor: not-allowed;
    background: var(--bg);
}

.lw-code-row { display: none; }
.lw-code-row.lw-code-visible { display: flex; }

.lw-submit-btn {
    width: 100%;
    padding: 10px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    display: none;
    margin-top: 4px;
}

.lw-submit-btn.lw-submit-visible { display: block; }
.lw-submit-btn:hover:not(:disabled) { background: var(--accent-soft); }
.lw-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.lw-msg {
    font-size: 13px;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    display: none;
    text-align: center;
}

.lw-msg.lw-msg-visible { display: block; }
.lw-msg.lw-msg-error   { background: #fef2f2; color: #dc2626; }
.lw-msg.lw-msg-success { background: #f0fdf4; color: #16a34a; }

/* =====================================================
   Footer
   ===================================================== */
.footer {
    margin-top: 80px;
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.footer-brand { color: var(--text-tertiary); }

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: var(--text-tertiary);
    font-size: 13px;
    transition: color 0.15s;
    text-decoration: none;
}

.footer-links a:hover { color: var(--accent); text-decoration: none; }

/* =====================================================
   响应式
   ===================================================== */
@media (max-width: 1100px) {
    .invest-container { padding: 0 20px; }
    .container { padding: 0 20px; }
    .invest-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .invest-header-section { padding: 40px 0 28px; }
    .invest-header-section h1 { font-size: 1.8rem; }

    .nav { display: none; }

    .invest-grid { grid-template-columns: 1fr; }
    .charts-grid { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .signal-grid { grid-template-columns: 1fr; }

    .invest-card { padding: 18px; }
    .invest-card-title { font-size: 0.975rem; }

    .company-card { padding: 16px; }

    /* 融资时间线在移动端改为垂直竖排（默认已是竖排，只调间距）*/
    .funding-timeline { padding-left: 20px; }
    .timeline-item { padding: 0 0 20px 16px; }

    .invest-meta {
        gap: 8px;
        font-size: 0.8rem;
    }

    .invest-summary-box { padding: 18px 20px; }

    .chart-container canvas { max-height: 220px; }

    .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
    .footer { margin-top: 48px; }
}

@media (max-width: 480px) {
    .invest-container { padding: 0 16px; }
    .container { padding: 0 16px; }

    .invest-header-section { padding: 32px 0 24px; }
    .invest-header-section h1 { font-size: 1.5rem; }
    .invest-header-section p { font-size: 0.875rem; }

    .invest-grid { grid-template-columns: 1fr; gap: 10px; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    .kpi-value { font-size: 1.4rem; }
    .kpi-card { padding: 12px; }

    .invest-card { padding: 16px; }
    .invest-card-title { font-size: 0.9rem; }
    .invest-card-desc { font-size: 0.825rem; }

    .invest-table th,
    .invest-table td { padding: 8px 12px; font-size: 0.8rem; }

    .invest-filters { gap: 6px; padding: 12px 0; }
    .invest-filter-btn,
    .filter-btn { padding: 5px 12px; font-size: 0.75rem; }

    .invest-login-wall { padding: 32px 16px 28px; }
    .invest-login-wall-card { padding: 24px 18px; }
    .invest-login-wall h3 { font-size: 17px; }
    .invest-login-wall p { font-size: 13px; }
    .invest-login-wall .login-btn-wall { padding: 10px; font-size: 13px; }

    .lw-sms-row { flex-wrap: wrap; }
    .lw-send-btn { min-width: 0; width: 100%; padding: 9px 12px; font-size: 12px; }
    .lw-prefix { padding: 0 8px; font-size: 12px; }
    .lw-input { padding: 9px 10px; font-size: 13px; }
    .lw-tab { padding: 7px; font-size: 12px; }
    .lw-submit-btn { padding: 9px; font-size: 13px; }
    .lw-msg { font-size: 12px; }

    .signal-grid { grid-template-columns: 1fr; gap: 10px; }
    .signal-box { padding: 16px; }

    .invest-detail h2 { font-size: 1.2rem; margin: 36px 0 12px; }
    .invest-detail h3 { font-size: 1rem; margin: 24px 0 10px; }
    .invest-detail p { font-size: 0.875rem; }

    .footer { margin-top: 40px; padding: 24px 0; }
    .footer-links { flex-wrap: wrap; gap: 10px; }
}

/* R282 — A11y: respect prefers-reduced-motion (WCAG 2.3.3, Level AAA) */
/* Universal selector overrides animation / transition / scroll-behavior for users with vestibular disorders / motion sensitivity */
@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;
    }
}
