:root {
  --bg-page: #F7FAFB;
  --bg-card: #FFFFFF;
  --text-main: #1F3A44;
  --text-sub: #5A7681;
  --accent: #2E7D8A;
  --accent-soft: #4FA8A0;
  --line: #D8E5E8;
  --note-bg: #FFF6E5;
  --note-text: #8A6A1F;
  --radius: 8px;
  --radius-sm: 4px;
  --container: 1080px;
  --reading: 760px;
  --gap: 28px;
  --shadow-card: 0 1px 2px rgba(31, 58, 68, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== layout ===== */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0;
  padding: 14px 0;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
  color: var(--accent);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-list a {
  display: block;
  padding: 10px 12px;
  color: var(--text-sub);
  font-size: 15px;
  border-radius: var(--radius-sm);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--accent);
  background-color: #EEF5F6;
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--accent);
  font-weight: 600;
  background-color: #E7F1F3;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.home-main {
  padding-bottom: 8px;
}

.site-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--line);
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 28px;
}

.footer-brand {
  max-width: 320px;
}

.footer-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.footer-list li {
  margin-bottom: 6px;
}

.footer-list a {
  font-size: 14px;
  color: var(--text-main);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-note {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px 24px;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ===== components ===== */

.btn {
  display: inline-block;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  min-height: 44px;
  line-height: 1.5;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #266874;
  color: #FFFFFF;
}

.btn-ghost {
  background-color: var(--bg-card);
  color: var(--accent);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  background-color: #EEF5F6;
}

.btn-plain {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-plain:hover,
.btn-plain:focus-visible {
  background-color: #EEF5F6;
}

.breadcrumb {
  padding: 20px 0 0;
  font-size: 14px;
  color: var(--text-sub);
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text-main);
}

.page-header {
  padding: 18px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.page-description {
  font-size: 13px;
  color: var(--accent-soft);
  font-weight: 600;
  margin-bottom: 8px;
}

.page-title {
  font-size: 30px;
  margin-bottom: 12px;
}

.page-lead {
  max-width: var(--reading);
  color: var(--text-sub);
  font-size: 16px;
}

.section-title {
  font-size: 21px;
  margin-bottom: 10px;
}

.section-desc,
.section-intro,
.section-lead,
.section-note {
  color: var(--text-sub);
  font-size: 15px;
  max-width: var(--reading);
}

.section-note {
  margin-top: 14px;
}

.section-lead {
  margin-bottom: 20px;
}

.section-foot {
  margin-top: 16px;
  font-size: 15px;
}

.data-table {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  overflow: hidden;
}

.data-table caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-sub);
  background-color: #F1F7F8;
  border-bottom: 1px solid var(--line);
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table thead th {
  background-color: #F1F7F8;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background-color: #F4FAFB;
}

.data-table tbody th {
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.table-scroll,
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-caption {
  font-weight: 400;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.faq-item dt,
.faq-question {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.faq-item dd,
.faq-answer {
  margin: 0;
  color: var(--text-sub);
  font-size: 15px;
}

details.faq-item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 24px;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent);
  font-weight: 600;
}

details.faq-item[open] summary::after {
  content: "–";
}

details.faq-item[open] summary {
  margin-bottom: 10px;
}

.related-list {
  display: grid;
  gap: 10px;
}

.related-list li {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 15px;
}

.related-list a {
  font-weight: 600;
}

.related-meta {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-sub);
}

.related-more {
  margin-top: 14px;
  font-size: 15px;
}

.related-more a {
  margin-right: 18px;
}

.media-figure {
  margin: 0 0 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.media-figure img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.media-caption {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
}

.figure-caption {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
}

/* ===== pages: home ===== */

.hero {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-soft);
  margin-bottom: 10px;
}

.hero-title {
  font-size: 30px;
  margin-bottom: 14px;
}

.hero-lead {
  color: var(--text-sub);
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  min-width: 0;
}

.hero-figure {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #EEF5F6;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
  background-color: var(--bg-card);
}

.hero-points {
  display: grid;
  gap: 10px;
}

.hero-point {
  background-color: #F1F7F8;
  border-left: 3px solid var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-main);
}

.content-media {
  max-width: var(--container);
  margin: 0 auto 8px;
  padding: 0 24px;
}

.content-media img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.content-media figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-sub);
}

.channels,
.topics,
.fields,
.path,
.updates {
  padding: 44px 0 0;
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-head {
  margin-bottom: 20px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.topic-card {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topic-card:hover {
  border-color: var(--accent-soft);
}

.topic-name {
  font-size: 17px;
}

.topic-scope {
  font-size: 14px;
  color: var(--text-sub);
}

.topic-meta {
  font-size: 13px;
  color: var(--accent-soft);
}

.topic-link {
  margin-top: auto;
  font-size: 15px;
  font-weight: 600;
}

.path-list {
  display: grid;
  gap: 14px;
  counter-reset: path;
}

.path-item {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
}

.path-step {
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #E7F1F3;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}

.path-name {
  font-size: 16px;
  margin-bottom: 4px;
}

.path-desc {
  font-size: 15px;
  color: var(--text-sub);
}

.update-list {
  display: grid;
  gap: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.update-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.update-item:last-child {
  border-bottom: none;
}

.update-date {
  display: block;
  font-size: 13px;
  color: var(--accent-soft);
  margin-bottom: 4px;
}

.update-text {
  font-size: 15px;
}

.update-scope {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 4px;
}

/* ===== pages: channel ===== */

.page-channel .channel-table,
.page-channel .channel-detail,
.page-channel .channel-topic-map,
.page-channel .channel-faq,
.page-channel .related {
  padding-top: 40px;
}

.page-channel .channel-table h2,
.page-channel .channel-detail h2,
.page-channel .channel-topic-map h2,
.page-channel .channel-faq h2,
.page-channel .related h2 {
  font-size: 21px;
  margin-bottom: 10px;
}

.page-channel .channel-table .section-note,
.page-channel .channel-detail .section-note,
.page-channel .channel-topic-map .section-note,
.page-channel .channel-faq .section-note {
  margin-bottom: 18px;
}

.channel-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: var(--gap);
  align-items: start;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}

.channel-copy {
  min-width: 0;
}

.channel-copy h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.channel-copy p {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.channel-copy p:last-child {
  margin-bottom: 0;
}

.channel-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #EEF5F6;
}

.channel-figure img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.channel-figure figcaption {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-sub);
  background-color: var(--bg-card);
  border-top: 1px solid var(--line);
}

/* ===== pages: topic ===== */

.page-topic .topic-list,
.page-topic .topic-detail,
.page-topic .topic-field-note,
.page-topic .related {
  padding-top: 40px;
}

.page-topic .topic-list h2,
.page-topic .topic-detail h2,
.page-topic .topic-field-note h2,
.page-topic .related h2 {
  font-size: 21px;
  margin-bottom: 10px;
}

.topic-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.topic-card-name {
  font-size: 17px;
}

.topic-card-scope {
  font-size: 14px;
  color: var(--text-sub);
}

.topic-card-count {
  font-size: 13px;
  color: var(--accent-soft);
}

.topic-card-link {
  margin-top: auto;
  font-size: 15px;
  font-weight: 600;
}

.topic-block {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}

.topic-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #EEF5F6;
}

.topic-figure img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.topic-figure figcaption {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-sub);
  background-color: var(--bg-card);
  border-top: 1px solid var(--line);
}

.topic-block-body {
  min-width: 0;
}

.topic-block-name {
  font-size: 17px;
  margin-bottom: 8px;
}

.topic-block-scope {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.topic-block-count {
  font-size: 13px;
  color: var(--accent-soft);
  margin-bottom: 8px;
}

.topic-block-note {
  font-size: 15px;
  color: var(--text-main);
}

.page-topic .field-table {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  overflow: hidden;
}

.page-topic .field-table caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-sub);
  background-color: #F1F7F8;
  border-bottom: 1px solid var(--line);
}

.page-topic .field-table th,
.page-topic .field-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.page-topic .field-table thead th {
  background-color: #F1F7F8;
  font-weight: 600;
  white-space: nowrap;
}

.page-topic .field-table tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.page-topic .field-table tbody tr:last-child th,
.page-topic .field-table tbody tr:last-child td {
  border-bottom: none;
}

/* ===== pages: field guide ===== */

.page-field-guide .section {
  padding-top: 40px;
}

.page-field-guide .section-title {
  margin-bottom: 10px;
}

.page-field-guide .section-desc {
  margin-bottom: 18px;
}

.step-list {
  display: grid;
  gap: 14px;
}

.step-item {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
}

.step-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #E7F1F3;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}

.step-title {
  font-size: 16px;
  margin-bottom: 4px;
}

.step-desc,
.step-text {
  font-size: 15px;
  color: var(--text-sub);
}

.step-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
}

.relation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: var(--gap);
  align-items: start;
}

.relation-text {
  min-width: 0;
}

.relation-text p {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.relation-text p:last-child {
  margin-bottom: 0;
}

.relation-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #EEF5F6;
}

.relation-figure img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* ===== pages: view guide ===== */

.page-view-guide .problem-categories,
.page-view-guide .self-check,
.page-view-guide .device-network,
.page-view-guide .help-path,
.page-view-guide .related {
  padding-top: 40px;
}

.page-view-guide .section-title {
  font-size: 21px;
  margin-bottom: 10px;
}

.page-view-guide .section-intro {
  margin-bottom: 18px;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  height: 100%;
}

.category-name {
  font-size: 17px;
  margin-bottom: 8px;
}

.category-case {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.category-entry {
  font-size: 15px;
  font-weight: 600;
}

.check-block {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 18px;
}

.check-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.check-conclusion {
  background-color: var(--note-bg);
  color: var(--note-text);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 15px;
  margin-bottom: 14px;
}

.check-steps {
  list-style: decimal;
  padding-left: 22px;
  display: grid;
  gap: 6px;
}

.check-steps li {
  font-size: 15px;
  color: var(--text-sub);
}

.check-link {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
}

.page-view-guide .path-list {
  display: grid;
  gap: 14px;
}

.page-view-guide .path-item {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
}

.page-view-guide .path-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.page-view-guide .path-desc {
  font-size: 15px;
  color: var(--text-sub);
}

.page-view-guide .path-link {
  grid-column: 2;
  font-size: 15px;
  font-weight: 600;
  margin-top: 6px;
}

/* ===== pages: boundary ===== */

.page-boundary .section {
  padding-top: 40px;
}

.page-boundary .section-title {
  font-size: 21px;
  margin-bottom: 10px;
}

.page-boundary .section-intro {
  margin-bottom: 18px;
}

.boundary-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.boundary-list li {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-main);
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.tag-yes {
  background-color: #E7F1F3;
  color: var(--accent);
}

.tag-no {
  background-color: var(--note-bg);
  color: var(--note-text);
}

.page-boundary .step-item {
  grid-template-columns: 44px minmax(0, 1fr);
}

.step-body {
  min-width: 0;
}

.log-list {
  display: grid;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.log-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.log-item:last-child {
  border-bottom: none;
}

.log-date {
  display: block;
  font-size: 13px;
  color: var(--accent-soft);
  margin-bottom: 4px;
}

.log-text {
  font-size: 15px;
}

.log-scope {
  display: block;
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 4px;
}

/* ===== pages: 404 ===== */

.site-error .error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 56px;
}

.error-box {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-bottom: 32px;
}

.error-code {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-soft);
  margin-bottom: 8px;
}

.error-box h1 {
  font-size: 26px;
  margin-bottom: 12px;
}

.error-text {
  color: var(--text-sub);
  max-width: var(--reading);
  margin-bottom: 20px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-links h2 {
  font-size: 21px;
  margin-bottom: 14px;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.error-link-list li {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
}

/* ===== responsive ===== */

@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .channel-block,
  .topic-block,
  .relation-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-grid,
  .topic-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 0 16px;
    min-height: 60px;
    flex-wrap: wrap;
  }

  .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-bottom: 10px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .inner-main {
    padding: 0 16px 40px;
  }

  .footer-inner {
    padding: 32px 16px 20px;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .footer-note {
    padding: 16px 16px 22px;
  }

  .hero-inner {
    padding: 32px 16px 28px;
  }

  .hero-title,
  .page-title {
    font-size: 24px;
  }

  .section-title,
  .page-channel .channel-table h2,
  .page-channel .channel-detail h2,
  .page-channel .channel-topic-map h2,
  .page-channel .channel-faq h2,
  .page-channel .related h2,
  .page-topic .topic-list h2,
  .page-topic .topic-detail h2,
  .page-topic .topic-field-note h2,
  .page-topic .related h2,
  .page-view-guide .section-title,
  .page-boundary .section-title,
  .error-links h2 {
    font-size: 19px;
  }

  .section-inner,
  .content-media {
    padding: 0 16px;
  }

  .topic-grid,
  .topic-cards,
  .category-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-figure img,
  .content-media img,
  .media-figure img,
  .relation-figure img,
  .channel-figure img,
  .topic-figure img {
    height: 200px;
  }

  .path-item,
  .page-view-guide .path-item,
  .step-item {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
    padding: 16px;
  }

  .path-step,
  .step-index {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .data-table th,
  .data-table td,
  .page-topic .field-table th,
  .page-topic .field-table td {
    padding: 10px 12px;
  }

  .page-header {
    padding: 14px 0 22px;
    margin-bottom: 28px;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 17px;
  }

  .hero-title,
  .page-title {
    font-size: 22px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .error-actions .btn {
    width: 100%;
  }
}
