/* ============ 设计令牌 ============ */
:root {
  --brand: #1d7a6b;
  --brand-d: #166054;
  --brand-l: #2f9b88;
  --brand-soft: #e9f3f0;
  --sand: #c8a464;
  --sand-l: #f8f1e1;
  --ink: #1b2523;
  --ink-2: #4c5b57;
  --muted: #83908c;
  --line: #e7e3d9;
  --line-soft: #f0ede4;
  --bg: #fbfaf6;
  --card: #ffffff;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --maxw: 1140px;
  --shadow: 0 16px 34px -26px rgba(22, 44, 40, 0.55);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; border: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; cursor: pointer; }
/* 悬停隐藏地址时 href 被临时摘掉，仍保持手型光标，不退化成文字输入条 */
a.no-href { cursor: pointer; }
button { font-family: inherit; }
::selection { background: #cfe6e0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.ta-right { text-align: right; }
.ta-center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--brand);
  color: #fff; padding: 8px 14px; border-radius: 0 0 8px 0; z-index: 99;
}
.skip-link:focus { left: 0; }

/* ============ 页头 ============ */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-main { display: flex; align-items: center; gap: 24px; height: 76px; }

.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { display: flex; }
.brand-text strong {
  display: block; font-family: var(--serif); font-size: 17px;
  font-weight: 600; letter-spacing: 0.6px; color: var(--ink);
}
.brand-text em {
  display: block; font-style: normal; font-size: 11.5px;
  color: var(--muted); letter-spacing: 0.4px; margin-top: 1px;
}

.nav {
  display: flex; align-items: center; gap: 2px; flex: 1;
  overflow-x: auto; scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 8px 12px; font-size: 14.5px; color: var(--ink-2);
  border-radius: 8px; white-space: nowrap; transition: color 0.18s, background 0.18s;
}
.nav a:hover { color: var(--brand); background: #f1f6f4; }
.nav a.is-active { color: var(--brand); font-weight: 600; background: var(--brand-soft); }

.search {
  display: flex; align-items: center; gap: 4px; width: 248px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; padding: 4px 4px 4px 14px;
}
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-family: inherit; font-size: 13.5px; color: var(--ink);
}
.search input::placeholder { color: #a6b0ac; }
.search button {
  border: 0; cursor: pointer; width: 30px; height: 30px; flex: 0 0 30px;
  border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center;
}
.search button:hover { background: var(--brand-d); }

/* ============ 首页头图 ============ */
.hero { padding: 30px 0 8px; }
.feature {
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
/* 无封面时让文字区占满整张卡片，不留空图位 */
.feature.no-media { grid-template-columns: 1fr; }
.feature.no-media .feature-body { padding: 38px 44px; }
.feature-media { position: relative; min-height: 330px; background: var(--brand-soft); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-body {
  padding: 36px 38px; display: flex; flex-direction: column;
  justify-content: center; gap: 13px;
}
.feature-title {
  font-family: var(--serif); font-size: 28px; line-height: 1.42;
  margin: 0; letter-spacing: 0.4px; font-weight: 600;
}
.feature-summary { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }
.feature-cta {
  margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--brand);
  display: inline-flex; align-items: center; gap: 6px;
}

.chip {
  display: inline-block; font-size: 12px; line-height: 1.6;
  color: var(--brand); background: var(--brand-soft);
  padding: 2px 10px; border-radius: 999px;
}
.chip-top { color: #8a6a25; background: var(--sand-l); }
.chip-ghost { color: var(--muted); background: #f3f1ea; }
.chip-feature { color: #8a6a25; background: var(--sand-l); font-weight: 600; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 2px; min-height: 22px; }

.meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); }

/* ============ 分类胶囊 ============ */
.cat-strip { display: flex; gap: 10px; overflow-x: auto; padding: 22px 22px 4px; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 16px; font-size: 14px; color: var(--ink-2);
  transition: all 0.18s;
}
.cat-pill em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.cat-pill:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.cat-pill:hover em { color: var(--brand); }

/* ============ 布局 ============ */
.section { padding: 32px 0 64px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; }

.section-head {
  display: flex; align-items: baseline; gap: 12px;
  border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 22px;
}
.section-head h2 { font-family: var(--serif); font-size: 21px; margin: 0; font-weight: 600; letter-spacing: 0.5px; }
.section-sub { font-size: 13px; color: var(--muted); }
.section-more { margin-left: auto; font-size: 13.5px; color: var(--brand); }

/* ============ 卡片 ============ */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 26px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d9d4c6; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-media img { transform: scale(1.045); }
.card-body { padding: 16px 18px 18px; }
.card-title {
  font-family: var(--serif); font-size: 17.5px; line-height: 1.55;
  margin: 6px 0 8px; font-weight: 600; letter-spacing: 0.2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-summary {
  margin: 0 0 14px; font-size: 13.5px; line-height: 1.68; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============ 侧栏 ============ */
.sidebar { position: sticky; top: 96px; display: grid; gap: 18px; }
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
}
.panel-title {
  font-family: var(--serif); font-size: 16px; font-weight: 600;
  margin: 0 0 14px; position: relative; padding-left: 11px;
}
.panel-title::before {
  content: ""; position: absolute; left: 0; top: 5px; bottom: 5px;
  width: 3px; border-radius: 2px; background: var(--brand);
}
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li a {
  display: flex; gap: 10px; padding: 9px 0; font-size: 13.5px;
  line-height: 1.55; border-bottom: 1px dashed var(--line-soft);
}
.rank-list li:last-child a { border-bottom: 0; }
.rank-no { flex: 0 0 15px; font-family: var(--serif); font-size: 15px; color: var(--sand); font-weight: 600; }
.rank-list li a:hover .rank-text { color: var(--brand); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud-center { justify-content: center; margin-top: 14px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; padding: 4px 11px; border-radius: 999px;
  background: #f4f2ec; color: var(--ink-2); transition: all 0.18s;
}
.tag em { font-style: normal; font-size: 11px; color: var(--muted); }
.tag:hover { background: var(--brand-soft); color: var(--brand); }

.panel-note { background: linear-gradient(160deg, #f4f8f6, #fdfcf8); }
.panel-note p { font-size: 13px; color: var(--ink-2); margin: 0 0 12px; line-height: 1.75; }
.text-link { font-size: 13px; color: var(--brand); font-weight: 500; }

/* ============ 页头横幅 ============ */
.page-hero {
  background: linear-gradient(180deg, #edf4f1 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line); padding: 32px 0 26px;
}
.page-hero h1 { font-family: var(--serif); font-size: 29px; margin: 8px 0 8px; font-weight: 600; letter-spacing: 0.5px; }
.page-hero p { margin: 0; color: var(--ink-2); font-size: 14.5px; max-width: 680px; }
.page-hero-sm { padding-bottom: 20px; }
.page-hero-count { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.crumbs { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); }
.crumbs a:hover { color: var(--brand); }

.search-lg { display: flex; gap: 10px; margin-top: 16px; max-width: 560px; }
.search-lg input {
  flex: 1; min-width: 0; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; padding: 11px 15px; font-family: inherit; font-size: 14.5px; outline: 0;
}
.search-lg input:focus { border-color: var(--brand-l); box-shadow: 0 0 0 3px rgba(47, 155, 136, 0.12); }
.search-lg button {
  border: 0; background: var(--brand); color: #fff; border-radius: 10px;
  padding: 0 22px; font-size: 14px; cursor: pointer;
}
.search-lg button:hover { background: var(--brand-d); }

/* ============ 文章页 ============ */
.article { padding-top: 26px; }
.article-wrap { max-width: 800px; }
.article-head { margin-top: 14px; }
.article-head h1 {
  font-family: var(--serif); font-size: 33px; line-height: 1.42;
  margin: 12px 0 14px; font-weight: 600; letter-spacing: 0.4px;
}
.article-lead {
  margin: 0 0 16px; font-size: 15.5px; color: var(--ink-2);
  border-left: 3px solid var(--sand); padding-left: 14px; line-height: 1.8;
}
.article-meta { padding-bottom: 4px; }
.article-cover {
  margin: 24px 0 30px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
}
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.prose { font-size: 17px; line-height: 1.95; color: #23312e; }
.prose > p { margin: 0 0 18px; }
.prose h2 {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  margin: 38px 0 14px; padding-left: 13px; border-left: 4px solid var(--brand); line-height: 1.5;
}
.prose h3 { font-size: 18px; margin: 28px 0 10px; font-weight: 600; }
.prose h4 { font-size: 16.5px; margin: 22px 0 8px; }
.prose img { border-radius: 12px; margin: 22px 0; }
.prose blockquote {
  margin: 24px 0; padding: 16px 20px; background: var(--sand-l);
  border-left: 3px solid var(--sand); border-radius: 0 10px 10px 0; color: #6a5326;
}
.prose blockquote p { margin: 0; font-size: 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--brand-l); }
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.prose th { background: #f2f7f5; font-weight: 600; }
.prose code { background: #f2f0e9; padding: 2px 6px; border-radius: 4px; font-size: 0.88em; }
.prose pre { background: #1b2523; color: #e6efec; padding: 16px 18px; border-radius: 10px; overflow: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose a { color: var(--brand); border-bottom: 1px solid #b7d6cf; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

.source-note {
  margin: 18px 0 0; font-size: 12.5px; color: var(--muted);
  background: #f6f4ee; border-radius: 8px; padding: 10px 14px; word-break: break-all;
}
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 38px 0 10px; }
.nav-card {
  padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; transition: all 0.2s;
}
.nav-card:hover { border-color: var(--brand-l); background: #fbfdfc; }
.nav-label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.nav-title {
  font-size: 14.5px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nav-next { text-align: right; }
.is-empty { border-style: dashed; background: transparent; }
.nav-more { border-style: dashed; background: transparent; }

.related { padding-top: 8px; }

/* ============ 关于 / 合规 ============ */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.prose-page { font-size: 15.5px; }
.prose-page h2 { font-size: 19px; margin-top: 28px; }
.about-side { display: grid; gap: 18px; }

.kv { display: grid; grid-template-columns: 96px 1fr; gap: 10px 14px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); }
.kv-wide { grid-template-columns: 110px 1fr; font-size: 14px; }

.legal { display: grid; gap: 18px; max-width: 900px; }
.legal-card .panel-title { font-size: 17px; }
.legal p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 12px; line-height: 1.85; }
.legal-list { margin: 0 0 10px; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; }
.legal-list li { margin: 8px 0; line-height: 1.85; }
.legal-list strong { color: var(--ink); }
.report-mail { font-size: 17px !important; }
.report-mail a { color: var(--brand); font-weight: 600; border-bottom: 1px solid #b7d6cf; }

/* ============ 空状态 / 错误页 ============ */
.empty { padding: 40px 0; color: var(--muted); font-size: 14px; }
.empty-state { text-align: center; padding: 48px 20px; border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; }
.empty-title { font-family: var(--serif); font-size: 17px; margin: 0 0 8px; color: var(--ink); }

.error-page { text-align: center; padding: 90px 20px 110px; }
.error-code {
  font-family: var(--serif); font-size: 76px; line-height: 1; margin: 0 0 8px;
  color: #dfe9e5; letter-spacing: 4px;
}
.error-page h1 { font-family: var(--serif); font-size: 22px; margin: 0 0 8px; }
.error-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 10px; font-size: 14px;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  transition: all 0.18s;
}
.btn:hover { background: var(--brand-d); border-color: var(--brand-d); }
.btn-ghost { background: transparent; color: var(--brand); border-color: #cfe0da; }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-d); }

/* ============ 分页 ============ */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 34px; }
.pager-btn {
  min-width: 38px; height: 36px; display: inline-flex; align-items: center;
  justify-content: center; padding: 0 13px; border: 1px solid var(--line);
  border-radius: 9px; background: #fff; font-size: 13.5px; color: var(--ink-2);
  cursor: pointer; -webkit-user-select: none; user-select: none;
}
.pager-btn:hover { border-color: var(--brand); color: var(--brand); }
.pager-btn.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager-btn.is-disabled { color: #c4cbc8; background: #faf9f5; }
/* 当前页 / 禁用页 / 页数说明是普通文本，光标保持默认且不显示文字选择 I 形条 */
.pager-btn.is-current, .pager-btn.is-disabled, .pager-info { cursor: default; -webkit-user-select: none; user-select: none; }
.pager-info { font-size: 12.5px; color: var(--muted); margin-left: 6px; }

/* ============ 页脚（含备案位） ============ */
.site-footer { background: #152b27; color: #c4d3ce; margin-top: 30px; padding: 50px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 30px; }
.site-footer h3 { font-family: var(--serif); font-size: 17px; color: #fff; margin: 0 0 10px; font-weight: 600; }
.site-footer h4 { font-size: 12.5px; color: #e6efec; margin: 0 0 12px; letter-spacing: 1.2px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; font-size: 13.5px; }
.site-footer a { color: #b3c6c1; }
.site-footer a:hover { color: #fff; }
.footer-about p { font-size: 13px; color: #8ba19c; line-height: 1.85; margin: 0; }
.footer-col .muted { color: #7d918c; font-size: 12.5px; }

.footer-filing { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 34px; padding-top: 18px; }
.filing-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: 12.5px; color: #8ba19c; }
.filing-item { display: inline-flex; align-items: center; gap: 6px; }
.filing-empty {
  color: #8fa6a1; border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 6px; padding: 2px 10px; font-size: 11.5px;
}
.filing-police img { width: 16px; height: 16px; }
.filing-note { font-size: 11.5px; color: #6f8681; margin: 14px 0 0; line-height: 1.8; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; gap: 34px; }
  .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header-main { flex-wrap: wrap; height: auto; padding: 12px 0 10px; gap: 10px 16px; }
  .brand { order: 1; }
  .search { order: 2; margin-left: auto; width: 220px; }
  .nav { order: 3; flex-basis: 100%; padding-bottom: 2px; }
  .nav a { padding: 6px 10px; }
  .feature { grid-template-columns: 1fr; }
  .feature-media { min-height: 0; aspect-ratio: 16 / 9; }
  .feature-body { padding: 24px 26px 28px; }
  .feature-title { font-size: 23px; }
  .sidebar { top: auto; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  body { font-size: 15.5px; }
  .hero { padding-top: 18px; }
  .feature { border-radius: 16px; }
  .feature-body { padding: 20px 20px 22px; gap: 10px; }
  .feature-title { font-size: 20px; line-height: 1.45; }
  .feature-summary { font-size: 13.5px; }
  .brand-text em { display: none; }
  .nav { gap: 0; }
  .search { width: 100%; order: 3; margin-left: 0; }
  .nav { order: 4; }
  .cat-strip { padding: 16px 16px 0; gap: 8px; }
  .section { padding: 22px 0 44px; }
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .card-media { aspect-ratio: 16 / 9; }
  .card-body { padding: 14px 15px 16px; }
  .card-title { font-size: 16.5px; }
  .page-hero { padding: 22px 0 18px; }
  .page-hero h1 { font-size: 22px; }
  .article-head h1 { font-size: 23px; line-height: 1.5; }
  .article-lead { font-size: 14.5px; }
  .prose { font-size: 16.5px; line-height: 1.9; }
  .prose h2 { font-size: 19px; margin-top: 30px; }
  .article-cover { margin: 18px 0 22px; border-radius: 12px; }
  .article-nav { grid-template-columns: 1fr; }
  .nav-next { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .site-footer { padding: 36px 0 22px; }
  .filing-line { gap: 8px 14px; }
  .search-lg { flex-direction: column; }
  .search-lg button { padding: 11px; }
  .error-page { padding: 60px 16px 80px; }
  .error-code { font-size: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
