:root {
  color-scheme: light;
  --ink: #26332e;
  --muted: #727d78;
  --forest: #397565;
  --forest-deep: #294b42;
  --forest-soft: #e6f1ed;
  --coral: #f46f61;
  --coral-deep: #d9574c;
  --coral-soft: #fff0ed;
  --gold: #d29a3d;
  --gold-soft: #fff4dd;
  --canvas: #f5f7f6;
  --paper: #ffffff;
  --line: #e5e9e6;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #e9eeeb;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: #e9eeeb;
}

a {
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(244, 111, 97, 0.25);
  outline-offset: 2px;
}

.content-page {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 60px rgba(39, 67, 57, 0.1);
}

.content-topbar {
  min-height: calc(60px + env(safe-area-inset-top));
  position: sticky;
  top: 0;
  z-index: 20;
  padding: env(safe-area-inset-top) 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.content-brand {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.content-topbar > a:last-child {
  color: var(--forest);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.breadcrumb {
  min-height: 42px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.breadcrumb a {
  color: var(--forest);
  text-decoration: none;
}

.breadcrumb span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-hero,
.hub-hero {
  padding: 33px 20px 31px;
  background: #f9fbfa;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: block;
  color: var(--forest);
  font-size: 8px;
  font-weight: 850;
}

.article-hero h1,
.hub-hero h1 {
  max-width: 640px;
  margin: 9px 0 13px;
  font-size: 29px;
  line-height: 1.27;
  letter-spacing: 0;
}

.article-lead,
.hub-hero p {
  max-width: 640px;
  margin: 0;
  color: #56645e;
  font-size: 12px;
  line-height: 1.85;
}

.article-meta {
  margin-top: 19px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.article-meta span {
  min-height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  color: var(--forest-deep);
  background: var(--forest-soft);
  border-radius: 12px;
  font-size: 8px;
  font-weight: 750;
}

.article-meta span:nth-child(2) {
  color: #7a5312;
  background: var(--gold-soft);
}

.toc {
  padding: 18px 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  background: var(--paper);
  border-bottom: 8px solid var(--canvas);
  scrollbar-width: none;
}

.toc::-webkit-scrollbar {
  display: none;
}

.toc a {
  min-height: 30px;
  flex: 0 0 auto;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  color: var(--forest-deep);
  background: var(--forest-soft);
  border-radius: 15px;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

.article-section {
  padding: 29px 20px;
  scroll-margin-top: 68px;
  border-bottom: 1px solid var(--line);
}

.article-section h2 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}

.article-section h3 {
  margin: 23px 0 9px;
  font-size: 14px;
  line-height: 1.45;
}

.article-section p {
  margin: 0 0 13px;
  color: #52605a;
  font-size: 11px;
  line-height: 1.9;
}

.article-section p:last-child {
  margin-bottom: 0;
}

.check-list {
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 12px 13px 12px 35px;
  color: #4f5d56;
  background: var(--canvas);
  border-left: 3px solid var(--forest);
  border-radius: 0 7px 7px 0;
  font-size: 10px;
  line-height: 1.75;
}

.check-list li::before {
  content: "v";
  position: absolute;
  top: 12px;
  left: 13px;
  color: var(--forest);
  font-weight: 900;
}

.warning-list li {
  border-left-color: var(--coral);
}

.warning-list li::before {
  content: "!";
  color: var(--coral-deep);
}

.note-box {
  margin-top: 18px;
  padding: 14px 15px;
  color: #765012;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 7px 7px 0;
  font-size: 10px;
  line-height: 1.8;
}

.faq-block details {
  border-top: 1px solid var(--line);
}

.faq-block details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-block summary {
  min-height: 54px;
  padding: 14px 30px 14px 0;
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.55;
}

.faq-block summary::-webkit-details-marker {
  display: none;
}

.faq-block summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  color: var(--forest);
  font-size: 17px;
}

.faq-block details[open] summary::after {
  content: "-";
}

.faq-block details p {
  padding-right: 28px;
  font-size: 10px;
}

.related-list,
.hub-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.related-list a,
.hub-list a {
  min-height: 62px;
  padding: 12px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.related-list strong,
.hub-list strong,
.related-list small,
.hub-list small {
  display: block;
}

.related-list strong,
.hub-list strong {
  font-size: 11px;
}

.related-list small,
.hub-list small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.related-list a::after,
.hub-list a::after {
  content: "›";
  flex: 0 0 auto;
  color: var(--coral-deep);
  font-size: 20px;
}

.hub-section {
  padding: 29px 20px;
  border-bottom: 8px solid var(--canvas);
}

.hub-section h2 {
  margin: 0 0 15px;
  font-size: 20px;
}

.site-footer {
  padding: 28px 20px 35px;
  color: var(--muted);
  background: var(--canvas);
  font-size: 9px;
  line-height: 1.75;
}

.site-footer strong {
  color: var(--ink);
  font-size: 11px;
}

.site-footer p {
  margin: 6px 0 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.site-footer a {
  color: var(--forest);
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 390px) {
  .article-hero,
  .hub-hero {
    padding: 28px 17px 27px;
  }

  .article-hero h1,
  .hub-hero h1 {
    font-size: 25px;
  }

  .article-section,
  .hub-section {
    padding: 25px 17px;
  }

  .breadcrumb,
  .toc {
    padding-left: 17px;
    padding-right: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
