/* =============================================================
   17c一起草·影评社区  全站样式表 style.css
   设计语言：杂志排版 + 沉浸阅读
   主色 #00D26A 草绿 / 评分橙 #FF9F43 / 浅灰 #F1F2F6 / 正文 #2F3542
   ============================================================= */

:root {
  --grass: #00D26A;
  --grass-dark: #00A857;
  --grass-soft: #E5FBF0;
  --score: #FF9F43;
  --score-dark: #F58220;
  --bg: #FFFFFF;
  --bg-grey: #F1F2F6;
  --text: #2F3542;
  --text-soft: #57606F;
  --text-mute: #8A93A2;
  --line: #E6E9EF;
  --shadow-sm: 0 2px 8px rgba(47, 53, 66, .06);
  --shadow-md: 0 8px 28px rgba(47, 53, 66, .10);
  --shadow-lg: 0 18px 48px rgba(47, 53, 66, .14);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--grass-dark); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 阅读进度条 ---------- */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--grass), var(--score));
  z-index: 2000; transition: width .1s linear;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; }
.brand img { width: 36px; height: 36px; }
.brand .brand-name { background: linear-gradient(90deg, var(--grass-dark), var(--score-dark)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; color: var(--text-soft);
}
.nav-links a:hover, .nav-links a.active { color: var(--grass-dark); background: var(--grass-soft); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: .92rem;
  border: none; cursor: pointer; transition: transform .16s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grass); color: #fff; box-shadow: 0 6px 18px rgba(0, 210, 106, .32); }
.btn-primary:hover { background: var(--grass-dark); color: #fff; }
.btn-ghost { background: var(--bg-grey); color: var(--text); }
.btn-ghost:hover { background: #e4e7ee; color: var(--text); }
.btn-score { background: var(--score); color: #fff; }
.btn-score:hover { background: var(--score-dark); color: #fff; }

.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--text); }

/* ---------- 通用区块 ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; gap: 10px; }
.section-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.5px; position: relative; padding-left: 16px; }
.section-title::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 24px; border-radius: 3px; background: linear-gradient(var(--grass), var(--score)); }
.section-sub { color: var(--text-mute); font-size: .95rem; }
.more-link { color: var(--grass-dark); font-weight: 700; font-size: .92rem; }

.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: 1px; color: var(--grass-dark); background: var(--grass-soft); padding: 5px 12px; border-radius: 999px; }

/* ---------- 首页 Hero / 头条 ---------- */
.hero { background: linear-gradient(160deg, var(--grass-soft) 0%, #fff 60%); padding: 48px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.hero-copy h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.18; font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; }
.hero-copy h1 .hl { color: var(--grass-dark); }
.hero-copy p.lead { font-size: 1.08rem; color: var(--text-soft); margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--grass-dark); }
.hero-stats .stat span { font-size: .85rem; color: var(--text-mute); }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero-badge { position: absolute; left: -14px; bottom: 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.hero-badge .stars { color: var(--score); font-weight: 800; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.layout-main { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }

/* 文章卡片 */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .thumb img { transform: scale(1.05); }
.card .body { padding: 16px 18px 20px; }
.card .tag { font-size: .76rem; font-weight: 700; color: var(--grass-dark); background: var(--grass-soft); padding: 3px 10px; border-radius: 999px; }
.card h3 { font-size: 1.12rem; font-weight: 700; margin: 12px 0 8px; line-height: 1.45; }
.card p { color: var(--text-soft); font-size: .92rem; }
.card .meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: .82rem; color: var(--text-mute); }
.card .meta img { width: 26px; height: 26px; border-radius: 50%; }

/* 信息流列表条目 */
.feed-item { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.feed-item:first-child { padding-top: 0; }
.feed-item .thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16/11; }
.feed-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.feed-item h3 { font-size: 1.18rem; margin-bottom: 8px; font-weight: 700; }
.feed-item p { color: var(--text-soft); font-size: .94rem; }
.feed-item .meta { display: flex; gap: 14px; margin-top: 12px; font-size: .82rem; color: var(--text-mute); flex-wrap: wrap; }
.feed-item .meta .like { color: var(--score-dark); font-weight: 700; }

/* ---------- 影视资料卡片（五星评分组件） ---------- */
.movie-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.movie-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.movie-card .poster { aspect-ratio: 2/3; overflow: hidden; position: relative; }
.movie-card .poster img { width: 100%; height: 100%; object-fit: cover; }
.movie-card .score-badge { position: absolute; top: 10px; right: 10px; background: var(--score); color: #fff; font-weight: 800; font-size: 1rem; padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.movie-card .info { padding: 12px 14px 16px; }
.movie-card .info h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.movie-card .info .genre { font-size: .8rem; color: var(--text-mute); }
.stars { --pct: 100%; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 2px; position: relative; font-family: var(--sans); }
.star-rate { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.star-rate .star-icons { position: relative; display: inline-block; color: #d9dde5; }
.star-rate .star-icons::before { content: "★★★★★"; }
.star-rate .star-icons .fill { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; color: var(--score); }
.star-rate .star-icons .fill::before { content: "★★★★★"; }
.star-rate .num { font-weight: 800; color: var(--score-dark); font-size: .9rem; }

/* ---------- 侧栏 ---------- */
.sidebar .widget { background: var(--bg-grey); border-radius: var(--radius); padding: 20px; margin-bottom: 22px; }
.sidebar .widget h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.rank-list { list-style: none; }
.rank-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.rank-list li:last-child { border-bottom: none; }
.rank-list .rk { flex: 0 0 24px; height: 24px; border-radius: 6px; background: #fff; color: var(--text-mute); font-weight: 800; font-size: .82rem; display: grid; place-items: center; }
.rank-list li:nth-child(1) .rk { background: var(--grass); color: #fff; }
.rank-list li:nth-child(2) .rk { background: var(--score); color: #fff; }
.rank-list li:nth-child(3) .rk { background: #ffd07a; color: #6b4b00; }
.rank-list .rk-title { font-size: .92rem; font-weight: 600; }
.rank-list .rk-meta { font-size: .76rem; color: var(--text-mute); }

/* 热搜词云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--text-soft); }
.tag-cloud a:hover { background: var(--grass); color: #fff; border-color: var(--grass); }
.tag-cloud a.hot { color: var(--score-dark); }

/* 创作者 */
.creator { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.creator img { width: 48px; height: 48px; border-radius: 50%; }
.creator .c-name { font-weight: 700; font-size: .95rem; }
.creator .c-meta { font-size: .78rem; color: var(--text-mute); }

/* ---------- 专题/Banner ---------- */
.topic-banner { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; display: grid; align-items: end; min-height: 320px; }
.topic-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.topic-banner .overlay { position: relative; padding: 36px; background: linear-gradient(to top, rgba(20,24,31,.86), rgba(20,24,31,.1)); width: 100%; }
.topic-banner h1 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 10px; }
.topic-banner p { max-width: 640px; color: #e9edf3; }

/* ---------- 长图文阅读器 ---------- */
.reader { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.reader-outline { position: sticky; top: 90px; }
.reader-outline h4 { font-size: .85rem; text-transform: none; color: var(--text-mute); margin-bottom: 12px; font-weight: 800; }
.reader-outline ul { list-style: none; border-left: 2px solid var(--line); }
.reader-outline li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: .9rem; color: var(--text-soft); }
.reader-outline li a:hover, .reader-outline li a.active { border-left-color: var(--grass); color: var(--grass-dark); font-weight: 600; }
.article-body { font-family: var(--serif); font-size: 1.08rem; line-height: 2; color: #38404d; }
.article-body h2 { font-family: var(--sans); font-size: 1.5rem; font-weight: 800; margin: 36px 0 14px; scroll-margin-top: 90px; color: var(--text); }
.article-body h3 { font-family: var(--sans); font-size: 1.2rem; font-weight: 700; margin: 26px 0 10px; scroll-margin-top: 90px; }
.article-body p { margin-bottom: 18px; }
.article-body blockquote { border-left: 4px solid var(--grass); background: var(--grass-soft); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 22px 0; font-style: normal; color: #2c6b4a; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body img { border-radius: var(--radius-sm); margin: 22px 0; box-shadow: var(--shadow-sm); }
.article-body strong { color: var(--score-dark); }

.article-hero { margin-bottom: 28px; }
.article-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.25; margin-bottom: 16px; }
.article-byline { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-byline img { width: 44px; height: 44px; border-radius: 50%; }
.article-byline .b-name { font-weight: 700; }
.article-byline .b-meta { font-size: .82rem; color: var(--text-mute); }

/* 互动条 */
.action-bar { display: flex; gap: 12px; margin: 30px 0; flex-wrap: wrap; }
.action-bar button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: .9rem; cursor: pointer; transition: all .18s var(--ease); color: var(--text-soft); }
.action-bar button:active { transform: scale(.95); }
.action-bar button.active, .action-bar button:hover { border-color: var(--grass); color: var(--grass-dark); background: var(--grass-soft); }
.action-bar button.like.active { border-color: var(--score); color: var(--score-dark); background: #fff4e6; }
.pop { animation: pop .4s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* ---------- 评论 / 楼层嵌套 ---------- */
.comments { margin-top: 40px; }
.comments h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 18px; }
.comment-form textarea { width: 100%; min-height: 90px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-family: var(--sans); font-size: .95rem; resize: vertical; }
.comment-form textarea:focus { outline: 2px solid var(--grass); border-color: transparent; }
.comment-form .row { display: flex; justify-content: flex-end; margin-top: 10px; }
.floor { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.floor img.av { width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto; }
.floor .f-body { flex: 1; }
.floor .f-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.floor .f-name { font-weight: 700; font-size: .92rem; }
.floor .f-no { font-size: .76rem; color: var(--text-mute); background: var(--bg-grey); padding: 1px 8px; border-radius: 999px; }
.floor .f-text { font-size: .94rem; color: #3a424f; }
.floor .f-actions { margin-top: 8px; display: flex; gap: 16px; font-size: .8rem; color: var(--text-mute); }
.floor .f-actions span { cursor: pointer; }
.floor .f-actions span:hover { color: var(--grass-dark); }
.reply-nest { margin-top: 14px; padding: 12px 14px; background: var(--bg-grey); border-radius: var(--radius-sm); border-left: 3px solid var(--grass); }
.reply-nest .floor { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.reply-nest .floor:last-child { border-bottom: none; }

/* ---------- 榜单 Top250 ---------- */
.rank-row { display: grid; grid-template-columns: 56px 90px 1fr auto; gap: 16px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; transition: box-shadow .2s var(--ease); }
.rank-row:hover { box-shadow: var(--shadow-sm); }
.rank-row .num { font-size: 1.6rem; font-weight: 800; color: var(--text-mute); text-align: center; }
.rank-row:nth-child(-n+3) .num { color: var(--score); }
.rank-row .poster-sm { width: 90px; aspect-ratio: 2/3; border-radius: var(--radius-sm); overflow: hidden; }
.rank-row .poster-sm img { width: 100%; height: 100%; object-fit: cover; }
.rank-row h3 { font-size: 1.1rem; font-weight: 700; }
.rank-row .rdesc { font-size: .86rem; color: var(--text-soft); }
.rank-row .big-score { font-size: 1.5rem; font-weight: 800; color: var(--score-dark); text-align: center; }
.rank-row .big-score small { display: block; font-size: .7rem; color: var(--text-mute); font-weight: 600; }

/* ---------- 小组 ---------- */
.group-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.group-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.group-card .g-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.group-card .g-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); display: grid; place-items: center; font-size: 1.6rem; background: var(--grass-soft); }
.group-card h3 { font-size: 1.1rem; font-weight: 700; }
.group-card .g-meta { font-size: .8rem; color: var(--text-mute); }
.group-card p { font-size: .9rem; color: var(--text-soft); margin-bottom: 14px; }

/* ---------- 创作中心 ---------- */
.editor-shell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.editor-toolbar { display: flex; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-grey); flex-wrap: wrap; }
.editor-toolbar button { width: 38px; height: 34px; border: none; background: #fff; border-radius: 6px; font-weight: 700; cursor: pointer; color: var(--text-soft); }
.editor-toolbar button:hover { background: var(--grass-soft); color: var(--grass-dark); }
.editor-title { width: 100%; border: none; padding: 20px 22px 0; font-size: 1.6rem; font-weight: 800; font-family: var(--sans); }
.editor-title:focus { outline: none; }
.editor-area { width: 100%; min-height: 320px; border: none; padding: 16px 22px 24px; font-size: 1.05rem; font-family: var(--serif); line-height: 1.9; resize: vertical; }
.editor-area:focus { outline: none; }
.draft-list { list-style: none; }
.draft-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.draft-list .d-time { color: var(--text-mute); font-size: .8rem; }

/* ---------- 搜索 ---------- */
.search-hero { background: linear-gradient(160deg, var(--grass-soft), #fff); padding: 48px 0; text-align: center; }
.search-box { display: flex; max-width: 640px; margin: 22px auto 0; box-shadow: var(--shadow-md); border-radius: 999px; overflow: hidden; background: #fff; }
.search-box input { flex: 1; border: none; padding: 16px 24px; font-size: 1rem; font-family: var(--sans); }
.search-box input:focus { outline: none; }
.search-box button { border: none; background: var(--grass); color: #fff; padding: 0 28px; font-weight: 700; cursor: pointer; }
.search-box button:hover { background: var(--grass-dark); }
.search-result { padding: 18px 0; border-bottom: 1px solid var(--line); }
.search-result a.title { font-size: 1.15rem; font-weight: 700; color: var(--grass-dark); }
.search-result .url { font-size: .8rem; color: var(--text-mute); }
.search-result p { font-size: .92rem; color: var(--text-soft); margin-top: 4px; }
.search-empty { text-align: center; padding: 60px 0; color: var(--text-mute); }

/* ---------- 合规/通用内容页 ---------- */
.page-hero { background: var(--bg-grey); padding: 48px 0 38px; }
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; }
.page-hero .crumb { font-size: .85rem; color: var(--text-mute); margin-bottom: 10px; }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.4rem; font-weight: 800; margin: 30px 0 12px; }
.prose h3 { font-size: 1.12rem; font-weight: 700; margin: 22px 0 8px; }
.prose p { margin-bottom: 16px; color: #3a424f; }
.prose ul { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--grass-dark); font-weight: 600; text-decoration: underline; }

/* 信任卡片 */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.trust-card .ti { font-size: 2rem; margin-bottom: 8px; }
.trust-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.trust-card p { font-size: .85rem; color: var(--text-soft); }

/* ---------- APP/PWA 下载页 ---------- */
.app-hero { background: linear-gradient(160deg, #0f2a1d, #14342a); color: #fff; padding: 60px 0; }
.app-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.app-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.app-hero p { color: #cfe9da; font-size: 1.05rem; margin-bottom: 24px; }
.store-row { display: flex; gap: 14px; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--text); padding: 12px 22px; border-radius: var(--radius-sm); font-weight: 700; }
.store-btn:hover { color: var(--text); transform: translateY(-2px); }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature-box .fi { width: 48px; height: 48px; border-radius: 12px; background: var(--grass-soft); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 12px; }
.feature-box h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.feature-box p { font-size: .9rem; color: var(--text-soft); }

/* ---------- 404 ---------- */
.err-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.err-code { font-size: clamp(5rem, 16vw, 11rem); font-weight: 800; line-height: 1; background: linear-gradient(120deg, var(--grass), var(--score)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.err-page h1 { font-size: 1.6rem; font-weight: 800; margin: 12px 0; }
.err-page p { color: var(--text-soft); margin-bottom: 22px; }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: .84rem; color: var(--text-mute); padding: 14px 0; }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--grass-dark); }

/* ---------- 标签筛选条 ---------- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filter-bar a { padding: 7px 16px; border-radius: 999px; background: var(--bg-grey); font-size: .88rem; font-weight: 600; color: var(--text-soft); }
.filter-bar a.active, .filter-bar a:hover { background: var(--grass); color: #fff; }

/* ---------- 页脚 ---------- */
.site-footer { background: #14191f; color: #b9c1cd; padding: 52px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: .98rem; font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; font-size: .88rem; }
.site-footer a:hover { color: var(--grass); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 800; font-size: 1.1rem; color: #fff; }
.footer-brand img { width: 34px; height: 34px; }
.footer-desc { font-size: .86rem; line-height: 1.7; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 20px; font-size: .82rem; color: #7e8898; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- 滚动出现动画 ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 移动端断点 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .layout-main { grid-template-columns: 1fr; }
  .reader { grid-template-columns: 1fr; }
  .reader-outline { position: static; display: none; }
}
@media (max-width: 768px) {
  .nav-links { position: fixed; inset: 66px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform .3s var(--ease); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 10px; border-radius: 8px; }
  .nav-toggle { display: block; }
  .nav-actions .btn-ghost { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feed-item { grid-template-columns: 130px 1fr; }
  .app-hero .wrap { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rank-row { grid-template-columns: 40px 64px 1fr; }
  .rank-row .big-score { grid-column: 2 / 4; text-align: left; }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .feed-item { grid-template-columns: 1fr; }
  .feed-item .thumb { aspect-ratio: 16/9; }
}


/* =============================================================
   补充组件样式（专题/App/搜索/错误/联系/楼层）
   ============================================================= */

/* ---------- 专题页大图头 ---------- */
.topic-hero {
  background-size: cover; background-position: center;
  color: #fff; padding: 92px 0 64px; position: relative;
}
.topic-hero .eyebrow.light { color: var(--grass-soft); }
.topic-hero h1 {
  font-family: var(--serif); font-size: clamp(1.7rem, 4.4vw, 2.8rem);
  line-height: 1.25; margin: 12px 0 14px; max-width: 18em; text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.topic-hero p { max-width: 40em; color: rgba(255,255,255,.92); font-size: 1.05rem; }
.topic-hero .crumb.light { margin-top: 18px; color: rgba(255,255,255,.8); }
.topic-hero .crumb.light a { color: #fff; }

/* ---------- App 下载页 ---------- */
.app-hero { background: linear-gradient(160deg, var(--grass-soft) 0%, #fff 60%); padding: 56px 0; }
.app-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.app-copy h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; margin: 12px 0 16px; }
.app-copy p { color: var(--text-soft); font-size: 1.08rem; max-width: 32em; }
.store-btns { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 22px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--text); color: #fff; padding: 11px 20px; border-radius: 12px;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease);
}
.store-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: #fff; }
.store-btn .s-icon { font-size: 1.6rem; }
.store-btn small { display: block; font-size: .72rem; opacity: .8; }
.store-btn strong { font-size: 1.1rem; }
.qr-row { display: flex; align-items: center; gap: 18px; }
.qr-box {
  width: 112px; height: 112px; flex: none; border-radius: 14px;
  background: repeating-conic-gradient(var(--text) 0 25%, #fff 0 50%) 0 0 / 16px 16px;
  border: 6px solid #fff; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700; color: var(--grass-dark);
  text-align: center; line-height: 1.2;
}
.app-shot { display: flex; justify-content: center; }
.phone-frame {
  width: 300px; max-width: 80%; border: 10px solid var(--text); border-radius: 38px;
  overflow: hidden; box-shadow: var(--shadow-lg); background: var(--text);
}
.phone-frame img { width: 100%; height: auto; }

/* ---------- 功能卡片 ---------- */
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card .f-ic { font-size: 1.9rem; margin-bottom: 10px; }
.feature-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.feature-card p { color: var(--text-soft); font-size: .95rem; }

/* ---------- 普通页头 ---------- */
.page-hero { background: var(--bg-grey); padding: 44px 0 36px; border-bottom: 1px solid var(--line); }
.page-hero .crumb { color: var(--text-mute); font-size: .9rem; margin-bottom: 10px; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 8px; }
.page-hero p { color: var(--text-soft); max-width: 40em; }

/* ---------- 搜索 ---------- */
.search-box { display: flex; gap: 10px; max-width: 640px; margin: 8px 0 16px; }
.search-box input {
  flex: 1; padding: 13px 18px; border: 2px solid var(--line); border-radius: 12px;
  font-size: 1rem; font-family: var(--sans); background: #fff; transition: border-color .2s var(--ease);
}
.search-box input:focus { outline: none; border-color: var(--grass); }
.hot-words { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--text-mute); font-size: .92rem; }
.hot-words a {
  background: #fff; border: 1px solid var(--line); padding: 5px 14px; border-radius: 999px;
  color: var(--text-soft); transition: all .18s var(--ease);
}
.hot-words a:hover { background: var(--grass-soft); border-color: var(--grass); color: var(--grass-dark); }
.search-meta { color: var(--text-soft); margin-bottom: 16px; font-size: .95rem; }
.search-results { display: flex; flex-direction: column; gap: 14px; }
.search-result {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
  transition: transform .16s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.search-result:hover { transform: translateX(4px); box-shadow: var(--shadow-md); border-color: var(--grass); }
.sr-section {
  display: inline-block; background: var(--grass-soft); color: var(--grass-dark);
  font-size: .76rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px;
}
.sr-title { display: block; font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.sr-summary { display: block; color: var(--text-soft); font-size: .95rem; margin-bottom: 6px; }
.sr-url { display: block; color: var(--text-mute); font-size: .8rem; }
.search-empty { text-align: center; padding: 48px 20px; color: var(--text-soft); }
.search-empty .big-ic { font-size: 3rem; margin-bottom: 10px; }
.search-empty h3 { margin-bottom: 6px; color: var(--text); }

/* ---------- 错误页 / 离线页 ---------- */
.error-page { text-align: center; padding: 80px 0 96px; }
.err-code {
  font-family: var(--serif); font-weight: 700; font-size: clamp(4.5rem, 16vw, 9rem);
  line-height: 1; background: linear-gradient(135deg, var(--grass), var(--score));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.error-page h1 { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 14px 0 12px; }
.error-page p { color: var(--text-soft); max-width: 34em; margin: 0 auto; }
.err-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 26px 0 18px; }
.err-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; color: var(--text-mute); }
.err-links a { color: var(--grass-dark); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; }
.contact-info h2, .contact-form h2 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 18px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci-ic {
  font-size: 1.3rem; flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; background: var(--grass-soft);
}
.contact-list strong { display: block; margin-bottom: 2px; }
.contact-list p { color: var(--text-soft); font-size: .95rem; }
.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.contact-form .field { margin-bottom: 16px; }
.contact-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 11px 14px; border: 2px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: .98rem; background: #fff; transition: border-color .2s var(--ease);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--grass); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.form-note { color: var(--text-mute); font-size: .82rem; margin-top: 10px; }

/* ---------- 评论楼层 ---------- */
.floor-list { display: flex; flex-direction: column; gap: 16px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .app-hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .app-shot { order: -1; }
}
