:root {
  --bg-page: #f7f9fa;
  --bg-surface: #ffffff;
  --bg-subtle: #eef4ff;
  --text-main: #1f2933;
  --text-muted: #52606d;
  --brand-blue: #1f6feb;
  --brand-green: #12a594;
  --line: #e3e8ee;
  --radius-sm: 3px;
  --radius-md: 4px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --shadow-card: 0 1px 2px rgba(31, 41, 51, 0.04);
  --max-wide: 1180px;
  --max-narrow: 900px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

dl {
  margin: 0;
}

dt {
  font-weight: 600;
}

dd {
  margin: 0 0 0.7em;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 0.5em;
  line-height: 1.6;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
}

.site-main {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 28px 20px 56px;
  flex: 1 1 auto;
}

.inner-main {
  max-width: var(--max-wide);
}

.home-main {
  padding-top: 22px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 60px;
  padding: 0 20px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-weight: 700;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
  color: var(--brand-blue);
}

.brand-mark {
  font-size: 17px;
  letter-spacing: 0;
}

.brand-slogan {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.site-nav {
  margin-left: auto;
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--brand-blue);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.nav-toggle::before {
  content: "\2261";
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--brand-blue);
}

.breadcrumb-sep {
  color: var(--text-muted);
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

.page-header {
  padding: 0 0 20px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 30px;
  line-height: 1.35;
  margin: 0 0 0.5em;
}

.page-description {
  margin: 0;
  max-width: 76ch;
  color: var(--text-muted);
  font-size: 15px;
}

.section {
  margin: 0 0 40px;
}

.section h2 {
  font-size: 20px;
  margin: 0 0 0.5em;
}

.section h3 {
  font-size: 16px;
}

.section-note {
  font-size: 13px;
  color: var(--text-muted);
}

.section-note a {
  color: var(--brand-blue);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: start;
}

.page-layout.sidebar-left {
  grid-template-columns: 240px minmax(0, 1fr);
}

.page-content {
  min-width: 0;
}

.page-aside {
  position: sticky;
  top: 76px;
  min-width: 0;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.aside-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: none;
  margin: 0 0 8px;
}

.aside-list,
.aside-anchors,
.aside-links {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.aside-list li,
.aside-anchors li,
.aside-links li {
  margin: 0 0 2px;
}

.aside-list a,
.aside-anchors a,
.aside-links a {
  display: block;
  padding: 6px 8px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
}

.aside-list a:hover,
.aside-anchors a:hover,
.aside-links a:hover,
.aside-list a:focus-visible,
.aside-anchors a:focus-visible,
.aside-links a:focus-visible {
  color: var(--brand-blue);
  background: var(--bg-subtle);
  text-decoration: none;
}

.page-pager,
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.pager-prev,
.pager-next,
.post-prev,
.post-next,
.post-nav-prev,
.post-nav-next {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 14px;
  max-width: 46%;
}

.pager-next,
.post-next,
.post-nav-next {
  margin-left: auto;
  text-align: right;
}

.pager-prev:hover,
.pager-next:hover,
.post-prev:hover,
.post-next:hover,
.post-nav-prev:hover,
.post-nav-next:hover,
.pager-prev:focus-visible,
.pager-next:focus-visible,
.post-prev:focus-visible,
.post-next:focus-visible,
.post-nav-prev:focus-visible,
.post-nav-next:focus-visible {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  text-decoration: none;
}

.post-nav-label,
.post-dir {
  font-size: 12px;
  color: var(--text-muted);
}

.post-nav-title,
.post-title {
  font-weight: 600;
  font-size: 14px;
}

.fact-bar {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
}

.fact-bar p {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: start;
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--line);
}

.hero-intro {
  min-width: 0;
}

.hero-intro .page-title {
  font-size: 32px;
}

.hero-lead {
  color: var(--text-muted);
  max-width: 46ch;
}

.hero-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.hero-entry a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-blue);
}

.hero-entry a:hover,
.hero-entry a:focus-visible {
  background: var(--bg-subtle);
  border-color: var(--brand-blue);
  text-decoration: none;
}

.hero-visual {
  min-width: 0;
}

.hero-figure {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  margin: 0;
}

.cover-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cover-item {
  margin: 0;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cover-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cover-item figcaption {
  margin: 0;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.5;
}

.topic-overview {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.topic-card {
  min-width: 0;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.topic-card h3 {
  font-size: 16px;
  margin-bottom: 0.5em;
}

.topic-scope,
.topic-setting,
.topic-pick {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 0.6em;
}

.topic-pick {
  margin-bottom: 0;
}

.topic-pick a {
  font-weight: 600;
}

.batch-bar {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.batch-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-green);
  border-radius: var(--radius-md);
  font-size: 14px;
}

.batch-code,
.batch-date,
.batch-scope,
.batch-count {
  color: var(--text-muted);
}

.batch-code {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-main);
}

.batch-state {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.batch-state--live {
  background: #e6f7f4;
  color: #0b7a6c;
}

.batch-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.archive-panel {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 16px;
  align-items: start;
}

.archive-entries {
  min-width: 0;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.entry-card {
  min-width: 0;
  padding: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.entry-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.entry-card h4 {
  font-size: 14px;
  margin: 0 0 4px;
}

.entry-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.archive-batches {
  min-width: 0;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.batch-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.batch-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.batch-row:last-child {
  border-bottom: 0;
}

.batch-row .batch-code {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 13px;
}

.batch-row .batch-date,
.batch-row .batch-scope,
.batch-row .batch-count {
  font-size: 12.5px;
}

.rank-fields {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.rank-fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 16px;
  align-items: start;
}

.rank-panel,
.fields-panel {
  min-width: 0;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden;
}

.rank-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-no {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-blue);
}

.rank-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rank-topic,
.rank-state {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.rank-state {
  color: var(--brand-green);
}

.field-list {
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.field-list dt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-blue);
  margin-top: 10px;
}

.field-list dt:first-child {
  margin-top: 0;
}

.field-list dd {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.path-guide {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.step-block {
  min-width: 0;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  margin-bottom: 8px;
  background: var(--bg-subtle);
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.step-block h3 {
  font-size: 15px;
  margin: 0 0 0.4em;
}

.step-block p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.feedback-block {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.feedback-block h3 {
  font-size: 15px;
  margin: 0 0 0.4em;
}

.feedback-block p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.site-index {
  padding: 32px 0 8px;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.index-grid li {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.index-grid a {
  font-weight: 600;
  font-size: 14px;
}

.index-grid span {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 36px 20px 12px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 0.4em;
}

.footer-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 34ch;
}

.footer-group {
  min-width: 0;
}

.footer-group h2 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.footer-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-group li {
  margin: 0 0 2px;
}

.footer-group a {
  display: inline-block;
  padding: 4px 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--brand-blue);
}

.footer-note {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-muted);
}

.overview-facts {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.overview-facts li {
  min-width: 0;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  color: var(--text-muted);
}

.overview-facts strong {
  display: block;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 2px;
}

.topic-block {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.topic-block:last-child {
  border-bottom: 0;
}

.topic-figure {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
}

.topic-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.topic-figure figcaption {
  margin: 0;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}

.topic-body {
  min-width: 0;
}

.topic-name {
  font-size: 18px;
  margin: 0 0 0.5em;
}

.topic-meta {
  margin: 0 0 0.8em;
}

.topic-meta dt {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.topic-meta dd {
  margin: 0 0 8px;
  font-size: 14px;
}

.topic-entry {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
}

.topic-entry:hover,
.topic-entry:focus-visible {
  border-color: var(--brand-blue);
  text-decoration: none;
}

.data-table,
.batch-table,
.field-table {
  margin: 16px 0;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 14px;
}

.data-table caption,
.batch-table caption,
.field-table caption {
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
  background: var(--bg-subtle);
}

.data-table th,
.data-table td,
.batch-table th,
.batch-table td,
.field-table th,
.field-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table thead th,
.batch-table thead th,
.field-table thead th {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-surface);
  white-space: nowrap;
}

.data-table tbody tr:last-child td,
.batch-table tbody tr:last-child td,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-active {
  background: #e6f7f4;
  color: #0b7a6c;
}

.status-slow {
  background: #fff4e5;
  color: #8a5a00;
}

.status-done {
  background: #eef4ff;
  color: var(--brand-blue);
}

.status-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #eef4ff;
  color: var(--brand-blue);
}

.advice-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.advice-item {
  min-width: 0;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.advice-item h3 {
  font-size: 15px;
  margin: 0 0 0.4em;
}

.advice-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.entry-links {
  margin-top: 20px;
}

.entry-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.entry-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
}

.entry-links a:hover,
.entry-links a:focus-visible {
  border-color: var(--brand-blue);
  text-decoration: none;
}

.media-figure {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
}

.media-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-figure figcaption {
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
}

.batch-overview-current {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-green);
  border-radius: var(--radius-md);
}

.batch-overview-current h3 {
  font-size: 15px;
  margin: 0 0 0.6em;
}

.batch-status-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.batch-status-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.field-label {
  font-size: 12.5px;
  color: var(--text-muted);
}

.field-value {
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.batch-table {
  min-width: 620px;
}

.archive-entry-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.archive-entry {
  min-width: 0;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.archive-entry h3 {
  font-size: 15px;
  margin: 0 0 0.4em;
}

.archive-entry p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.archive-entry a {
  font-weight: 600;
  font-size: 14px;
}

.field-legend {
  margin: 16px 0;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.field-legend dt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-blue);
  margin-top: 10px;
}

.field-legend dt:first-child {
  margin-top: 0;
}

.field-legend dd {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0 0 0.3em;
}

.section-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 76ch;
}

.rank-cover {
  margin: 0;
  width: 56px;
  flex: 0 0 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface);
}

.rank-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.rank-info {
  min-width: 0;
  flex: 1 1 auto;
}

.rank-name {
  font-size: 15px;
  margin: 0 0 4px;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.tag-topic {
  background: var(--bg-subtle);
  color: var(--brand-blue);
}

.tag-status {
  background: #e6f7f4;
  color: #0b7a6c;
}

.rank-footnote {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.method-item {
  min-width: 0;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.method-item h3 {
  font-size: 15px;
  margin: 0 0 0.4em;
}

.method-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.method-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
}

.method-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.method-figure figcaption {
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
}

.cross-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cross-item {
  min-width: 0;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.cross-item h3 {
  font-size: 15px;
  margin: 0 0 0.4em;
}

.cross-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.cross-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.faq-list {
  margin: 0;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-weight: 700;
}

.faq-item[open] summary::before {
  content: "\2212";
}

.faq-item summary:hover,
.faq-item summary:focus-visible {
  color: var(--brand-blue);
}

.faq-item p {
  margin: 0;
  padding: 0 16px 14px 34px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.field-figure {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
}

.field-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.field-figure figcaption {
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
}

.field-table {
  min-width: 560px;
}

.field-def {
  margin: 12px 0 0;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.field-def dt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-blue);
  margin-top: 10px;
}

.field-def dt:first-child {
  margin-top: 0;
}

.field-def dd {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.rule-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rule-list li {
  min-width: 0;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.rule-list h3 {
  font-size: 15px;
  margin: 0 0 0.4em;
}

.rule-list p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.feedback-note {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.feedback-note h3 {
  font-size: 15px;
  margin: 0 0 0.4em;
}

.feedback-note p {
  margin: 0 0 0.6em;
  font-size: 13.5px;
  color: var(--text-muted);
}

.feedback-note p:last-child {
  margin-bottom: 0;
}

.guide-figure {
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.guide-figure figcaption {
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
}

.section-intro {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 76ch;
}

.path-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.path-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.path-card h3 {
  font-size: 16px;
  margin: 0 0 0.4em;
}

.path-fit {
  margin: 0 0 0.8em;
  font-size: 13.5px;
  color: var(--text-muted);
}

.path-steps {
  margin: 0 0 14px;
  padding-left: 1.1em;
  font-size: 13.5px;
  color: var(--text-muted);
}

.path-steps li {
  margin-bottom: 4px;
}

.path-enter {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  padding: 0 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  align-self: flex-start;
}

.path-enter:hover,
.path-enter:focus-visible {
  border-color: var(--brand-blue);
  text-decoration: none;
}

.guide-detail .step-block {
  margin-bottom: 16px;
}

.guide-detail .step-block h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  margin: 0 0 0.5em;
}

.guide-detail .step-block .step-no {
  margin-bottom: 0;
}

.step-fit {
  margin: 0 0 0.8em;
  font-size: 13.5px;
  color: var(--text-muted);
}

.guide-detail .step-list {
  display: block;
  margin: 0 0 0.8em;
  padding-left: 1.2em;
  font-size: 14px;
}

.guide-detail .step-list li {
  margin-bottom: 4px;
}

.step-label {
  font-weight: 600;
}

.step-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.feedback-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feedback-scope,
.feedback-way {
  min-width: 0;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.feedback-scope h3,
.feedback-way h3 {
  font-size: 15px;
  margin: 0 0 0.5em;
}

.feedback-scope ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: 13.5px;
  color: var(--text-muted);
}

.feedback-scope li {
  margin-bottom: 4px;
}

.feedback-way p {
  margin: 0 0 0.6em;
  font-size: 13.5px;
  color: var(--text-muted);
}

.feedback-way p:last-child {
  margin-bottom: 0;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.related-list li {
  min-width: 0;
}

.related-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
}

.related-list a:hover,
.related-list a:focus-visible {
  border-color: var(--brand-blue);
  text-decoration: none;
}

.error-main {
  max-width: var(--max-narrow);
}

.error-hero {
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--line);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--brand-blue);
  margin: 0 0 0.2em;
  line-height: 1;
}

.error-hero h1 {
  font-size: 26px;
  margin: 0 0 0.4em;
}

.error-lead {
  max-width: 60ch;
  color: var(--text-muted);
}

.error-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 18px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-weight: 600;
}

.error-action:hover,
.error-action:focus-visible {
  border-color: var(--brand-blue);
  text-decoration: none;
}

.error-paths {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.error-path-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.error-path-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
}

.error-path-list a:hover,
.error-path-list a:focus-visible {
  border-color: var(--brand-blue);
  text-decoration: none;
}

.error-note {
  padding: 28px 0 0;
}

.error-note p {
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-layout,
  .rank-fields-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-aside {
    position: static;
    order: 2;
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
    height: auto;
    min-height: 60px;
    padding: 8px 16px;
    row-gap: 0;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 6px 0 10px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 44px;
    padding: 0 6px;
    border-bottom: 0;
    border-left: 2px solid transparent;
  }

  .nav-list a.is-current {
    border-bottom-color: transparent;
    border-left-color: var(--brand-blue);
    padding-left: 10px;
  }

  .site-main {
    padding: 20px 16px 44px;
  }

  .page-title {
    font-size: 24px;
  }

  .hero-intro .page-title {
    font-size: 24px;
  }

  .cover-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .topic-grid,
  .entry-grid,
  .step-list,
  .advice-list,
  .method-grid,
  .path-columns,
  .archive-entry-list,
  .feedback-columns,
  .rule-list,
  .cross-list,
  .related-list,
  .error-path-list,
  .overview-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .topic-figure {
    max-width: 220px;
  }

  .batch-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .batch-state {
    margin-left: 0;
  }

  .batch-status-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 4px 10px;
  }

  .rank-row .rank-topic,
  .rank-row .rank-state {
    grid-column: 2;
    white-space: normal;
  }

  .rank-list-section .rank-row {
    grid-template-columns: 32px 56px minmax(0, 1fr);
    align-items: start;
  }

  .rank-list-section .rank-cover {
    grid-row: 1 / 3;
  }

  .rank-list-section .rank-meta {
    grid-column: 3;
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 28px 16px 12px;
  }

  .footer-desc {
    max-width: none;
  }

  .pager-prev,
  .pager-next,
  .post-prev,
  .post-next,
  .post-nav-prev,
  .post-nav-next {
    max-width: 48%;
    padding: 10px 12px;
  }
}

@media (max-width: 420px) {
  .cover-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .batch-status-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .pager-prev,
  .pager-next,
  .post-prev,
  .post-next,
  .post-nav-prev,
  .post-nav-next {
    max-width: 100%;
  }

  .page-pager,
  .post-nav {
    flex-direction: column;
  }

  .pager-next,
  .post-next,
  .post-nav-next {
    margin-left: 0;
    text-align: left;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .entry-card,
  .topic-card,
  .path-card,
  .advice-item,
  .method-item,
  .cross-item {
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
  }

  .entry-card:hover,
  .topic-card:hover,
  .path-card:hover,
  .advice-item:hover,
  .method-item:hover,
  .cross-item:hover {
    border-color: #c8d4e3;
    box-shadow: 0 2px 6px rgba(31, 41, 51, 0.07);
  }
}
