/* 心安公共内容页样式：克制、庄重、移动优先 */
:root {
  --bg: #f7f3ec;
  --panel: #ffffff;
  --ink: #2f2a24;
  --muted: #6f675c;
  --gold: #a67c3d;
  --gold-dark: #8a6630;
  --line: #e5ddd0;
  --max: 760px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--ink);
  color: #f7f3ec;
}
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f7f3ec;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.site-header .brand:hover { text-decoration: none; opacity: 0.92; }
.locale-nav { font-size: 13px; }
.locale-nav a { color: #d8cbb4; margin-left: 10px; }

.breadcrumb {
  max-width: var(--max);
  margin: 18px auto 0;
  padding: 0 20px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 6px; }

.article-wrap { max-width: var(--max); margin: 18px auto 56px; padding: 0 20px; }
article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px 34px 40px;
}
.content-hero {
  display: grid;
  grid-template-columns: minmax(250px, 0.92fr) minmax(0, 1.08fr);
  min-height: 330px;
  margin: -34px -34px 30px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: #eee5d7;
}
.hero-visual {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background-image: var(--hero-background);
  background-position: center;
  background-size: cover;
}
.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(45, 35, 26, 0.02), rgba(45, 35, 26, 0.22));
  pointer-events: none;
}
.hero-background-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}
.hero-foreground {
  position: absolute;
  z-index: 1;
  right: 8%;
  bottom: -6%;
  width: auto;
  height: 112%;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(38, 26, 16, 0.18));
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 36px 34px 32px;
}
.hero-eyebrow {
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.hero-copy h1 { margin-bottom: 14px; }
.hero-answer { margin-bottom: 0; }
.quick-answer {
  margin: 0 0 28px;
  padding: 16px 18px;
  border-left: 3px solid var(--gold-dark);
  background: #f6f0e6;
}
.quick-answer-label {
  margin: 0 0 6px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.quick-answer p:last-child { margin: 0; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-actions a { min-height: 44px; }
h1 {
  font-size: 28px;
  line-height: 1.4;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}
h2 {
  font-size: 20px;
  margin: 34px 0 10px;
  padding-top: 4px;
  letter-spacing: 0.02em;
}
.intro {
  font-size: 17px;
  color: var(--muted);
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  margin: 0 0 8px;
}
p { margin: 12px 0; }
ul { margin: 10px 0; padding-left: 22px; }
li { margin: 6px 0; }

.comparison-table-scroll {
  margin: 16px 0 6px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 8px 24px rgba(61, 45, 29, 0.06);
  -webkit-overflow-scrolling: touch;
}
.comparison-table-scroll:focus-visible {
  outline: 3px solid rgba(151, 105, 51, 0.35);
  outline-offset: 3px;
}
.comparison-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}
.comparison-table caption {
  padding: 13px 16px;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
}
.comparison-table th,
.comparison-table td {
  padding: 13px 15px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.comparison-table thead th {
  border-top: 0;
  background: #f1e7d7;
  color: var(--ink);
  font-weight: 750;
}
.comparison-table tbody th {
  width: 16%;
  background: #faf5ec;
  font-weight: 700;
}
.comparison-table th:last-child,
.comparison-table td:last-child { border-right: 0; }

.hub-directory {
  margin: 0 0 26px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f2;
}
.hub-directory h2 { margin: 0 0 8px; font-size: 18px; }
.hub-directory ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 22px; margin: 0; }
.hub-directory li { margin: 0; }
.hub-directory a { font-weight: 600; }

.contextual-links {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  background: #fbf8f2;
}
.contextual-links h2 { margin: 0 0 6px; font-size: 18px; }
.contextual-links p { margin: 0; }
.contextual-links a { font-weight: 600; }

details {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }

.sources ul { font-size: 14px; color: var(--muted); }
.sources li { word-break: break-all; }

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.cta a {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
}
.cta-primary { background: var(--gold); color: #fff !important; }
.cta-primary:hover { background: var(--gold-dark); text-decoration: none; }
.cta-secondary { border: 1px solid var(--line); color: var(--ink); }
.cta-secondary:hover { background: #f4efe6; text-decoration: none; }

.site-footer {
  max-width: var(--max);
  margin: 0 auto 40px;
  padding: 0 20px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer .meta { margin: 8px 0; }
.site-footer nav { margin: 8px 0; line-height: 1.9; }
.site-footer .related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.45;
}
.site-footer .related a {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}
.site-footer .reviewer-link { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.site-footer .legal a { margin-right: 8px; }
.company { margin: 8px 0 0; }

@media (max-width: 600px) {
  article { padding: 24px 20px 30px; }
  .content-hero {
    grid-template-columns: 1fr;
    margin: -24px -20px 26px;
  }
  .hero-visual { min-height: 210px; }
  .hero-background-image { min-height: 210px; max-height: 250px; }
  .hero-foreground { right: 16%; height: 112%; }
  .hero-copy { padding: 25px 20px 28px; }
  .hub-directory ul { grid-template-columns: 1fr; }
  h1 { font-size: 23px; }
  h2 { font-size: 18px; }
  .site-header { padding: 12px 14px; }
  .locale-nav a { margin-left: 8px; font-size: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.body-context-links {
  margin-top: 1.1rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid rgba(150, 92, 51, 0.5);
  border-radius: 0 12px 12px 0;
  background: rgba(247, 240, 228, 0.7);
  color: #554a3e;
}

.body-context-links span { margin-right: 0.35rem; }
.body-context-links a { color: #7f452d; font-weight: 650; text-underline-offset: 0.18em; }
.body-context-links a + a { margin-left: 0.2rem; }

.authority-resources {
  margin: 6px 0 30px;
  padding: 22px;
  border: 1px solid rgba(166, 118, 61, 0.32);
  border-radius: 16px;
  background: linear-gradient(145deg, #fffdf8, #f7f0e4);
}
.authority-resources h2 { margin: 0 0 14px; }
.authority-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.authority-resource-card {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
}
.authority-resource-card:hover {
  border-color: var(--gold);
  text-decoration: none;
}
.authority-resource-card span { color: var(--muted); font-size: 12px; }
.authority-resource-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }

@media (max-width: 600px) {
  .authority-resource-grid { grid-template-columns: 1fr; }
}
