:root {
  --bg: #F8F7F4;
  --surface: #FFFFFF;
  --text-primary: #111111;
  --text-secondary: #4A4A4A;
  --border: #E2E1DD;
  --accent: #1A1A1A;
  --highlight: #D6D4CF;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.04);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.08);
  --font-body: system-ui, -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-title: system-ui, -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
  --container-max: 1180px;
  --gap-section: clamp(3rem, 8vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 排版与容器 */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
h1 { font-family: var(--font-title); font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 1.2rem; text-wrap: balance; }
h2 { font-family: var(--font-title); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.6rem; text-wrap: balance; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.6rem; text-wrap: balance; }
p { color: var(--text-secondary); margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* 页头页脚 */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248,247,244,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo img { height: 32px; width: auto; vertical-align: middle; }
.nav { display: flex; gap: 2rem; list-style: none; }
.nav a { font-size: 0.95rem; font-weight: 500; position: relative; }
.nav a[aria-current="page"] { font-weight: 700; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--accent); transition: width 0.3s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; margin-top: var(--gap-section); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { font-size: 0.9rem; color: var(--text-secondary); }
.copyright { text-align: center; font-size: 0.85rem; color: #777; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* 通用组件 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 2rem; font-size: 1rem; font-weight: 600; border-radius: 50px;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.section-gap { padding: var(--gap-section) 0; }
.bg-white { background: var(--surface); border-radius: var(--radius-lg); padding: 2.5rem; margin-bottom: 2rem; box-shadow: var(--shadow-card); }

/* 特性便当格 */
.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.bento-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.8rem; transition: box-shadow 0.2s, transform 0.2s; }
.bento-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-icon { width: 40px; height: 40px; margin-bottom: 1rem; stroke: var(--accent); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* 表格 */
.table-wrapper { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--highlight); font-weight: 600; font-size: 0.9rem; }
td { font-size: 0.95rem; color: var(--text-secondary); }

/* FAQ */
details { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 1rem; background: var(--surface); overflow: hidden; }
summary { padding: 1.2rem 1.5rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; font-weight: 300; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
.details-content { padding: 0 1.5rem 1.2rem; color: var(--text-secondary); line-height: 1.8; }

/* 卡片与新闻 */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; display: flex; flex-direction: column; height: 100%; }
.news-date { font-size: 0.8rem; color: #888; margin-bottom: 0.5rem; }
.news-title { font-weight: 700; margin-bottom: 0.6rem; line-height: 1.3; }
.news-excerpt { font-size: 0.9rem; color: var(--text-secondary); flex-grow: 1; margin-bottom: 1rem; }
.btn-sm { align-self: flex-start; padding: 0.5rem 1.2rem; font-size: 0.85rem; background: transparent; border: 1px solid var(--border); border-radius: 50px; color: var(--text-primary); }
.btn-sm:hover { border-color: var(--accent); }

/* 相关阅读 */
.related-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.related-list li { padding: 0.8rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.related-title { font-weight: 600; display: block; margin-bottom: 0.3rem; }
.related-desc { font-size: 0.85rem; color: var(--text-secondary); }

/* SVG 动效基础 */
.svg-grid-node { fill: var(--border); transition: fill 0.4s ease, opacity 0.4s ease; }
.svg-grid-line { stroke: var(--text-primary); stroke-width: 1.5; fill: none; pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.draw-path { animation: drawLine 6s ease-in-out infinite; }
.pulse-node { animation: nodePulse 5s ease-in-out infinite; }

@keyframes drawLine {
  0%, 100% { stroke-dashoffset: 1; opacity: 0.4; }
  40%, 60% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes nodePulse {
  0%, 100% { fill: var(--border); opacity: 0.5; }
  30%, 70% { fill: var(--accent); opacity: 1; }
}
.delay-1 { animation-delay: 0.4s; }
.delay-2 { animation-delay: 0.8s; }
.delay-3 { animation-delay: 1.2s; }
.delay-4 { animation-delay: 1.6s; }

/* 响应式 */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; height: auto; padding: 1rem 0; gap: 1rem; }
  .nav { gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
  .bento-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .draw-path, .pulse-node { animation: none !important; }
}
