/* ============================================================
   话屿 · 恋爱聊天研究所 —— 全站样式
   设计语言：暖调浮岛 / 柔和渐变 / 大圆角 / 呼吸感留白
   ============================================================ */

:root {
    --bg: #FAF6F0;
    --bg-soft: #F3ECE3;
    --card: #FFFFFF;
    --ink: #2D2A26;
    --ink-2: #6B6459;
    --ink-3: #A39B8D;
    --line: #EDE4D7;
    --primary: #FF7A45;
    --primary-2: #FF5E7E;
    --grad: linear-gradient(135deg, #FF7A45 0%, #FF5E7E 100%);
    --grad-soft: linear-gradient(135deg, #FFF1E8 0%, #FFE9EE 100%);
    --shadow: 0 6px 24px rgba(120, 84, 56, .08);
    --shadow-lg: 0 16px 40px rgba(120, 84, 56, .14);
    --radius: 18px;
    --radius-sm: 12px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

::selection { background: #FFD9CC; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(250, 246, 240, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(237, 228, 215, .8);
}
.nav-inner {
    max-width: 1120px; margin: 0 auto; padding: 0 20px;
    height: 64px; display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.logo-mark {
    width: 34px; height: 34px; border-radius: 11px;
    background: var(--grad); color: #fff;
    display: grid; place-items: center;
    font-size: 17px; font-weight: 900;
    box-shadow: 0 4px 12px rgba(255, 110, 90, .35);
}
.logo small { font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: 2px; margin-left: 2px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-links a {
    padding: 8px 14px; border-radius: 999px;
    color: var(--ink-2); font-size: 14.5px; font-weight: 500;
    transition: all .18s;
}
.nav-links a:hover { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.nav-links a.active { background: var(--ink); color: #fff; }
.nav-user { display: flex; align-items: center; gap: 10px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 22px; border-radius: 999px; border: none;
    font-size: 14.5px; font-weight: 600;
    transition: transform .15s, box-shadow .15s, opacity .15s;
    white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(255, 94, 126, .3); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(255, 94, 126, .42); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(255,160,120,.22), transparent 60%),
        radial-gradient(ellipse 70% 55% at 85% 30%, rgba(255,170,195,.20), transparent 60%),
        radial-gradient(ellipse 60% 50% at 60% 80%, rgba(180,160,230,.14), transparent 60%),
        linear-gradient(160deg, #FFF3E9 0%, #FFEEF2 55%, #FAF6F0 100%);
}
.hero::before {
    content: ''; position: absolute; z-index: 0; pointer-events: none;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,140,100,.18) 0%, transparent 70%);
    top: -80px; right: -60px;
    animation: heroFloatA 14s ease-in-out infinite;
}
.hero::after {
    content: ''; position: absolute; z-index: 0; pointer-events: none;
    width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(200,130,220,.15) 0%, transparent 70%);
    bottom: -40px; left: -40px;
    animation: heroFloatB 18s ease-in-out infinite;
}
@keyframes heroFloatA { 0%,100%{ transform: translate(0,0) } 50%{ transform: translate(-30px, 20px) } }
@keyframes heroFloatB { 0%,100%{ transform: translate(0,0) } 50%{ transform: translate(20px, -25px) } }
.hero-inner {
    position: relative; z-index: 2;
    max-width: 1120px; margin: 0 auto; padding: 72px 20px 96px;
    text-align: center;
}
.hero h1 {
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 900; letter-spacing: 1px; line-height: 1.3;
}
.hero h1 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { margin-top: 14px; color: var(--ink-2); font-size: 16px; }

.search-bar {
    margin: 34px auto 0; max-width: 620px;
    display: flex; align-items: center; gap: 8px;
    background: #fff; border-radius: 16px; padding: 10px 10px 10px 22px;
    box-shadow:
        0 1px 2px rgba(0,0,0,.04),
        0 8px 24px rgba(255,120,80,.08);
    border: 1.5px solid rgba(237,228,215,.9);
    transition: box-shadow .3s cubic-bezier(.2,.8,.2,1), border-color .2s;
}
.search-bar:focus-within {
    border-color: #FFC9A8;
    box-shadow:
        0 2px 4px rgba(0,0,0,.06),
        0 0 0 4px rgba(255,120,80,.12),
        0 14px 36px rgba(255,120,80,.14);
}
.search-bar svg { flex: none; }
.search-bar input {
    flex: 1; border: none; outline: none; background: none;
    font-size: 15.5px; color: var(--ink); min-width: 0;
}
.search-bar input::placeholder { color: var(--ink-3); }
.search-bar .btn { padding: 11px 26px; }

.hero-tags {
    margin-top: 22px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.hero-tags .hot-label {
    flex: 0 0 84px;
    width: 84px;
    font-size: 13px; font-weight: 700; color: var(--ink-1);
    letter-spacing: 0.3px;
    white-space: nowrap;
    display: flex; align-items: center;
    height: 25px;
}
.hero-tags .hot-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1 1 0;
}
.hero-tags .hot-pill {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 6px 16px;
    font-size: 13px; color: #5a5249;
    background: #F7F4F1;
    border-radius: 20px;
    text-decoration: none;
    transition: all .18s;
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: 1;
    height: 25px;
}
.hero-tags .hot-pill:hover {
    background: #FFF5F1;
    color: #E8725A;
    border-color: rgba(232,114,90,.2);
    transform: translateY(-1px);
}
.hero-tags .hot-pill-hot {
    background: linear-gradient(135deg,#FF7A45,#E8725A);
    color: #fff;
    font-weight: 600;
}
.hero-tags .hot-pill-hot:hover {
    background: linear-gradient(135deg,#FF8F5E,#E8725A);
    color: #fff;
}

.hero-wave { display: block; width: 100%; height: 70px; margin-top: -68px; position: relative; z-index: 1; }

/* ---------- Hero 分栏 + 聊天演示卡片 ---------- */
.hero-split {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
    align-items: center; text-align: left;
}
.hero-left .search-bar { margin-left: 0; }
.hero-left .hero-tags { justify-content: flex-start; }

.demo-card {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-radius: 24px;
    box-shadow:
        0 2px 4px rgba(0,0,0,.06),
        0 20px 40px -12px rgba(255,120,80,.22),
        0 40px 80px -24px rgba(255,90,120,.14);
    border: 1px solid rgba(255,255,255,.8);
    overflow: hidden; max-width: 400px; margin-left: auto;
    transform: rotate(1.2deg) translateY(0);
    transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s cubic-bezier(.2,.8,.2,1);
}
.demo-card:hover { transform: rotate(0.5deg) translateY(-6px); }
.demo-head {
    display: flex; align-items: center; gap: 6px;
    padding: 13px 18px; border-bottom: 1px solid var(--line);
    background: rgba(250,246,240,.6);
}
.demo-dot { width: 9px; height: 9px; border-radius: 50%; background: #E5DACB; }
.demo-dot:first-child { background: #FFB4A2; }
.demo-dot:nth-child(2) { background: #FFD9A0; }
.demo-dot:nth-child(3) { background: #B5E3A8; }
.demo-title { margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: 1px; }
.demo-body {
    height: 268px; overflow-y: auto; scrollbar-width: none;
    padding: 18px 16px 8px; display: flex; flex-direction: column;
    background:
      radial-gradient(circle at 85% 15%, rgba(255,138,101,.06), transparent 45%),
      radial-gradient(circle at 10% 90%, rgba(255,94,126,.05), transparent 45%);
}
.demo-body::-webkit-scrollbar { display: none; }
.demo-row { display: flex; margin-bottom: 12px; }
.demo-mine { justify-content: flex-end; }
.demo-bubble {
    max-width: 82%; padding: 9px 14px; font-size: 13.5px; line-height: 1.65;
    animation: fadeUp .3s ease both;
}
.demo-bubble-their {
    background: #fff; border: 1px solid var(--line);
    border-radius: 4px 14px 14px 14px; font-weight: 600;
    box-shadow: 0 3px 10px rgba(120,84,56,.07);
}
.demo-bubble-mine {
    background: #E4F3D8; border: 1px solid #D2E9C0; color: #2F4A22;
    border-radius: 14px 4px 14px 14px;
    box-shadow: 0 3px 10px rgba(90,140,60,.08);
}
.demo-foot {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-top: 1px solid var(--line);
    background: rgba(250,246,240,.6);
}
.demo-avatar-sm {
    width: 26px; height: 26px; border-radius: 9px; flex: none;
    background: var(--grad); color: #fff; display: grid; place-items: center;
    font-size: 12px; font-weight: 800;
}
.demo-input-hint { flex: 1; font-size: 12.5px; color: var(--ink-3); }

/* ---------- 数据条 ---------- */
.stats-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    margin-top: 8px;
}
.stats-bar .stat {
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid rgba(237,228,215,.6);
    padding: 20px 22px; text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.stats-bar .stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stats-bar b {
    display: block; font-size: 27px; font-weight: 900;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats-bar span { font-size: 12.5px; color: var(--ink-3); }

/* ---------- 每日一句 ---------- */
.daily-quote {
    display: block; margin-top: 18px;
    background: linear-gradient(120deg, #FFF6EE 0%, #FFF0F4 100%);
    border: 1px solid rgba(255,201,168,.55); border-radius: 22px;
    box-shadow: var(--shadow); padding: 24px 28px 18px;
    position: relative; overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.daily-quote::after {
    content: '✦'; position: absolute; right: 22px; top: 14px;
    font-size: 40px; color: rgba(255,122,69,.14);
}
.daily-quote:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.dq-badge {
    display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2px;
    color: var(--primary-2); margin-bottom: 10px;
}
.dq-text { font-size: 17.5px; font-weight: 600; line-height: 1.85; color: var(--ink); }
.dq-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.dq-more { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }

/* ---------- 大家都在复制 ---------- */
.copy-board { margin-bottom: 0; }
.copy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 26px; }
.copy-grid .dlg-group { padding: 12px 0 10px; }
.copy-grid .dlg-group + .dlg-group { border-top: none; }
.copy-meta {
    display: flex; align-items: center; justify-content: flex-end; gap: 4px;
    font-size: 11.5px; color: var(--ink-3); padding-right: 4px;
}

.hero-deco { position: absolute; border-radius: 50%; filter: blur(0); z-index: 1; opacity: .8; }

/* ---------- 通用 section ---------- */
.section { padding: 64px 0 12px; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head h2 { font-size: 26px; font-weight: 800; letter-spacing: .3px; }
.sec-head .more { margin-left: auto; color: var(--ink-3); font-size: 13.5px; transition: color .15s; }
.sec-head .more:hover { color: var(--primary); }

/* ---------- 分类浮岛 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.cat-card {
    background: var(--card); border-radius: var(--radius);
    padding: 20px 18px 16px; position: relative;
    box-shadow:
        0 1px 2px rgba(0,0,0,.04),
        0 6px 16px rgba(120,84,56,.08);
    border: 1px solid rgba(255,255,255,.9);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s cubic-bezier(.2,.8,.2,1);
    overflow: hidden;
}
.cat-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 52px;
    background: var(--cc, #FFE3D3); opacity: .55;
}
.cat-card::after {
    content: ''; position: absolute; inset: 0; border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255,255,255,.0) 0%, rgba(255,255,255,.6) 40%, rgba(255,255,255,0) 70%);
    opacity: 0; transition: opacity .3s; pointer-events: none;
}
.cat-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 2px 4px rgba(0,0,0,.06),
        0 14px 32px rgba(120,84,56,.14),
        0 28px 56px -16px rgba(255,120,80,.12);
}
.cat-card:hover::after { opacity: 1; }
.cat-card .cat-emoji { transition: transform .25s; }
.cat-card:hover .cat-emoji { transform: scale(1.1) rotate(-5deg); }
.cat-emoji {
    position: relative; width: 46px; height: 46px; border-radius: 14px;
    display: grid; place-items: center; font-size: 24px;
    background: #fff; box-shadow: 0 3px 10px rgba(120,84,56,.12);
    margin-bottom: 12px;
}
.cat-name { position: relative; font-weight: 700; font-size: 15.5px; }
.cat-meta { position: relative; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }

/* ---------- 话术卡片 ---------- */
.script-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.script-card {
    background: var(--card); border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow:
        0 1px 2px rgba(0,0,0,.04),
        0 6px 16px rgba(120,84,56,.08);
    border: 1px solid rgba(255,255,255,.9);
    display: flex; flex-direction: column; gap: 10px;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s cubic-bezier(.2,.8,.2,1);
    position: relative; overflow: hidden;
}
.script-card::before {
    content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px;
    border-radius: 4px; background: var(--cc, var(--primary)); opacity: .85;
}
.script-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 2px 4px rgba(0,0,0,.06),
        0 14px 32px rgba(120,84,56,.14),
        0 28px 56px -16px rgba(255,120,80,.12);
}
.sc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
    background: var(--grad-soft); color: #C05621;
}
.chip.stage-2 { color: #D6336C; }
.chip.stage-3 { color: #7048E8; }
.chip.style-chip { background: #F1EDE5; color: var(--ink-2); }
.sc-title { font-weight: 700; font-size: 16px; line-height: 1.45; }
.sc-title:hover { color: var(--primary); }
.sc-body {
    color: var(--ink-2); font-size: 13.8px; line-height: 1.75;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sc-foot { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 8px; color: var(--ink-3); font-size: 12.5px; }
.sc-foot .n { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- 详情页 ---------- */
.detail { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.detail-main { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); border: 1px solid rgba(237,228,215,.6); overflow: hidden; }
.detail-head { padding: 30px 34px 22px; background: var(--grad-soft); position: relative; }
.detail-head .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.detail-head .detail-chips { margin-bottom: 0; margin-top: 14px; align-items: center; }
.detail-views { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-3); margin-left: 4px; }
.detail-head h1 { font-size: 24px; font-weight: 800; line-height: 1.4; }
.detail-body { padding: 28px 34px 30px; font-size: 17px; line-height: 1.9; }
.speech-bubble {
    background: var(--grad-soft); border-radius: 4px 20px 20px 20px;
    padding: 22px 24px; font-size: 17px; line-height: 1.9; font-weight: 500;
    white-space: pre-wrap; position: relative;
}
.speech-label { font-size: 12.5px; color: var(--ink-3); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; letter-spacing: 1px; }
.tip-box {
    margin-top: 26px; border-radius: var(--radius); padding: 22px 24px 22px 28px;
    background: linear-gradient(120deg, #FFF7F0 0%, #FFF2F5 100%);
    border: 1px solid rgba(255,201,168,.5); position: relative; overflow: hidden;
}
.tip-box::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
    background: var(--grad);
}
.tip-box h3 { font-size: 15px; color: #C05621; margin-bottom: 10px; display: flex; gap: 6px; align-items: center; }
.tip-box p { font-size: 15px; color: var(--ink-2); line-height: 1.9; white-space: pre-wrap; }
.detail-foot { display: flex; gap: 12px; padding: 0 34px 30px; flex-wrap: wrap; }

/* 上一篇 / 下一篇 */
.pn-nav { display: flex; gap: 12px; padding: 0 34px 30px; }
.pn-item {
    flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px;
    background: var(--bg); border: 1px solid rgba(237,228,215,.8);
    border-radius: 14px; padding: 13px 16px;
    transition: border-color .18s, transform .18s, box-shadow .18s;
}
.pn-item .lab { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.pn-item .t { font-size: 14px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-item.next { text-align: right; }
a.pn-item:hover { border-color: #FFD3BF; transform: translateY(-2px); box-shadow: var(--shadow); }
a.pn-item:hover .t { color: var(--primary); }
.pn-item.off { opacity: .5; cursor: default; }

.lock-mask { position: relative; }
.lock-mask > p { filter: blur(7px); user-select: none; pointer-events: none; }
.lock-cover {
    position: absolute; inset: -6px; display: grid; place-items: center;
    background: linear-gradient(180deg, rgba(255,250,246,.2), rgba(255,250,246,.94));
    border-radius: var(--radius); text-align: center; padding: 20px;
}
.lock-cover .t { font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.lock-cover .d { font-size: 13.5px; color: var(--ink-2); margin-bottom: 16px; }

.detail-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.side-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(237,228,215,.6); padding: 20px 22px; }
.side-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.side-card ul { list-style: none; }
.side-card li { border-bottom: 1px dashed var(--line); }
.side-card li:last-child { border-bottom: none; }
.side-card li a { display: block; padding: 9px 0; font-size: 13.8px; color: var(--ink-2); transition: color .15s; line-height: 1.55; }
.side-card li a:hover { color: var(--primary); }

/* ---------- 会员卡 ---------- */
.vip-card {
    background: linear-gradient(135deg, #2D2A26 0%, #4A3F3A 100%);
    color: #fff; border-radius: 20px; padding: 24px 24px 22px;
    box-shadow: 0 14px 30px rgba(45,42,38,.3); position: relative; overflow: hidden;
}
.vip-card::after {
    content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,138,101,.45), transparent 70%);
    right: -40px; top: -40px;
}
.vip-card .t { font-weight: 800; font-size: 18px; letter-spacing: 1px; }
.vip-card .d { font-size: 13px; opacity: .75; margin: 6px 0 16px; }
.vip-card .quota { font-size: 13px; opacity: .85; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.15); padding-top: 12px; }

/* ---------- 列表页头部 ---------- */
.page-head { padding: 42px 0 26px; }
.page-head h1 { font-size: 27px; font-weight: 900; display: flex; align-items: center; gap: 12px; }
.page-head .desc { color: var(--ink-2); margin-top: 8px; font-size: 14.5px; max-width: 640px; }
.cat-badge {
    width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
    font-size: 28px; background: #fff; box-shadow: var(--shadow);
}
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 6px; }
.filter-bar a {
    padding: 6px 16px; border-radius: 999px; font-size: 13.5px;
    background: #fff; color: var(--ink-2); border: 1.5px solid var(--line);
    transition: all .15s;
}
.filter-bar a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-bar a:hover:not(.on) { border-color: var(--primary); color: var(--primary); }

/* ---------- 分页 ---------- */
.pager { display: flex; gap: 8px; justify-content: center; padding: 30px 0 10px; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 38px; height: 38px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; background: #fff; font-size: 14px; color: var(--ink-2);
    box-shadow: var(--shadow); border: 1px solid rgba(237,228,215,.6);
}
.pager .cur { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager a:hover:not(.cur) { color: var(--primary); border-color: #FFD3BF; }

/* ---------- 文章 ---------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.article-card {
    border-radius: var(--radius); overflow: hidden; background: var(--card);
    box-shadow:
        0 1px 2px rgba(0,0,0,.04),
        0 6px 16px rgba(120,84,56,.08);
    border: 1px solid rgba(255,255,255,.9);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s cubic-bezier(.2,.8,.2,1);
    display: flex; flex-direction: column;
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 2px 4px rgba(0,0,0,.06),
        0 14px 32px rgba(120,84,56,.14),
        0 28px 56px -16px rgba(255,120,80,.12);
}
.article-cover { height: 110px; position: relative; display: grid; place-items: center; }
.article-cover .em { font-size: 40px; }
.article-cover .tag { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(255,255,255,.25); backdrop-filter: blur(6px); padding: 3px 10px; border-radius: 999px; letter-spacing: 1px; }
.article-card .inner { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card h3 { font-size: 16.5px; font-weight: 700; line-height: 1.5; }
.article-card p { color: var(--ink-2); font-size: 13.3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .meta { margin-top: auto; color: var(--ink-3); font-size: 12px; display: flex; gap: 12px; }

.article-page { max-width: 760px; margin: 0 auto; }
.article-hero { border-radius: 24px; padding: 46px 40px; color: #fff; position: relative; overflow: hidden; }
.article-hero::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.12); right: -70px; top: -70px; }
.article-hero h1 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 900; line-height: 1.45; position: relative; z-index: 1; }
.article-hero .meta { margin-top: 14px; font-size: 13px; opacity: .85; position: relative; z-index: 1; }
.article-content {
    background: var(--card); border-radius: 22px; box-shadow: var(--shadow);
    border: 1px solid rgba(237,228,215,.6);
    padding: 36px 42px; margin-top: 22px;
    font-size: 15.5px; line-height: 2.05; color: #3D3831;
}
.article-content p { margin-bottom: 18px; }
.article-content strong { color: var(--ink); background: linear-gradient(transparent 62%, #FFE0CF 62%); padding: 0 2px; }
.article-summary { border-left: 4px solid var(--primary); background: var(--grad-soft); padding: 14px 18px; border-radius: 0 14px 14px 0; color: var(--ink-2); font-size: 14.5px; margin-bottom: 26px; line-height: 1.9; }

/* ---------- 表单页（登录/注册） ---------- */
.auth-wrap {
    min-height: calc(100vh - 64px - 90px);
    display: flex; justify-content: center; align-items: flex-start;
    padding: 60px 20px 50px;
}
.auth-card {
    width: 100%; max-width: 420px; margin: 0 auto;
    background: var(--card); border-radius: 24px; box-shadow: var(--shadow-lg);
    border: 1px solid rgba(237,228,215,.6); padding: 40px 38px;
}
.auth-card h1 { font-size: 23px; font-weight: 900; text-align: center; }
.auth-card .sub { text-align: center; color: var(--ink-3); font-size: 13.5px; margin: 8px 0 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field textarea, .field select {
    width: 100%; padding: 12px 16px; border-radius: 14px;
    border: 1.5px solid var(--line); background: #FCFAF7;
    font-size: 14.5px; color: var(--ink); outline: none;
    transition: border .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    border-color: #FFB08A; box-shadow: 0 0 0 4px rgba(255,138,101,.12); background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.8; }
.form-err {
    background: #FFF0F0; color: #C0392B; border: 1px solid #FFD4D4;
    border-radius: 12px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px;
}
.auth-switch { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }
.auth-switch a { color: var(--primary); font-weight: 600; }

/* ---------- 个人中心 ---------- */
.me-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.me-card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); border: 1px solid rgba(237,228,215,.6); padding: 24px; }
.me-profile { text-align: center; }
.avatar {
    width: 76px; height: 76px; border-radius: 26px; margin: 4px auto 14px;
    background: var(--grad); color: #fff; display: grid; place-items: center;
    font-size: 30px; font-weight: 900; box-shadow: 0 10px 24px rgba(255,110,90,.35);
}
.me-profile .name { font-weight: 800; font-size: 18px; }
.me-profile .pts { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.vip-tag { display: inline-block; margin-top: 10px; padding: 4px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.vip-tag.yes { background: linear-gradient(135deg, #2D2A26, #6B5B4F); color: #FFD9A0; }
.vip-tag.no { background: #F1EDE5; color: var(--ink-3); }
.me-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.me-stat { background: var(--bg-soft); border-radius: 14px; padding: 12px; text-align: center; }
.me-stat b { font-size: 20px; font-weight: 800; display: block; }
.me-stat span { font-size: 12px; color: var(--ink-3); }
.me-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.notice { border-radius: 14px; padding: 12px 16px; font-size: 14px; margin-bottom: 18px; }
.notice.ok { background: #EDF9F1; color: #1E7E46; border: 1px solid #CFF0DC; }
.notice.bad { background: #FFF3F0; color: #C0392B; border: 1px solid #FFD9CE; }

.redeem-box { display: flex; gap: 10px; margin-top: 14px; }
.redeem-box input {
    flex: 1; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line);
    background: #FCFAF7; outline: none; font-size: 14px; text-transform: uppercase;
    min-width: 0;
}
.redeem-box input:focus { border-color: #FFB08A; }

.fav-list { display: flex; flex-direction: column; gap: 12px; }
.fav-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--card); border: 1px solid rgba(237,228,215,.6);
    border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s;
}
.fav-item:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.fav-item .ic { width: 44px; height: 44px; border-radius: 13px; background: var(--cc, var(--grad-soft)); display: grid; place-items: center; font-size: 20px; flex: none; }
.fav-item .t { font-weight: 700; font-size: 14.5px; }
.fav-item .m { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.empty {
    text-align: center; padding: 60px 20px; color: var(--ink-3);
    background: var(--card); border-radius: 20px; border: 1.5px dashed var(--line);
}
.empty .em { font-size: 44px; margin-bottom: 10px; }

/* ---------- 页脚 ---------- */
.footer { margin-top: 70px; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 34px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.footer .tips { color: var(--ink-3); font-size: 12.5px; }

/* ---------- 后台 ---------- */
.admin-body { display: flex; min-height: 100vh; background: #F4F1EC; }
.admin-side { width: 220px; background: #23201D; color: #B8B0A4; padding: 22px 14px; flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { color: #fff; font-weight: 800; font-size: 17px; display: flex; align-items: center; gap: 8px; padding: 4px 10px 20px; }
.admin-side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 2px; transition: all .15s; }
.admin-side a:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-side a.on { background: var(--grad); color: #fff; font-weight: 600; }
.admin-main { flex: 1; padding: 28px 34px; min-width: 0; }
.admin-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 14px; flex-wrap: wrap; }
.admin-top h1 { font-size: 21px; font-weight: 800; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat-card { background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: 0 2px 10px rgba(60,50,40,.06); }
.stat-card b { font-size: 24px; font-weight: 800; display: block; }
.stat-card span { font-size: 12.5px; color: var(--ink-3); }
.admin-panel { background: #fff; border-radius: 16px; box-shadow: 0 2px 10px rgba(60,50,40,.06); padding: 22px 24px; margin-bottom: 20px; }
.admin-panel h2 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.8px; }
.admin-table th { text-align: left; color: var(--ink-3); font-weight: 600; font-size: 12.5px; padding: 8px 10px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 10px; border-bottom: 1px solid #F5F0E8; vertical-align: middle; }
.admin-table tr:hover td { background: #FCFAF6; }
.tag-sm { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.tag-ok { background: #EDF9F1; color: #1E7E46; }
.tag-no { background: #F1EDE5; color: var(--ink-3); }
.tag-vip { background: linear-gradient(135deg, #3A3430, #6B5B4F); color: #FFD9A0; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.inline-form { display: inline; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.code-text { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: #F7F3ED; padding: 3px 8px; border-radius: 8px; letter-spacing: .5px; }

/* ---------- 对话回复 · 聊天气泡 ---------- */
.dlg-section {
    background: var(--card); border-radius: 22px;
    box-shadow: var(--shadow); border: 1px solid rgba(237,228,215,.6);
    padding: 24px 26px; margin-bottom: 30px;
}
.dlg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.dlg-head-icon {
    width: 44px; height: 44px; border-radius: 14px; flex: none;
    background: var(--grad-soft); display: grid; place-items: center; font-size: 22px;
}
.dlg-head h2 { font-size: 18px; font-weight: 800; }
.dlg-head p { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.dlg-groups { display: flex; flex-direction: column; }
.dlg-group { padding: 16px 0 6px; }
.dlg-group + .dlg-group { border-top: 1px dashed var(--line); }
.dlg-group:first-child { padding-top: 4px; }

/* 对方的话：左侧白色气泡 + 表情头像 */
.dlg-their { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; }
.dlg-avatar {
    width: 34px; height: 34px; border-radius: 12px; flex: none;
    background: var(--bg-soft); display: grid; place-items: center; font-size: 18px;
    box-shadow: 0 2px 8px rgba(120,84,56,.08);
}
.dlg-bubble { position: relative; max-width: 78%; padding: 10px 15px; font-size: 14.5px; line-height: 1.7; }
.dlg-bubble-their {
    background: #fff; border: 1px solid var(--line);
    border-radius: 4px 16px 16px 16px; font-weight: 600;
    box-shadow: 0 3px 10px rgba(120,84,56,.07);
}

/* 建议回复：右侧柔和绿气泡（微信绿调淡，贴合暖色设计） */
.dlg-mine {
    display: flex; flex-direction: column; align-items: flex-end;
    margin-bottom: 14px;
}
.dlg-bubble-mine {
    background: #E4F3D8; border: 1px solid #D2E9C0; color: #2F4A22;
    border-radius: 16px 4px 16px 16px;
    box-shadow: 0 3px 10px rgba(90,140,60,.08);
    max-width: 78%;
}
.dlg-style {
    display: inline-block; vertical-align: 2px; margin-right: 7px;
    font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px;
    background: rgba(255,255,255,.75); color: #5B8C3E; border: 1px solid #C6E0AE;
}

/* 气泡上方的按钮工具栏 —— 正常文档流，右对齐 */
.dlg-bubble-tools {
    display: flex; gap: 5px;
    margin-bottom: 6px;
    opacity: .85;
    transition: opacity .15s;
}
.dlg-mine:hover .dlg-bubble-tools { opacity: 1; }
.dlg-bubble-tools .dlg-copy,
.dlg-bubble-tools .dlg-like,
.dlg-bubble-tools .dlg-predict {
    position: static;
}
.dlg-copy {
    border: none; background: rgba(255,255,255,.85); color: #5B8C3E;
    font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
    box-shadow: 0 1px 4px rgba(90,140,60,.15); transition: all .15s;
    white-space: nowrap;
}
.dlg-copy:hover { background: #fff; color: #3E6B27; }
.dlg-like {
    border: none; background: rgba(255,255,255,.85); color: #EF4444;
    font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
    box-shadow: 0 1px 4px rgba(239,68,68,.15); transition: all .15s;
    white-space: nowrap;
}
.dlg-like:hover { background: #EF4444; color: #fff; }
.dlg-like.on { background: #EF4444; color: #fff; }
.dlg-predict {
    border: none; background: rgba(255,255,255,.85); color: #8B5CF6;
    font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
    box-shadow: 0 1px 4px rgba(139,92,246,.15); transition: all .15s;
    white-space: nowrap;
}
.dlg-predict:hover { background: #8B5CF6; color: #fff; }
.dlg-predict-box {
    margin-top: 8px; background: #FAF7F2; border-radius: 12px; padding: 12px 14px;
    border: 1px dashed rgba(139,92,246,.3);
}
.dlg-predict-title {
    font-size: 12px; font-weight: 700; color: #8B5CF6; margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.dlg-predict-item {
    background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
    border: 1px solid rgba(139,92,246,.12);
}
.dlg-predict-item:last-child { margin-bottom: 0; }
.dlg-predict-reaction {
    font-size: 14px; font-weight: 600; color: var(--ink-1); margin-bottom: 4px;
}
.dlg-predict-emo {
    display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
    background: #F3E8FF; color: #8B5CF6; margin-right: 6px;
}
.dlg-predict-next {
    margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(0,0,0,.08);
    font-size: 13px; color: var(--ink-2);
}
.dlg-predict-next .label { font-weight: 700; color: var(--ink-3); font-size: 11px; margin-right: 6px; }
.dlg-predict-empty {
    font-size: 12px; color: var(--ink-3); padding: 6px 0;
}
.dlg-predict-loading {
    font-size: 12px; color: var(--ink-3); padding: 4px 0;
}
.dlg-predict-loading::after {
    content: '…'; animation: dots 1.2s steps(4,end) infinite;
}
@keyframes dots { 0%,20% { content: '.' } 40% { content: '..' } 60% { content: '...' } 80%,100% { content: '' } }
.dlg-warn {
    margin-top: 8px; padding: 6px 10px;
    background: rgba(255,170,80,.10); border-left: 3px solid #FF9F43;
    color: #B5631A; font-size: 12px; font-weight: 500; line-height: 1.5;
    border-radius: 4px;
}
.dlg-subtitle { font-size: 18px; font-weight: 800; margin: 6px 0 16px; }

/* ---------- 动画 ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .5s ease both; }
.d1 { animation-delay: .06s; } .d2 { animation-delay: .12s; } .d3 { animation-delay: .18s; }
.d4 { animation-delay: .24s; } .d5 { animation-delay: .3s; } .d6 { animation-delay: .36s; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .detail { grid-template-columns: 1fr; }
    .detail-side { position: static; }
    .me-grid { grid-template-columns: 1fr; }
    .nav-links a:not(.btn) { display: none; }
    .hero-split { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .hero-left .search-bar { margin-left: auto; }
    .hero-left .hero-tags { justify-content: center; }
    .demo-card { margin: 0 auto; transform: none; }
}
@media (max-width: 640px) {
    .script-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { padding: 46px 20px 80px; }
    .hero-right { display: none; }
    .stats-bar { gap: 10px; }
    .stats-bar .stat { padding: 14px 10px; }
    .stats-bar b { font-size: 21px; }
    .copy-grid { grid-template-columns: 1fr; gap: 0; }
    .daily-quote { padding: 20px 20px 16px; }
    .dq-text { font-size: 15.5px; }
    .pn-nav { flex-direction: column; }
    .detail-head, .detail-body, .detail-foot, .pn-nav { padding-left: 20px; padding-right: 20px; }
    .article-content { padding: 26px 22px; }
    .admin-side { width: 64px; }
    .admin-side .brand span, .admin-side a span { display: none; }
    .admin-main { padding: 20px 14px; }
    .search-bar { flex-wrap: wrap; border-radius: 20px; padding: 12px; }
    .search-bar input { padding: 6px 12px; }
    .search-bar .btn { width: 100%; }
    .dlg-section { padding: 18px 16px; }
    .dlg-bubble { max-width: 88%; font-size: 14px; }
    .dlg-bubble-tools { gap: 4px; }
    .dlg-bubble-tools .dlg-copy,
    .dlg-bubble-tools .dlg-like,
    .dlg-bubble-tools .dlg-predict { padding: 2px 7px; font-size: 10.5px; }
}

/* ============================================================
   智能分析器 (.ana-*)
   ============================================================ */
.ana-wrap { padding-top: 28px; padding-bottom: 60px; }
.ana-head h1 { font-size: 28px; font-weight: 800; }
.ana-sub { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; }

.ana-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    margin-top: 24px;
}

/* 控制栏 */
.ana-controls {
    display: flex; gap: 16px; flex-wrap: wrap;
    margin-bottom: 14px;
}
.ana-field { display: flex; align-items: center; gap: 8px; }
.ana-field label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.ana-field select {
    padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line);
    background: #fff; font-size: 14px; color: var(--ink); cursor: pointer;
    transition: border-color .18s, box-shadow .18s;
}
.ana-field select:hover { border-color: var(--primary); }
.ana-field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,122,69,.15); }

/* 输入卡片 */
.ana-input-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.ana-input-card textarea {
    width: 100%;
    border: none;
    resize: none;
    background: transparent;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink);
    min-height: 90px;
}
.ana-input-card textarea:focus { outline: none; }
.ana-input-foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px;
}
.ana-count { font-size: 13px; color: var(--ink-3); }
.ana-analyze { padding: 10px 24px; font-size: 14.5px; }

/* 示例按钮 */
.ana-examples {
    margin-top: 14px;
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}
.ana-ex-label { font-size: 13px; color: var(--ink-3); }
.ana-ex {
    padding: 6px 14px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-2);
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
}
.ana-ex:hover { border-color: var(--primary); color: var(--primary); background: #FFF8F3; }

/* 情绪结果卡片 */
.ana-result { margin-top: 20px; }
.emo-card {
    background: var(--grad-soft);
    border-radius: var(--radius);
    padding: 22px;
    display: flex; gap: 18px;
    box-shadow: var(--shadow);
}
.emo-emoji {
    font-size: 52px;
    width: 80px; height: 80px;
    display: grid; place-items: center;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 4px 12px rgba(255,122,69,.12);
    flex-shrink: 0;
}
.emo-body { flex: 1; }
.emo-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.emo-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.emo-score { color: var(--ink-2); font-size: 14px; }
.emo-score b { color: var(--primary); font-size: 20px; font-weight: 800; }
.emo-bar {
    height: 6px;
    background: #fff;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}
.emo-bar-fill {
    height: 100%;
    background: var(--grad);
    border-radius: 999px;
    transition: width .6s ease;
    width: 0%;
}
.emo-interpret {
    color: var(--ink);
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 10px;
}
.emo-matches { display: flex; gap: 6px; flex-wrap: wrap; }
.emo-chip {
    padding: 3px 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    color: var(--ink-2);
}

/* 推荐回复区 */
.ana-replies { margin-top: 24px; }
.ana-replies-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px; flex-wrap: wrap; gap: 10px;
}
.ana-replies-head h3 { font-size: 17px; font-weight: 700; }
.ana-style-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ana-style-tab {
    padding: 6px 14px;
    border: 1.5px solid var(--line);
    background: #fff;
    border-radius: 999px;
    font-size: 13px;
    color: var(--ink-2);
    cursor: pointer;
    transition: all .15s;
}
.ana-style-tab:hover { border-color: var(--primary); color: var(--primary); }
.ana-style-tab.active { background: var(--grad); color: #fff; border-color: transparent; }

.ana-reply-list { display: flex; flex-direction: column; gap: 14px; }
.ana-reply-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    transition: transform .15s;
}
.ana-reply-card:hover { transform: translateY(-2px); }
.ana-reply-their { margin-bottom: 8px; }
.ana-reply-mine { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.ana-reply-bubble {
    max-width: 85%;
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 14.5px;
    line-height: 1.6;
    position: relative;
}
.ana-reply-bubble.their {
    background: var(--bg-soft);
    color: var(--ink);
    border-bottom-left-radius: 6px;
    display: inline-block;
}
.ana-reply-bubble.mine {
    background: var(--grad);
    color: #fff;
    border-bottom-right-radius: 6px;
    text-align: left;
    padding-right: 70px;
}
.ana-reply-style {
    display: inline-block;
    padding: 1px 8px;
    background: rgba(255,255,255,.25);
    border-radius: 4px;
    font-size: 11px;
    margin-right: 8px;
    vertical-align: middle;
}
.ana-reply-copy {
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.2);
    border: none;
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    transition: background .15s;
}
.ana-reply-copy:hover { background: rgba(255,255,255,.35); }

.ana-reply-meta {
    display: flex; gap: 14px; align-items: center;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--ink-3);
    padding-top: 8px;
    border-top: 1px dashed var(--line);
}
.ana-stage-pill {
    padding: 2px 8px;
    background: var(--bg-soft);
    border-radius: 4px;
    font-size: 11px;
    color: var(--ink-2);
}
.ana-warning {
    color: var(--primary);
    background: rgba(255,122,69,.08);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
}
.ana-reply-fav {
    margin-left: auto;
    padding: 4px 12px;
    border: 1.5px solid var(--line);
    background: #fff;
    border-radius: 999px;
    font-size: 12px;
    color: var(--ink-2);
    cursor: pointer;
    transition: all .15s;
}
.ana-reply-fav:hover { border-color: var(--primary); color: var(--primary); }
.ana-reply-fav.faved { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 预判区域 */
.ana-reply-predictions {
    margin: 8px 0 4px;
    padding: 10px 12px;
    background: #FAF7F4;
    border-radius: 10px;
    border-left: 3px solid #FF7A45;
}
.ana-pred-title {
    font-size: 12px;
    font-weight: 600;
    color: #8A7F76;
    margin-bottom: 6px;
}
.ana-pred-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ana-pred-chip {
    font-size: 12px;
    padding: 3px 10px;
    background: #fff;
    border: 1px solid #F0E7DF;
    border-radius: 12px;
    color: #5a5249;
    cursor: default;
    transition: all .15s;
}
.ana-pred-chip:hover {
    background: #FFF2ED;
    border-color: #FF7A45;
    color: #E8725A;
}

.ana-empty { text-align: center; padding: 30px; color: var(--ink-3); }

/* 侧栏 历史 */
.ana-side {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    max-height: calc(100vh - 120px);
    position: sticky;
    top: 88px;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.ana-side-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
.ana-side-head h4 { font-size: 14px; font-weight: 700; }
.ana-side-tip { font-size: 12px; color: var(--ink-3); }
.ana-history {
    display: flex; flex-direction: column; gap: 6px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 80px;
}
.ana-history-empty, .ana-history-loading {
    text-align: center; padding: 20px 10px;
    color: var(--ink-3); font-size: 13px;
}
.ana-history-item {
    position: relative;
    padding: 8px 28px 8px 30px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s;
}
.ana-history-item:hover { background: var(--bg-soft); }
.ana-history-info { display: flex; flex-direction: column; gap: 2px; }
.ana-history-emotion {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    width: fit-content;
}
.ana-history-text {
    font-size: 13px;
    color: var(--ink);
    line-height: 1.5;
}
.ana-history-time { font-size: 11px; color: var(--ink-3); }
.ana-history-play, .ana-history-x {
    position: absolute; top: 8px;
    background: none; border: none;
    cursor: pointer;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 12px;
    color: var(--ink-3);
    transition: all .15s;
}
.ana-history-play { left: 4px; }
.ana-history-play:hover { background: var(--primary); color: #fff; }
.ana-history-x { right: 4px; }
.ana-history-x:hover { background: var(--ink-3); color: #fff; }

/* 历史面板头部操作按钮 */
.ana-side-actions { display: flex; gap: 6px; }
.ana-clear-btn { color: #EF4444 !important; font-size: 11.5px !important; }

/* 历史分页控件 —— 固定在面板底部 */
.ana-history-pager {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
    flex-wrap: wrap; flex-shrink: 0;
}
.ana-pager-info { font-size: 11px; color: var(--ink-3); margin-right: 6px; }
.ana-pager-btn {
    min-width: 24px; height: 24px; padding: 0 7px;
    border: 1px solid var(--line); background: #fff; color: var(--ink-2);
    font-size: 12px; font-weight: 600; border-radius: 6px;
    cursor: pointer; transition: all .15s;
}
.ana-pager-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.ana-pager-btn.cur { background: var(--primary); color: #fff; border-color: var(--primary); }
.ana-pager-btn:disabled { opacity: .35; cursor: not-allowed; }

.hidden { display: none !important; }

/* ============================================================
   热门排行榜 (.hot-*)
   ============================================================ */
.page-head { margin-top: 32px; margin-bottom: 10px; }
.page-head h1 { font-size: 26px; font-weight: 800; }
.page-sub { color: var(--ink-2); font-size: 14px; margin-top: 4px; }

.hot-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; padding-bottom: 60px; }
.hot-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 18px;
    align-items: start;
    box-shadow: var(--shadow);
    transition: transform .15s;
}
.hot-item:hover { transform: translateY(-2px); }
.hot-top { position: relative; overflow: hidden; }
.hot-top::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--grad);
}
.hot-top-1::before { height: 6px; background: linear-gradient(90deg, #FFD700, #FF7A45); }
.hot-top-2::before { height: 5px; background: linear-gradient(90deg, #C0C0C0, #FF7A45); }
.hot-top-3::before { height: 4px; background: linear-gradient(90deg, #CD7F32, #FF7A45); }

.hot-rank { display: flex; align-items: center; justify-content: center; padding-top: 4px; }
.hot-medal { font-size: 28px; }
.hot-num { font-size: 22px; font-weight: 800; color: var(--ink-3); }

.hot-body { display: flex; flex-direction: column; gap: 8px; }
.hot-line { display: flex; gap: 10px; align-items: start; }
.hot-label {
    flex-shrink: 0;
    width: 34px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-3);
    padding-top: 4px;
}
.hot-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.55;
    max-width: 100%;
}
.hot-bubble.their { background: var(--bg-soft); color: var(--ink); border-bottom-left-radius: 4px; }
.hot-bubble.mine {
    background: var(--grad); color: #fff; border-bottom-right-radius: 4px;
    position: relative;
}
.hot-style-chip {
    display: inline-block;
    padding: 1px 8px;
    background: rgba(255,255,255,.25);
    border-radius: 4px;
    font-size: 11px;
    margin-right: 6px;
    vertical-align: middle;
}

.hot-meta {
    display: flex; flex-direction: column;
    gap: 10px; align-items: flex-end;
    min-width: 110px;
}
.hot-stats {
    display: flex; flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--ink-3);
    text-align: right;
}

/* ============================================================
   个人中心 dialogue 收藏 (.me-dlg-*)
   ============================================================ */
.me-block-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ink);
}
.me-dlg-favs { display: flex; flex-direction: column; gap: 12px; }
.me-dlg-fav {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
}
.me-dlg-row { display: flex; gap: 10px; margin-bottom: 6px; }
.me-dlg-row:last-of-type { margin-bottom: 8px; }
.me-dlg-tag {
    flex-shrink: 0;
    width: 36px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-3);
    padding-top: 4px;
}
.me-dlg-text {
    font-size: 14px; line-height: 1.55;
    background: var(--bg-soft); padding: 8px 12px; border-radius: 12px;
}
.me-dlg-row-mine .me-dlg-text { background: var(--grad); color: #fff; }
.me-dlg-style {
    display: inline-block;
    padding: 1px 8px;
    background: rgba(255,255,255,.25);
    border-radius: 4px;
    font-size: 11px;
    margin-right: 6px;
}
.me-dlg-foot {
    display: flex; gap: 12px; align-items: center;
    font-size: 12px; color: var(--ink-3);
    padding-top: 8px;
    border-top: 1px dashed var(--line);
}
.me-dlg-copy {
    margin-left: auto;
    padding: 4px 12px;
    background: var(--grad);
    border: none;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: transform .15s;
}
.me-dlg-copy:active { transform: scale(.95); }

/* ============================================================
   响应式补充
   ============================================================ */
@media (max-width: 900px) {
    .ana-layout { grid-template-columns: 1fr; }
    .ana-side { position: static; max-height: none; }
    .ana-side-head { margin-top: 10px; }
    .hot-item { grid-template-columns: 50px 1fr; }
    .hot-meta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; min-width: 0; }
    .hot-stats { flex-direction: row; gap: 14px; }
}
@media (max-width: 640px) {
    .ana-head h1 { font-size: 22px; }
    .emo-card { flex-direction: column; align-items: center; text-align: center; }
    .emo-head { justify-content: center; }
    .ana-style-tabs { width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
    .ana-replies-head { flex-direction: column; align-items: flex-start; }
    .ana-reply-bubble { max-width: 95%; font-size: 14px; }
    .ana-reply-bubble.mine { padding-right: 60px; }
    .hot-bubble { font-size: 13px; padding: 8px 12px; }
}
