:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --pink: #d96a8a;
  --pink-soft: #f6e6ec;
  --green: #2f5d50;
  --ink: #2b2b2b;
  --ink-soft: #6b6b6b;
  --line: #e2e2de;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(43, 43, 43, 0.06);
  --container: 1080px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
}

/* ============ base ============ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--pink);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ layout: shell ============ */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
}

.brand-logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-logo:hover {
  color: var(--pink);
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
}

.nav-item {
  display: block;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--pink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.site-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.inner-main {
  padding-top: 20px;
}

.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 32px 20px 24px;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto 20px;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-link {
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-link:hover {
  color: var(--pink);
}

.footer-summary,
.footer-copy {
  max-width: var(--container);
  margin: 0 auto;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-summary {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  line-height: 1.7;
}

.footer-copy {
  margin-top: 8px;
}

/* ============ layout: inner pages ============ */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--pink);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.page-description {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 760px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-aside {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.aside-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.aside-desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.aside-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 14px;
  line-height: 1.7;
}

/* ============ components: section headings ============ */

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 3px solid var(--pink);
}

.section-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 800px;
}

.section-lead {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 800px;
}

.section-more {
  margin-top: 16px;
  font-size: 14px;
}

.more-link {
  display: inline-block;
  font-weight: 600;
}

.inline-link {
  color: var(--green);
  border-bottom: 1px solid rgba(47, 93, 80, 0.3);
}

.inline-link:hover {
  color: var(--pink);
  border-bottom-color: rgba(217, 106, 138, 0.4);
}

/* ============ components: top fact bar ============ */

.top-fact-bar {
  background: var(--green);
  color: #eef4f1;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.top-fact-bar p {
  max-width: var(--container);
  margin: 0 auto;
  padding: 9px 20px;
}

/* ============ components: tags & lists ============ */

.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 4px;
  white-space: nowrap;
}

.tag-topic {
  background: var(--pink-soft);
  color: #a84462;
}

.tag-status {
  background: #e8f0ec;
  color: var(--green);
}

.entry-link {
  color: var(--ink);
  font-weight: 400;
}

.entry-link:hover {
  color: var(--pink);
}

.entry-status {
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ============ components: tables ============ */

.boundary-table,
.cross-table,
.field-table,
.usage-table {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

.boundary-table caption,
.cross-caption,
.field-table-caption,
.usage-table caption {
  padding: 14px 16px 0;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: left;
}

.boundary-table th,
.boundary-table td,
.cross-table th,
.cross-table td,
.field-table th,
.field-table td,
.usage-table th,
.usage-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.boundary-table thead th,
.cross-table thead th,
.field-table thead th,
.usage-table thead th {
  background: #f1f1ee;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.boundary-table tbody th,
.field-table tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 22%;
}

.boundary-table tbody tr:last-child th,
.boundary-table tbody tr:last-child td,
.cross-table tbody tr:last-child td,
.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td,
.usage-table tbody tr:last-child th,
.usage-table tbody tr:last-child td {
  border-bottom: none;
}

.cross-table-wrap,
.usage-table-wrap {
  overflow-x: auto;
}

.cross-table,
.usage-table {
  min-width: 560px;
}

/* ============ components: steps ============ */

.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.step-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.step-name,
.step-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-desc,
.step-text {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ============ components: faq ============ */

.faq-group {
  margin-bottom: 24px;
}

.faq-group:last-child {
  margin-bottom: 0;
}

.faq-group-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--green);
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  padding: 0 16px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  cursor: pointer;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 26px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--pink);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-item[open] .faq-question {
  color: var(--green);
}

.faq-answer {
  padding: 0 0 16px;
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* ============ components: buttons (404) ============ */

.button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.button-primary {
  background: var(--pink);
  border-color: var(--pink);
  color: #ffffff;
}

.button-primary:hover {
  background: #c85a79;
  border-color: #c85a79;
  color: #ffffff;
}

.button-ghost {
  background: transparent;
}

/* ============ pages: index ============ */

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 44px;
}

.hero-title {
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-summary {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 560px;
}

.hero-entries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-entries .entry-link {
  display: inline-block;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--green);
  min-height: 44px;
  line-height: 24px;
}

.hero-entries .entry-link:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.hero-figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #ececea;
}

.hero-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.hero-picks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pick-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}

.pick-card img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  background: #ececea;
}

.pick-title {
  font-size: 15px;
  font-weight: 600;
  padding: 10px 12px 4px;
}

.pick-meta {
  font-size: 12px;
  color: var(--ink-soft);
  padding: 0 12px 12px;
}

.topics-section {
  margin-bottom: 44px;
}

.topic-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.topic-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.topic-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.topic-range {
  font-size: 14px;
  color: var(--ink-soft);
}

.topic-link {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 44px;
}

.cards-section,
.updates-section {
  min-width: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card-item {
  min-width: 0;
}

.entry-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.entry-card:hover {
  transform: translateY(-3px);
  border-color: var(--pink);
  box-shadow: 0 4px 12px rgba(43, 43, 43, 0.08);
}

.entry-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #ececea;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  padding: 10px 12px 6px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 12px;
}

.batch-group {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.batch-group:last-of-type {
  margin-bottom: 0;
}

.batch-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.batch-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.batch-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
}

.batch-entry {
  color: var(--ink);
}

.batch-topic {
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.rank-section {
  margin-bottom: 44px;
}

.rank-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.rank-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}

.rank-no {
  font-size: 15px;
  font-weight: 600;
  color: var(--pink);
}

.rank-entry {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
}

.rank-basis {
  font-size: 13px;
  color: var(--ink-soft);
}

.fields-section {
  margin-bottom: 44px;
}

.field-table tbody th {
  width: 30%;
}

.path-section {
  margin-bottom: 44px;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.path-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
}

.path-step .step-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--green);
}

.path-step .step-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

.path-feedback {
  font-size: 14px;
  color: var(--ink-soft);
}

.index-section {
  margin-bottom: 12px;
}

.site-index-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.index-item {
  min-width: 0;
}

.index-link {
  display: block;
  padding: 14px 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}

.index-link:hover {
  border-color: var(--pink);
  color: var(--pink);
}

/* ============ pages: tice ============ */

.category-overview,
.category-boundary,
.category-mapping {
  margin-bottom: 40px;
}

.category-column {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 18px;
}

.category-column:last-child {
  margin-bottom: 0;
}

.category-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--green);
}

.category-scope {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.category-cover {
  margin-bottom: 16px;
}

.category-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.category-figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #ececea;
}

.category-figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.category-represent-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.category-represent-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: #fafaf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  min-width: 0;
}

.category-backlink {
  margin-top: 16px;
  font-size: 14px;
}

.mapping-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mapping-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  min-width: 0;
}

.mapping-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--green);
}

.mapping-note {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ============ pages: gengxin ============ */

.update-list-section,
.batch-rule-section,
.cross-section {
  margin-bottom: 40px;
}

.update-batch {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.update-batch:last-child {
  margin-bottom: 0;
}

.batch-header {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.batch-cover {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.batch-cover img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  background: #ececea;
}

.batch-meta {
  min-width: 0;
}

.batch-code {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #a84462;
  background: var(--pink-soft);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 8px;
}

.batch-meta .batch-title {
  font-size: 17px;
  color: var(--ink);
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 6px;
}

.batch-note {
  font-size: 13px;
  color: var(--ink-soft);
}

.batch-items {
  display: flex;
  flex-direction: column;
}

.batch-items .batch-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.batch-items .batch-item:last-child {
  border-bottom: none;
}

.item-name {
  font-size: 14px;
  color: var(--ink);
}

.item-tag {
  font-size: 12px;
  color: #a84462;
  background: var(--pink-soft);
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
}

.item-state {
  font-size: 12px;
  color: var(--green);
  white-space: nowrap;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rule-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.rule-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--green);
}

.rule-text {
  font-size: 14px;
  color: var(--ink-soft);
}

.cross-foot {
  margin-top: 14px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

/* ============ pages: renqi ============ */

.rank-overview,
.rank-method {
  margin-bottom: 36px;
}

.rank-figure {
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.rank-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #ececea;
}

.rank-figure-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.rank-group {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.rank-group:last-child {
  margin-bottom: 0;
}

.rank-group-header {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.rank-group-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 4px;
}

.rank-group-note {
  font-size: 13px;
  color: var(--ink-soft);
}

.rank-overview .rank-list {
  border-top: none;
}

.rank-overview .rank-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.rank-overview .rank-item:last-child {
  border-bottom: none;
}

.rank-number {
  font-size: 14px;
  font-weight: 600;
  color: var(--pink);
}

.rank-link {
  font-size: 14px;
  color: var(--ink);
}

.rank-link:hover {
  color: var(--pink);
}

.rank-method .method-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.method-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  min-width: 0;
}

.method-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--green);
}

.method-text {
  font-size: 14px;
  color: var(--ink-soft);
}

.field-table tbody th {
  font-weight: 600;
}

.related-entry {
  margin-top: 36px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-item {
  min-width: 0;
}

.related-link {
  display: block;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--green);
}

.related-link:hover {
  border-color: var(--pink);
  color: var(--pink);
}

/* ============ pages: ziduan ============ */

.field-section,
.usage-section {
  margin-bottom: 36px;
}

.field-figure {
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.field-figure img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #ececea;
}

.field-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.field-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}

.field-item:last-child {
  margin-bottom: 0;
}

.field-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--green);
}

.field-meaning {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 12px;
}

.field-meta {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 14px;
  margin: 0;
  font-size: 13px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.field-meta dt {
  color: var(--ink-soft);
}

.field-meta dd {
  margin: 0;
  color: var(--ink);
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rule-item {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.rule-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.rule-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--green);
}

.aside-links {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.aside-links-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.aside-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

/* ============ pages: zhiyin ============ */

.guide-steps,
.guide-visual,
.guide-faq,
.guide-feedback {
  margin-bottom: 40px;
}

.guide-steps .step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-steps .step-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pink);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.step-body {
  min-width: 0;
}

.step-body .step-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.step-body .step-text {
  font-size: 14px;
  color: var(--ink-soft);
}

.guide-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.guide-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #ececea;
}

.figure-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.feedback-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feedback-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  min-width: 0;
}

.feedback-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--green);
}

.feedback-text {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ============ pages: 404 ============ */

.error-main {
  padding-top: 48px;
  padding-bottom: 56px;
}

.error-panel {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.error-code {
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  color: var(--pink);
  margin-bottom: 16px;
}

.error-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 12px;
}

.error-text {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.error-hints .step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.error-hints .step-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.step-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.error-hints .step-text {
  grid-column: 2;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ============ responsive ============ */

@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-figure img {
    height: 240px;
  }

  .home-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
  }

  .site-index-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topic-row {
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .top-fact-bar p {
    padding: 8px 16px;
    font-size: 12px;
  }

  .site-header {
    padding: 12px 16px;
  }

  .brand-logo {
    font-size: 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: block;
    flex-basis: 100%;
    width: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 10px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 12px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
    min-height: 44px;
    line-height: 20px;
  }

  .nav-link.is-current {
    border-bottom-color: var(--line);
    border-left-color: var(--pink);
    padding-left: 10px;
  }

  .site-main {
    padding: 20px 16px 32px;
  }

  .inner-main {
    padding-top: 16px;
  }

  .breadcrumb {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .page-header {
    margin-bottom: 22px;
    padding-bottom: 16px;
  }

  .page-title {
    font-size: 22px;
  }

  .page-description {
    font-size: 13px;
  }

  .section-title {
    font-size: 18px;
  }

  .section-desc,
  .section-lead {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .hero-section {
    margin-bottom: 32px;
  }

  .hero-title {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .hero-summary {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .hero-entries {
    flex-direction: column;
    gap: 8px;
  }

  .hero-entries .entry-link {
    text-align: center;
  }

  .hero-figure img {
    height: 180px;
  }

  .hero-picks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .pick-card img {
    height: 96px;
  }

  .topics-section,
  .home-split,
  .rank-section,
  .fields-section,
  .path-section {
    margin-bottom: 32px;
  }

  .topic-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 14px 2px;
  }

  .topic-link {
    justify-self: start;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .entry-card img {
    height: 120px;
  }

  .card-title {
    font-size: 14px;
  }

  .batch-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .rank-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-basis {
    grid-column: 2;
    font-size: 12px;
  }

  .path-steps,
  .guide-steps .step-list,
  .error-hints .step-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .site-index-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .layout-aside {
    padding: 16px;
  }

  .category-column {
    padding: 16px;
  }

  .category-figure img {
    height: 150px;
  }

  .category-represent-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .mapping-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-batch {
    padding: 16px;
  }

  .batch-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .batch-cover img {
    height: 140px;
  }

  .batch-items .batch-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .item-tag,
  .item-state {
    justify-self: start;
  }

  .rule-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .cross-table,
  .usage-table {
    min-width: 480px;
  }

  .rank-figure img {
    height: 160px;
  }

  .rank-overview .rank-item {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-method .method-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .related-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .field-figure img {
    height: 150px;
  }

  .field-item {
    padding: 16px;
  }

  .field-meta {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .guide-figure img {
    height: 170px;
  }

  .feedback-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .error-main {
    padding-top: 32px;
    padding-bottom: 40px;
  }

  .error-code {
    font-size: 48px;
  }

  .error-title {
    font-size: 22px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions .button {
    text-align: center;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}
