/* 设计变量与基础重置 */
:root {
  --color-primary: #7A9B8C;
  --color-primary-hover: #6A8B7C;
  --color-secondary: #D4CBB6;
  --color-accent: #C98A75;
  --color-text: #3A3A3A;
  --color-text-light: #6B6B6B;
  --color-bg: #F8F7F5;
  --color-surface: #FFFFFF;
  --color-border: #EAE8E3;
  --font-heading: 'Noto Serif SC', 'Georgia', 'Songti SC', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --radius: 0.75rem;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.06);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus-visible { color: var(--color-primary-hover); }
ul, ol { padding-left: 1.5em; margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0 0 var(--space-sm); line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; color: var(--color-text); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; color: var(--color-text); margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; color: var(--color-text); }
p { margin: 0 0 var(--space-sm); }
strong { font-weight: 600; }

/* 布局容器 */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--space-md); }
section { padding: var(--space-xl) 0; }
.grid-2 { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }

/* 导航与页头页脚 */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,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: var(--space-xs); font-family: var(--font-heading); font-weight: 600; color: var(--color-text); }
.brand img { width: 28px; height: 28px; object-fit: contain; }
nav ul { display: flex; list-style: none; gap: var(--space-md); }
nav a { padding: 0.5rem 0; font-weight: 500; color: var(--color-text-light); border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: var(--space-lg) 0 var(--space-md); margin-top: var(--space-xl); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-md); }
.footer-col h4 { font-size: 1rem; margin-bottom: var(--space-sm); color: var(--color-text); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-bottom { text-align: center; padding-top: var(--space-md); border-top: 1px solid var(--color-border); margin-top: var(--space-md); font-size: 0.85rem; color: var(--color-text-light); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.8rem 1.8rem; border-radius: 2rem; font-weight: 600; font-size: 1rem; cursor: pointer; border: none; transition: all var(--transition); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--color-primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--color-primary); color: #fff; }

/* 卡片与组件 */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-md); transition: transform var(--transition), box-shadow var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { width: 48px; height: 48px; margin-bottom: var(--space-sm); stroke: var(--color-primary); fill: none; stroke-width: 1.5; }
.card h3 { margin-bottom: var(--space-xs); }
.table-wrapper { overflow-x: auto; margin: var(--space-md) 0; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #FDFDFC; font-weight: 600; color: var(--color-text); }
tr:last-child td { border-bottom: none; }

/* 表单/下载区 */
.download-box { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-lg); margin-top: var(--space-md); }
.step-list { counter-reset: step; list-style: none; padding: 0; }
.step-list li { position: relative; padding-left: 2.5rem; margin-bottom: var(--space-md); }
.step-list li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--color-secondary); color: var(--color-text); font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }

/* FAQ */
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: var(--space-sm); overflow: hidden; }
.faq-item summary { padding: 1rem 1.2rem; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-weight: 300; font-size: 1.2rem; transition: transform var(--transition); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .content { padding: 0 1.2rem 1.2rem; color: var(--color-text-light); border-top: 1px solid var(--color-border); }

/* 新闻与相关 */
.news-card time { font-size: 0.8rem; color: var(--color-text-light); display: block; margin-bottom: 0.5rem; }
.related-list { list-style: none; padding: 0; }
.related-list li { padding: 0.8rem 0; border-bottom: 1px dashed var(--color-border); }
.related-list li:last-child { border-bottom: none; }
.related-link { display: block; font-weight: 500; margin-bottom: 0.25rem; }
.related-desc { font-size: 0.9rem; color: var(--color-text-light); }

/* 焦点与无障碍 */
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* SVG 动效系统 */
.svg-art { width: 100%; max-width: 400px; margin: 0 auto; }
.draw-line { stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawPath 4s ease-in-out infinite alternate; }
.highlight-sweep { animation: sweepHighlight 6s ease-in-out infinite alternate; }
.float-gentle { animation: floatSoft 8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes drawPath {
  0% { stroke-dashoffset: 0; }
  50%, 80% { stroke-dashoffset: -1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes sweepHighlight {
  0% { opacity: 0; transform: translateX(-40%) skewX(-10deg); }
  15% { opacity: 0.8; }
  85% { opacity: 0.8; }
  100% { opacity: 0; transform: translateX(40%) skewX(10deg); }
}
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
