/* =========================================================
   影随英语 · 设计系统
   纸感暖底 + 墨色 + 朱红；播放页切换为深色影棚
   ========================================================= */

:root {
  --paper: #f6f4ef;
  --paper-2: #efece4;
  --paper-3: #e9e5da;
  --ink: #16181d;
  --ink-soft: #454a54;
  --muted: #7d828c;
  --line: #e2ddd1;
  --line-strong: #cdc7b8;
  --accent: #d8482c;
  --accent-deep: #b23519;
  --accent-soft: #fbe8e1;
  --ok: #2f7d5c;
  --ok-soft: #e5f1ea;
  --warn: #b9821d;

  --dark: #0b0d10;
  --dark-1: #11141a;
  --dark-2: #171b22;
  --dark-3: #21262f;
  --dark-line: #2b313b;
  --dark-text: #eef0f3;
  --dark-muted: #8b93a1;

  --font-ui: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --font-display: "Fraunces", "Songti SC", Georgia, "Times New Roman", serif;
  --font-en: "Newsreader", Georgia, "Times New Roman", serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-1: 0 1px 2px rgba(22, 24, 29, 0.05), 0 8px 24px -16px rgba(22, 24, 29, 0.25);
  --shadow-2: 0 24px 60px -32px rgba(22, 24, 29, 0.45);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(22, 24, 29, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 55%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ----------------------------- 布局 ----------------------------- */

.view {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 68px);
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.wrap-narrow {
  max-width: 860px;
}

.section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  border-top: 0;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.spacer {
  flex: 1;
}

/* ----------------------------- 顶栏 ----------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 244, 239, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  right: 5px;
  bottom: 5px;
}

/* 品牌图版本：直接用品牌 logo，不再画字和圆点 */
.brand-mark.logo {
  background: none;
  padding: 0;
}

.brand-mark.logo::after {
  display: none;
}

.brand-mark.logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-name {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.brand-en {
  display: block;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--muted);
  font-weight: 500;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(22, 24, 29, 0.05);
  color: var(--ink);
}

.nav-link.active {
  color: var(--ink);
  background: rgba(22, 24, 29, 0.07);
  font-weight: 500;
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  flex: none;
}

.user-menu {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.16s var(--ease);
}

.user-btn:hover {
  border-color: var(--line-strong);
}

.user-name {
  font-size: 13px;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  padding: 6px;
  z-index: 50;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  background: none;
  border-radius: 9px;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  color: var(--ink-soft);
}

.dropdown-item:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.dropdown-sep {
  height: 1px;
  background: var(--line);
  margin: 5px 6px;
}

/* ----------------------------- 文字 ----------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.9vw, 47px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 600;
}

.h2 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 700;
}

.h3 {
  font-size: 19px;
  line-height: 1.35;
  margin: 0;
  font-weight: 600;
}

.lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.tiny {
  font-size: 12px;
}

.en {
  font-family: var(--font-en);
}

.accent {
  color: var(--accent);
}

/* ----------------------------- 按钮 ----------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.14s var(--ease), background 0.16s var(--ease),
    border-color 0.16s var(--ease), box-shadow 0.16s var(--ease), opacity 0.16s;
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(216, 72, 44, 0.8);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}

.btn-dark:hover {
  background: #000;
}

.btn-line {
  background: transparent;
  border-color: var(--line-strong);
}

.btn-line:hover {
  background: #fff;
  border-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
}

.btn-ghost:hover {
  background: rgba(22, 24, 29, 0.06);
  color: var(--ink);
}

.btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.btn-lg {
  height: 52px;
  padding: 0 30px;
  font-size: 15px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
}

.btn-block {
  width: 100%;
}

.link {
  color: var(--accent);
  border-bottom: 1px solid rgba(216, 72, 44, 0.35);
  cursor: pointer;
}

/* ----------------------------- 表单 ----------------------------- */

.field {
  display: block;
  margin-bottom: 16px;
}

.label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

.input,
.textarea,
.select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14.5px;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
  outline: none;
}

.textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
  line-height: 1.6;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(22, 24, 29, 0.07);
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.55;
}

.form-error {
  background: #fdeceb;
  color: #a3271a;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}

.switch input {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--line-strong);
  position: relative;
  cursor: pointer;
  transition: background 0.18s var(--ease);
  margin: 0;
}

.switch input::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.18s var(--ease);
}

.switch input:checked {
  background: var(--ok);
}

.switch input:checked::after {
  transform: translateX(16px);
}

/* ----------------------------- 卡片 / 标签 ----------------------------- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.card-pad {
  padding: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s var(--ease);
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--line-strong);
}

.chip.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

/* ----------------------------- 首页 ----------------------------- */

.hero {
  padding: 76px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: center;
}

.hero-title {
  margin: 20px 0 0;
}

.hero-art {
  position: relative;
}

.hero-title .mix {
  display: block;
  white-space: nowrap;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  margin: 22px 0 0;
  max-width: 460px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 26px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-meta .n {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.hero-meta .l {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 7px;
}

/* 首页产品示意 */
.mock {
  position: relative;
  border-radius: 20px;
  background: var(--dark-1);
  padding: 10px;
  box-shadow: 0 40px 80px -40px rgba(11, 13, 16, 0.65), 0 2px 0 rgba(255, 255, 255, 0.06) inset;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-stage {
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #2a3a4d 0%, #4a3b3a 48%, #6b4a3a 100%);
}

.mock-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.62) contrast(1.05) blur(1.2px);
  transform: scale(1.04);
}

.mock-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 30%, rgba(0, 0, 0, 0.9) 100%);
}

.mock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.mock-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s infinite;
}

.mock-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 52px 18px 16px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.88) 100%);
}

.mock-cap .cap-en {
  font-family: var(--font-en);
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.mock-cap .cap-zh {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
  margin-top: 3px;
}

.mock-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 10px 2px 2px;
}

.mock-seg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mock-seg .idx {
  font-size: 9.5px;
  color: var(--dark-muted);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
  min-width: 14px;
}

.mock-seg .txt {
  font-size: 11.5px;
  line-height: 1.45;
  color: #cfd5df;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mock-seg.hi {
  background: rgba(216, 72, 44, 0.16);
  border-color: rgba(216, 72, 44, 0.45);
}

.mock-seg.hi .txt {
  color: #fff;
}

.mock-seg.done .txt {
  color: #7d8697;
}

.float-card {
  position: absolute;
  right: -10px;
  bottom: -22px;
  z-index: 5;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  animation: bob 5s ease-in-out infinite;
}

.float-card b {
  display: block;
  font-size: 13px;
  color: var(--ink);
}

.float-wave {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 26px;
}

.float-wave span {
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  animation: wave 1.1s ease-in-out infinite;
}

.float-wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.float-wave span:nth-child(2) { height: 18px; animation-delay: 0.1s; }
.float-wave span:nth-child(3) { height: 12px; animation-delay: 0.2s; }
.float-wave span:nth-child(4) { height: 22px; animation-delay: 0.3s; }
.float-wave span:nth-child(5) { height: 10px; animation-delay: 0.4s; }
.float-wave span:nth-child(6) { height: 16px; animation-delay: 0.5s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.45); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* 章节头 */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 44px;
}

.sec-head .left {
  max-width: 560px;
}

.sec-head .h2 {
  margin-top: 14px;
}

.sec-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

/* 功能 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  padding: 26px 24px 28px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-1);
  border-color: var(--line-strong);
}

.feature-num {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 34px;
}

.feature h3 {
  margin: 0 0 9px;
  font-size: 17px;
  font-weight: 600;
}

.feature p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.feature .kbd {
  margin-top: 16px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* 流程 */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  padding: 28px 24px 30px 0;
  border-right: 1px solid var(--line);
  position: relative;
}

.step:last-child {
  border-right: 0;
}

.step-n {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  color: var(--line-strong);
  margin-bottom: 18px;
}

.step h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 价格 */
.pricing {
  background: var(--ink);
  color: var(--paper);
  border-radius: 26px;
  padding: 52px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  position: relative;
  overflow: hidden;
}

.pricing::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 72, 44, 0.5), transparent 65%);
  filter: blur(10px);
}

.pricing .eyebrow {
  color: rgba(246, 244, 239, 0.55);
}

.pricing .h2 {
  color: var(--paper);
  margin-top: 14px;
}

.pricing .lead {
  color: rgba(246, 244, 239, 0.66);
  font-size: 14.5px;
  margin-top: 16px;
}

.price-box {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(8px);
}

.price-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.price-now {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}

.price-now small {
  font-size: 17px;
  vertical-align: 15px;
  margin-right: 2px;
  letter-spacing: 0;
  color: rgba(246, 244, 239, 0.7);
}

.price-was {
  color: rgba(246, 244, 239, 0.45);
  text-decoration: line-through;
  font-size: 15px;
  padding-bottom: 8px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 24px;
  display: grid;
  gap: 10px;
}

.price-list li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(246, 244, 239, 0.82);
  line-height: 1.55;
}

.price-list svg {
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

.price-foot {
  font-size: 11.5px;
  color: rgba(246, 244, 239, 0.45);
  margin-top: 14px;
  text-align: center;
}

.contact-box {
  display: flex;
  gap: 18px;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
  border-radius: 14px;
  margin-top: 16px;
}

.qr {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  background: #fff;
  object-fit: cover;
  flex: none;
}

.qr-empty {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  line-height: 1.3;
  flex: none;
  padding: 6px;
}

/* 常见问题 */
.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
}

.faq-item h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.faq-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 页脚 */
.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

/* ----------------------------- 登录 ----------------------------- */

.auth {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-side {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-side::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 72, 44, 0.42), transparent 62%);
  bottom: -180px;
  left: -120px;
}

.auth-quote {
  position: relative;
  z-index: 2;
  max-width: 380px;
}

.auth-quote .q {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.auth-quote .a {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(246, 244, 239, 0.5);
}

.auth-side .brand {
  position: relative;
  z-index: 2;
  color: var(--paper);
}

.auth-side .brand-mark {
  background: rgba(255, 255, 255, 0.12);
}

.auth-side .brand-en {
  color: rgba(246, 244, 239, 0.45);
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}

.auth-card {
  width: 100%;
  max-width: 386px;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: var(--paper-2);
  border-radius: 999px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  height: 38px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.16s var(--ease);
}

.auth-tab.on {
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ----------------------------- 课程库 ----------------------------- */

.page-head {
  padding: 52px 0 30px;
}

.page-head .h2 {
  margin-top: 14px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 0 30px;
}

/* 游客试学提示条 */
.trial-bar {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(216, 72, 44, 0.07);
  border: 1px solid rgba(216, 72, 44, 0.18);
  color: #b03d22;
  font-size: 13px;
  font-weight: 500;
}

.trial-bar svg {
  vertical-align: -3px;
}

.trial-bar .tiny {
  color: #9a8f85;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.filters .search {
  position: relative;
  margin-left: auto;
}

.filters .search input {
  width: 230px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 14px 0 36px;
  font-size: 13.5px;
  outline: none;
}

.filters .search input:focus {
  border-color: var(--ink);
}

.filters .search svg {
  position: absolute;
  left: 12px;
  top: 11px;
  color: var(--muted);
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-bottom: 80px;
}

.lesson-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.lesson-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-1);
  border-color: var(--line-strong);
}

.poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #2f3646, #50413c);
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.lesson-card:hover .poster img {
  transform: scale(1.04);
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55));
}

.badge-dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

.badge-level {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-lock {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: rgba(11, 13, 16, 0.55);
  backdrop-filter: blur(2px);
  color: #fff;
  font-size: 12px;
  gap: 6px;
}

.badge-lock span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 0, 0, 0.5);
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.lesson-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.lesson-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.lesson-sub {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.lesson-meta {
  display: flex;
  gap: 10px;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.bar {
  height: 3px;
  border-radius: 3px;
  background: var(--paper-3);
  overflow: hidden;
  margin-top: 4px;
}

.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s var(--ease);
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: var(--muted);
  font-size: 14px;
}

/* ----------------------------- 播放器 ----------------------------- */

body[data-route="lesson"] {
  background: var(--dark);
  color: var(--dark-text);
}

body[data-route="lesson"]::before {
  display: none;
}

body[data-route="lesson"] .topbar {
  background: rgba(11, 13, 16, 0.82);
  border-bottom-color: var(--dark-line);
}

body[data-route="lesson"] .brand-name,
body[data-route="lesson"] .brand-mark {
  color: var(--dark-text);
}

body[data-route="lesson"] .brand-mark {
  background: var(--dark-3);
}

body[data-route="lesson"] .brand-en {
  color: var(--dark-muted);
}

body[data-route="lesson"] .nav-link {
  color: var(--dark-muted);
}

body[data-route="lesson"] .nav-link:hover,
body[data-route="lesson"] .nav-link.active {
  color: var(--dark-text);
  background: rgba(255, 255, 255, 0.07);
}

body[data-route="lesson"] .user-btn {
  background: var(--dark-2);
  border-color: var(--dark-line);
  color: var(--dark-text);
}

body[data-route="lesson"] .user-name {
  color: var(--dark-text);
}

.lesson-area {
  padding: 26px 0 70px;
}

.lesson-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--dark-line);
  color: var(--dark-muted);
  font-size: 12.5px;
  transition: all 0.16s var(--ease);
  flex: none;
}

.back:hover {
  color: #fff;
  border-color: #4a525f;
}

.lesson-h .h3 {
  color: #fff;
  font-size: 20px;
}

.lesson-h .meta {
  font-size: 12px;
  color: var(--dark-muted);
  margin-top: 5px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lesson-tools {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.player-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(330px, 0.98fr);
  gap: 26px;
  align-items: start;
}

/* 视频舞台 */
.stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--dark-line);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}

.stage iframe,
.stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.stage-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 40px 24px 20px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
  pointer-events: none;
  transition: opacity 0.2s;
}

.stage-caption .c-en {
  font-family: var(--font-en);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.stage-caption .c-zh {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
  margin-top: 5px;
}

.stage-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, #1d2430, #0a0c0f 70%);
  text-align: center;
  padding: 30px;
}

.stage-placeholder .ttl {
  font-family: var(--font-display);
  font-size: 26px;
  color: rgba(255, 255, 255, 0.9);
}

.stage-placeholder .sub {
  font-size: 13px;
  color: var(--dark-muted);
  margin-top: 10px;
  max-width: 420px;
  line-height: 1.7;
}

/* 播放控制 */
.transport {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: 14px;
  flex-wrap: wrap;
}

.t-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  min-width: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: #c9cfd9;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  white-space: nowrap;
}

.t-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.t-btn.on {
  background: rgba(216, 72, 44, 0.16);
  border-color: rgba(216, 72, 44, 0.42);
  color: #ff9c85;
}

.t-main {
  width: 52px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
}

.t-main:hover {
  background: #e3583a;
  background: var(--accent-deep);
}

.t-sep {
  width: 1px;
  height: 24px;
  background: var(--dark-line);
  margin: 0 3px;
}

.t-speed {
  font-variant-numeric: tabular-nums;
  min-width: 60px;
}

.t-time {
  margin-left: auto;
  font-size: 12px;
  color: var(--dark-muted);
  font-variant-numeric: tabular-nums;
  padding-right: 4px;
}

/* 当前句练习卡 */
.practice {
  margin-top: 16px;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: 16px;
  padding: 24px 26px 22px;
}

.p-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.p-head .idx {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.p-head .lbl {
  font-size: 11.5px;
  color: var(--dark-muted);
  letter-spacing: 0.08em;
}

.sentence-en {
  font-family: var(--font-en);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4;
  color: #fff;
  letter-spacing: 0.005em;
  margin: 0;
  transition: filter 0.2s;
}

.sentence-en.blurred {
  filter: blur(9px);
  user-select: none;
}

.sentence-zh {
  font-size: 14px;
  color: var(--dark-muted);
  margin: 10px 0 0;
  line-height: 1.6;
}

.p-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.p-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--dark-line);
  color: #d6dbe3;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.p-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.p-btn.rec {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.p-btn.rec:hover {
  background: var(--accent-deep);
}

.p-btn.rec.on {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}

/* 录音旁边的「下一句」：不抢主按钮，但要一眼能点到 */
.p-btn.next {
  border-color: rgba(216, 72, 44, 0.5);
  color: #ffc0b1;
  font-weight: 500;
}

.p-btn.next:hover {
  background: rgba(216, 72, 44, 0.22);
  border-color: rgba(216, 72, 44, 0.8);
  color: #fff;
}

/* 收藏等次要按钮单独占一行，避免只剩一个按钮掉到第二行 */
.p-actions-sub {
  display: flex;
  gap: 8px;
  flex-basis: 100%;
}

.p-btn.done {
  background: rgba(47, 125, 92, 0.18);
  border-color: rgba(47, 125, 92, 0.5);
  color: #7fd6ac;
}

.p-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.rec-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--dark-line);
}

.meter {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 34px;
  flex: 1;
  min-width: 0;
}

.meter span {
  flex: 1;
  min-width: 2px;
  max-width: 6px;
  height: 20%;
  border-radius: 2px;
  background: #3a4250;
  transition: height 0.08s linear, background 0.15s;
}

.meter.live span {
  background: var(--accent);
}

.rec-time {
  font-size: 12px;
  color: var(--dark-muted);
  font-variant-numeric: tabular-nums;
  min-width: 46px;
  text-align: right;
}

.rec-hint {
  font-size: 12px;
  color: var(--dark-muted);
  line-height: 1.5;
}


/* 字幕面板 */
.transcript {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 220px);
  min-height: 420px;
  position: sticky;
  top: 88px;
}

.tr-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--dark-line);
  flex: none;
}

.tr-head .ttl {
  font-size: 12px;
  color: var(--dark-muted);
  letter-spacing: 0.08em;
  margin-right: auto;
}

.mode {
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--dark-muted);
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.mode:hover {
  color: #fff;
}

.mode.on {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.tr-list {
  overflow-y: auto;
  padding: 8px 8px 20px;
  scrollbar-width: thin;
  scrollbar-color: #333b47 transparent;
}

.tr-list::-webkit-scrollbar {
  width: 6px;
}

.tr-list::-webkit-scrollbar-thumb {
  background: #2c333d;
  border-radius: 3px;
}

.seg {
  display: flex;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 9px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 0.14s var(--ease), border-color 0.14s;
}

.seg:hover {
  background: rgba(255, 255, 255, 0.04);
}

.seg-num {
  font-size: 10px;
  color: #59616e;
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
  min-width: 16px;
  flex: none;
}

.seg-body {
  min-width: 0;
}

.seg-en {
  font-size: 14px;
  line-height: 1.55;
  color: #b9c0cc;
  word-break: break-word;
}

.seg-zh {
  font-size: 12px;
  color: #6f7787;
  line-height: 1.5;
  margin-top: 2px;
}

.seg.active {
  background: rgba(216, 72, 44, 0.13);
  border-left-color: var(--accent);
}

.seg.active .seg-en {
  color: #fff;
}

.seg.active .seg-zh {
  color: #d3a396;
}

.seg.done .seg-en::after {
  content: "✓";
  margin-left: 6px;
  color: #4f9d78;
  font-size: 11px;
}

.seg.hidden .seg-en,
.seg.hidden .seg-zh {
  color: #454d5b;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  filter: blur(3.5px);
  user-select: none;
}

.tr-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--dark-line);
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.tr-foot .lbl {
  font-size: 11.5px;
  color: var(--dark-muted);
  white-space: nowrap;
}

.tr-bar {
  flex: 1;
  height: 4px;
  background: var(--dark-3);
  border-radius: 3px;
  overflow: hidden;
}

.tr-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s var(--ease);
}

/* ----------------------------- 我的学习 ----------------------------- */

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
}

.kpi-num {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.kpi-lab {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

.me-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 80px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-head h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
}

.heat {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 5px;
}

.heat-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--paper-3);
  transition: transform 0.15s var(--ease);
}

.heat-cell[data-l="1"] { background: #f3cfc6; }
.heat-cell[data-l="2"] { background: #e79a86; }
.heat-cell[data-l="3"] { background: var(--accent); }
.heat-cell[data-l="4"] { background: var(--accent-deep); }

.vocab-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.vocab-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.vocab-en {
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.5;
}

.vocab-zh {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.55;
}

.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
  transition: all 0.15s;
}

.icon-btn:hover {
  background: var(--paper-2);
  color: var(--accent);
}

.lesson-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.lesson-row:last-child {
  border-bottom: 0;
}

.lesson-row:hover .lr-title {
  color: var(--accent);
}

.lr-thumb {
  width: 76px;
  height: 46px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--paper-3);
  flex: none;
}

.lr-title {
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.lr-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
}

/* ----------------------------- 后台 ----------------------------- */

.admin-area {
  padding: 40px 0 80px;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  overflow-x: auto;
}

.admin-tab {
  padding: 12px 18px;
  border: 0;
  background: none;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}

.admin-tab.on {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 500;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table th {
  text-align: left;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.table tr:hover td {
  background: #fbfaf6;
}

.table .t-actions {
  text-align: right;
  white-space: nowrap;
}

.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  background: var(--paper-2);
  color: var(--ink-soft);
}

.pill.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.pill.off {
  background: #fdeceb;
  color: #a3271a;
}

.pill.gold {
  background: #f8f0da;
  color: #8a6416;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.code-item {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--paper-2);
  border: 1px dashed var(--line-strong);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

/* ----------------------------- 提示 / 弹窗 ----------------------------- */

.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: var(--ink);
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  box-shadow: var(--shadow-2);
  animation: toastIn 0.24s var(--ease);
  max-width: 86vw;
  text-align: center;
}

.toast.err {
  background: #a3271a;
}

.toast.ok {
  background: var(--ok);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(11, 13, 16, 0.55);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow-2);
  animation: toastIn 0.2s var(--ease);
}

.modal.wide {
  max-width: 1080px;
}

.modal.mid {
  max-width: 760px;
}

/* 逐句校对 */
.seg-editor {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  max-height: 58vh;
}

.seg-head,
.seg-row {
  display: grid;
  grid-template-columns: 40px 78px 78px minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 6px 12px;
}

.seg-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-top: 9px;
  padding-bottom: 9px;
}

.seg-row {
  border-bottom: 1px solid var(--line);
}

.seg-row:last-child {
  border-bottom: 0;
}

.seg-row .seg-n {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.seg-row .input {
  height: 32px;
  font-size: 13px;
  padding: 0 8px;
}

.seg-row .input[data-f="en"] {
  font-family: var(--font-en);
  font-size: 14px;
}

.modal h3 {
  margin: 0 0 18px;
  font-size: 17px;
}

/* 加载 */
.loading {
  display: grid;
  place-items: center;
  padding: 100px 0;
  color: var(--muted);
  font-size: 13px;
}

.spin {
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ----------------------------- 补充状态 ----------------------------- */

[hidden] {
  display: none !important;
}

.tr-list {
  position: relative;
}

.p-btn.on {
  background: rgba(216, 72, 44, 0.18);
  border-color: rgba(216, 72, 44, 0.5);
  color: #ffb9a9;
}

.sentence-en {
  cursor: default;
}

.sentence-en.blurred {
  cursor: pointer;
}

.poster img[style*="display: none"] + .badge-level {
  color: #fff;
}

.lesson-card .poster {
  position: relative;
}

/* ----------------------------- 响应式 ----------------------------- */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .hero {
    padding: 48px 0 60px;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .flow {
    grid-template-columns: 1fr 1fr;
  }
  .step {
    border-bottom: 1px solid var(--line);
  }
  .step:nth-child(2n) {
    border-right: 0;
  }
  .lesson-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pricing {
    grid-template-columns: 1fr;
    padding: 38px;
    gap: 32px;
  }
  .player-grid {
    grid-template-columns: 1fr;
  }
  .transcript {
    position: static;
    height: 420px;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-side {
    display: none;
  }
  .me-grid {
    grid-template-columns: 1fr;
  }
  .stat-row,
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {  .wrap {
    padding: 0 18px;
  }
  .topbar-inner {
    padding: 0 18px;
    gap: 12px;
    height: 60px;
  }
  .nav {
    display: none;
  }
  .brand-en {
    display: none;
  }
  .section {
    padding: 58px 0;
  }
  .hero-meta {
    gap: 18px;
    flex-wrap: wrap;
  }
  .feature-grid,
  .flow,
  .lesson-grid,
  .row-2,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .step {
    border-right: 0;
    padding-right: 0;
  }
  .faq-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .pricing {
    padding: 26px;
    border-radius: 20px;
  }
  .price-now {
    font-size: 42px;
  }
  .lesson-area {
    padding: 16px 0 50px;
  }
  .lesson-top {
    flex-wrap: wrap;
    gap: 12px;
  }
  .lesson-tools {
    margin-left: 0;
    width: 100%;
  }
  .practice {
    padding: 18px;
  }
  .sentence-en {
    font-size: 21px;
  }
  .transport {
    padding: 8px;
    gap: 4px;
  }
  .t-btn {
    padding: 0 9px;
    font-size: 12px;
  }
  .t-time {
    width: 100%;
    text-align: right;
    margin: 2px 0 0;
  }
  .kpis,
  .stat-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .float-card {
    display: none;
  }
  .mock-panel {
    grid-template-columns: 1fr;
  }
  .mock-seg:nth-child(n + 3) {
    display: none;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ----------------------------- 品牌 logo 兜底 -----------------------------
   logo 是透明圆角图，任何主题下都不要再给它铺底色 */
.auth-side .brand-mark.logo,
body[data-route="lesson"] .brand-mark.logo {
  background: none;
}

/* ----------------------------- 美音 / 英音 部落 ----------------------------- */

.club-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.club-card {
  position: relative;
  display: block;
  height: 520px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 22px 48px rgba(22, 24, 29, 0.14);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.club-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(22, 24, 29, 0.2);
}

.club-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.7s var(--ease);
}

.club-card:hover img {
  transform: scale(1.035);
}

.club-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 14, 0) 34%,
    rgba(8, 10, 14, 0.42) 58%,
    rgba(8, 10, 14, 0.86) 82%,
    rgba(8, 10, 14, 0.94) 100%
  );
}

.club-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 28px 26px;
  color: #fff;
}

.club-days {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
}

.club-card.us .club-days {
  background: rgba(216, 72, 44, 0.9);
  border-color: rgba(255, 255, 255, 0.22);
}

.club-card.uk .club-days {
  background: rgba(198, 162, 96, 0.22);
  border-color: rgba(226, 195, 138, 0.55);
  color: #f2dcb4;
}

.club-body h3 {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 14px 0 8px;
}

.club-body p {
  margin: 0;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.76);
}

.club-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: #ffc0b1;
}

.club-card.uk .club-cta {
  color: #f2dcb4;
}

.club-card:hover .club-cta {
  gap: 10px;
}

.club-note {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .club-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .club-card {
    height: 420px;
  }

  .club-body {
    padding: 22px 20px 20px;
  }

  .club-body h3 {
    font-size: 26px;
  }
}

/* 口音筛选：分组之间用小间隔，不要被 .spacer 撑开 */
.filters .spacer {
  flex: 0 0 auto;
  width: 14px;
}

.accent-tag {
  background: rgba(216, 72, 44, 0.1);
  color: var(--accent);
  border-color: rgba(216, 72, 44, 0.24);
}

/* ============ v0.6.0 跟读页改版：单栏 + 重点词 + 盲听 ============ */
.stage-wrap { max-width: 1180px; }

/* 本地视频：不再固定 16:9，按视频自身比例完整显示，最高 68vh */
.stage.has-video {
  aspect-ratio: auto;
  width: fit-content;
  margin: 0 auto;
  max-height: 44vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.stage.has-video video {
  position: static;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 44vh;
  object-fit: contain;
  display: block;
}

/* 当前句 */
.practice { max-width: 1180px; }
.p-head .kw-tip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--dark-muted);
  padding: 4px 9px;
  border: 1px dashed var(--dark-line);
  border-radius: 999px;
  margin-right: 8px;
}
.sentence-en { max-width: 24em; }
.kw {
  color: #ffd0a8;
  border-bottom: 1.5px dotted rgba(255, 208, 168, 0.55);
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
  border-radius: 3px;
  padding: 0 1px;
}
.kw:hover { background: rgba(216, 72, 44, 0.22); color: #fff; }
.sentence-zh { font-size: 15px; color: #b9c0cc; }
.sentence-zh.zh-empty { font-size: 12.5px; color: #6c7482; font-style: italic; }

.p-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--dark-line);
}
.p-foot .lbl { font-size: 11.5px; color: var(--dark-muted); white-space: nowrap; }
.p-foot .tr-bar { flex: 1; height: 4px; background: #2a313c; border-radius: 999px; overflow: hidden; }
.p-foot .tr-bar i { display: block; height: 100%; background: var(--accent); transition: width 0.3s; }

/* 盲听：字幕遮住，但仍可看到版面位置 */
.practice.is-blind .sentence-en,
.practice.is-blind .sentence-zh {
  filter: blur(11px);
  user-select: none;
}
.practice.is-blind .sentence-en { color: #6b7280; }

.blind-bar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(216, 72, 44, 0.1);
  border: 1px solid rgba(216, 72, 44, 0.32);
  color: #ffb4a1;
  font-size: 13px;
}
.blind-bar span { display: inline-flex; align-items: center; gap: 7px; }
.blind-bar .t-btn { margin-left: auto; }

/* 单词卡 */
.word-pop {
  position: fixed;
  z-index: 90;
  width: 348px;
  max-width: calc(100vw - 24px);
  max-height: 46vh;
  overflow: auto;
  padding: 16px 18px 18px;
  border-radius: 14px;
  background: #171c24;
  border: 1px solid #2c3441;
  box-shadow: 0 28px 70px -28px rgba(0, 0, 0, 0.9);
  color: #e7ebf2;
  font-size: 13px;
}
.wp-loading { color: var(--dark-muted); }
.wp-head { display: flex; align-items: flex-start; gap: 10px; }
.wp-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.wp-word {
  font-family: var(--font-en);
  font-size: 22px;
  color: #fff;
  letter-spacing: 0.01em;
}
.wp-ph { font-size: 12px; color: #8b93a1; }
.wp-x {
  margin-left: auto;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: transparent;
  border: 1px solid transparent;
  color: #8b93a1;
  cursor: pointer;
}
.wp-x:hover { background: rgba(255,255,255,.08); color: #fff; }
.wp-tools { display: flex; gap: 8px; margin-top: 10px; }
.wp-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid #2c3441;
  color: #d6dbe3;
  font-size: 12px;
  cursor: pointer;
}
.wp-btn:hover { background: rgba(255,255,255,.12); color:#fff; }
.wp-btn.save.on { background: rgba(47,125,92,.2); border-color: rgba(47,125,92,.55); color: #7fd6ac; }
.wp-zh { margin-top: 12px; line-height: 1.75; color: #f0f3f8; }
.wp-zh.mutated { color: #8b93a1; }
.wp-en { margin-top: 8px; font-size: 12px; color: #8b93a1; line-height: 1.65; }
.wp-ex { margin-top: 14px; border-top: 1px dashed #2c3441; padding-top: 12px; }
.wp-ex-t { font-size: 11px; letter-spacing: .1em; color: #7f8794; margin-bottom: 8px; }
.wp-ex-item + .wp-ex-item { margin-top: 10px; }
.ex-en { font-family: var(--font-en); font-size: 13px; color: #dfe4ec; line-height: 1.55; }
.ex-zh { font-size: 12px; color: #8b93a1; margin-top: 3px; }
.ex-src { font-size: 11px; color: #6a7280; margin-top: 4px; }

@media (max-width: 760px) {
  .stage.has-video video { max-height: 42vh; }
  .word-pop { width: calc(100vw - 24px); }
  .p-head .kw-tip { display: none; }
}




.lesson-top { margin-bottom: 12px; }
.practice .sentence-en { font-size: clamp(20px, 2.15vw, 27px); }
/* 舞台高度由视频定，宽度跟着走，避免出现左右黑边 */
.stage.has-video { width: fit-content; max-width: 100%; }
.stage.has-video video { height: 44vh; width: auto; max-width: 100%; max-height: 44vh; }
@media (max-width: 760px) {
  .stage.has-video video { height: 32vh; max-height: 32vh; }
}
/* 单栏阅读宽度收窄，视频居中更好看 */
.lesson-area { max-width: 960px; margin: 0 auto; }
