:root {
  --bg: #F7F5F1;
  --surface: #FFFFFF;
  --primary: #2E3B30;
  --primary-hover: #1F2A21;
  --accent: #A89F91;
  --text: #2A2824;
  --text-secondary: #6B6560;
  --border: #E2DED7;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(42, 40, 36, 0.05);
  --container: 1120px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.25; color: var(--primary); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; margin-bottom: 1.2rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 1.5rem; margin-top: 0; }
p { margin-bottom: 1rem; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }

/* Header & Nav */
header { position: sticky; top: 0; z-index: 100; background: rgba(247, 245, 241, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); height: var(--header-h); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; color: var(--primary); }
nav ul { display: flex; gap: 28px; list-style: none; }
nav a { font-weight: 500; font-size: 0.95rem; }
nav a:hover, nav [aria-current="page"] { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; border-radius: 99px; font-weight: 600; cursor: pointer; transition: all 0.25s ease; border: 2px solid transparent; font-size: 1rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(46, 59, 48, 0.18); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Grid & Cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--surface); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(42, 40, 36, 0.09); }
.feature-icon { width: 52px; height: 52px; background: #EFECE7; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--primary); }
.feature-icon svg { width: 28px; height: 28px; }
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-date { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 8px; display: block; }
.news-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; color: var(--primary); }
.news-summary { flex-grow: 1; font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 16px; }
.link-list { list-style: none; }
.link-list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.link-list a { display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
.link-list a:hover { color: var(--primary); }
.link-desc { font-size: 0.9rem; color: var(--text-secondary); margin-top: 4px; }

/* Table */
.table-wrap { overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #F0EDE8; font-weight: 600; color: var(--primary); }
tr:last-child td { border-bottom: none; }

/* FAQ */
details { margin-bottom: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
summary { padding: 18px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--primary); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; color: var(--text-secondary); transition: transform 0.2s; }
details[open] summary::after { content: "−"; }
details p { padding: 0 18px 18px; color: var(--text-secondary); line-height: 1.7; }

/* Footer */
footer { background: var(--primary); color: #ECECEA; padding: 60px 0 30px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-grid h3 { color: #fff; margin-bottom: 16px; font-size: 1.05rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; font-size: 0.9rem; color: #A8A29E; }

/* SVG Animation Base */
.anim-spin { animation: spin 14s linear infinite; transform-box: fill-box; transform-origin: center; }
.anim-assemble { animation: assemble 8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.anim-draw { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 6s ease-in-out infinite alternate; }
.anim-float { animation: float 5s ease-in-out infinite; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes assemble { 0% { transform: scale(0.92) translateX(-6px); opacity: 0.65; } 100% { transform: scale(1) translateX(0); opacity: 1; } }
@keyframes draw { 0%, 100% { stroke-dashoffset: 0; } 50% { stroke-dashoffset: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@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; }
  .anim-spin, .anim-assemble, .anim-draw, .anim-float { animation: none !important; }
}

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(46, 59, 48, 0.15); }
