/* 设计变量与基础重置 */
:root {
  --color-primary: #3E6341;
  --color-primary-hover: #2E4A30;
  --color-secondary: #9C7A5C;
  --color-bg: #F4F0E8;
  --color-surface: #FFFFFF;
  --color-text: #2B2926;
  --color-text-muted: #6E685F;
  --color-border: #E2DCD2;
  --color-accent-light: rgba(62, 99, 65, 0.08);

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-card: 0 4px 12px rgba(43, 41, 38, 0.06);
  --shadow-hover: 0 8px 24px rgba(43, 41, 38, 0.12);

  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-family: var(--font-main); color: var(--color-text); background: var(--color-bg); line-height: 1.6; }
body { min-height: 100vh; display: flex; flex-direction: column; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s ease, border-color .2s ease; }
a:hover { color: var(--color-primary-hover); }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* 排版系统 */
h1, h2, h3 { line-height: 1.2; font-weight: 700; color: var(--color-text); text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: var(--spacing-sm); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: var(--spacing-sm); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); margin-bottom: var(--spacing-xs); }
p { margin-bottom: var(--spacing-sm); max-width: 75ch; }
.subtitle { font-size: 1.125rem; color: var(--color-text-muted); margin-bottom: var(--spacing-md); max-width: 60ch; }

/* 布局容器 */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--spacing-md); }
section { padding-block: var(--spacing-lg); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: var(--spacing-md); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--spacing-md); }
.stagger-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-lg); align-items: center; }
.stagger-layout.reverse { direction: rtl; }
.stagger-layout.reverse > * { direction: ltr; }
@media (max-width: 860px) {
  .stagger-layout, .stagger-layout.reverse { grid-template-columns: 1fr; direction: ltr; }
}

/* 通用组件 */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; transition: all .2s ease; border: 2px solid transparent; min-height: 44px; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(62, 99, 65, 0.25); }
.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.card { background: var(--color-surface); border-radius: var(--radius-md); padding: var(--spacing-md); box-shadow: var(--shadow-card); border: 1px solid var(--color-border); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.card-icon { width: 48px; height: 48px; margin-bottom: var(--spacing-sm); stroke: var(--color-primary); }
.icon-stroke { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* 表格样式 */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; margin-bottom: var(--spacing-md); background: var(--color-surface); border-radius: var(--radius-sm); overflow: hidden; }
th, td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: middle; }
th { background: var(--color-bg); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) { background: rgba(244, 240, 232, 0.4); }

/* FAQ 组件 */
details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); margin-bottom: var(--spacing-xs); overflow: hidden; }
summary { padding: 1rem; cursor: pointer; font-weight: 600; list-style: none; position: relative; user-select: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-weight: 400; color: var(--color-primary); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details > div { padding: 0 1rem 1rem; color: var(--color-text-muted); line-height: 1.7; }

/* 页头与页脚 */
header { position: sticky; top: 0; z-index: 100; background: rgba(244, 240, 232, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.125rem; color: var(--color-text); text-decoration: none; }
.brand img { height: 32px; width: auto; }
nav ul { display: flex; gap: var(--spacing-md); }
nav a { font-weight: 500; font-size: 0.95rem; padding: 0.5rem 0; position: relative; color: var(--color-text); }
nav a[aria-current="page"], nav a:hover { color: var(--color-primary); }
nav a::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--color-primary); transition: width .2s; }
nav a:hover::after { width: 100%; }
nav a[aria-current="page"]::after { width: 100%; }

footer { background: var(--color-text); color: #E8E4DB; padding: var(--spacing-lg) 0 var(--spacing-md); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--spacing-md); }
.footer-col h4 { color: #fff; margin-bottom: var(--spacing-sm); font-size: 1rem; }
.footer-col a { color: #B8B3A8; display: block; margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.copyright { text-align: center; margin-top: var(--spacing-lg); padding-top: var(--spacing-md); border-top: 1px solid #3D3A36; font-size: 0.875rem; color: #8A857C; }

/* 无障碍焦点 */
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* SVG 动效基座 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
.geo-spin { animation: spin-slow 16s linear infinite; transform-origin: center; transform-box: fill-box; }
.geo-align { animation: align-sync 10s ease-in-out infinite alternate; transform-origin: center; transform-box: fill-box; }
.line-draw { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-line 4s ease-in-out infinite alternate; }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes align-sync { 0% { transform: translateX(-4px) rotate(-2deg); } 100% { transform: translateX(4px) rotate(2deg); } }
@keyframes draw-line { 0% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
