/* ══ Design Tokens — 从 tokens.css 统一导入 ══ */
@import url('tokens.css');

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
    font-family: 'Noto Sans SC', -apple-system, 'SF Pro Display', 'PingFang SC', sans-serif;
    -webkit-font-smoothing: antialiased; background: var(--bg-primary); color: var(--text-1);
}

/* ===== 容器 ===== */
.phone {
    max-width: min(100%, 500px); height: 100dvh; margin: 0 auto;
    position: relative; overflow: hidden;
}

/* ===== 全屏背景 ===== */
.bg-layer {
    position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 500px; z-index: 0;
    background: var(--bg-primary);
    transition: background 0.8s ease;
}
.bg-layer::after {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='60' cy='70' r='1.5' fill='%23D6A461' opacity='0.25'/%3E%3Ccircle cx='60' cy='70' r='15' stroke='%23D6A461' stroke-width='0.5' fill='none' opacity='0.05'/%3E%3Ccircle cx='60' cy='70' r='30' stroke='%23D6A461' stroke-width='0.3' fill='none' opacity='0.025'/%3E%3Ccircle cx='220' cy='160' r='1' fill='%23D6A461' opacity='0.2'/%3E%3Ccircle cx='220' cy='160' r='18' stroke='%23D6A461' stroke-width='0.4' fill='none' opacity='0.04'/%3E%3Ccircle cx='140' cy='260' r='1' fill='%23D6A461' opacity='0.15'/%3E%3Ccircle cx='140' cy='260' r='12' stroke='%23D6A461' stroke-width='0.4' fill='none' opacity='0.035'/%3E%3C/svg%3E");
    background-size: 128px; opacity: 0.5; pointer-events: none;
}

/* ===== 顶部导航 ===== */
.top-nav {
    position: fixed; top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: min(100%, 500px);
    padding: calc(env(safe-area-inset-top, 8px) + 8px) 20px 14px;
    z-index: 200; display: flex; justify-content: space-between; align-items: center;
}
.top-nav-left { display: flex; align-items: center; gap: 10px; }
.nav-menu, .nav-search { color: rgba(255,255,255,0.40); cursor: pointer; }
.top-nav-title {
    font-family: var(--font-brand);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: 4px;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    line-height: 1;
    display: flex;
    align-items: center;
    height: 28px;
}

/* ===== 滑动容器 ===== */
.feed {
    height: 100dvh; overflow-y: scroll; scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    position: relative; z-index: 1;
}
.feed::-webkit-scrollbar { display: none; }

/* ===== 单条资讯卡片 ===== */
.card {
    height: 100dvh; width: 100%; scroll-snap-align: start; scroll-snap-stop: always;
    display: flex; flex-direction: column; justify-content: flex-end;
    position: relative; transition: transform 0.3s ease;
    user-select: none; -webkit-user-select: none;
    padding: calc(env(safe-area-inset-top, 8px) + 56px) 0 76px;
}

/* ===== 卡片主视觉区 ===== */
/* 卡片容器 — agents hero 风格 */
.card-visual {
    flex: 1 1 0; min-height: 0; margin: 0 auto;
    width: calc(100% - 40px); max-width: 370px;
    border-radius: 20px; overflow: hidden; position: relative;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
        linear-gradient(180deg, rgba(214,164,97,0.06), rgba(214,164,97,0.01) 60%, var(--bg-secondary) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 20px 18px;
    display: flex; flex-direction: column; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 12px 36px rgba(0,0,0,0.2);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}

/* 卡片类型视觉区分 — 渐变底色 + 边线 */
.card[data-type="funding"] .card-visual,
.card[data-type="funding-hero"] .card-visual {
    background:
        radial-gradient(circle at 15% 10%, rgba(214,164,97,0.04), transparent 40%),
        linear-gradient(180deg, rgba(214,164,97,0.015) 0%, var(--bg-secondary) 50%);
    border-top: 1px solid rgba(214,164,97,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 12px 36px rgba(0,0,0,0.2),
                inset 0 1px 0 rgba(214,164,97,0.03);
}
.card[data-type="institution"] .card-visual {
    background:
        radial-gradient(circle at 85% 15%, rgba(255,255,255,0.04), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.02) 0%, var(--bg-secondary) 50%);
    border-top: 1px solid rgba(255,255,255,0.08);
}
.card[data-type="track-digest"] .card-visual {
    background:
        radial-gradient(circle at 10% 80%, rgba(100,140,200,0.05), transparent 35%),
        linear-gradient(180deg, var(--bg-secondary) 0%, rgba(14,18,24,1) 100%);
    border-left: 2px solid rgba(214,164,97,0.08);
}
.card[data-type="editorial"] .card-visual {
    background:
        radial-gradient(circle at 50% 0%, rgba(214,164,97,0.06), transparent 40%),
        linear-gradient(180deg, rgba(214,164,97,0.02) 0%, var(--bg-secondary) 60%);
    border-top: 1px solid rgba(214,164,97,0.08);
}

/* 氛围题图条 */
.card-ambient {
    position: absolute; top: 0; left: 0; right: 0; height: 80px;
    background-size: cover; background-position: center;
    mask-image: linear-gradient(to bottom, rgba(255,255,255,0.20) 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(255,255,255,0.20) 0%, transparent 100%);
    pointer-events: none; z-index: 0;
    filter: saturate(0.6) brightness(0.65);
}

/* 圆弧装饰 — 金色圆环+扩散光晕（agents hero 同款） */
.card-visual::before {
    content: ''; position: absolute; pointer-events: none; z-index: 0;
    width: 220px; height: 220px; border-radius: 50%;
    border: 1px solid rgba(214,164,97,0.12);
    box-shadow:
        0 0 0 24px rgba(214,164,97,0.04),
        0 0 0 52px rgba(214,164,97,0.02);
}
/* 4种位置轮换 */
.card:nth-child(4n+1) .card-visual::before { right: -80px; top: -120px; }
.card:nth-child(4n+2) .card-visual::before { left: -90px; bottom: -100px; right: auto; top: auto; }
.card:nth-child(4n+3) .card-visual::before { right: -60px; bottom: -80px; top: auto; width: 180px; height: 180px; }
.card:nth-child(4n+4) .card-visual::before { left: -70px; top: -80px; right: auto; width: 200px; height: 200px; }

/* 潮汐纹水印 — 4种变体轮换 */
.card-visual::after {
    content: ''; position: absolute; pointer-events: none; z-index: 0;
    opacity: 0.03; background-repeat: no-repeat; background-size: contain;
}
/* 变体1：标准涟漪（右下） */
.card:nth-child(4n+1) .card-visual::after {
    right: -20px; bottom: -20px; width: 200px; height: 200px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='100' cy='100' r='6' fill='%23D6A461'/%3E%3Ccircle cx='100' cy='100' r='28' stroke='%23D6A461' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='100' cy='100' r='54' stroke='%23D6A461' stroke-width='1' fill='none'/%3E%3Ccircle cx='100' cy='100' r='82' stroke='%23D6A461' stroke-width='0.7' fill='none'/%3E%3C/svg%3E");
}
/* 变体2：双涟漪交叠（左下） */
.card:nth-child(4n+2) .card-visual::after {
    left: -30px; bottom: -40px; right: auto; width: 240px; height: 240px; opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='80' cy='140' r='4' fill='%23D6A461'/%3E%3Ccircle cx='80' cy='140' r='20' stroke='%23D6A461' stroke-width='1' fill='none'/%3E%3Ccircle cx='80' cy='140' r='44' stroke='%23D6A461' stroke-width='0.7' fill='none'/%3E%3Ccircle cx='80' cy='140' r='72' stroke='%23D6A461' stroke-width='0.5' fill='none'/%3E%3Ccircle cx='170' cy='90' r='3' fill='%23D6A461'/%3E%3Ccircle cx='170' cy='90' r='16' stroke='%23D6A461' stroke-width='0.8' fill='none'/%3E%3Ccircle cx='170' cy='90' r='36' stroke='%23D6A461' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
}
/* 变体3：波纹线（右中） */
.card:nth-child(4n+3) .card-visual::after {
    right: -10px; top: 50%; transform: translateY(-50%); width: 160px; height: 300px; opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M120 20 Q60 75 120 150 Q60 225 120 280' stroke='%23D6A461' stroke-width='1' fill='none'/%3E%3Cpath d='M140 20 Q80 75 140 150 Q80 225 140 280' stroke='%23D6A461' stroke-width='0.6' fill='none'/%3E%3Cpath d='M100 20 Q40 75 100 150 Q40 225 100 280' stroke='%23D6A461' stroke-width='0.4' fill='none'/%3E%3C/svg%3E");
}
/* 变体4：散点涟漪群（全卡片） */
.card:nth-child(4n+4) .card-visual::after {
    inset: 0; width: auto; height: auto; opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 400' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='60' cy='70' r='2' fill='%23D6A461'/%3E%3Ccircle cx='60' cy='70' r='14' stroke='%23D6A461' stroke-width='0.8' fill='none'/%3E%3Ccircle cx='60' cy='70' r='30' stroke='%23D6A461' stroke-width='0.4' fill='none'/%3E%3Ccircle cx='230' cy='150' r='2' fill='%23D6A461'/%3E%3Ccircle cx='230' cy='150' r='18' stroke='%23D6A461' stroke-width='0.6' fill='none'/%3E%3Ccircle cx='140' cy='320' r='3' fill='%23D6A461'/%3E%3Ccircle cx='140' cy='320' r='12' stroke='%23D6A461' stroke-width='0.7' fill='none'/%3E%3Ccircle cx='140' cy='320' r='28' stroke='%23D6A461' stroke-width='0.4' fill='none'/%3E%3Ccircle cx='250' cy='350' r='1.5' fill='%23D6A461'/%3E%3Ccircle cx='250' cy='350' r='10' stroke='%23D6A461' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
    background-size: cover;
}
/* 卡片内容相对于暗纹之上 */
.card-visual > *:not(.card-ambient) { position: relative; z-index: 1; flex-shrink: 0; }

/* 信源标签 */
.card-source {
    display: flex; align-items: center; gap: 6px; margin-bottom: 16px;
    font-size: 12px; color: rgba(255,255,255,0.20);
}
.card-source-link {
    color: rgba(255,255,255,0.20); text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,0.08);
    padding-bottom: 1px;
}
.card-source-link:active { color: var(--gold); }
.source-badge {
    font-size: 10px; padding: 2px 6px; border-radius: 4px;
    font-weight: 600;
}
.source-badge.verified { background: rgba(255,255,255,0.05); color: var(--gold); }
.source-badge.media { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.40); }
.source-badge.rumor { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.25); }

/* 类型标签 */
.card-type {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: var(--font-mono); font-size: 10px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    padding: 4px 10px; border-radius: 6px; margin-bottom: 14px;
    width: fit-content;
}
/* VI: 主标签 gold-mist，副标签 gray-5 */
/* 卡片类型标签 — 只用品牌金+灰，浓度区分层级 */
.card-type.funding      { background: var(--gold-bg-10); color: var(--gold); }
.card-type.funding-hero { background: var(--gold-bg-10); color: var(--gold); }
.card-type.institution  { background: rgba(255,255,255,0.04); color: var(--gold-dim); }
.card-type.people       { background: rgba(255,255,255,0.04); color: var(--gold-dim); }
.card-type.opinion      { background: rgba(255,255,255,0.04); color: var(--gold-dim); }
.card-type.policy       { background: rgba(255,255,255,0.04); color: var(--gold-dim); }
.card-type.track-digest { background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.30); }
.card-type.editorial    { background: var(--gold-bg-10); color: var(--gold); }
/* 赛道简报 items 列表 */
.digest-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.digest-item { display: flex; flex-direction: column; gap: 2px; }
.digest-item-head { display: flex; align-items: center; gap: 6px; }
/* VI: 副标签 gray-5，政策类用 gold-mist */
.digest-item-tag { font-size: 10px; padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.35); font-weight: 600; flex-shrink: 0; }
.digest-item-tag.tag-policy { background: rgba(214,164,97,0.06); color: var(--gold); }
.digest-item-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.50); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.digest-item-summary { font-size: 11px; line-height: 1.5; color: rgba(255,255,255,0.15); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
/* 线报 badge 区分 */
.scroll-badge.tip { background: rgba(255,255,255,0.05) !important; color: rgba(255,255,255,0.40) !important; font-weight: 700; }

/* 标题 */
.card-title {
    font-size: 18px; font-weight: 700; line-height: 1.4;
    color: var(--text-1); letter-spacing: -0.3px; margin-bottom: 10px;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}

/* 关键数据行 */
.card-data {
    display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px;
}
/* VI: 数据标签 — 副标签 gray-5，高亮用 gold-mist */
.data-chip {
    font-size: 11px; padding: 3px 8px; border-radius: 8px;
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.35);
}
.data-chip.highlight { background: var(--gold-bg-10); color: var(--gold); font-weight: 600; font-family: var(--font-mono); }

/* 摘要 */
.card-summary {
    font-size: 13px; font-weight: 500; line-height: 1.7; color: rgba(255,255,255,0.35);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
.card-summary.sm { font-size: 12px; }

/* AI 点评 — 直接在卡片内 */
.card-ai {
    margin-top: 12px; padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.04);
    flex-shrink: 0;
    /* VI: 品牌分隔线（涟漪款）在 AI 点评上方 */
    position: relative;
}
.card-ai::before { display: none; }
.card-ai-label {
    font-size: 11px; font-weight: 600; color: var(--gold); font-style: italic;
    margin-bottom: 6px; display: flex; align-items: center; gap: 5px;
}
.card-ai-text {
    font-size: 12px; font-weight: 500; line-height: 1.65; color: rgba(255,255,255,0.40);
    overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
}

/* 迷你图表（赛道洞察用） */
.mini-chart {
    margin-top: 14px; height: 60px;
    display: flex; align-items: flex-end; gap: 4px; padding: 0 4px 18px;
}
.mini-bar {
    flex: 1; border-radius: 3px 3px 0 0;
    background: rgba(255,255,255,0.10); transition: height 0.5s ease;
    position: relative;
}
.mini-bar.current { background: var(--gold); }
.mini-bar-label {
    position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%);
    font-size: 8px; color: rgba(255,255,255,0.10); white-space: nowrap;
}

/* ===== 底部信息区 — 汽水布局 ===== */
.card-bottom {
    flex: 0 0 auto; display: flex; flex-direction: column;
    justify-content: flex-end; padding: 10px 20px 0;
    gap: 8px;
}

/* 纵向评论滚动（歌词位置） */
.comment-scroll {
    height: 120px; overflow: hidden;
    position: relative; cursor: pointer;
    mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}
.comment-scroll-inner {
    animation: scroll-up 10s linear infinite;
}
.scroll-comment {
    font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.25);
    padding: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.scroll-comment .scroll-badge {
    font-size: 10px; padding: 1px 5px; border-radius: 3px;
    margin-right: 6px;
    background: rgba(255,255,255,0.05) !important; color: var(--gold) !important;
}
@keyframes scroll-up {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

/* 资讯标题（歌名位置） */
.card-bottom-title {
    font-size: 17px; font-weight: 700; color: var(--text-1);
    line-height: 1.35; margin-bottom: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-bottom-meta {
    font-size: 13px; color: rgba(255,255,255,0.15); margin-bottom: 10px;
}

/* 右侧竖排悬浮互动 */
.card-side-actions {
    position: absolute; right: 10px; bottom: 96px; z-index: 150;
    display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.side-btn {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.side-btn-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    transition: transform var(--duration-micro, .15s);
}
.side-btn:active .side-btn-icon { transform: scale(0.85); }
.side-btn-icon svg { width: 30px; height: 30px; fill: none; stroke: rgba(255,255,255,0.55); stroke-width: 1.5; }
.side-btn-label { font-size: 10px; color: rgba(255,255,255,0.25); font-weight: 500; }
.side-btn.liked .side-btn-icon svg { fill: var(--gold); stroke: var(--gold); }
.side-btn.liked .side-btn-label { color: var(--gold); }
.side-btn.disliked .side-btn-icon svg { stroke: rgba(255,255,255,0.15); }
.side-btn-train .side-btn-icon svg { stroke: var(--gold); opacity: 0.8; }
.side-btn-train .side-btn-label { color: var(--gold); opacity: 0.6; }
.card-peers-side {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 10px; color: rgba(255,255,255,0.12);
}
.card-peers-side .peers-dot { width: 5px; height: 5px; }

/* ===== 快速投票条 ===== */
.card-vote {
    margin-top: 10px; padding: 8px 12px;
    background: rgba(255,255,255,0.03); border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.03);
    flex-shrink: 0;
}
.card-vote-q { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.40); }
.card-vote-bar {
    height: 3px; border-radius: 2px; background: rgba(255,255,255,0.04);
    margin: 6px 0 5px; overflow: hidden;
}
.card-vote-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--gold-dim), var(--gold-light)); }
.card-vote-btns { display: flex; align-items: center; gap: 12px; }
.card-vote-btn {
    font-size: 12px; color: rgba(255,255,255,0.20); cursor: pointer;
    transition: color .2s;
}
.card-vote-btn:active { color: var(--text-1); }
.card-vote-btn.bull { color: rgba(255,255,255,0.35); }
.card-vote-btn.bear { color: rgba(255,255,255,0.20); }
.card-vote-count { font-size: 11px; color: rgba(255,255,255,0.06); margin-left: auto; }

/* 关注本轮按钮 */
.card-interact-btn {
    padding: 10px; border-radius: 10px; text-align: center;
    font-size: 13px; font-weight: 600; color: var(--gold); cursor: pointer;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.05);
    transition: all .2s;
}
.card-interact-btn.active {
    background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.03);
}

/* 一句话点评输入 */
.card-interact-input {
    padding: 8px 12px; border-radius: 10px; min-height: 36px;
    font-size: 13px; color: rgba(255,255,255,0.40);
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.03);
    outline: none; transition: border-color .2s;
}
.card-interact-input:empty::before {
    content: attr(data-placeholder); color: rgba(255,255,255,0.08);
}
.card-interact-input:focus { border-color: rgba(255,255,255,0.10); }

/* 延伸动作按钮组 */
.card-actions-ext {
    display: flex; gap: 8px; flex-shrink: 0; margin-top: auto; padding-top: 12px;
}
.ext-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
    padding: 9px 0; border-radius: 10px;
    font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.30); cursor: pointer;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.03);
    transition: all .2s; text-decoration: none;
}
.ext-btn:active { background: rgba(255,255,255,0.04); color: var(--gold); border-color: rgba(255,255,255,0.05); }
.ext-btn.ext-ai { color: var(--gold); background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.04); }

/* ===== 同行在看 + 关联标签 ===== */
.card-bottom-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 6px;
}
.card-peers {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; color: rgba(255,255,255,0.12);
}
.card-agent-peers {
    font-size: 11px; color: rgba(255,255,255,0.35);
    letter-spacing: 0.2px;
    padding-left: 8px;
    border-left: 1px solid rgba(255,255,255,0.05);
    margin-left: 4px;
}
.peers-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
    animation: peers-pulse 2s ease-in-out infinite;
}
@keyframes peers-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.card-tags { display: flex; gap: 6px; }
.card-tag {
    font-size: 10px; padding: 2px 8px; border-radius: 6px;
    background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.12);
    cursor: pointer; transition: all .2s;
}
.card-tag:active { background: rgba(255,255,255,0.05); color: var(--gold); }
/* legacy act-btn removed — replaced by .side-btn */

/* ===== 左滑/右滑反馈 ===== */
.swipe-feedback {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; font-size: 14px; font-weight: 600;
    padding: 10px 20px; border-radius: 12px;
    opacity: 0; transition: opacity 0.2s;
    pointer-events: none;
}
.swipe-feedback.left {
    right: 24px; background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.40);
}
.swipe-feedback.right {
    left: 24px; background: rgba(255,255,255,0.06); color: var(--gold);
}
.swipe-feedback.show { opacity: 1; }

/* 双击星标动画 */
.star-burst {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none; z-index: 20;
    transition: transform 0.3s var(--ease-bounce, cubic-bezier(0.175, 0.885, 0.32, 1.275)), opacity 0.3s;
    opacity: 0;
}
.star-burst.show {
    transform: translate(-50%, -50%) scale(1); opacity: 1;
}

/* ===== 底部 Tab 栏 — 分段式玻璃胶囊 ===== */
.tab-bar {
    position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 24px); max-width: 476px; z-index: 200;
    display: flex; gap: 6px; align-items: center;
}
.tab-segment {
    display: flex; align-items: center; justify-content: space-around;
    padding: 10px 6px;
    background: rgba(30,28,26,0.45);
    backdrop-filter: blur(60px) saturate(1.8); -webkit-backdrop-filter: blur(60px) saturate(1.8);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}
.tab-segment-main { gap: 4px; padding: 4px 8px; flex: 1; min-width: 0; }
.tab-segment-ai {
    padding: 4px 14px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.05);
}
.tab-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    flex: 1; height: 38px; border-radius: 12px;
    color: rgba(255,255,255,0.12); cursor: pointer;
    transition: all .2s;
}
.tab-item:active { transform: scale(0.9); }
.tab-item.active { color: rgba(255,255,255,0.80); background: rgba(255,255,255,0.04); }
.tab-item.tab-ai { color: var(--gold); width: auto; padding: 0 8px; flex-direction: row; gap: 0; }
.tab-item svg { width: 22px; height: 22px; }
.tab-label { font-size: 10px; font-weight: 500; line-height: 1; }


/* ===== 左侧赛道抽屉 ===== */
.drawer-overlay {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(0,0,0,0.60); opacity: 0;
    pointer-events: none; transition: opacity 0.3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
    position: fixed; top: 0; left: -300px; bottom: 0;
    width: 280px; z-index: 301;
    background: rgba(14,14,14,0.95);
    backdrop-filter: blur(60px) saturate(1.8); -webkit-backdrop-filter: blur(60px) saturate(1.8);
    transition: left 0.35s var(--ease-drawer, cubic-bezier(0.25, 0.46, 0.45, 0.94)), background 0.8s ease;
    padding: 70px 20px 40px;
    overflow-y: auto;
}
.drawer.open { left: 0; }

.drawer-title {
    font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--gold); font-family: var(--font-brand);
}
.drawer-subtitle {
    font-size: 13px; color: rgba(255,255,255,0.12); margin-bottom: 28px;
}

/* 模式切换 */
.drawer-modes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.drawer-mode {
    padding: 12px 16px; border-radius: 12px;
    background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.35);
    font-size: 14px; font-weight: 500; cursor: pointer;
    transition: all .2s; text-align: center;
}
.drawer-mode.active {
    background: rgba(255,255,255,0.05); color: var(--gold);
    border: 1px solid rgba(255,255,255,0.06);
}

/* 赛道网格 */
.drawer-section-title {
    font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.10);
    letter-spacing: 1px; margin-bottom: 14px;
}
.drawer-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 0;
    margin-bottom: 28px;
}
.drawer-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 12px 0; cursor: pointer;
    transition: all .2s; font-size: 12px; color: rgba(255,255,255,0.25);
}
.drawer-item.active {
    color: var(--gold);
}
.drawer-item-icon {
    font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.25);
}
.drawer-item.active .drawer-item-icon {
    background: rgba(255,255,255,0.04); color: var(--gold);
}

/* ===== 底部详情面板 ===== */
.detail-overlay {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(255,255,255,0.15); opacity: 0;
    pointer-events: none; transition: opacity 0.3s;
}
.detail-overlay.open { opacity: 1; pointer-events: auto; }

.detail-panel {
    position: fixed; bottom: -100%; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: min(100%, 500px); max-height: 75vh;
    z-index: 301; border-radius: 20px 20px 0 0;
    background: rgba(20,18,16,0.82);
    backdrop-filter: blur(60px) saturate(1.4); -webkit-backdrop-filter: blur(60px) saturate(1.4);
    transition: bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto; padding-bottom: 40px;
}
.detail-panel.open { bottom: 0; }

.detail-handle {
    width: 36px; height: 4px; border-radius: 2px;
    background: rgba(255,255,255,0.06); margin: 10px auto 0;
}
.detail-header { padding: 20px 24px 16px; }
.detail-title { font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.detail-meta { font-size: 12px; color: rgba(255,255,255,0.12); }

/* 投票区 */
.vote-section { padding: 0 24px 20px; }
.vote-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.vote-question { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.vote-section-head .vote-question { margin-bottom: 0; }
.vote-options { display: flex; gap: 10px; margin-bottom: 10px; }
.vote-btn {
    flex: 1; padding: 12px; border-radius: 12px; text-align: center;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
}
.vote-btn.bullish:hover, .vote-btn.bullish.selected {
    background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.10); color: var(--gold);
}
.vote-btn.bearish:hover, .vote-btn.bearish.selected {
    background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.06); color: rgba(255,255,255,0.35);
}
.vote-bar {
    height: 6px; border-radius: 3px; background: rgba(255,255,255,0.03);
    overflow: hidden; margin-bottom: 6px;
}
.vote-bar-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.vote-bar-fill.bull { background: var(--gold); }
.vote-bar-fill.bear { background: rgba(255,255,255,0.08); }
.vote-count { font-size: 11px; color: rgba(255,255,255,0.10); }
.detail-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
    color: rgba(255,255,255,0.40);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all .2s ease;
    font-family: inherit;
}
.detail-save-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.detail-save-btn.saved {
    color: var(--gold);
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}
.detail-save-btn:disabled {
    opacity: .6;
    cursor: default;
}

/* 评论区 */
.comments-section { padding: 0 24px; }
.comments-title {
    font-size: 14px; font-weight: 600; margin-bottom: 14px;
    display: flex; align-items: center; gap: 6px;
}
.comments-count {
    font-size: 12px; color: rgba(255,255,255,0.10); font-weight: 400;
}
.comment-item {
    padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
}
.comment-item.hot {
    background: rgba(255,255,255,0.02);
    margin: 0 -8px; padding: 14px 8px;
    border-radius: 10px; border-bottom: none;
    margin-bottom: 2px;
}
.comment-author {
    font-size: 12px; color: rgba(255,255,255,0.15); margin-bottom: 6px;
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.comment-author-badge {
    font-size: 10px; padding: 1px 6px; border-radius: 4px;
    background: rgba(255,255,255,0.04); color: var(--gold);
}
/* 线报标签 — 详情面板内，红色突出 */
.comment-tip-badge {
    font-size: 10px; padding: 1px 7px; border-radius: 4px; font-weight: 700;
    background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.40);
    border: 1px solid rgba(255,255,255,0.05);
}
/* 热评标签 */
.comment-hot-badge {
    font-size: 10px; padding: 1px 7px; border-radius: 4px; font-weight: 700;
    background: rgba(255,255,255,0.06); color: var(--gold);
    border: 1px solid rgba(255,255,255,0.10);
}
.comment-text { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.40); }
.comment-actions {
    margin-top: 8px; display: flex; gap: 16px;
    font-size: 11px; color: rgba(255,255,255,0.08);
}
.comment-likes { color: rgba(255,255,255,0.12); }
/* 龙虾评论 — 金色系突出（VI: 品牌色统一） */
.comment-item.agent-comment {
    background: var(--gold-bg-10);
    border-left: 2px solid rgba(214,164,97,0.3);
    margin: 0 -8px 0 -14px;
    padding: 12px 8px 12px 12px;
    border-radius: 0 8px 8px 0;
}
.comment-item.agent-comment .comment-text { color: rgba(255,255,255,0.50); }
.comment-author-badge.agent-badge {
    background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.30);
}
.comment-agent-tag {
    font-size: 10px; padding: 1px 7px; border-radius: 4px; font-weight: 700;
    background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.35);
    border: 1px solid rgba(214,164,97,0.25);
}
/* 人类评论轻微淡化 */
.comment-item:not(.agent-comment) .comment-author-badge {
    background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.10);
}
.comment-item:not(.agent-comment) .comment-text { color: rgba(255,255,255,0.25); }
/* scroll ticker 龙虾badge */
.scroll-badge.agent-badge {
    background: var(--gold-bg-15) !important;
    color: var(--gold) !important;
    font-weight: 700;
}
/* ===== 虾评区 ===== */
.shrimp-rating-section {
    padding: 14px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.shrimp-rating-hd {
    font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.12);
    letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px;
}
.shrimp-rating-hd::after {
    content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.03);
}
.shrimp-rating-body { display: flex; align-items: flex-start; gap: 12px; }
.shrimp-grade-box {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.10);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; color: var(--gold); letter-spacing: -0.5px;
}
.shrimp-grade-info { flex: 1; padding-top: 2px; }
.shrimp-grade-label {
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.45); margin-bottom: 4px;
}
.shrimp-grade-reason { font-size: 12px; color: rgba(255,255,255,0.12); line-height: 1.55; }
.shrimp-nodata {
    font-size: 12px; color: rgba(255,255,255,0.10); font-style: italic;
    padding: 10px 14px; background: rgba(255,255,255,0.02);
    border-radius: 8px; border: 1px solid rgba(255,255,255,0.03);
}
/* 多条虾评间距 */
.shrimp-rating-body + .shrimp-rating-body {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.03);
}
/* 虾评数量角标 */
.shrimp-rating-count {
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.35);
    font-size: 10px; font-weight: 700;
    padding: 1px 6px; border-radius: 10px;
    letter-spacing: 0;
}

/* ===== 卡片虾评胶囊条 ===== */
.shrimp-strip {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}
.shrimp-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 3px 8px 3px 5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.sp-icon { display: inline-flex; align-items: center; line-height: 1; }
.sp-name {
    font-size: 11px;
    color: rgba(255,255,255,0.20);
}
.sp-grade {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    margin-left: 2px;
}

/* ===== 融资卡片 — 投资机构 ===== */
.funding-investors { margin-bottom: 10px; }
.investor-lead {
    display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
}
.investor-lead-label {
    font-size: 10px; padding: 1px 5px; border-radius: 3px;
    background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.25); font-weight: 600;
}
.investor-lead-name { font-size: 12px; color: rgba(255,255,255,0.35); }
.investor-follow {
    display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}
.investor-follow-label {
    font-size: 10px; padding: 1px 5px; border-radius: 3px;
    background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.25); font-weight: 600;
}
.investor-tag {
    font-size: 12px; color: rgba(255,255,255,0.35);
    padding: 2px 7px; border-radius: 4px;
    background: rgba(255,255,255,0.03);
}

/* hero卡片AI文字不截断 */
.card-visual.funding-hero .card-ai-text {
    -webkit-line-clamp: unset; line-clamp: unset; display: block;
}

/* ===== 融资卡片 — 杂志封面风格 ===== */
.card-visual.funding-hero {
    padding: 0; border: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: none; overflow: hidden;
}
.funding-bg {
    position: absolute; inset: 0; border-radius: 18px;
    background-size: cover; background-position: center;
}
.funding-overlay {
    position: absolute; inset: 0; border-radius: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.30) 40%, transparent 100%);
}
.funding-content {
    position: relative; z-index: 1; height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px 22px 20px;
}
.funding-tags {
    position: absolute; top: 20px; left: 22px; z-index: 1;
    display: flex; gap: 6px;
}
.funding-center {
    text-align: center; margin: 20px 0;
}
.funding-amount {
    font-family: var(--font-mono, 'Space Mono', 'SF Mono', monospace);
    font-size: 52px; font-weight: 800; color: var(--gold);
    letter-spacing: -1px; line-height: 1.1;
}
.funding-amount .currency { font-size: 28px; font-weight: 600; margin-right: 2px; vertical-align: 6px; }
.funding-company {
    font-family: var(--font-brand);
    font-size: 22px; font-weight: 700; color: rgba(255,255,255,0.85);
    margin-top: 12px; letter-spacing: 2px;
}
/* 抽象渐变背景 — 每张卡片通过 style 注入 */
.funding-bg.style-warm {
    background-image:
        radial-gradient(ellipse 80% 50% at 30% 20%, rgba(214,164,97,0.20), transparent),
        radial-gradient(ellipse 60% 60% at 70% 80%, rgba(180,120,60,0.12), transparent),
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(60,40,20,0.25), transparent),
        linear-gradient(180deg, rgba(139,105,20,0.35) 0%, var(--bg-primary) 100%);
}
.funding-bg.style-cool {
    background-image:
        radial-gradient(ellipse 70% 60% at 75% 25%, rgba(100,160,200,0.25), transparent),
        radial-gradient(ellipse 60% 70% at 25% 75%, rgba(140,100,180,0.15), transparent),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(30,40,60,0.3), transparent),
        linear-gradient(160deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}
/* 融资元信息（轮次·领投） */
.funding-meta {
    margin-top: 12px; font-size: 13px; color: rgba(255,255,255,0.35);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.funding-meta-dot {
    width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.20);
}

/* hero卡片底部总结 */
.hero-summary {
    font-size: 12px; line-height: 1.6; color: rgba(255,255,255,0.30);
    padding: 0 4px; margin-bottom: 8px;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.hero-summary-label {
    font-size: 10px; font-weight: 600; color: var(--gold); opacity: 0.5;
    margin-right: 6px; letter-spacing: 1px;
}

/* 融资时间标签 */
.funding-time {
    position: absolute; top: 20px; right: 22px; z-index: 1;
    font-size: 11px; color: rgba(255,255,255,0.25);
}

/* ===== 机构动态 — 更多显示行数 ===== */
.card[data-type="institution"] .card-ai-text {
    -webkit-line-clamp: 3; line-clamp: 3;
}
