:root {
  --primary: #1f6feb;
  --primary-dark: #1857c0;
  --accent: #f0563a;
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1c1f23;
  --text-soft: #5b6470;
  --line: #e3e6ec;
  --line-strong: #d2d7e0;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(28, 31, 35, 0.06);
  --shadow-hover: 0 6px 18px rgba(28, 31, 35, 0.1);
  --container: 1120px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ============ base ============ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.75;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--primary-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 3px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background-color: var(--card);
  color: var(--primary);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ============ layout ============ */

.site-header {
  background-color: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  padding: 12px 0;
}

.brand:hover {
  color: var(--primary);
}

.brand-mark {
  display: inline-block;
  width: 10px;
  height: 22px;
  border-radius: 3px;
  background-color: var(--primary);
  box-shadow: inset 0 -8px 0 var(--accent);
}

.brand-slogan {
  font-size: 17px;
  line-height: 1.4;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background-color: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 10px 14px;
  color: var(--text-soft);
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
  background-color: #eef2f8;
  color: var(--primary);
}

.nav-link.is-current {
  color: var(--primary);
  font-weight: 600;
  background-color: #eaf1fd;
}

.site-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.inner-main {
  padding-top: 20px;
}

.section {
  margin-top: 40px;
}

.section-title {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
}

.section-lead {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 15px;
  max-width: 720px;
}

.section-intro {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 15px;
  max-width: 720px;
}

.section-foot {
  margin-top: 16px;
  font-size: 15px;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.inline-link::after {
  content: "→";
  font-weight: 400;
}

.text-link {
  font-weight: 600;
}

.section-link-row {
  margin-top: 12px;
  font-size: 15px;
}

/* breadcrumb */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
  padding: 4px 0 0;
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text);
}

/* page header */

.page-header {
  margin-top: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 28px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text);
}

.page-description {
  margin-top: 10px;
  color: var(--text-soft);
  max-width: 720px;
  font-size: 15px;
}

/* ============ components ============ */

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
}

.btn-ghost {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-ghost:hover {
  background-color: #eaf1fd;
  color: var(--primary-dark);
}

/* tags */

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 14px;
  border-radius: 999px;
  background-color: #eef2f8;
  color: var(--text-soft);
  font-size: 13px;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.tag:hover {
  background-color: #e2ebfb;
  color: var(--primary);
  border-color: #c3d7f8;
}

/* related entries */

.related-entry {
  margin-top: 40px;
  padding: 22px 24px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 20px;
}

.related-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
}

.related-list a::before {
  content: "›";
  color: var(--accent);
  font-weight: 600;
}

.related-title {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
}

/* lists shared */

.step-list {
  display: grid;
  gap: 14px;
}

.log-list {
  display: grid;
  gap: 0;
}

/* ============ pages ============ */

/* ---- home hero ---- */

.hero {
  margin-top: 24px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.hero-eyebrow {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.hero-title {
  margin-top: 10px;
  font-size: 34px;
  line-height: 1.35;
  font-weight: 600;
}

.hero-desc {
  margin-top: 14px;
  color: var(--text-soft);
  max-width: 560px;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-media {
  margin: 0;
}

.hero-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: #e9edf3;
}

.hero-media figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-soft);
}

/* ---- home channels overview ---- */

.channels-overview .channel-rows {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.channels-overview .channel-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(200px, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}

.channels-overview .channel-row:first-child {
  border-top: none;
}

.channels-overview .channel-row:hover {
  background-color: #fafbfd;
}

.channel-main {
  min-width: 0;
}

.channels-overview .channel-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.channel-orient {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-soft);
}

.channel-audience {
  font-size: 14px;
  color: var(--text-soft);
  min-width: 0;
}

.channel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.channel-link:hover {
  background-color: #eaf1fd;
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* ---- home collections preview ---- */

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.collections-preview .collection-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.collections-preview .collection-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.collection-media {
  margin: 0;
}

.collection-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background-color: #e9edf3;
}

.collections-preview .collection-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  padding: 16px 18px 0;
}

.collection-scope {
  padding: 8px 18px 0;
  font-size: 14px;
  color: var(--text-soft);
  flex: 1 1 auto;
}

.collection-channel {
  padding: 8px 18px 0;
  font-size: 13px;
  color: var(--accent);
}

.collection-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 14px 18px 18px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
}

.collection-link::after {
  content: "→";
  font-weight: 400;
}

/* ---- home fields table ---- */

.table-wrap {
  overflow-x: auto;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-table {
  min-width: 640px;
}

.field-table caption {
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.field-table thead th {
  border-top: none;
  background-color: #f2f5fa;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.field-table tbody th {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.field-table tbody td {
  color: var(--text-soft);
}

.field-table tbody tr:hover {
  background-color: #fafbfd;
}

/* ---- home guide steps ---- */

.guide-steps .step-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.guide-steps .step-item {
  display: flex;
  gap: 14px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.step-num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #eaf1fd;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-body {
  min-width: 0;
}

.step-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.step-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-soft);
}

/* ---- home update log ---- */

.update-log .log-list {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.update-log .log-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}

.update-log .log-item:first-child {
  border-top: none;
}

.log-date {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  font-style: normal;
}

.log-text {
  font-size: 14px;
  color: var(--text-soft);
  min-width: 0;
}

/* ---- inner: channels page ---- */

.channel-intro .intro-body {
  margin-top: 12px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.channel-intro .intro-body p {
  color: var(--text-soft);
  max-width: 720px;
}

.intro-tips {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 20px;
}

.intro-tips li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-soft);
}

.intro-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background-color: var(--accent);
}

.intro-figure {
  margin: 20px 0 0;
}

.intro-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: #e9edf3;
}

.intro-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.channel-rows .channel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 14px;
}

.channel-rows .channel-row:last-child {
  margin-bottom: 0;
}

.channel-rows .channel-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.channel-row-main {
  min-width: 0;
}

.channel-rows .channel-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.channel-rows .channel-orient {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-soft);
  max-width: 640px;
}

.channel-rows .channel-audience {
  margin-top: 6px;
  font-size: 13px;
  color: var(--accent);
}

.channel-row-side {
  flex: 0 0 auto;
}

.channel-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.channel-entry:hover {
  background-color: #eaf1fd;
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* ---- inner: collections page ---- */

.page-layout.collections-layout {
  display: block;
}

.collection-intro > p {
  margin-top: 10px;
  color: var(--text-soft);
  max-width: 720px;
}

.rule-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.rule-item {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-soft);
}

.rule-name {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.collection-blocks .collection-grid {
  margin-top: 4px;
}

.collection-blocks .collection-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}

.collection-blocks .collection-card:hover {
  box-shadow: var(--shadow-hover);
}

.collection-figure {
  margin: 0;
}

.collection-figure img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background-color: #e9edf3;
}

.collection-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.collection-blocks .collection-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.collection-topic {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
  flex: 1 1 auto;
}

.collection-meta {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.collection-meta dt {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.collection-meta dd {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--text-soft);
}

.collection-fields > p {
  margin-top: 10px;
  color: var(--text-soft);
  max-width: 720px;
}

/* ---- inner: fields page ---- */

.section-summary .summary-points {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.summary-point {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-soft);
  position: relative;
  padding-left: 40px;
}

.summary-point::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 15px;
  color: var(--primary);
  font-weight: 600;
}

.field-figure {
  margin: 18px 0 0;
}

.field-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: #e9edf3;
}

.field-figure-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.field-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.field-item {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.field-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.field-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
}

.boundary-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.boundary-col {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.boundary-subtitle {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.boundary-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.boundary-item {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-soft);
}

.boundary-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background-color: var(--accent);
}

/* ---- inner: guide page ---- */

.section-path-steps .section-media {
  margin: 18px 0 0;
}

.section-path-steps .section-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: #e9edf3;
}

.section-path-steps .section-media figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.section-path-steps .step-list {
  margin-top: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  counter-reset: path-step;
}

.section-path-steps .step-item {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #eaf1fd;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
}

.step-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.step-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
}

.section-update-log .log-list {
  margin-top: 16px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.section-update-log .log-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}

.section-update-log .log-item:first-child {
  border-top: none;
}

.section-feedback .feedback-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feedback-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.feedback-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.feedback-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
}

.feedback-back {
  margin-top: 18px;
  font-size: 15px;
}

/* ---- 404 ---- */

.error-main {
  padding-top: 48px;
}

.error-block {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  max-width: 720px;
}

.error-code {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.error-block h1 {
  margin-top: 10px;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 600;
}

.error-text {
  margin-top: 12px;
  color: var(--text-soft);
}

.error-links {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 20px;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
}

.error-links a::before {
  content: "›";
  color: var(--accent);
}

/* ============ footer ============ */

.site-footer {
  background-color: var(--card);
  border-top: 1px solid var(--line);
  margin-top: 56px;
}

.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(0, 1fr));
  gap: 28px 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 17px;
  font-weight: 600;
}

.footer-desc {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-soft);
  max-width: 300px;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.footer-list {
  margin-top: 12px;
  display: grid;
  gap: 4px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  color: var(--text-soft);
}

.footer-list a:hover {
  color: var(--primary);
}

.footer-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-soft);
  max-width: 300px;
}

.footer-top-group {
  justify-self: start;
}

.back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.back-top:hover {
  background-color: #eaf1fd;
  border-color: var(--primary);
  color: var(--primary-dark);
}

.footer-copy {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px 28px;
  font-size: 13px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}

/* ============ responsive ============ */

@media (max-width: 900px) {
  .header-inner {
    padding: 0 18px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 1 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .site-main {
    padding: 0 18px 44px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-media img {
    height: 220px;
  }

  .channels-overview .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 16px 18px;
  }

  .channel-link {
    justify-self: start;
    margin-top: 6px;
  }

  .channel-rows .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
  }

  .channel-row-side {
    justify-self: start;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 32px 18px 20px;
  }

  .footer-copy {
    padding: 14px 18px 24px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0 14px;
  }

  .brand-slogan {
    font-size: 16px;
  }

  .site-main {
    padding: 0 14px 40px;
  }

  .hero-inner {
    padding: 20px 16px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-media img {
    height: 180px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    flex: 1 1 auto;
  }

  .page-title {
    font-size: 23px;
  }

  .section {
    margin-top: 32px;
  }

  .section-title {
    font-size: 18px;
  }

  .section-head h2 {
    font-size: 18px;
  }

  .related-entry {
    padding: 18px 16px;
  }

  .update-log .log-item,
  .section-update-log .log-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 14px 16px;
  }

  .channel-intro .intro-body {
    padding: 18px 16px;
  }

  .intro-figure img,
  .field-figure img,
  .section-path-steps .section-media img {
    height: 190px;
  }

  .field-table th,
  .field-table td {
    padding: 12px 14px;
  }

  .error-block {
    padding: 28px 18px;
  }

  .error-block h1 {
    font-size: 23px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 28px 14px 16px;
  }

  .footer-desc,
  .footer-note {
    max-width: none;
  }

  .footer-copy {
    padding: 14px 14px 22px;
  }
}
