:root {
  color-scheme: light;
  --bg: #f6f8f6;
  --card: #ffffff;
  --text: #111816;
  --muted: #64706c;
  --primary: #125340;
  --soft: #e8f5ef;
  --line: #e5ebe7;
  --shadow: 0 12px 32px rgba(10, 31, 23, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.language-bar {
  position: sticky;
  z-index: 20;
  top: 0;
  padding: calc(10px + env(safe-area-inset-top)) 18px 10px;
  background: rgba(246, 248, 246, 0.96);
  border-bottom: 1px solid rgba(229, 235, 231, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.language-switcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: min(100%, 520px);
  min-height: 40px;
  margin: 0 auto;
  padding: 3px;
  background: #e9eeeb;
  border: 1px solid #dfe7e2;
  border-radius: 10px;
}

.language-option {
  min-width: 0;
  min-height: 32px;
  padding: 5px 4px;
  overflow: hidden;
  color: #53615c;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.language-option[aria-pressed="true"] {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 2px 6px rgba(18, 83, 64, 0.2);
}

.language-option:focus-visible {
  outline: 2px solid #62a98c;
  outline-offset: 1px;
}

.page { max-width: 860px; margin: 0 auto; padding: 28px 18px 48px; }

.hero {
  padding: 28px 22px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #125340 0%, #247258 100%);
  color: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

h1 { margin: 0 0 12px; font-size: 26px; line-height: 1.25; font-weight: 800; }

.meta { display: grid; gap: 4px; margin: 0; color: rgba(255,255,255,.84); font-size: 13px; line-height: 1.7; }

.content { padding: 24px 22px; background: var(--card); border-radius: 24px; box-shadow: var(--shadow); }

h2 { margin: 32px 0 12px; color: var(--primary); font-size: 19px; line-height: 1.35; font-weight: 800; }
h2:first-child { margin-top: 0; }
h3 { margin: 20px 0 8px; font-size: 16px; line-height: 1.45; font-weight: 800; }
p { margin: 0 0 12px; font-size: 15px; line-height: 1.85; }
ul { margin: 0 0 14px; padding-left: 20px; }
li { margin: 4px 0; font-size: 15px; line-height: 1.8; }
a { color: var(--primary); text-underline-offset: 2px; }

.notice { padding: 14px 16px; margin: 14px 0 20px; background: var(--soft); border-radius: 16px; color: #173f33; font-size: 14px; line-height: 1.8; }
.definition, .info-card { padding: 14px 16px; margin: 10px 0; background: #f4f6f5; border-radius: 16px; }
.definition strong { display: block; margin-bottom: 4px; color: var(--primary); font-size: 15px; }
.definition p, .info-card p { margin-bottom: 4px; }
.definition p:last-child, .info-card p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 12px 0 16px; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; min-width: 620px; border-collapse: collapse; }
th, td { padding: 12px 13px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.65; }
th { background: #f4f7f5; color: #24473a; font-weight: 800; }
tr:last-child td { border-bottom: 0; }

.footer { margin-top: 34px; color: var(--muted); font-size: 13px; text-align: center; }

@media (min-width: 768px) {
  .language-bar { padding-top: 12px; padding-bottom: 12px; }
  .page { padding-top: 44px; }
  .hero { padding: 34px 36px; }
  .content { padding: 34px 36px; }
  h1 { font-size: 32px; }
}

@media (max-width: 360px) {
  .language-bar { padding-right: 12px; padding-left: 12px; }
  .language-option { font-size: 12px; }
}
