:root {
  --bg: #f7f5ef;
  --paper: #fffdf8;
  --ink: #202124;
  --muted: #5f6368;
  --line: #ded8cc;
  --red: #8d2f2f;
  --green: #326b57;
  --blue: #315c83;
  --gold: #b3863b;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.75; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(255, 253, 248, .94); backdrop-filter: blur(14px); }
.nav, main, .site-footer { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.nav { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: grid; color: var(--ink); line-height: 1.25; }
.brand strong { font-size: 17px; }
.brand span, .source { color: var(--muted); font-size: 12px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-end; font-size: 14px; }
main { padding: 36px 0 64px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 32px; align-items: stretch; padding: 24px 0; }
.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  align-items: center;
  margin-top: -12px;
  padding: 56px 32px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,253,248,.92) 0%, rgba(255,253,248,.78) 42%, rgba(255,253,248,.22) 78%),
    url("/images/home-hero-ocean.png") center / cover no-repeat;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32,33,36,.04), rgba(32,33,36,.18));
  pointer-events: none;
}
.hero-visual > * { position: relative; z-index: 1; }
.hero-copy { max-width: 720px; padding: 24px; border-radius: 8px; background: rgba(255,253,248,.72); backdrop-filter: blur(6px); }
h1 { margin: 0; font-size: clamp(34px, 6vw, 58px); line-height: 1.12; letter-spacing: 0; }
h2 { margin: 0 0 16px; font-size: 26px; line-height: 1.25; }
h3 { margin: 8px 0; font-size: 19px; line-height: 1.45; }
.lead { max-width: 760px; color: var(--muted); font-size: 18px; }
.eyebrow { color: var(--red); font-size: 13px; font-weight: 700; }
.hero-panel, .content-panel, .card, .tool-card, .article-meta { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.hero-visual .hero-panel { background: rgba(255,253,248,.84); backdrop-filter: blur(8px); box-shadow: 0 18px 42px rgba(26, 36, 46, .18); }
.hero-panel { padding: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.metric { padding: 14px; border-left: 3px solid var(--green); background: #f4f8f2; }
.metric:nth-child(2) { border-color: var(--red); background: #fbf2f1; }
.metric:nth-child(3) { border-color: var(--blue); background: #eef5fb; }
.metric:nth-child(4) { border-color: var(--gold); background: #fbf6ea; }
.metric strong { display: block; font-size: 28px; line-height: 1.1; }
.section { margin-top: 48px; }
.section.compact { margin-top: 34px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tool-list { display: grid; gap: 20px; }
.card { overflow: hidden; display: grid; grid-template-columns: 1fr; min-height: 0; }
.card.no-cover { grid-template-columns: 1fr; min-height: 0; border-left: 3px solid var(--blue); }
.card-media { display: flex; min-width: 0; background: #eee8dc; border-bottom: 1px solid var(--line); }
.card img, .image-placeholder { width: 100%; height: 100%; min-height: 300px; max-height: 360px; object-fit: contain; display: grid; place-items: center; background: #eee8dc; color: var(--muted); font-weight: 700; }
.card-body, .tool-card, .content-panel { padding: 18px; }
.card-body { display: flex; flex-direction: column; min-width: 0; }
.card.no-cover .card-body { min-height: 224px; }
.tool-card { scroll-margin-top: 84px; }
.card h3 { margin-top: 8px; }
.card h3 a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card p, .tool-card > p { color: var(--muted); margin: 0 0 14px; }
.card p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.card .tags { margin-top: auto; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; font-size: 12px; color: var(--muted); background: #fffaf0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 700; }
.button.secondary { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.button.small { min-height: 34px; font-size: 14px; }
.faq-list { display: grid; gap: 10px; }
.faq-list.wide { max-width: 860px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.faq-item summary { cursor: pointer; font-weight: 700; }
.faq-item p { color: var(--muted); }
.page-head { margin: 16px 0 34px; }
.profile-hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: end; margin: 16px 0 34px; }
.profile-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 28px; }
.fact-grid div { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fffaf0; }
.fact-grid span { display: block; color: var(--muted); font-size: 12px; }
.fact-grid strong { display: block; margin-top: 4px; line-height: 1.45; }
.topic-list { columns: 2; column-gap: 34px; padding-left: 22px; }
.topic-list li { break-inside: avoid; margin: 0 0 8px; }
.article-head { max-width: 880px; margin-bottom: 28px; }
.article-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.article-meta { position: sticky; top: 88px; padding: 18px; color: var(--muted); font-size: 14px; }
.article-body { background: var(--paper); border-top: 4px solid var(--ink); padding: 28px; }
.article-body h2 { margin-top: 34px; }
.article-body p { margin: 14px 0; }
.article-body blockquote { margin: 18px 0; padding: 14px 18px; border-left: 4px solid var(--blue); background: #eef5fb; color: #39424e; }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px; vertical-align: top; }
.article-body img { max-width: 100%; height: auto; }
.answer-first { margin: 0 0 28px; padding: 20px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 8px; background: #f4f8f2; }
.answer-first h2 { margin-top: 0; }
.answer-first p { margin: 8px 0 12px; }
.citation-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 16px 0 0; padding: 0; }
.citation-points li { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: rgba(255,253,248,.8); }
.citation-points span { display: block; color: var(--muted); font-size: 12px; }
.citation-points strong { display: block; margin-top: 2px; line-height: 1.45; }
.matrix-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.matrix-table th, .matrix-table td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.matrix-table th { background: #f4f8f2; }
.tool-detail { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.tool-detail summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.tool-content { margin-top: 14px; max-width: 920px; }
.tool-content p { margin: 10px 0; color: var(--ink); }
.tool-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.tool-table th, .tool-table td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.tool-table th { background: #f4f8f2; }
.article-faq { margin-top: 40px; }
.author-box { margin-top: 40px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #f7f5ef; }
.author-box h2 { margin-bottom: 10px; }
.richtext { max-width: 900px; }
.check-list { margin: 0; padding-left: 20px; }
.notice { margin: 0 0 24px; padding: 14px 16px; border-left: 4px solid var(--gold); background: #fbf6ea; }
.notice p { margin: 6px 0 0; color: var(--muted); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }
.breadcrumb { margin: 4px 0 18px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb span[aria-current] { color: var(--ink); }
.faq-search { margin: 0 0 24px; max-width: 640px; }
.faq-search label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.faq-search input { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-size: 15px; }
.faq-search input:focus { outline: 2px solid var(--blue); }
#faq-search-count { margin: 6px 0 0; font-size: 13px; color: var(--green); min-height: 1em; }
.faq-toc { margin: 0 0 30px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.faq-toc h2 { font-size: 16px; margin-bottom: 10px; }
.faq-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.faq-toc li a { font-size: 14px; }
.faq-toc li span { margin-left: 4px; font-size: 12px; color: var(--muted); }
.faq-theme { margin-top: 38px; }
.faq-theme h2 .count { margin-left: 10px; font-size: 13px; font-weight: 400; color: var(--muted); }
.faq-theme.is-filtered-out { display: none; }
.theme-note { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.faq-source { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.theme-strip span { background: var(--paper); }
.section h2 .count { margin-left: 10px; font-size: 13px; font-weight: 400; color: var(--muted); }
.related, .article-tools { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.related h2, .article-tools h2 { font-size: 19px; }
.related ul, .article-tools ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.related li span { display: block; font-size: 12px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-beian { width: 100%; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; }
.footer-beian a { color: var(--muted); margin-right: 14px; }
@media (max-width: 860px) {
  .hero, .article-layout, .profile-hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .card { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; }
  .citation-points { grid-template-columns: 1fr; }
  .topic-list { columns: 1; }
  .hero-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-meta { position: static; }
  .article-body { padding: 20px; }
  .site-footer { display: block; }
  .hero-visual { min-height: auto; padding: 28px 18px; background-position: 58% center; }
  .hero-copy { padding: 18px; }
}
@media (max-width: 560px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 12px 0; gap: 8px; }
  .hero-panel { grid-template-columns: 1fr; }
  .card { grid-template-columns: 1fr; }
  .card-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .card img, .image-placeholder { min-height: 188px; }
  h1 { font-size: 34px; }
}
