/* ==========================================================================
   人间烟火故事 · 设计系统
   暖宅书卷风：米白纸底 + 深褐墨字 + 赭红点缀 + 金黄暖光
   移动端优先，宽屏留白；让“家长里短的人间百味”有温度、有烟火气
   ========================================================================== */
:root {
  --paper: #f7f0e3;          /* 米白纸底 */
  --paper-2: #eef0e6;        /* 浅青灰绿 */
  --card: #fffdf7;           /* 卡片暖白 */
  --ink: #4a3b2f;            /* 主墨字 */
  --ink-2: #7a6a58;          /* 次级灰褐 */
  --ink-3: #a69782;          /* 弱化 */
  --line: #e6dcc9;           /* 分隔线 */
  --brand: #a83a2a;          /* 赭红 / 主品牌 */
  --brand-deep: #7e2b1f;     /* 深赭红 */
  --gold: #c98a2d;           /* 暖金点缀 */
  --gold-soft: #f3e3c2;
  --green: #5f8f52;          /* 免费/好 */
  --shadow: 0 6px 20px rgba(92, 62, 35, .08);
  --shadow-lg: 0 12px 34px rgba(92, 62, 35, .14);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Serif SC", serif;
  line-height: 1.7; font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- 顶部导航 ---------- */
.topbar { background: linear-gradient(135deg, #8f2b1e 0%, #a83a2a 55%, #b94a31 100%); color: #fff; box-shadow: 0 3px 14px rgba(126,43,31,.3); position: sticky; top: 0; z-index: 50; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #5a2c12; font-size: 12px; letter-spacing: 0; line-height: 1.1;
}
.brand__txt { display: flex; flex-direction: column; line-height: 1.2; font-weight: 700; font-size: 18px; color: #fff; }
.brand__txt em { font-style: normal; font-weight: 400; font-size: 11px; color: #ffd9a8; letter-spacing: 1px; }
.nav { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.nav a { color: rgba(255,255,255,.88); padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a.on { color: #fff; border-bottom-color: var(--gold); font-weight: 600; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 10px 20px; font-size: 15px; cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--brand) 0%, #c04a2e 100%); border: none; color: #fff; box-shadow: 0 6px 16px rgba(168,58,42,.28); }
.btn-gold { background: linear-gradient(135deg, #d8a43e 0%, var(--gold) 100%); border: none; color: #5a2c12; font-weight: 700; box-shadow: 0 6px 16px rgba(201,138,45,.3); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-mini { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }

/* ---------- 区块标题 ---------- */
.sec { margin: 26px 0 12px; }
.sec__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sec__title { font-size: 20px; font-weight: 700; color: var(--brand-deep); position: relative; padding-left: 0; }
.sec__title::before { content: ""; width: 6px; border-radius: 3px; background: linear-gradient(var(--gold), var(--brand)); }
.sec__sub { margin-left: auto; color: var(--ink-3); font-size: 13px; cursor: pointer; }
.sec__sub:hover { color: var(--brand); }

/* ---------- 卡片 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.story {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
  transition: transform .18s, box-shadow .18s; position: relative;
}
.story:active { transform: translateY(-1px); }
.story__top { display: flex; align-items: center; gap: 6px; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; letter-spacing: .5px; }
.badge-free { background: #e9f2e2; color: var(--green); }
.badge-paid { background: #fbe4dc; color: var(--brand); }
.badge-cat { background: var(--gold-soft); color: #8a5a15; }
.badge-new { background: #ffe0b0; color: #a05e12; }
.story h3 { margin: 0; font-size: 17px; line-height: 1.5; color: #43362a; font-weight: 700; }
.story p.desc { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.story__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); }
.story__price { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price-tag { font-weight: 700; color: var(--brand); font-size: 16px; }
.price-tag .cur { font-size: 12px; }
.price-free { color: var(--green); }
.read-link { font-size: 13px; color: var(--brand); font-weight: 600; }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 760px) { .grid-2 {} .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Banner / 首屏 ---------- */
/* ---------- 一体沉浸式首屏（导航融在画面里，滚动才收成毛玻璃条）---------- */
.site-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(255, 224, 168, .9), transparent 58%),
    radial-gradient(95% 70% at 8% 0%, rgba(255, 200, 140, .7), transparent 60%),
    linear-gradient(174deg, #b5492f 0%, #d1703c 30%, #e7a55f 58%, #f4cf99 82%, var(--paper) 100%);
  padding-bottom: 0;
}
/* 导航：透明浮在画面上方，文字白色；滚动后加 .is-stuck 变毛玻璃 */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: background .25s, box-shadow .25s, backdrop-filter .25s; }
.site-nav.is-stuck {
  background: rgba(86, 36, 24, .82);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 4px 18px rgba(60, 22, 12, .3);
}
.site-nav__in { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 10px; }
/* 无深色 hero 的页面（如个人中心）：导航常驻深色实底 */
.site-nav--solid { background: rgba(86, 36, 24, .94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); box-shadow: 0 3px 14px rgba(60,22,12,.28); }
/* 三段式导航：中间菜单居中、右侧账户区 */
.nav--center { flex: 1 1 auto; display: flex; justify-content: center; gap: 26px; }
.nav-account { display: flex; align-items: center; flex: 0 0 auto; }
.nav-guest { display: flex; align-items: center; gap: 9px; }
.nav-btn { display: inline-block; padding: 6px 17px; border-radius: 18px; font-size: 13.5px; line-height: 1.4; transition: all .18s; }
.nav-btn--ghost { border: 1.4px solid rgba(255,255,255,.72); color: #fff; }
.nav-btn--ghost:hover { background: rgba(255,255,255,.16); }
.nav-btn--primary { background: var(--brand); color: #fff; box-shadow: 0 3px 10px rgba(168,58,42,.32); }
.nav-btn--primary:hover { filter: brightness(1.06); }
.nav-userlink { color: #fff; font-size: 14px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.site-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; color: #fff; text-shadow: 0 1px 8px rgba(80,30,10,.35); }
.site-brand__logo { width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto; display: block; box-shadow: 0 2px 8px rgba(120,60,10,.35); background: rgba(255,255,255,.12); }
.site-nav__links { display: flex; align-items: center; gap: 22px; }
.site-nav__links a { color: rgba(255, 246, 232, .9); font-size: 15px; position: relative; padding: 4px 0; }
.site-nav__links a.on { color: #fff; }
.site-nav__links a.on::after { content: ""; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); width: 18px; height: 3px; border-radius: 2px; background: #f0b84e; }
.site-nav.is-stuck .site-nav__links a { color: rgba(255,255,255,.9); }
/* 顶部导航窄屏压缩：隐藏品牌文字只留logo，紧凑链接 */
@media (max-width: 640px) {
  .site-nav__in { min-height: 52px; gap: 6px; }
  .site-nav__in .site-brand span { display: none; }
  .nav--center { gap: 13px; font-size: 13px; }
  .nav--center a { padding: 5px 1px; }
  .nav-guest { gap: 7px; }
  .nav-btn { padding: 5px 12px; font-size: 13px; }
}

.hero-body { position: relative; z-index: 2; padding: 78px 4px 10px; text-align: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; letter-spacing: 3px; color: #ffe6bf;
  border: 1px solid rgba(255, 220, 170, .4); border-radius: 999px; padding: 5px 14px; margin-bottom: 16px;
  background: rgba(120, 50, 25, .22);
}
.hero-body h1 { margin: 0 0 10px; font-size: 32px; line-height: 1.28; letter-spacing: 3px; font-weight: 800; text-shadow: 0 3px 16px rgba(80,28,10,.4); }
.hero-body h1 .accent { color: #ffd27a; }
.hero-body .hero-sub { margin: 0 auto 18px; max-width: 560px; color: #ffe9d2; font-size: 14.5px; }
.hero__cta { display: flex; gap: 11px; flex-wrap: wrap; justify-content: center; padding-bottom: 6px; }
.hero__cta .btn { padding: 11px 26px; }
.hero-search {
  margin: 18px auto 0; max-width: 520px; display: flex; align-items: center; gap: 8px;
  background: rgba(255, 250, 240, .95); border-radius: 999px; padding: 7px 8px 7px 18px;
  box-shadow: 0 10px 26px rgba(90, 40, 15, .28); color: var(--ink-3); cursor: text;
}
.hero-search span { flex: 1; text-align: left; font-size: 14px; }
.hero-search b { flex: 0 0 auto; background: linear-gradient(135deg, var(--brand), #c04a2e); color: #fff; border-radius: 999px; padding: 7px 18px; font-size: 13px; font-weight: 600; }
/* 场景插画：贴在首屏底部，文字浮在其上 */
.hero-scene { position: relative; z-index: 1; display: block; width: 100%; height: 220px; margin-top: 18px; }
@media (min-width: 720px) { .hero-scene { height: 300px; } .hero-body h1 { font-size: 42px; } }
.hero-wave { display: block; width: 100%; line-height: 0; margin-top: -2px; }
.hero-wave svg { display: block; width: 100%; height: 34px; }

/* 首屏数据小标签 */
.hero-stats { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin: 4px 0 2px; }
.hero-stats .hs b { display: block; font-size: 19px; color: #ffd27a; font-weight: 800; }
.hero-stats .hs span { font-size: 12px; color: #ffe3c4; }

/* 兼容旧引用（内页仍用 .topbar / .hero，保留原视觉） */
.hero {
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.18), transparent 45%),
              linear-gradient(150deg, #5f2b1d 0%, #a83a2a 60%, #ca7a2f 140%);
  color: #fff; border-radius: 0 0 22px 22px; padding: 34px 20px 40px; position: relative; overflow: hidden;
}
.hero h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.35; letter-spacing: 1px; }
.hero p { margin: 0 0 18px; color: #ffdcc0; font-size: 14px; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 今日主打大卡 ---------- */
.feature {
  position: relative; border-radius: 20px; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #7e2b1f 0%, #a83a2a 58%, #c16a30 130%);
  box-shadow: var(--shadow-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.feature__tag { align-self: flex-start; font-size: 12px; background: rgba(255, 210, 122, .22); border: 1px solid rgba(255, 220, 150, .5); color: #ffe2ad; border-radius: 999px; padding: 4px 12px; letter-spacing: 1px; }
.feature h3 { margin: 0; font-size: 21px; line-height: 1.4; }
.feature p { margin: 0; color: #ffddc2; font-size: 14px; }
.feature__foot { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: #ffd9b6; margin-top: 2px; }
.feature__go { margin-left: auto; background: linear-gradient(135deg, #e0ab46, #cf8e2e); color: #5a2c12; font-weight: 700; border-radius: 999px; padding: 9px 22px; font-size: 14px; }

/* ---------- 烟火碎片金句条 ---------- */
.quote-strip { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 10px; }
.quote-strip::-webkit-scrollbar { display: none; }
.quote-card { flex: 0 0 78%; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .quote-card { flex: 0 0 32%; } }
.quote-card p { margin: 0 0 8px; font-size: 14px; color: var(--ink); }
.quote-card span { font-size: 12px; color: var(--ink-3); }

/* ---------- 读者回声 ---------- */
.echo-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .echo-grid { grid-template-columns: repeat(3, 1fr); } }
.echo { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.echo__who { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.echo__av { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 700; flex: 0 0 auto; }
.echo__who b { font-size: 13.5px; display: block; line-height: 1.2; }
.echo__who small { font-size: 11.5px; color: var(--ink-3); }
.echo p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* ---------- 分类胶囊 ---------- */
.catbar { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.catbar::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--ink-2); }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- 文章阅读页 ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 18px 20px 40px; }
.article__title { font-size: 24px; line-height: 1.5; font-weight: 700; color: #3c2f22; margin: 6px 0 8px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 16px; }
.article__meta .pill { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.article__body { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); }
.article__body h4 { margin: 0 0 10px; color: var(--brand); font-size: 14px; letter-spacing: 2px; }
.article__body p { margin: 0 0 14px; font-size: 16px; text-indent: 2em; line-height: 1.95; color: #44372a; }
.read-more { border-top: 1px dashed var(--line); padding-top: 16px; }

/* 付费墙 */
.lock {
  background: linear-gradient(180deg, #fff 0%, #faf0df 100%); border: 1px solid var(--gold-soft);
  border-radius: var(--radius); padding: 22px; text-align: center; margin-top: 18px;
  box-shadow: var(--shadow);
}
.lock__icon { font-size: 34px; margin-bottom: 6px; }
.lock__price { font-size: 40px; font-weight: 800; color: var(--brand); line-height: 1; }
.lock__price small { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.lock__desc { color: var(--ink-2); font-size: 13px; margin: 8px 0 14px; }

.qr-panel { display: none; margin: 16px auto 0; }
.qr-panel img { width: 200px; height: 200px; margin: 0 auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* ---------- 列表页 ---------- */
.sortbar { display: flex; gap: 8px; margin: 4px 0 14px; }
.sortbar .chip { padding: 6px 14px; font-size: 13px; }
.grid-list { display: grid; gap: 14px; }
@media (min-width: 760px) { .grid-list { grid-template-columns: 1fr 1fr; } }

/* ---------- 用户中心 / 表单 ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.panel h3 { margin: 0 0 12px; font-size: 16px; color: var(--brand-deep); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
  font-size: 15px; font-family: inherit; background: #fffdf8; color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.order-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.order-item:last-child { border-bottom: none; }
.order-item .oi-main { flex: 1; }
.order-item .oi-title { font-weight: 600; color: #43362a; }
.order-item .oi-time { font-size: 12px; color: var(--ink-3); }
.order-item .oi-price { font-weight: 700; color: var(--brand); }

.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.tag-green { background: #e9f2e2; color: var(--green); }
.tag-red {background: #fbe4dc; color: var(--brand); }
.tag-gray { background: #eee; color: var(--ink-2); }

/* ---------- 首页/列表 故事卡片（丰富版）---------- */
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.story__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.story__cat { font-size: 12px; color: var(--gold); background: var(--gold-soft); border-radius: 6px; padding: 2px 9px; }
.story__title { margin: 0; font-size: 17px; line-height: 1.45; color: #3c2f22; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story__brief { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story__foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.tag-price { background: #fbe4dc; color: var(--brand); font-weight: 700; }
.tag-free { background: #e9f2e2; color: var(--green); font-weight: 700; }

/* ---------- 最新更新 列表行 ---------- */
.grid-list { display: flex; flex-direction: column; gap: 10px; }
.list-row { display: flex; align-items: stretch; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; box-shadow: var(--shadow); }
.list-row__main { flex: 1; min-width: 0; }
.list-row__cat { font-size: 11.5px; color: var(--gold); }
.list-row__title { margin: 2px 0 4px; font-size: 15.5px; font-weight: 700; color: #3c2f22; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row__brief { margin: 0; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row__side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 5px; }
.list-row__side small { font-size: 11px; color: var(--ink-3); }

/* ---------- 后台 ---------- */
.admin-bar { background: #3c2f22; color: #fff; position: sticky; top: 0; z-index: 60; }
.admin-bar .wrap { display: flex; align-items: center; gap: 16px; min-height: 52px; font-size: 14px; }
.admin-bar a { color: #d8c9b2; }
.admin-bar a.on { color: #fff; border-bottom: 2px solid var(--gold); }
.tablewrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { color: var(--ink-3); font-weight: 600; }
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
@media (min-width: 760px) { .stat-cards { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.stat-card .num { font-size: 24px; font-weight: 800; color: var(--brand); line-height: 1.2; }
.stat-card .lab { font-size: 12px; color: var(--ink-3); }

/* ---------- 页脚 ---------- */
.foot { background: #3a2c20; color: #cdbfa8; padding: 30px 0 26px; margin-top: 40px; font-size: 12.5px; }
.foot__line { margin: 6px 0; line-height: 2; }
.foot a { color: #e8dcc6; }
.foot a:hover { color: #fff; }
.foot__sites { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot__sites a { background: rgba(255,255,255,.08); padding: 3px 10px; border-radius: 6px; }
.foot__meta a { margin-right: 14px; }

/* 页脚四栏布局 */
.foot__grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 1120px; margin: 0 auto; padding: 0 18px; }
@media (min-width: 720px) { .foot__grid { grid-template-columns: 2fr 1fr 1fr 1.1fr; gap: 22px; } }
.foot__col { display: flex; flex-direction: column; }
.foot__col-links { display: flex; flex-direction: column; gap: 7px; }
.foot__col-links a { color: #cdbfa8; text-decoration: none; line-height: 1.4; transition: color .15s; }
.foot__col-links a:hover { color: #fff; }
.foot__h { font-size: 13.5px; font-weight: 700; color: #f4e9d4; margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.foot__h::before { content: ""; width: 4px; height: 14px; border-radius: 3px; background: linear-gradient(#e7b44b, #c98a2d); }
.foot__links { display: flex; flex-wrap: wrap; gap: 7px 12px; line-height: 1.9; }
.foot__links a { color: #d8c9ae; text-decoration: none; }
.foot__links a:hover { color: #fff; }
.foot__chips { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.foot__chips a { display: inline-flex; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); color: #e6d9c0; text-decoration: none; padding: 4px 13px; border-radius: 20px; font-size: 12.5px; transition: background .2s; }
.foot__chips a:hover { background: rgba(255,255,255,.15); color: #fff; }
.foot__brandrow { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.foot__brandrow img { width: 40px; height: 40px; border-radius: 10px; display: block; }
.foot__brandrow .t { font-size: 15px; font-weight: 700; color: #f4e9d4; }
.foot__about { color: #c9baa1; line-height: 1.8; }
.foot__friendlinks { display: flex; flex-wrap: wrap; gap: 12px; }
.foot__friend { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); padding: 6px 10px; border-radius: 9px; color: #e6d9c0; text-decoration: none; min-width: 132px; transition: background .2s; }
.foot__friend img { width: 22px; height: 22px; border-radius: 5px; display: block; }
.foot__col-kefu { align-items: center; text-align: center; }
@media (min-width: 720px) { .foot__col-kefu { align-items: flex-start; text-align: left; } }
.foot__kefu { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.foot__kefu img { width: 108px; height: 108px; border-radius: 12px; background: #fff; padding: 5px; box-shadow: 0 2px 8px rgba(0,0,0,.25); display: block; }
.foot__kefu-t { color: #c9baa1; font-size: 12px; margin: 0; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.foot__friend:hover { background: rgba(255,255,255,.14); color: #fff; }
.foot__linksrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; max-width: 1120px; margin: 26px auto 0; padding: 16px 18px 0; border-top: 1px solid rgba(255,255,255,.1); }
.foot__links-t { color: #b3a58c; font-size: 13px; white-space: nowrap; }
.foot__links-t strong { color: #d8c9ae; font-weight: 600; }
.foot__bottom { max-width: 1120px; margin: 18px auto 0; padding: 14px 18px 0; border-top: 1px solid rgba(255,255,255,.1); text-align: center; color: #b3a58c; line-height: 2; }
.foot__bottom-row { font-size: 12.5px; }
.foot__bottom a { color: #cbbca1; }
.foot__bottom a:hover { color: #fff; }
.foot__admin { display: inline-block; }

/* 空态 / 加载 */
.empty { text-align: center; color: var(--ink-3); padding: 40px 0; }
.empty .big { font-size: 40px; margin-bottom: 6px; }
.loading { text-align: center; color: var(--ink-3); padding: 30px 0; font-size: 13px; }

/* 提示条 */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: rgba(58,44,32,.94); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; z-index: 200; box-shadow: var(--shadow-lg); animation: fadein .2s; max-width: 86vw; text-align: center; }
.toast.err { background: rgba(168,58,42,.94); }
@keyframes fadein { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 移动 TabBar 兜底（固定底部避开） */
.bottomspace { height: 40px; }
/* ============================================================
   首页 v3：并排首屏 / 分类条 / 图文 feed / 榜单
   ============================================================ */

/* ---- 并排首屏（整体收窄） ---- */
.site-hero--side { padding-bottom: 22px; }
.hero-side { display: flex; align-items: center; gap: 18px; padding-top: 66px; }
.hero-side__text { flex: 1.15; min-width: 0; }
.hero-side__text h1 { font-size: 30px; line-height: 1.25; margin: 10px 0; }
.hero-side__text .hero-sub { font-size: 13.5px; line-height: 1.85; margin: 0 0 16px; }
.hero-side__art { flex: 1; min-width: 0; }
.hero-art-svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 18px rgba(90,36,24,.18)); }
.hero-side__text .hero__cta { display: flex; gap: 10px; }
.hero-side__text .hero__cta .btn { padding: 10px 18px; font-size: 14px; }
@media (max-width: 560px) {
  .hero-side { gap: 12px; padding-top: 62px; }
  .hero-side__text h1 { font-size: 24px; }
  .hero-side__text .hero-sub { display: none; }
}

/* ---- 横向分类条 ---- */
.cat-strip { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 10px rgba(90,60,40,.05); }
.cat-strip__in { display: flex; gap: 4px; overflow-x: auto; padding: 8px 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cat-strip__in::-webkit-scrollbar { display: none; }
.cat-strip__in a { white-space: nowrap; padding: 7px 14px; border-radius: 18px; font-size: 13.5px; color: var(--ink-2); transition: all .18s; }
.cat-strip__in a:hover { background: var(--brand-50); color: var(--brand); }
.cat-strip__all { background: var(--brand); color: #fff !important; font-weight: 600; }

/* ---- 主体两栏 ---- */
.home-main { padding-top: 18px; }
.home-cols { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 900px) { .home-cols { grid-template-columns: 1fr 300px; gap: 26px; align-items: start; } }

/* ---- 列表标题/排序 ---- */
.sec__head--bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sec__head--bar .sec__title { margin: 0; font-size: 20px; position: relative; padding-left: 12px; }
.sec__head--bar .sec__title::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 18px; border-radius: 2px; background: var(--brand); }
.list-sort { display: flex; gap: 6px; background: var(--brand-50); padding: 3px; border-radius: 9px; }
.list-sort a { padding: 5px 14px; font-size: 13px; border-radius: 7px; color: var(--ink-2); cursor: pointer; font-weight: 600; }
.list-sort a:hover { color: var(--brand); }
.list-sort a.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 4px rgba(90,60,40,.12); }

/* ---- 图文 feed 卡片 ---- */
.feed { display: flex; flex-direction: column; gap: 14px; }
.feed-card { display: flex; gap: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; transition: all .18s; }
.feed-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--brand-200); }
.feed-card__cover { flex: 0 0 104px; width: 104px; height: 86px; border-radius: 10px; overflow: hidden; background: var(--brand-50); }
.feed-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.feed-card__t { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.45; margin: 0 0 5px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.feed-card__d { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.feed-card__meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.feed-cat { color: var(--brand); background: var(--brand-50); padding: 2px 8px; border-radius: 5px; }
.feed-tag { padding: 2px 8px; border-radius: 5px; font-weight: 600; }
.feed-tag--free { background: #e6f1e2; color: #4d7a39; }
.feed-tag--paid { background: #fbe6dc; color: var(--brand); }
.feed-read { color: var(--ink-3); margin-left: auto; }

/* ---- 分页 ---- */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.pager a { padding: 8px 18px; border: 1px solid var(--line); border-radius: 9px; font-size: 13.5px; background: var(--card); color: var(--brand); cursor: pointer; }
.pager__now { font-size: 13.5px; color: var(--ink-3); }

/* ---- 侧栏榜单 ---- */
.rank-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.rank-box__t { font-size: 15px; margin: 0 0 10px; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.rank-list li:last-child { border-bottom: none; }
.rank-list a { flex: 1; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list a:hover { color: var(--brand); }
.rank-no { flex: 0 0 20px; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 12px; font-weight: 700; background: #efe7dd; color: var(--ink-3); }
.rank-no--top { background: var(--brand); color: #fff; }
.rank-price, .rank-free { font-size: 11px; color: var(--brand); font-weight: 600; }
.rank-free { color: #4d7a39; }
.rank-read { font-size: 11px; color: var(--ink-3); }
.rank-empty { color: var(--ink-3); font-size: 13px; justify-content: center; }

/* ---- 关于本站 ---- */
.about-site { margin-top: 34px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.about-site h2 { font-size: 19px; margin: 0 0 12px; }
.about-site p { font-size: 14px; line-height: 2; color: var(--ink-2); margin: 0 0 10px; }

/* ============================================================
   阅读页 v3：封面 / 连续正文 / 付费墙
   ============================================================ */
.read-page { padding-top: 18px; }
.article__cover { width: 100%; height: auto; border-radius: 14px; margin: 14px 0 6px; display: block; }
.article__body p { font-size: 16px; line-height: 2.05; color: var(--ink); margin: 0 0 18px; text-indent: 2em; }
.endmark { text-align: center; color: var(--ink-3); font-size: 14px; margin: 26px 0 10px; text-indent: 0 !important; }
.related { margin-top: 30px; }
.rel-card { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rel-card__cover { width: 74px; height: 58px; border-radius: 9px; object-fit: cover; flex: 0 0 74px; background: var(--brand-50); }
.rel-card__main { flex: 1; min-width: 0; }
.rel-card__main h3 { font-size: 14.5px; margin: 0 0 5px; line-height: 1.5; color: var(--ink); font-weight: 600; }
.rel-card__cat { font-size: 12px; color: var(--brand); }

/* 付费墙 */
.lock { background: linear-gradient(180deg, #fff6ea, #fdebd6); border: 1px solid var(--brand-200); border-radius: 18px; padding: 26px 20px; text-align: center; margin: 8px 0 20px; position: relative; }
.lock__icon { font-size: 34px; margin-bottom: 8px; }
.lock__t { font-size: 18px; font-weight: 700; color: #8a3a1c; }
.lock__price { font-size: 30px; font-weight: 800; color: var(--brand); margin: 10px 0; }
.lock__price small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.lock__desc { font-size: 13px; color: var(--ink-3); line-height: 1.8; margin-bottom: 16px; }
.lock__tip { font-size: 12px; color: var(--ink-3); margin-top: 10px; }

/* ---- 支付弹窗 ---- */
.pay-mask { position: fixed; inset: 0; background: rgba(40,26,18,.55); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadein .2s; }
.pay-dialog { width: 100%; max-width: 330px; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); }
.pay-dialog__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.pay-close { font-size: 24px; color: var(--ink-3); cursor: pointer; line-height: 1; }
.pay-dialog__body { padding: 22px 20px; text-align: center; }
.pay-amount { font-size: 34px; font-weight: 800; color: var(--ink); }
.pay-tip { font-size: 13px; color: var(--ink-3); margin: 8px 0 16px; }
.pay-qr { width: 188px; height: 188px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.pay-qr img, .pay-qr canvas { border-radius: 6px; }
.pay-qr-fake { width: 168px; height: 168px; border-radius: 12px; background: repeating-linear-gradient(45deg, #f3ece3, #f3ece3 10px, #efe6d9 10px, #efe6d9 20px); border: 2px dashed #d8b896; }
.pay-wait { font-size: 12.5px; color: var(--ink-3); }

/* 页脚站长入口 */
.foot__admin { display: inline-block; border: 1px solid rgba(255,255,255,.25); padding: 4px 16px; border-radius: 7px; margin-top: 4px; }

/* 导航吸顶态 */
.site-nav.is-stuck { background: rgba(58,44,32,.92); backdrop-filter: blur(10px); box-shadow: 0 2px 14px rgba(0,0,0,.18); }

/* 分类/排序胶囊（分类页 + 首屏） */
.feed-chip { display: inline-block; padding: 7px 15px; border-radius: 18px; font-size: 13.5px; color: var(--ink-2); background: #f4ece0; border: 1px solid transparent; transition: all .18s; }
.feed-chip:hover { color: var(--brand); }
.feed-chip.on { background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 4px 10px rgba(168,58,42,.22); }

/* ============================================================
   首页 v4：大图推荐位 / 分类图文栏目
   ============================================================ */

/* 大图焦点推荐位 */
.feature { position: relative; border-radius: 18px; overflow: hidden; margin: 4px 0 22px; aspect-ratio: 16 / 6.6; box-shadow: var(--shadow-lg); display: block; }
.feature img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40,22,14,.72) 0%, rgba(60,32,18,.35) 45%, rgba(0,0,0,0) 70%); }
.feature__txt { position: absolute; left: 22px; right: 44%; top: 50%; transform: translateY(-50%); color: #fff; }
.feature__tag { display: inline-block; background: var(--brand); color: #fff; font-size: 12px; padding: 3px 11px; border-radius: 12px; margin-bottom: 10px; font-weight: 600; }
.feature__t { font-size: 22px; font-weight: 800; line-height: 1.3; margin: 0 0 8px; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.feature__d { font-size: 13px; opacity: .92; line-height: 1.7; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feature__go { display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.5); color: #fff; padding: 7px 18px; border-radius: 20px; font-size: 13.5px; backdrop-filter: blur(3px); }
@media (max-width: 600px) {
  .feature { aspect-ratio: 16 / 8; }
  .feature__txt { left: 16px; right: 30%; }
  .feature__t { font-size: 18px; }
  .feature__d { -webkit-line-clamp: 1; }
}

/* 分类图文栏目 */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 4px 0 26px; }
.cat-card { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); display: block; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(30,16,10,.72)); }
.cat-card__txt { position: absolute; left: 12px; right: 12px; bottom: 10px; color: #fff; }
.cat-card__name { font-size: 15px; font-weight: 700; }
.cat-card__cnt { font-size: 11.5px; opacity: .85; }
@media (max-width: 600px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* 栏目区块标题 */
.col__head { display: flex; align-items: center; gap: 8px; margin: 6px 0 14px; }
.col__head h3 { font-size: 19px; margin: 0; }
.col__head .col__more { margin-left: auto; font-size: 13px; color: var(--brand); }

/* ============================================================
   「灯下读本」原创风格：灯头 / 分类朱印 / 卷轴卡片
   ============================================================ */

/* 灯头 */
.lamp-head { text-align: center; padding: 84px 16px 30px; max-width: 620px; margin: 0 auto; }
.lamp { width: 96px; height: 96px; margin: 0 auto 6px; }
.lamp-svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 18px rgba(210,120,40,.35)); }
.lamp-head__kicker { letter-spacing: 6px; font-size: 12.5px; color: var(--brand); margin: 6px 0 12px; }
.lamp-head__title { font-size: 40px; font-weight: 800; color: var(--ink); margin: 0 0 16px; letter-spacing: 2px; }
.lamp-head__title .accent { color: var(--brand); }
.lamp-head__sub { font-size: 14px; line-height: 2; color: var(--ink-2); margin: 0 0 24px; }
.lamp-head__cta { display: flex; gap: 12px; justify-content: center; }
.lamp-head__cta .btn { padding: 11px 28px; font-size: 15px; }
.btn-outline { background: transparent; border: 1.5px solid var(--brand); color: var(--brand); }
@media (max-width: 560px) {
  .lamp-head { padding: 72px 12px 24px; }
  .lamp-head__title { font-size: 31px; }
  .lamp-head__sub br { display: none; }
}

/* 分类朱印行 */
.seal-cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 2px auto 28px; }
.seal-cat { display: flex; flex-direction: column; align-items: center; padding: 9px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; min-width: 104px; transition: all .18s; }
.seal-cat:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.seal-cat__name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.seal-cat__cnt { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* 卷轴卡片 */
.scroll-card { display: flex; gap: 14px; background: linear-gradient(180deg, #fffdf8, #fbf4e8); border: 1px solid var(--brand-200); border-left: 3px solid var(--brand); border-radius: 12px; padding: 13px 14px; margin-bottom: 14px; transition: all .18s; }
.scroll-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.scroll-card__cover { flex: 0 0 96px; width: 96px; height: 88px; border-radius: 10px; overflow: hidden; background: var(--brand-50); }
.scroll-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scroll-card__main { flex: 1; min-width: 0; }
.scroll-card__t { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.45; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.scroll-card__d { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scroll-card__meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }

/* 首屏在明亮暖底上的可读文字 */
.hero-kicker-ink { letter-spacing: 6px; font-size: 12.5px; color: var(--brand-deep); font-weight: 600; }
.hero-title-ink { font-size: 42px; font-weight: 800; color: var(--ink); margin: 12px 0 14px; letter-spacing: 2px; line-height: 1.2; }
.hero-sub-ink { font-size: 14.5px; line-height: 2; color: #5c4a38; margin: 0 0 22px; }
.btn-ghostink { background: rgba(255,255,255,.55); border: 1.5px solid rgba(126,43,31,.45); color: var(--brand-deep); }
@media (max-width: 560px) { .hero-title-ink { font-size: 30px; } .hero-sub-ink { font-size: 13px; } }

/* ============================================================
   万家灯火夜景顶图（居中文字叠加）
   ============================================================ */
.hero-town { position: relative; width: 100%; overflow: hidden; }
.hero-town__bg { position: absolute; inset: 0; background-image: linear-gradient(180deg, #7a4a32 0%, #b9784e 46%, #cf9a6c 100%), url('/img/scene-town-night.svg'); background-size: cover; background-position: center bottom; background-repeat: no-repeat; }
.hero-town__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,26,40,.18) 0%, rgba(40,26,40,0) 34%, rgba(30,18,24,.42) 100%); }
.hero-town__content { position: relative; z-index: 2; width: 100%; max-width: 720px; margin: 0 auto; padding: 34px 18px 66px; text-align: center; color: #fff; }
.hero-town__kicker { letter-spacing: 7px; font-size: 13px; color: #ffe9c4; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.hero-town__title { font-size: 50px; font-weight: 800; color: #fff; margin: 14px 0 16px; letter-spacing: 3px; text-shadow: 0 3px 12px rgba(0,0,0,.5); line-height: 1.15; }
.hero-town__sub { font-size: 14px; line-height: 2; color: #fff4e4; margin: 0 auto 26px; max-width: 560px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-town__cta { display: flex; gap: 12px; justify-content: center; }
.btn-town { background: var(--brand); color: #fff; }
.btn-town--ghost { background: rgba(255,255,255,.2); border: 1.5px solid rgba(255,255,255,.65); color: #fff; }
@media (max-width: 600px) {
  .hero-town__content { padding: 44px 14px 44px; }
  .hero-town__title { font-size: 36px; }
  .hero-town__sub br { display: none; }
  .hero-town__sub { font-size: 13px; }
}

/* 顶图左右两侧人间烟火装饰图 */
.hero-deco { position: absolute; z-index: 2; top: 50%; transform: translateY(-56%); width: 190px; height: 300px; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 34px rgba(40,20,10,.38); border: 2px solid rgba(255,255,255,.6); }
.hero-deco img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-deco--left { left: calc(50% - 570px); }
.hero-deco--right { right: calc(50% - 570px); }
@media (max-width: 1140px) { .hero-deco--left { left: 14px; } .hero-deco--right { right: 14px; } }
@media (max-width: 900px) { .hero-deco { width: 150px; height: 240px; } }
@media (max-width: 760px) { .hero-deco { display: none; } }

/* 顶图正上方 · 彩虹（风雨过后总能见彩虹） */
.hero-rainbow { text-align: center; line-height: 0; margin-bottom: 16px; }
.hero-rainbow img { width: min(440px, 78vw); height: auto; opacity: .96; filter: drop-shadow(0 10px 20px rgba(120,52,22,.28)); }

/* ============================================================
   首页扩容栏目：编辑精选头条 + 分类精选墙 + 最近更新
   ============================================================ */
.sec__more { font-size: 12.5px; color: var(--brand); background: var(--brand-50); padding: 5px 12px; border-radius: 8px; font-weight: 600; margin-left: auto; white-space: nowrap; }
.sec__more:hover { color: #fff; background: var(--brand); }

/* 编辑精选头条 */
.editor-pick { margin-bottom: 22px; }
.ed-pick { display: flex; gap: 16px; background: linear-gradient(135deg, #fffdf8, #f7ecd8); border: 1px solid var(--brand-200); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.ed-pick__cover { flex: 0 0 168px; height: 128px; border-radius: 12px; overflow: hidden;}
.ed-pick__cover img { width: 100%; height: 100%; object-fit: cover; display: block;}
.ed-pick__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ed-pick__kicker { font-size: 11.5px; color: var(--brand); font-weight: 700; letter-spacing: 4px; margin-bottom: 6px; }
.ed-pick__t { font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.4; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ed-pick__d { font-size: 13px; color: var(--ink-3); line-height: 1.8; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ed-pick__meta { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.ed-pick__flag { background: linear-gradient(var(--gold), var(--brand)); color: #fff; padding: 2px 10px; border-radius: 6px; font-weight: 700; font-size: 12px; }
@media (max-width: 620px) { .ed-pick { flex-direction: column; } .ed-pick__cover { flex: none; width: 100%; height: 160px; } }

/* 分类精选墙 */
.cat-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 26px; }
.cat-wall__col { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.cat-wall__h { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--brand-deep); margin-bottom: 10px; }
.cat-wall__h a { color: var(--brand); font-size: 11.5px; font-weight: 600; text-decoration: none; }
.cat-wall__card { display: block; margin-bottom: 10px; overflow: hidden; border-radius: 10px; background: var(--brand-50); text-decoration: none; }
.cat-wall__card:last-child { margin-bottom: 0; }
.cat-wall__card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.cat-wall__card span { display: block; font-size: 12.5px; color: var(--ink); line-height: 1.45; padding: 7px 9px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.cat-wall__card:hover span { color: var(--brand); }
.cat-wall__empty { font-size: 12.5px; color: var(--ink-3); padding: 6px 0; text-align: center; }
@media (max-width: 760px) { .cat-wall { grid-template-columns: repeat(2, 1fr); } }

/* 最近更新 */
.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-list a { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px dashed var(--line); text-decoration: none; }
.recent-list li:last-child a { border-bottom: 0; }
.recent-list__cover { flex: 0 0 42px; width: 42px; height: 34px; border-radius: 7px; overflow: hidden; }
.recent-list__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recent-list__t { flex: 1; min-width: 0; font-size: 13px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.recent-list__t:hover { color: var(--brand); }
.recent-list__tag { font-size: 10.5px; color: var(--ink-3); flex-shrink: 0; }

/* ==========================================================================
   登录 / 注册 弹层 + 顶部账户下拉 + 个人中心（与四站统一，暖宅书卷风）
   ========================================================================== */
.auth-mask { position: fixed; inset: 0; z-index: 997; background: rgba(58, 40, 28, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.auth-box { background: var(--card); border-radius: 18px; width: 100%; max-width: 400px; padding: 26px 26px 18px; position: relative; box-shadow: 0 24px 60px rgba(92, 62, 35, .28); animation: authPop .22s ease; max-height: 92vh; overflow: auto; }
@keyframes authPop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.auth-close { position: absolute; top: 12px; right: 14px; border: none; background: none; font-size: 24px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 4px; }
.auth-close:hover { color: var(--ink); }
.auth-tabs { display: flex; gap: 0; margin: 4px 0 18px; border-bottom: 1px solid var(--line); }
.at-tab { flex: 1; padding: 10px 0; background: none; border: none; font-size: 16px; font-weight: 700; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.at-tab.at-on { color: var(--brand); border-bottom-color: var(--brand); }
.af-row { margin-bottom: 14px; }
.af-row > label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.af-input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 15px; outline: none; transition: .15s; background: #fff; color: var(--ink); }
.af-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(168, 58, 42, .12); }
.af-code { display: flex; gap: 8px; }
.af-code .af-input { flex: 1; min-width: 0; }
.af-code .btn { flex: 0 0 auto; padding: 11px 14px; font-size: 13.5px; white-space: nowrap; }
.auth-form .btn-primary { border-radius: 10px; padding: 12px; font-size: 16px; }
.af-tip { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.af-link { color: var(--brand); font-weight: 600; cursor: pointer; }
.af-link:hover { text-decoration: underline; }
.auth-note { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--ink-3); text-align: center; line-height: 1.6; }
.auth-head { font-size: 19px; font-weight: 800; color: var(--ink); text-align: center; }
.auth-sub { font-size: 12.5px; color: var(--ink-3); text-align: center; margin: -2px 0 14px; }
.auth-panes { min-height: 210px; }
.captcha-box { min-width: 86px; font-size: 19px; letter-spacing: 3px; color: var(--brand); background: #fbeee8; border: 1px dashed var(--brand); padding: 0 10px; }
.captcha-box:hover { border-color: var(--brand-deep); }
.captcha-refresh { flex: 0 0 auto; padding: 11px 13px; font-size: 15px; }
.af-select { appearance: none; -webkit-appearance: none; color: var(--ink); }

/* 微信扫码区 */
.wx-wrap { text-align: center; padding: 8px 0 2px; }
.wx-qr { position: relative; box-sizing: border-box; width: auto; min-height: 300px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(92, 62, 35, .08); }
.wx-qr.dead { opacity: .55; }
.wx-qr-inner { display: flex; align-items: center; justify-content: center; width: 100%; margin: 0; max-width: 340px; }
.wx-qr-inner iframe { width: 300px; height: 400px; border: 0; display: block; margin: 0 auto; max-width: 100%; transform: scale(.72); transform-origin: center center; }
.wx-guide { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 200px; height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink-3); text-align: center; box-sizing: border-box; padding: 8px; }
.wx-guide-ico { width: 46px; height: 38px; border-radius: 10px; background: var(--gold-soft); position: relative; margin-bottom: 14px; }
.wx-guide-ico:before { content: ''; position: absolute; right: -6px; bottom: 6px; width: 40px; height: 32px; border-radius: 10px; background: rgba(243, 227, 194, .7); }
.wx-guide-ico:after { content: ''; position: absolute; left: 14px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 10px 0 0 #fff; }
.wx-guide-t { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.wx-guide-s { margin-top: 5px; font-size: 12px; color: var(--ink-3); }
.wx-refresh { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--brand); cursor: pointer; text-decoration: underline; }
.wx-hint { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }

/* 账号设置弹层 */
.st-val { flex: 1; font-size: 14px; color: var(--ink); font-weight: 600; }
.st-val i { color: var(--ink-3); font-style: normal; font-weight: 400; }
.st-line { display: flex; align-items: center; gap: 10px; }
.st-phone { margin-top: 10px; }
.st-wxbox { margin-top: 10px; padding: 12px; background: #faf5ec; border-radius: 12px; }
.st-wx-tip { font-size: 13px; color: var(--ink-3); margin: 0 0 8px; line-height: 1.6; }

/* ---------- 顶部账号下拉 ---------- */
.uc { position: relative; display: inline-flex; align-items: center; }
.uc-btn { display: inline-flex; align-items: center; gap: 7px; background: none; border: none; padding: 3px 6px; cursor: pointer; font-family: inherit; border-radius: 20px; transition: background .15s; }
.uc-btn:hover { background: rgba(255, 255, 255, .16); }
.uc-ava { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.uc-ava img { width: 100%; height: 100%; object-fit: cover; }
.uc-name { font-size: 14px; font-weight: 600; color: #fff; max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-btn:hover .uc-name { color: #ffe9e3; }
.uc-caret { color: rgba(255, 255, 255, .8); flex-shrink: 0; }
.uc-panel { display: none; position: absolute; top: 44px; right: 0; width: 200px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(92, 62, 35, .2); padding: 8px; z-index: 300; }
.uc-panel.open { display: block; }
.uc-head { display: flex; align-items: center; gap: 11px; padding: 10px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.uc-head .uc-ava { width: 40px; height: 40px; font-size: 17px; }
.uc-meta { display: flex; flex-direction: column; min-width: 0; }
.uc-meta b { font-size: 14px; color: var(--ink); font-weight: 600; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-meta em { font-style: normal; font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.uc-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; font-size: 14px; color: var(--ink); border-radius: 9px; cursor: pointer; }
.uc-row:hover { background: #fbeee8; color: var(--brand); }
.uc-row .uc-ic { color: var(--ink-3); flex-shrink: 0; display: inline-flex; }
.uc-row:hover .uc-ic { color: var(--brand); }
.uc-sep { height: 1px; background: var(--line); margin: 6px 2px; }
.uc-row.logout { color: #c0311c; }
.uc-row.logout .uc-ic { color: #d98a78; }
.uc-row.logout:hover { background: #fbe4dc; color: var(--brand-deep); }
.uc-row.logout:hover .uc-ic { color: var(--brand-deep); }
.uc-guest { display: flex; align-items: center; gap: 10px; }
.uc-link { font-size: 14px; font-weight: 600; color: #fff; background: none; border: none; cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.uc-link:hover { background: rgba(255, 255, 255, .16); }
.uc-reg { background: var(--brand); color: #fff; border-radius: 20px; padding: 7px 16px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; }
.uc-reg:hover { filter: brightness(1.06); }

/* ---------- 个人中心主体 ---------- */
.uc-card { max-width: 520px; margin: 8px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 28px; text-align: center; }
.uc-card__icon { font-size: 46px; line-height: 1; margin-bottom: 14px; }
.uc-card__title { margin: 0 0 10px; font-size: 20px; color: var(--brand-deep); }
.uc-card__desc { margin: 0 0 24px; font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.uc-card__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.uc-card__btn { border-radius: 24px; padding: 11px 30px; font-size: 15px; cursor: pointer; border: 1.5px solid var(--brand); }
.uc-card__btn--primary { background: var(--brand); color: #fff; }
.uc-card__btn--primary:hover { filter: brightness(1.06); }
.uc-card__btn--ghost { background: transparent; color: var(--brand); }
.uc-card__btn--ghost:hover { background: #fbeee8; }

.uc-profile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 16px; }
.uc-profile__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.uc-profile__ava { width: 58px; height: 58px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 24px; font-weight: 600; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.uc-profile__ava img { width: 100%; height: 100%; object-fit: cover; }
.uc-profile__info { min-width: 0; }
.uc-profile__name { font-size: 19px; font-weight: 700; color: var(--brand-deep); }
.uc-profile__sub { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.uc-profile__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.uc-pbtn { border-radius: 10px; padding: 9px 18px; font-size: 14px; cursor: pointer; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); }
.uc-pbtn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.uc-pbtn--primary:hover { filter: brightness(1.06); }
.uc-pbtn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.uc-pbtn--danger { color: #c0311c; }
.uc-pbtn--danger:hover { background: #fbe4dc; border-color: #d98a78; color: var(--brand-deep); }

.uc-orders { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.uc-orders__title { margin: 0 0 8px; font-size: 16px; color: var(--brand-deep); }

/* 窄屏：下拉面板右对齐不溢出 */
@media (max-width: 480px) {
  .uc-panel { right: -4px; width: 188px; }
  .uc-profile__btns .uc-pbtn { flex: 1; }
}

/* “开始读故事”锚点：平滑滚动 + 避开吸顶导航 */
html { scroll-behavior: smooth; }
#stories { scroll-margin-top: 72px; }
