/* ==========================================================================
   歪歪漫画 · 全站样式表
   现代主义海报风内容站：深墨底 + 暖橙主色 + 等比例封面网格
   结构：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量与基础
   -------------------------------------------------------------------------- */
:root {
  --c-accent: #F26419;
  --c-accent-soft: #FCE6D8;
  --c-dark: #1A1A1D;
  --c-dark-2: #26262B;
  --c-light: #FAF7F2;
  --c-text: #1F1F23;
  --c-muted: #6B6B70;
  --c-line: #E4DED6;
  --c-white: #FFFFFF;
  --radius: 6px;
  --radius-sm: 4px;
  --wrap: 1160px;
  --gap: 24px;
  --shadow-card: 0 1px 2px rgba(26, 26, 29, 0.06);
  --shadow-lift: 0 8px 20px rgba(26, 26, 29, 0.14);
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-light);
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-text);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架（程序锁定）
   -------------------------------------------------------------------------- */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--c-light);
  color: var(--c-text);
  font-family: var(--font);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--c-dark);
  color: var(--c-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 56px;
}

.inner-main {
  padding-top: 20px;
}

.site-footer {
  flex-shrink: 0;
  background: var(--c-dark);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 32px 20px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-copy {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   components · 品牌与导航
   -------------------------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 6px 0;
}

.brand-mark {
  font-size: 21px;
  font-weight: 700;
  color: var(--c-white);
}

.brand-sub {
  font-size: 13px;
  color: var(--c-accent);
  padding-left: 10px;
  border-left: 2px solid var(--c-accent);
  line-height: 1.2;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-list a:hover {
  color: var(--c-white);
  border-bottom-color: rgba(242, 100, 25, 0.6);
}

.nav-list a.is-current {
  color: var(--c-white);
  border-bottom-color: var(--c-accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   components · 通用按钮与标题
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--c-accent);
  color: var(--c-white);
}

.btn-primary:hover {
  background: #d9560f;
}

.btn-ghost {
  background: transparent;
  color: var(--c-dark);
  border-color: var(--c-line);
}

.btn-ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.section-head {
  margin-bottom: 22px;
  max-width: 780px;
}

.section-head h2,
.section-title {
  font-size: 24px;
  font-weight: 600;
}

.section-desc,
.section-intro,
.section-lead {
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 72ch;
}

/* --------------------------------------------------------------------------
   components · 面包屑与内页标题区
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  font-size: 14px;
  color: var(--c-muted);
}

.breadcrumb a {
  color: var(--c-muted);
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}

.breadcrumb-sep {
  color: var(--c-line);
}

.breadcrumb-current {
  color: var(--c-text);
  font-weight: 600;
}

.page-header {
  padding: 8px 0 26px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-description {
  margin-top: 12px;
  max-width: 78ch;
  color: var(--c-muted);
  font-size: 16px;
}

.page-description a {
  color: var(--c-accent);
  border-bottom: 1px solid rgba(242, 100, 25, 0.4);
}

.page-description a:hover {
  border-bottom-color: var(--c-accent);
}

/* --------------------------------------------------------------------------
   components · 页脚
   -------------------------------------------------------------------------- */
.footer-brand {
  max-width: 340px;
}

.footer-brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-white);
}

.footer-brand-desc {
  margin-top: 8px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-accent);
  margin-bottom: 10px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-group a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-group a:hover {
  color: var(--c-white);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.top-fact-bar {
  background: var(--c-dark-2);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.top-fact-bar p {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 9px 20px;
  line-height: 1.6;
}

.hero {
  background: var(--c-dark);
  color: var(--c-white);
  margin: 0 -20px 48px;
  padding: 48px 20px 52px;
  border-bottom: 3px solid var(--c-accent);
}

.hero-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(242, 100, 25, 0.7);
  border-radius: 999px;
  color: var(--c-accent);
  font-size: 13px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.22;
  color: var(--c-white);
  max-width: 22ch;
}

.hero-lead {
  margin-top: 18px;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-actions .btn-ghost {
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.32);
}

.hero-actions .btn-ghost:hover {
  color: var(--c-white);
  border-color: var(--c-accent);
  background: rgba(242, 100, 25, 0.14);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.hero-tags a:hover {
  background: var(--c-accent);
  color: var(--c-white);
}

.hero-visual {
  margin: 0;
  min-width: 0;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-visual figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.topic-overview {
  margin-bottom: 56px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.topic-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.topic-card:hover {
  border-color: var(--c-accent);
  border-top-color: var(--c-accent);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.topic-name {
  font-size: 18px;
  font-weight: 700;
}

.topic-trait {
  margin-top: 10px;
  font-size: 14px;
  color: var(--c-accent);
  font-weight: 600;
}

.topic-scope {
  margin-top: 8px;
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.65;
  flex: 1 1 auto;
}

.topic-enter {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 14px;
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.topic-card:hover .topic-enter {
  border-bottom-color: var(--c-accent);
}

.cover-wall {
  margin-bottom: 56px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.cover-card {
  min-width: 0;
}

.cover-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cover-card > a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--c-accent);
}

.cover-figure {
  margin: 0;
  background: var(--c-accent-soft);
}

.cover-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
}

.cover-name {
  padding: 12px 14px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.cover-meta {
  padding: 6px 14px 14px;
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.6;
}

.cover-wall-more,
.col-more {
  margin-top: 20px;
  font-size: 14px;
}

.cover-wall-more a,
.col-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--c-accent);
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.cover-wall-more a:hover,
.col-more a:hover {
  border-bottom-color: var(--c-accent);
}

.updates-ranking {
  margin-bottom: 56px;
}

.updates-ranking-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.updates-col,
.ranking-col {
  min-width: 0;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-card);
}

.col-title {
  font-size: 17px;
  font-weight: 700;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--c-dark);
}

.update-list {
  display: flex;
  flex-direction: column;
}

.update-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  grid-template-areas:
    "date name"
    "date topic";
  gap: 2px 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--c-line);
}

.update-row:last-child {
  border-bottom: none;
}

.update-date {
  grid-area: date;
  font-size: 13px;
  color: var(--c-muted);
  padding-top: 2px;
}

.update-name {
  grid-area: name;
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.update-topic {
  grid-area: topic;
  font-size: 13px;
  color: var(--c-muted);
}

.update-topic::after {
  content: "·";
  margin: 0 6px;
  color: var(--c-line);
}

.update-rhythm {
  font-size: 13px;
  color: var(--c-accent);
}

.ranking-list {
  display: flex;
  flex-direction: column;
}

.ranking-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-areas:
    "no name"
    "no topic";
  gap: 2px 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--c-line);
}

.ranking-row:last-child {
  border-bottom: none;
}

.ranking-no {
  grid-area: no;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-accent);
}

.ranking-name {
  grid-area: name;
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ranking-topic {
  grid-area: topic;
  font-size: 13px;
  color: var(--c-muted);
}

.ranking-rhythm {
  font-size: 13px;
  color: var(--c-muted);
}

.guide-boundary {
  margin-bottom: 56px;
}

.guide-boundary-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.guide-col,
.boundary-col {
  min-width: 0;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.path-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: path;
}

.path-step {
  position: relative;
  padding-left: 40px;
}

.path-step::before {
  counter-increment: path;
  content: counter(path);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.path-step-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.path-step p {
  margin-top: 2px;
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.65;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.boundary-list li {
  padding-left: 16px;
  border-left: 3px solid var(--c-accent-soft);
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.7;
}

.boundary-list strong {
  display: block;
  color: var(--c-text);
  font-size: 15px;
}

.section-index {
  margin-bottom: 8px;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.index-item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px 14px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.index-item a:hover {
  border-color: var(--c-accent);
  background: var(--c-accent-soft);
}

.index-name {
  font-size: 15px;
  font-weight: 700;
}

.index-note {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   pages · 题材分类
   -------------------------------------------------------------------------- */
.topic-filter {
  margin-bottom: 44px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 26px;
}

.filter-chip {
  min-height: 44px;
  padding: 8px 18px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--c-text);
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.filter-chip:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.filter-chip.is-active {
  background: var(--c-dark);
  border-color: var(--c-dark);
  color: var(--c-white);
  font-weight: 600;
}

.orientation-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 20px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.orientation-item {
  min-width: 0;
}

.orientation-item dt {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-accent);
}

.orientation-item dd {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.65;
}

.topic-filter + .cover-wall {
  margin-bottom: 40px;
}

.pagination {
  margin: 40px 0 44px;
  padding-top: 26px;
  border-top: 1px solid var(--c-line);
}

.pagination-title {
  font-size: 17px;
  font-weight: 700;
}

.pagination-note {
  margin-top: 6px;
  font-size: 14px;
  color: var(--c-muted);
}

.pagination-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--c-text);
}

.pagination-link.is-disabled {
  color: var(--c-muted);
  background: transparent;
  border-style: dashed;
}

.topic-related {
  padding: 26px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.related-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.related-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--c-light);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.related-links a:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.cover-wall .cover-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cover-wall .cover-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--c-accent);
}

.cover-wall .cover-card .cover-name {
  padding: 12px 14px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.cover-wall .cover-card .cover-tag {
  padding: 4px 14px 0;
  font-size: 13px;
  color: var(--c-accent);
  font-weight: 600;
}

.cover-wall .cover-card .cover-rhythm {
  padding: 2px 14px 14px;
  font-size: 13px;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   pages · 最近更新
   -------------------------------------------------------------------------- */
.updates-intro {
  margin-bottom: 44px;
  padding: 26px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.updates-intro h2 {
  font-size: 22px;
  font-weight: 700;
}

.updates-figure {
  margin: 20px 0 0;
}

.updates-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
}

.updates-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-muted);
}

.updates-intro-text {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 82ch;
  color: var(--c-text);
}

.updates-group {
  margin-bottom: 44px;
}

.updates-group h2 {
  font-size: 24px;
  font-weight: 600;
}

.updates-group-note {
  margin: 8px 0 24px;
  font-size: 14px;
  color: var(--c-muted);
  max-width: 78ch;
}

.updates-day {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.updates-day-title {
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--c-accent-soft);
  color: var(--c-accent);
}

.updates-rows {
  display: flex;
  flex-direction: column;
}

.updates-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  grid-template-areas:
    "thumb name topic"
    "thumb name rhythm";
  align-items: center;
  gap: 2px 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--c-line);
}

.updates-row:last-child {
  border-bottom: none;
}

.updates-row img {
  grid-area: thumb;
  width: 46px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--c-accent-soft);
}

.updates-row-name {
  grid-area: name;
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.updates-row-topic {
  grid-area: topic;
  font-size: 13px;
  color: var(--c-muted);
  text-align: right;
}

.updates-row-rhythm {
  grid-area: rhythm;
  font-size: 13px;
  color: var(--c-accent);
  text-align: right;
}

.updates-rhythm {
  margin-bottom: 44px;
}

.rhythm-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.rhythm-item {
  min-width: 0;
  padding: 20px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius);
}

.rhythm-item h3 {
  font-size: 16px;
  font-weight: 700;
}

.rhythm-item p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.7;
}

.updates-fieldmap {
  padding: 26px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.fieldmap-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 20px;
}

.fieldmap-col {
  min-width: 0;
}

.fieldmap-col h3 {
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-dark);
  margin-bottom: 12px;
}

.fieldmap-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fieldmap-list li {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.7;
  padding-left: 14px;
  border-left: 3px solid var(--c-accent-soft);
}

.fieldmap-note {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
  font-size: 14px;
  color: var(--c-muted);
}

.fieldmap-note a {
  color: var(--c-accent);
  border-bottom: 1px solid transparent;
}

.fieldmap-note a:hover {
  border-bottom-color: var(--c-accent);
}

/* --------------------------------------------------------------------------
   pages · 人气榜单
   -------------------------------------------------------------------------- */
.ranking-board {
  margin-bottom: 48px;
}

.ranking-figure {
  margin: 22px 0 26px;
}

.ranking-figure img {
  width: 100%;
  aspect-ratio: 16 / 6;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
}

.ranking-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-muted);
}

.ranking-board .ranking-list {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 4px 22px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dashed var(--c-line);
}

.ranking-item:last-child {
  border-bottom: none;
}

.rank-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-size: 16px;
  font-weight: 700;
}

.ranking-item:nth-child(-n+3) .rank-num {
  background: var(--c-accent);
  color: var(--c-white);
}

.rank-body {
  min-width: 0;
}

.rank-name {
  font-size: 16px;
  font-weight: 600;
}

.rank-meta {
  margin-top: 2px;
  font-size: 13px;
  color: var(--c-muted);
}

.ranking-note,
.picks-note,
.scope-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--c-muted);
}

.ranking-note a,
.picks-note a,
.scope-note a {
  color: var(--c-accent);
  border-bottom: 1px solid transparent;
}

.ranking-note a:hover,
.picks-note a:hover,
.scope-note a:hover {
  border-bottom-color: var(--c-accent);
}

.editor-picks {
  margin-bottom: 48px;
}

.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.pick-card {
  min-width: 0;
  padding: 22px 20px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-dark);
  border-radius: var(--radius);
  transition: border-top-color 0.18s ease, box-shadow 0.18s ease;
}

.pick-card:hover {
  border-top-color: var(--c-accent);
  box-shadow: var(--shadow-lift);
}

.pick-name {
  font-size: 17px;
  font-weight: 700;
}

.pick-scope {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-accent);
}

.pick-reason {
  margin-top: 10px;
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.7;
}

.ranking-scope {
  padding: 26px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.scope-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 18px;
}

.scope-col {
  min-width: 0;
}

.scope-subtitle {
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-accent-soft);
  margin-bottom: 12px;
}

.scope-col p {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   pages · 阅读说明
   -------------------------------------------------------------------------- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.guide-article {
  min-width: 0;
}

.guide-section {
  margin-bottom: 44px;
  padding-bottom: 8px;
}

.guide-section .section-title {
  font-size: 24px;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-dark);
  margin-bottom: 16px;
}

.guide-text {
  margin-bottom: 16px;
  max-width: 76ch;
}

.column-usage-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.column-usage-item {
  padding: 20px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius);
}

.column-usage-name {
  font-size: 16px;
  font-weight: 700;
}

.column-usage-entry {
  margin-top: 6px;
  font-size: 13px;
  color: var(--c-accent);
  font-weight: 600;
}

.column-usage-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.7;
}

.column-usage-link {
  margin-top: 10px;
  font-size: 14px;
}

.column-usage-link a {
  color: var(--c-accent);
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.column-usage-link a:hover {
  border-bottom-color: var(--c-accent);
}

.guide-figure {
  margin: 20px 0;
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 8;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
}

.guide-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-muted);
}

.field-table {
  margin: 20px 0;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-table caption {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-muted);
  background: var(--c-accent-soft);
}

.field-table th,
.field-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  line-height: 1.65;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}

.field-table thead th {
  background: var(--c-dark);
  color: var(--c-white);
  font-weight: 600;
  white-space: nowrap;
}

.field-table tbody th {
  font-weight: 600;
  color: var(--c-text);
  background: var(--c-light);
  white-space: nowrap;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: none;
}

.field-table td {
  color: var(--c-muted);
}

.guide-section .path-steps {
  margin-top: 20px;
  gap: 18px;
}

.guide-section .path-step {
  padding: 16px 18px 16px 52px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.guide-section .path-step::before {
  left: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
}

.guide-section .path-step-name {
  font-size: 16px;
}

.path-step-action {
  margin-top: 6px;
  font-size: 14px;
  color: var(--c-text);
}

.path-step-task,
.path-step-check {
  margin-top: 4px;
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.65;
}

.path-step-check {
  color: var(--c-accent);
}

.faq-item {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 14px 46px 14px 18px;
  position: relative;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--c-accent);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--c-line);
}

.faq-answer {
  padding: 14px 18px 18px;
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.75;
}

.guide-toc {
  position: sticky;
  top: 92px;
  min-width: 0;
  padding: 20px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-accent);
  border-radius: var(--radius);
}

.toc-title {
  font-size: 15px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 10px;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-item a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 10px;
  border-left: 2px solid transparent;
  font-size: 14px;
  color: var(--c-muted);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.toc-item a:hover {
  color: var(--c-text);
  background: var(--c-light);
}

.toc-item a.is-active {
  color: var(--c-accent);
  border-left-color: var(--c-accent);
  font-weight: 600;
}

.toc-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--c-line);
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.65;
}

.toc-note a {
  color: var(--c-accent);
  border-bottom: 1px solid transparent;
}

.toc-note a:hover {
  border-bottom-color: var(--c-accent);
}

/* --------------------------------------------------------------------------
   pages · 收录与反馈
   -------------------------------------------------------------------------- */
.feedback-scope {
  margin-bottom: 48px;
}

.feedback-figure {
  margin: 22px 0;
}

.feedback-figure img {
  width: 100%;
  aspect-ratio: 16 / 6;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
}

.feedback-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-muted);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.scope-card {
  min-width: 0;
  padding: 20px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.scope-card h3 {
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-accent-soft);
  margin-bottom: 10px;
}

.scope-card p {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.7;
}

.scope-card ul {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scope-card li {
  padding-left: 14px;
  position: relative;
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.6;
}

.scope-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

.feedback-standard {
  margin-bottom: 48px;
}

.standard-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.note-item {
  min-width: 0;
  padding: 18px 20px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius);
}

.note-item h3 {
  font-size: 15px;
  font-weight: 700;
}

.note-item p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.7;
}

.note-item a {
  color: var(--c-accent);
  border-bottom: 1px solid transparent;
}

.note-item a:hover {
  border-bottom-color: var(--c-accent);
}

.feedback-steps {
  margin-bottom: 24px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.step-item {
  min-width: 0;
  padding: 22px 20px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 14px;
  font-weight: 700;
}

.step-item h3 {
  font-size: 16px;
  font-weight: 700;
}

.step-item p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.7;
}

.step-item a {
  color: var(--c-accent);
  border-bottom: 1px solid transparent;
}

.step-item a:hover {
  border-bottom-color: var(--c-accent);
}

.feedback-tips {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--c-dark);
  color: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
}

.feedback-tips h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 10px;
}

.feedback-tips ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feedback-tips li {
  padding-left: 16px;
  position: relative;
  font-size: 14px;
  line-height: 1.7;
}

.feedback-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 48px;
}

.error-panel {
  padding: 48px 32px;
  background: var(--c-dark);
  color: var(--c-white);
  border-radius: var(--radius);
  border-bottom: 3px solid var(--c-accent);
}

.error-code {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-accent);
  margin-bottom: 10px;
}

.error-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--c-white);
  max-width: 24ch;
}

.error-desc {
  margin-top: 14px;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.76);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.error-actions .btn-ghost {
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.32);
}

.error-actions .btn-ghost:hover {
  color: var(--c-white);
  border-color: var(--c-accent);
  background: rgba(242, 100, 25, 0.14);
}

.error-links {
  padding: 26px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.error-link-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--c-light);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.error-link-list a:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

/* --------------------------------------------------------------------------
   responsive · 960px
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 20px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 48px;
    padding: 0 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-list a.is-current {
    border-bottom-color: var(--c-accent);
  }

  .hero {
    margin-bottom: 40px;
    padding: 36px 20px 40px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-title {
    max-width: none;
  }

  .topic-grid,
  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .updates-ranking-inner,
  .guide-boundary-inner,
  .fieldmap-columns,
  .scope-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .orientation-notes,
  .picks-grid,
  .rhythm-list,
  .scope-grid,
  .standard-notes,
  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-links,
  .error-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .guide-toc {
    position: static;
    order: -1;
  }

  .ranking-board .ranking-list {
    padding: 4px 18px;
  }

  .footer-inner {
    gap: 24px;
  }
}

/* --------------------------------------------------------------------------
   responsive · 640px
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .header-inner,
  .site-main,
  .footer-inner,
  .footer-copy,
  .top-fact-bar p {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    margin: 0 -16px 36px;
    padding: 30px 16px 34px;
  }

  .page-title {
    font-size: 28px;
  }

  .hero-title {
    font-size: 28px;
  }

  .section-head h2,
  .section-title,
  .guide-section .section-title,
  .updates-group h2 {
    font-size: 21px;
  }

  .topic-grid,
  .cover-grid,
  .orientation-notes,
  .picks-grid,
  .rhythm-list,
  .scope-grid,
  .standard-notes,
  .step-list,
  .index-grid,
  .related-links,
  .error-link-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .updates-col,
  .ranking-col,
  .guide-col,
  .boundary-col,
  .updates-intro,
  .updates-day,
  .updates-fieldmap,
  .ranking-scope,
  .topic-related,
  .error-links,
  .error-panel {
    padding: 18px 16px;
  }

  .update-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "name"
      "date"
      "topic";
    gap: 2px;
  }

  .ranking-row {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .updates-row {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas:
      "thumb name"
      "thumb topic"
      "thumb rhythm";
    align-items: start;
  }

  .updates-row img {
    width: 40px;
    height: 52px;
  }

  .updates-row-topic,
  .updates-row-rhythm {
    text-align: left;
  }

  .ranking-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-num {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .field-table th,
  .field-table td {
    padding: 10px 12px;
  }

  .field-table thead th,
  .field-table tbody th {
    white-space: normal;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }

  .footer-nav {
    gap: 28px;
  }

  .error-title {
    font-size: 24px;
  }

  .error-panel {
    padding: 32px 18px;
  }
}
