:root {
  --bg: #f6faf7;
  --surface: #ffffff;
  --border: #dce7e0;
  --text: #112218;
  --muted: #4b6154;
  --accent: #0ea357;
  --accent-dark: #0b4a2a;
  --accent-soft: #e6f7ee;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b110e;
    --surface: #131c17;
    --border: #24362c;
    --text: #ecf6f0;
    --muted: #9eb7a9;
    --accent: #34d67e;
    --accent-dark: #d9ffec;
    --accent-soft: #142c20;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "PingFang TC", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}

.brand img {
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}

#langSelect {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  cursor: pointer;
}

.hero {
  text-align: center;
  padding: 48px 12px 36px;
}

.hero-icon {
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(11, 74, 42, 0.16);
}

.hero h1 {
  margin: 18px 0 8px;
  font-size: 30px;
  line-height: 1.25;
}

.subtitle {
  margin: 0 auto 20px;
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
}

.badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.badge {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding-bottom: 48px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.doc {
  padding: 36px 20px 56px;
}

.doc h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.meta {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.doc-section {
  margin-bottom: 16px;
}

.doc-section h3 {
  margin: 16px 0 6px;
  font-size: 15.5px;
  color: var(--text);
}

.doc-section p + p {
  margin-top: 8px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}
