:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --primary: #5a7d5e;
  --primary-hover: #4a6650;
  --text: #2a2a2a;
  --text-muted: #6b6b6b;
  --border: #e3dfd6;
  --radius: 10px;
  --container: 1120px;
  --header-h: 70px;
  --shadow-card: 0 4px 16px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease, border-color .2s ease; }
a:hover, a:focus-visible { color: var(--primary-hover); outline: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; color: var(--text); margin-bottom: 0.6em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-top: 3rem; font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; margin-bottom: 0.4em; }
p { margin-bottom: 1rem; text-wrap: balance; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: 0.45rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

/* Header & Footer */
header { position: sticky; top: 0; z-index: 100; background: rgba(247,244,238,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); height: var(--header-h); display: flex; align-items: center; }
header .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand img { height: 34px; width: auto; }
.brand span { font-weight: 600; font-size: 1.1rem; color: var(--text); }
nav ul { display: flex; list-style: none; gap: 1.8rem; }
nav a { color: var(--text); font-weight: 500; font-size: 0.95rem; padding: 0.4rem 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
nav a:hover, nav a:focus-visible, nav a[aria-current="page"] { border-bottom-color: var(--primary); color: var(--primary); }
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; margin-top: 2rem; }
footer .container { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
footer a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
footer a:hover { color: var(--text); }

/* Components */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.8rem; border-radius: 50px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all .2s ease; border: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(90,125,94,0.25); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; transition: box-shadow .25s ease, transform .25s ease; }
.card:hover, .card:focus-within { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-icon { width: 36px; height: 36px; margin-bottom: 1rem; color: var(--primary); }
.card-meta { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.8rem; }
.card-btn { margin-top: 1rem; font-size: 0.9rem; font-weight: 500; border-bottom: 1px solid var(--border); padding-bottom: 2px; display: inline-block; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--border); text-align: left; }
th { background: #efecea; font-weight: 600; width: 35%; }
tr:last-child td { border-bottom: none; }
td { color: var(--text-muted); }

/* FAQ */
details { margin-bottom: 0.6rem; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
summary { padding: 1.1rem 1.2rem; cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--text); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.25rem; transition: transform .2s ease; font-weight: 400; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 1.2rem 1.2rem; color: var(--text-muted); line-height: 1.7; }

/* SVG Animation System */
svg.anim-group { width: 100%; height: auto; display: block; }
.anim-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes drawLine { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes breatheSoft { 0%, 100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.015); } }
.anim-draw { animation: drawLine 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.anim-breathe { animation: breatheSoft 5s ease-in-out infinite; }
.anim-delay-1 { animation-delay: 0.3s; }
.anim-delay-2 { animation-delay: 0.6s; }
.anim-delay-3 { animation-delay: 0.9s; }
/* Ensure SVG transforms work correctly across browsers */
.anim-breathe { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .anim-draw, .anim-breathe { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; transform: none !important; }
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.divider { height: 1px; background: var(--border); margin: 3rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
