/* 账户网关样式：单文件，移动端优先，跟随系统明暗色。
 * 2026-11-17 重做：统一按钮/输入框规格（高 40、圆角 10），各产品的账户站点用该产品的主色
 * （body.product-listen / -jlpt / -eju），账户页左侧分区导航。 */
:root {
  color-scheme: light dark;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --text: #1d232b;
  --muted: #66707f;
  --border: #dfe3e8;
  --accent: #22406e;
  --accent-soft: #e6ecf5;
  --accent-text: #ffffff;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --ok: #067647;
  --ok-soft: #e3f6ea;
  --alert-error-bg: var(--danger-soft);
  --alert-ok-bg: var(--ok-soft);
  --radius-lg: 14px;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

/* 每个产品的账户站点用自己的主色，和应用里一致 */
body.product-listen { --accent: #0d4a3c; --accent-soft: #e2f0e7; }
body.product-jlpt { --accent: #1f4e79; --accent-soft: #e3ecf5; }
body.product-eju { --accent: #22406e; --accent-soft: #e3ebf6; }
body.product-toeic { --accent: #0d6b6b; --accent-soft: #dff0ee; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a20;
    --surface-2: #1f232b;
    --text: #e6e8eb;
    --muted: #98a2b3;
    --border: #2b3039;
    --accent: #8fb0e6;
    --accent-soft: #1d2738;
    --accent-text: #0b1020;
    --danger: #f97066;
    --danger-soft: #3a1c1a;
    --ok: #47cd89;
    --ok-soft: #16311f;
    --shadow: none;
  }
  body.product-listen { --accent: #8fd0aa; --accent-soft: #15291f; --accent-text: #08231c; }
  body.product-jlpt { --accent: #8bb6e3; --accent-soft: #1a2633; }
  body.product-eju { --accent: #8fb0e6; --accent-soft: #1d2738; }
  body.product-toeic { --accent: #6cc7c0; --accent-soft: #16302f; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- 顶栏 ---- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  min-height: 60px;
  padding-top: 10px;
  padding-bottom: 10px;
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--surface-2);
}

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

.nav-user {
  color: var(--muted);
  font-size: 14px;
  padding: 0 6px;
}

.site-nav .inline-form {
  margin-left: 4px;
}

/* ---- 返回应用：从应用点「账户」「升级」过来时，每页顶部一条 ---- */
.backbar .container {
  padding-top: 14px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px 0 8px;
  margin-left: -8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.back-link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-right: 2px;
}

.back-link:hover,
.back-link:focus-visible {
  background: var(--accent-soft);
}

main.container {
  flex: 1;
  padding-top: 24px;
  padding-bottom: 48px;
}

h1 {
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 18px;
  line-height: 1.4;
  margin: 28px 0 10px;
}

h3 {
  font-size: 15px;
  margin: 22px 0 8px;
}

.panel > h2:first-child,
.panel > h1:first-child,
.card h2 {
  margin-top: 0;
}

.hero {
  margin: 8px 0 24px;
}

.hero p {
  max-width: 640px;
}

.page-head {
  margin-bottom: 20px;
}

.page-head h1 {
  margin-bottom: 2px;
}

.page-head p {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.hint {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 0;
}

/* ---- 面板 ---- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}

.narrow {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.danger-zone {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--border));
}

.danger-zone h2 {
  color: var(--danger);
}

/* ---- 表单 ---- */
label {
  display: block;
  margin: 16px 0 6px;
  font-size: 14px;
  font-weight: 600;
}

input:not([type="hidden"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

select {
  width: auto;
}

.field-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.field-row input {
  flex: 1;
  min-width: 0;
}

.field-row .button {
  margin-top: 0;
  flex: none;
}

/* ---- 按钮：主 / 次 / 危险，两种尺寸 ---- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, filter 0.15s;
}

.button:hover {
  filter: brightness(1.08);
}

.button:focus-visible,
.site-nav a:focus-visible,
.account-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.button.secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.button.secondary:hover {
  filter: none;
  border-color: var(--accent);
  color: var(--accent);
}

.button.danger {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--danger) 55%, var(--border));
  color: var(--danger);
}

.button.danger:hover {
  filter: none;
  background: var(--danger-soft);
}

.button.small {
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

form .button {
  margin-top: 20px;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.inline-form .button {
  margin-top: 0;
}

.inline-form input:not([type="hidden"]) {
  width: auto;
  max-width: 180px;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 13px;
}

.actions,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.panel-actions {
  margin-top: 16px;
}

.panel-actions .button {
  margin-top: 0;
}

/* ---- 提示 ---- */
.alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  margin: 0 0 16px;
  font-size: 14px;
}

.alert-error {
  background: var(--alert-error-bg);
  color: var(--danger);
}

.alert-ok {
  background: var(--alert-ok-bg);
  color: var(--ok);
}

.banner {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 14px;
}

.banner .inline-form {
  margin-left: 8px;
}

/* ---- 应用卡片（首页） ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.card {
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 44px 22px 22px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 28px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-top: 2px solid var(--muted);
  transform: rotate(45deg);
}

a.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

a.card:hover::after {
  border-color: var(--accent);
}

.card h2 {
  margin: 0 0 4px;
}

.card .url {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  word-break: break-all;
}

.card-status {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}

div.card::after,
.offer.card::after {
  display: none;
}

.offer .price {
  font-size: 26px;
  font-weight: 700;
  margin: 8px 0;
}

/* ---- 表格 ---- */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}

th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

tr:last-child td {
  border-bottom: 0;
}

.cell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.tag-on {
  background: var(--ok-soft);
  color: var(--ok);
}

.tag-off {
  background: var(--danger-soft);
  color: var(--danger);
}

.tag-admin {
  background: var(--danger);
  color: #fff;
}

dl.info {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 0;
}

dl.info dt {
  color: var(--muted);
}

dl.info dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.link-list {
  padding-left: 20px;
}

.link-list li {
  margin: 4px 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface-2);
}

/* ---- 账户页：左侧分区导航 + 右侧各分区 ---- */
.account-layout {
  display: grid;
  gap: 16px;
}

.account-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 10px 20px;
  background: var(--bg);
  scrollbar-width: none;
}

.account-nav::-webkit-scrollbar {
  display: none;
}

.account-nav a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}

.account-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.account-nav a.nav-danger {
  color: var(--danger);
}

.account-sections .panel {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  scroll-margin-top: 64px;
}

.panel:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

@media (min-width: 860px) {
  .account-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }

  .account-nav {
    top: 20px;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: none;
  }

  .account-nav a {
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    padding: 0 12px;
    color: var(--muted);
  }

  .account-nav a:hover {
    background: var(--surface);
    color: var(--text);
  }

  .account-sections .panel {
    scroll-margin-top: 20px;
  }
}

/* ---- 其它 ---- */
.site-footer {
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.footer-version {
  opacity: 0.7;
}

.legal {
  max-width: 760px;
}

.legal h2 {
  font-size: 18px;
  margin-top: 28px;
}

.legal li {
  margin: 4px 0;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0;
  font-weight: 400;
}

.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 16px;
}

.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 16px;
  min-width: 120px;
}

.stat .value {
  font-size: 24px;
  font-weight: 650;
}

.stat .label {
  color: var(--muted);
  font-size: 13px;
}

.reset-link {
  word-break: break-all;
}

/* 蜜罐字段：屏幕外，人看不到也不会用 Tab 进去；机器人往往会填 */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.filters,
.search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}

.search input:not([type="hidden"]) {
  width: auto;
  flex: 1;
  min-width: 180px;
}

.search .button,
.filters .button {
  margin-top: 0;
}

/* 管理后台模式：导航里的标记和页面顶部的色条，和学员界面一眼区分 */
body.admin-mode .site-header {
  border-bottom: 3px solid var(--danger);
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }

  .account-nav {
    margin: 0 -16px;
    padding: 10px 16px;
  }

  .panel {
    padding: 18px;
  }

  h1 {
    font-size: 22px;
  }

  .field-row {
    flex-direction: column;
  }
}

/* 登录、注册、找回密码这类窄面板：主按钮占满一行 */
.narrow form > .button:last-child {
  width: 100%;
}

/* ======================================================================
 * 2026-11-18 首页、个人首页、登录注册页重做
 * 产品首页（未登录）：web/product/<产品>_landing.html，类名 lp-*
 * 个人首页（登录后）：landing.html，类名 home-* / tile / tips
 * 登录、注册、找回密码：左边产品介绍栏 auth-aside（web/product/<产品>_aside.html）
 * 只用 CSS（CSP 不允许内联样式和脚本）；明暗两套颜色都跟着 --accent 走。
 * ====================================================================== */
:root {
  --hero-a: #eef3fa;
  --hero-b: #f8fafc;
  --hero-glow: rgba(31, 78, 121, 0.16);
  --paper: #ffffff;
  --paper-line: #e6e9ee;
  --right: #067647;
  --right-soft: #e3f6ea;
  --wrong: #b42318;
  --wrong-soft: #fdecea;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Songti SC", serif;
  --shadow-lg: 0 1px 2px rgba(16, 24, 40, 0.05), 0 18px 40px -12px rgba(16, 24, 40, 0.18);
}
body.product-jlpt { --hero-a: #e9f0f8; --hero-glow: rgba(31, 78, 121, 0.18); }
body.product-eju { --hero-a: #e9eef8; --hero-glow: rgba(34, 64, 110, 0.18); }
body.product-listen { --hero-a: #e6f2ea; --hero-glow: rgba(13, 74, 60, 0.18); }
body.product-toeic { --hero-a: #e3f2f0; --hero-glow: rgba(13, 107, 107, 0.18); }

@media (prefers-color-scheme: dark) {
  :root {
    --hero-a: #131a26;
    --hero-b: #0f1115;
    --hero-glow: rgba(143, 176, 230, 0.16);
    --paper: #1b1f27;
    --paper-line: #2b3039;
    --right: #47cd89;
    --right-soft: #16311f;
    --wrong: #f97066;
    --wrong-soft: #3a1c1a;
    --shadow-lg: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  }
  body.product-jlpt { --hero-a: #121b27; --hero-glow: rgba(139, 182, 227, 0.16); }
  body.product-eju { --hero-a: #131a28; --hero-glow: rgba(143, 176, 230, 0.16); }
  body.product-listen { --hero-a: #0f1f19; --hero-glow: rgba(143, 208, 170, 0.14); }
  body.product-toeic { --hero-a: #0f1f1f; --hero-glow: rgba(108, 199, 192, 0.14); }
}

body {
  overflow-x: clip;
}

.jp {
  font-family: var(--mincho);
}

/* 铺满整个窗口宽度的区块（在 main.container 里面用） */
.bleed {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

/* 顶栏：贴在顶部，半透明 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}

.account-nav {
  top: 60px;
}

@media (min-width: 860px) {
  .account-nav {
    top: 84px;
  }
  .account-sections .panel {
    scroll-margin-top: 84px;
  }
}

/* ---- 产品首页 · 主视觉 ---- */
main.container:has(> .lp-hero:first-child),
main.container:has(> .home-hero:first-child) {
  padding-top: 0;
}

.lp-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% 10%, var(--hero-glow), transparent 70%),
    linear-gradient(180deg, var(--hero-a), var(--hero-b));
  border-bottom: 1px solid var(--border);
}

.home-hero::after {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 170px;
  line-height: 1;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.045;
  pointer-events: none;
  font-family: var(--mincho);
}
body.product-jlpt .home-hero::after { content: "日"; }
body.product-eju .home-hero::after { content: "留"; }
body.product-listen .home-hero::after { content: "听"; }
body.product-toeic .home-hero::after { content: "T"; }

.lp-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 56px 0 64px;
}

@media (min-width: 900px) {
  .lp-hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    padding: 80px 0 88px;
  }
}

.lp-hero h1 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 4px 12px 4px 4px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.lp-hero h1::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  -webkit-mask: radial-gradient(circle, #000 34%, transparent 36%);
  mask: radial-gradient(circle, #000 34%, transparent 36%);
}

.lp-title,
.lp-h2,
.auth-tag,
.lp-cta-title {
  text-wrap: balance;
}

.lp-title {
  margin: 0 0 18px;
  font-size: clamp(30px, 5.2vw, 46px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.lp-lead {
  margin: 0 0 28px;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.75;
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
}

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lp-actions .button {
  min-height: 48px;
  padding: 0 24px;
  font-size: 16px;
}

/* 注册按钮（网关给的是次要样式）在首页当主按钮用 */
.lp-actions a[href^="/register"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 8px 20px -10px var(--accent);
}

.lp-actions a[href^="/register"]:hover {
  filter: brightness(1.08);
  color: var(--accent-text);
}

.lp-meta {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---- 主视觉右边的示意卡片（纯装饰，aria-hidden） ---- */
.mock {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg), 14px 16px 0 -4px color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 18px 20px 20px;
  font-size: 14px;
  transform: rotate(0.6deg);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--paper-line);
  color: var(--muted);
  font-size: 13px;
}

.mock-chip {
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 12px;
}

.mock-timer {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
}

.mock-head {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.mock-q {
  position: relative;
  padding-left: 36px;
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.7;
}

.mock-q u {
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.mock-num {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 3px;
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.mock-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 16px;
}

.mock-options li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
}

.mock-options li span {
  font-family: system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.mock-options li.is-right {
  border-color: color-mix(in srgb, var(--right) 55%, var(--paper-line));
  background: var(--right-soft);
  color: var(--right);
  font-weight: 700;
}

.mock-options li.is-right::after {
  content: "✓";
  margin-left: auto;
  font-family: system-ui, sans-serif;
}

.mock-options li.is-wrong {
  border-color: color-mix(in srgb, var(--wrong) 40%, var(--paper-line));
  color: var(--wrong);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.mock-answers {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.mock-answers > span:not(.mock-mark) {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--right) 55%, var(--paper-line));
  border-radius: 8px;
}

.mock-answers em {
  padding: 4px 10px;
  font-style: normal;
  font-family: var(--mincho);
  background: var(--surface-2);
  color: var(--muted);
}

.mock-answers b {
  padding: 4px 14px;
  background: var(--right-soft);
  color: var(--right);
  font-size: 16px;
}

.mock-mark {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--right-soft);
  color: var(--right);
  font-size: 12px;
  font-weight: 700;
}

.mock-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.mock-note strong {
  display: block;
  margin-bottom: 2px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.mock-note p {
  margin: 0;
}

.mock-dim {
  color: var(--muted);
}

/* 精听：波形和播放控制 */
.mock-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 56px;
  margin: 4px 0 12px;
}

.mock-wave i {
  flex: 1;
  height: 30%;
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent) 30%, var(--paper-line));
}

.mock-wave i:nth-child(-n + 14) {
  background: var(--accent);
}

.mock-wave i:nth-child(3n) { height: 62%; }
.mock-wave i:nth-child(4n + 1) { height: 44%; }
.mock-wave i:nth-child(5n + 2) { height: 86%; }
.mock-wave i:nth-child(7n) { height: 22%; }
.mock-wave i:nth-child(11n + 4) { height: 100%; }

.mock-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.mock-controls span {
  padding: 3px 10px;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}

.mock-controls .mock-play {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: var(--accent);
}

.mock-controls .mock-play::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  border-left: 11px solid var(--accent-text);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.mock-label {
  margin: 0 0 2px;
  font-size: 12px;
  color: var(--muted);
}

.mock-typed,
.mock-orig {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.7;
}

.mock-typed del {
  color: var(--wrong);
  text-decoration-thickness: 1.5px;
}

.mock-orig mark {
  padding: 0 3px;
  border-radius: 4px;
  background: var(--right-soft);
  color: var(--right);
  font-weight: 700;
}

/* ---- 数字条 ---- */
.lp-stats {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.lp-stats-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.lp-stats-inner > div {
  padding: 24px 16px 24px 0;
}

.lp-stats-inner > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.lp-stats-inner > div:nth-child(3) {
  padding-left: 0;
  border-left: 0;
}

@media (min-width: 760px) {
  .lp-stats-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .lp-stats-inner > div:nth-child(3) {
    padding-left: 20px;
    border-left: 1px solid var(--border);
  }
}

.lp-stats dt {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.lp-stats dt small {
  margin-left: 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.lp-stats dd {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---- 各分区 ---- */
.lp-section {
  padding: 64px 0 8px;
}

.lp-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.lp-h2 {
  margin: 0 0 28px;
  max-width: 720px;
  font-size: clamp(22px, 3.2vw, 28px);
  line-height: 1.35;
  font-weight: 800;
}

.lp-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}

.lp-feature {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
}

.lp-feature:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  transform: translateY(-2px);
}

.lp-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.lp-feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

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

.lp-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.lp-level {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.lp-level::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
}

.lp-level-tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.lp-level-num {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.lp-level-num small {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.lp-level p:last-child {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.lp-subjects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lp-subject {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.lp-subject span {
  font-size: 19px;
  font-weight: 700;
}

.lp-subject small {
  font-size: 13px;
  color: var(--muted);
}

.lp-subject-wide {
  background: var(--accent-soft);
  border-color: transparent;
}

.lp-subject-wide span {
  color: var(--accent);
}

.lp-subject-wide {
  grid-column: span 2;
}

@media (min-width: 760px) {
  .lp-subjects {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.lp-footnote {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* 开通方式：左边步骤，右边版本 */
.lp-split {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .lp-split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: start;
  }
}

.lp-steps {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-steps li {
  position: relative;
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 26px 56px;
}

.lp-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
}

.lp-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 42px;
  bottom: 6px;
  width: 2px;
  background: color-mix(in srgb, var(--accent) 25%, var(--border));
}

.lp-steps strong {
  font-size: 16px;
  line-height: 36px;
}

.lp-steps span {
  color: var(--muted);
  font-size: 14.5px;
}

.lp-plans {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.lp-plans-title {
  margin: 0 0 12px;
  font-weight: 700;
}

.lp-plans ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.lp-plans li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.lp-plans li:first-child {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.lp-plans li strong {
  font-size: 15px;
  white-space: nowrap;
}

.lp-plans li span {
  font-size: 12px;
  color: var(--muted);
}

.lp-plans-note {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.lp-plans .cards {
  grid-template-columns: 1fr;
  margin: 0;
}

/* 常见问题：用 details，不需要脚本 */
.lp-faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.lp-faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.lp-faq details[open] {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.lp-faq summary {
  position: relative;
  padding: 14px 48px 14px 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.lp-faq summary::-webkit-details-marker {
  display: none;
}

.lp-faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s;
}

.lp-faq details[open] summary::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}

.lp-faq details p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
}

/* 底部号召 */
.lp-cta {
  margin-top: 64px;
  margin-bottom: -48px;
  background:
    radial-gradient(50% 120% at 50% 0%, var(--hero-glow), transparent 70%),
    var(--hero-a);
  border-top: 1px solid var(--border);
}

.lp-cta-inner {
  padding: 56px 0 60px;
  text-align: center;
}

.lp-cta-title {
  margin: 0 0 6px;
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 800;
}

.lp-cta-inner > p:not(.lp-cta-title):not(.lp-legal) {
  margin: 0 0 22px;
  color: var(--muted);
}

.lp-cta .lp-actions {
  justify-content: center;
}

.lp-cta .lp-legal {
  margin: 22px 0 0;
  font-size: 13px;
}

/* ---- 应用卡片（首页、个人首页共用） ---- */
.app-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.app-card::after {
  display: none;
}

.app-card-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 24px;
  font-weight: 800;
  font-family: var(--mincho);
}

.app-card-body {
  flex: 1;
  min-width: 0;
}

.app-card h2 {
  margin: 0;
  font-size: 18px;
}

.app-card .card-status {
  display: inline-block;
  margin: 6px 0 4px;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.app-card .card-status:empty {
  display: none;
}

.app-card .url {
  font-size: 12.5px;
}

.app-card-go {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 15px;
}

.app-card-go::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

a.app-card:hover .app-card-go {
  filter: brightness(1.08);
}

@media (max-width: 520px) {
  .app-card {
    flex-wrap: wrap;
  }
  .app-card-go {
    width: 100%;
    justify-content: center;
  }
}

/* ---- 个人首页（登录后） ---- */
.home-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  background:
    radial-gradient(55% 90% at 90% 0%, var(--hero-glow), transparent 70%),
    linear-gradient(180deg, var(--hero-a), var(--hero-b));
  border-bottom: 1px solid var(--border);
}


.home-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 44px 0 40px;
}

.home-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 30px;
  font-weight: 800;
  font-family: var(--mincho);
  box-shadow: 0 10px 24px -12px var(--accent);
}

.eyebrow {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.home-hero h1 {
  margin: 0 0 4px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
}

.home-hero p.muted {
  margin: 0;
}

.cards-home {
  grid-template-columns: 1fr;
  margin-bottom: 36px;
}

.cards-home .app-card {
  padding: 24px;
}

.section-label {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 12px;
  margin-bottom: 36px;
}

.tile-form {
  display: contents;
}

.tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tile:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tile-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.tile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tile-text strong {
  font-size: 15px;
}

.tile-text span {
  font-size: 13px;
  color: var(--muted);
}

.tile-form .tile:hover .tile-icon {
  background: var(--danger-soft);
  color: var(--danger);
}

.tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tips li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  padding: 16px 18px;
  border: 1px dashed color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: var(--radius-lg);
}

.tip-num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.tips strong {
  font-size: 15px;
}

.tips li > span:last-child {
  font-size: 13.5px;
  color: var(--muted);
}

/* ---- 登录 / 注册 / 找回密码 ---- */
.auth {
  padding-top: 8px;
}

.auth.has-aside {
  display: grid;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.auth.has-aside .auth-panel {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.auth-panel h1 {
  font-size: 24px;
}

.auth-aside {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 70%),
    linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000));
  color: #fff;
}

.auth-watermark {
  position: absolute;
  right: 16px;
  bottom: 8px;
  font-size: 150px;
  line-height: 1;
  font-weight: 800;
  font-family: var(--mincho);
  opacity: 0.08;
  pointer-events: none;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-weight: 700;
}

.auth-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
  font-family: var(--mincho);
}

.auth-tag {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 800;
}

.auth-points {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.auth-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.auth-sample {
  position: relative;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.08);
  font-size: 16px;
  line-height: 1.7;
}

.auth-foot {
  margin: 0;
  font-size: 13px;
  opacity: 0.8;
}

@media (prefers-color-scheme: dark) {
  .auth-aside {
    background:
      radial-gradient(70% 60% at 100% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
      linear-gradient(160deg, color-mix(in srgb, var(--accent) 34%, #10141b), #11151c);
    border: 1px solid var(--border);
    color: var(--text);
  }
  .auth-mark,
  .auth-check {
    background: color-mix(in srgb, var(--accent) 24%, transparent);
    color: var(--accent);
  }
  .auth-sample {
    border-left-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
  }
}

@media (max-width: 859px) {
  /* 手机上介绍栏放在表单下面，只留标题和要点 */
  .auth.has-aside .auth-aside {
    order: 2;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
  }
  .auth-sample {
    display: none;
  }
}

@media (min-width: 860px) {
  .auth.has-aside {
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: 40px;
    align-items: start;
    padding-top: 24px;
  }
  .auth.has-aside .auth-aside {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    padding: 40px;
  }
  .auth-foot {
    margin-top: auto;
  }
  .auth.has-aside .auth-panel {
    margin: 0;
    padding: 32px;
  }
}

/* ---- 页脚 ---- */
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

.footer-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
}

.footer-version {
  margin-left: auto;
}

@media (max-width: 620px) {
  .lp-hero-inner {
    padding: 36px 0 44px;
  }
  .mock {
    transform: none;
  }
  .mock {
    box-shadow: var(--shadow-lg);
  }
  .lp-options,
  .mock-options {
    grid-template-columns: 1fr 1fr;
  }
  .lp-plans ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lp-section {
    padding-top: 48px;
  }
  .home-hero-inner {
    padding: 28px 0;
  }
  .home-mark {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-feature,
  .lp-feature:hover {
    transition: none;
    transform: none;
  }
}

/* 在价格栏里的应用卡片：状态不用胶囊，免得挤成两行 */
.lp-plans .app-card .card-status {
  display: block;
  padding: 0;
  background: none;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 620px) {
  /* 手机上功能卡片改成图标在左，省一半高度 */
  .lp-feature {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 14px;
    padding: 18px;
  }
  .lp-feature .lp-icon {
    grid-row: span 2;
    margin-bottom: 0;
  }
  .lp-feature h3 {
    margin-top: 2px;
  }
  .home-hero::after {
    display: none;
  }
}

@media (max-width: 620px) {
  /* 手机上导航会折成几行：顶栏不再贴顶，省掉用户名 */
  .site-header {
    position: static;
  }
  .account-nav {
    top: 0;
  }
  .nav-user,
  .auth-watermark {
    display: none;
  }
}

/* ---- 购买激活码的微信二维码（2026-11-20）：注册页、账户页、价格页 ---- */
.purchase-hint {
  margin: 12px 0 4px;
}

.purchase-hint > .muted {
  margin: 0 0 10px;
}

.purchase-qr {
  display: inline-block;
  margin: 0 0 12px;
  padding: 10px 10px 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.purchase-qr img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}

.purchase-qr figcaption {
  margin-top: 4px;
  color: #66707f;
  font-size: 12px;
}

/* ---- 账户页「购买 / 续费」（2026-11-22，开了在线支付时） ---- */
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 16px 0 20px; }
.buy-row .muted { font-size: 14px; }

/* ---- 促销（2026-11-22）：横幅、折扣角标、划线原价。用独立的暖色，不跟产品主色走；明暗各一套 ---- */
:root {
  --promo: #c2410c;
  --promo-strong: #9a3412;
  --promo-soft: #fff4ec;
  --promo-border: #f5c7a6;
  --promo-on: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --promo: #fb923c;
    --promo-strong: #fdba74;
    --promo-soft: #2b1d13;
    --promo-border: #6a3b1d;
    --promo-on: #1f1208;
  }
}

.promo-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--promo);
  color: var(--promo-on);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* 价格页顶部、其它页面的大横幅 */
.promo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 0 0 24px;
  padding: 16px 20px;
  background: var(--promo-soft);
  border: 1px solid var(--promo-border);
  border-left: 4px solid var(--promo);
  border-radius: var(--radius-lg);
}

.promo-text {
  display: flex;
  flex: 1 1 260px;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.promo-text strong {
  font-size: 18px;
  color: var(--promo-strong);
}

.promo-text span {
  font-size: 14px;
  color: var(--muted);
}

.button.promo-cta {
  background: var(--promo);
  border-color: var(--promo);
  color: var(--promo-on);
}

/* 价格卡片：右上角折扣角标、促销价用暖色、原价划线 */
/* 同一排里有促销卡片时，所有卡片都留出角标的高度，标题对齐 */
.cards:has(.offer.is-promo) .offer {
  padding-top: 40px;
}

.offer.is-promo {
  padding-top: 40px;
  border-color: var(--promo-border);
  box-shadow: 0 0 0 1px var(--promo-border), var(--shadow);
}

.promo-badge {
  position: absolute;
  top: -1px;
  right: 18px;
  padding: 5px 12px 7px;
  border-radius: 0 0 10px 10px;
  background: var(--promo);
  color: var(--promo-on);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.offer .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.offer .price-now {
  color: var(--promo);
  font-variant-numeric: tabular-nums;
}

.offer .price-was {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.price-save {
  display: inline-block;
  margin: 0 0 8px;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--promo-soft);
  color: var(--promo-strong);
  font-size: 13.5px;
  font-weight: 700;
}

/* 产品首页「价格」一栏 */
.lp-plans-title .promo-pill {
  margin-left: 6px;
  vertical-align: 2px;
}

.lp-plans li.is-promo {
  position: relative;
  border-color: var(--promo-border);
  background: var(--promo-soft);
}

.lp-plans li .promo-chip {
  position: absolute;
  top: -9px;
  right: -4px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--promo);
  color: var(--promo-on);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.6;
}

.lp-plans li .plan-price {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 6px;
}

.lp-plans li .plan-price b {
  color: var(--promo);
  font-size: 15px;
}

.lp-plans li .plan-price s {
  color: var(--muted);
}

/* 产品首页主视觉里的一行促销 */
.lp-promo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--promo-border);
  border-radius: 999px;
  background: var(--promo-soft);
  color: var(--promo-strong);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.lp-promo:hover {
  border-color: var(--promo);
}

.lp-promo-go {
  transition: transform 0.15s;
}

.lp-promo:hover .lp-promo-go {
  transform: translateX(3px);
}

/* 个人首页「购买 / 续费」磁贴、账户页购买那一行 */
.tile-text .tile-promo {
  color: var(--promo-strong);
  font-weight: 600;
  word-break: keep-all;
}

.promo-text strong,
.lp-promo,
.promo-inline {
  word-break: keep-all;
}

.nobr {
  white-space: nowrap;
}

/* 不断行的小段要沿用外层文字的样式（不吃 .promo-text span、.tile-text span 的灰色小字） */
.promo-text .nobr,
.tile-text .nobr,
.promo-inline .nobr,
.lp-promo .nobr {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.promo-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--promo-strong);
  font-size: 14px;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .lp-promo-go,
  .lp-promo:hover .lp-promo-go {
    transition: none;
    transform: none;
  }
}
