/* 学校全能播放器的产品页和规定页面共用 */
:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1c1b1a;
  --muted: #6b6762;
  --line: #e6e2dc;
  --accent: #2f5bd3;
  --accent-text: #ffffff;
  --badge: #fff2d6;
  --badge-text: #7a4b00;
  --radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "PingFang SC", "Noto Sans CJK JP", "Noto Sans CJK SC", "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --surface: #1b1b1b;
    --text: #ecebe8;
    --muted: #a19d97;
    --line: #2e2c2a;
    --accent: #7fa2ff;
    --accent-text: #0b1530;
    --badge: #3a2c10;
    --badge-text: #ffd48a;
  }
}
:root[data-theme="dark"] {
  --bg: #121212;
  --surface: #1b1b1b;
  --text: #ecebe8;
  --muted: #a19d97;
  --line: #2e2c2a;
  --accent: #7fa2ff;
  --accent-text: #0b1530;
  --badge: #3a2c10;
  --badge-text: #ffd48a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  overflow-wrap: anywhere;
}
a { color: var(--accent); }

/* 语言：页面里中文和日文各一份，按 html 的 data-lang 只显示一份（没有脚本时两份都显示） */
html[data-lang="zh"] .ja,
html[data-lang="ja"] .zh { display: none !important; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.doc .wrap { max-width: 760px; }

header.top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  font: inherit;
  font-size: 14px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { color: var(--text); border-color: var(--text); }

main.wrap { padding-top: 32px; padding-bottom: 48px; }
h1 { font-size: 28px; line-height: 1.3; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 40px 0 12px; }
h3 { font-size: 17px; margin: 24px 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* 产品页 */
.hero { padding: 24px 0 8px; }
.hero h1 { font-size: 34px; }
.hero .lead { font-size: 18px; color: var(--muted); margin-bottom: 20px; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
}
.btn.disabled { opacity: 0.45; pointer-events: none; }
.req { font-size: 14px; color: var(--muted); margin-top: 10px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; padding: 0; list-style: none; margin: 0; }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.features b { display: block; margin-bottom: 2px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.plan.pro { border-color: var(--accent); }
.plan h3 { margin-top: 0; }
.price { font-size: 26px; font-weight: 700; }
.price .per { font-size: 15px; font-weight: 400; color: var(--muted); }
.was { color: var(--muted); margin-left: 8px; font-size: 16px; font-weight: 400; white-space: nowrap; }
.price .now { white-space: nowrap; }
.offer { display: inline-block; font-size: 13px; padding: 1px 10px; border-radius: 999px; background: var(--badge); color: var(--badge-text); margin-bottom: 6px; }
.plan ul { padding-left: 1.2em; margin: 10px 0 0; }

.faq dt { font-weight: 600; margin-top: 16px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }

/* 规定页面 */
.doc h2 { font-size: 18px; margin: 32px 0 8px; }
.doc ol, .doc ul { padding-left: 1.4em; margin: 0 0 12px; }
.doc li { margin-bottom: 4px; }
.note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }
table.law { width: 100%; border-collapse: collapse; background: var(--surface); }
table.law th, table.law td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
table.law th { width: 30%; font-weight: 600; background: color-mix(in srgb, var(--line) 35%, transparent); }
@media (max-width: 560px) {
  table.law th, table.law td { display: block; width: 100%; }
  table.law th { border-bottom: 0; }
  .hero h1 { font-size: 28px; }
}

footer.bottom { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: 14px; color: var(--muted); }
footer.bottom nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
footer.bottom a { color: var(--muted); }
