/* ============================================================
   万词百篇 · 青焰欣华出品
   Global Stylesheet
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary:       #4A7FA5;
  --primary-dark:  #2F5F80;
  --primary-light: #E8F2F8;
  --green-hl:      #B8F0A0;
  --yellow-hl:     #FFE066;
  /* Rotating highlight colours for single words (.wg) */
  --hl-1:          #FFF176;
  --hl-2:          #B9F6CA;
  --hl-3:          #B3E5FC;
  --hl-4:          #E1BEE7;
  --hl-5:          #FFCDD2;
  --bg:            #F4F7F9;
  --bg-card:       #FFFFFF;
  --text:          #2C3E50;
  --text-num:      #042c0f;
  --text-muted:    #607080;
  --text-notice:   #4A7FA5;
  --text-light:    #95A5B5;
  --border:        #D8E4ED;
  --shadow-sm:     0 1px 4px rgba(74,127,165,.07);
  --shadow-md:     0 4px 16px rgba(74,127,165,.13);
  --radius:        8px;
  --radius-lg:     14px;
  --font-sans:     'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
                   'Segoe UI', Arial, sans-serif;
  --font-mono:     'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --nav-h:         58px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ── Navigation Bar ─────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.navbar-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.navbar-brand::before {
  content: '';
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  background: url('../images/logo-108.png') center / contain no-repeat;
  border-radius: 8px;
}
.navbar-brand .logo-zh {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
}
.navbar-brand .logo-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.navbar-nav a {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: background .18s, color .18s;
}
.navbar-nav a:hover,
.navbar-nav a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.btn-nav-cta {
  padding: 7px 18px !important;
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 20px !important;
  font-weight: 600;
  transition: background .18s !important;
}
.btn-nav-cta:hover { background: var(--primary-dark) !important; }

.navbar-nav .nav-account {
  margin-left: 4px;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.navbar-nav .nav-account-login {
  padding: 5px 16px;
  font-weight: 600;
}
.navbar-nav .nav-account-profile {
  max-width: 150px;
  padding: 3px 10px 3px 4px;
  gap: 7px;
  font: inherit;
  cursor: pointer;
}
.navbar-nav .nav-account-profile:hover,
.navbar-nav .nav-account-profile[aria-expanded="true"] {
  background: var(--primary-light);
  color: var(--primary);
}
.nav-account-avatar {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary-light);
}
.nav-account-avatar-fallback {
  position: relative;
  overflow: hidden;
}
.nav-account-avatar-fallback::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.nav-account-avatar-fallback::after {
  content: '';
  position: absolute;
  left: 5px;
  bottom: 3px;
  width: 16px;
  height: 9px;
  border-radius: 9px 9px 5px 5px;
  background: var(--primary);
}
.nav-account-name {
  min-width: 0;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-account-popover {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 110;
  width: 128px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.nav-account-popover[hidden] {
  display: none;
}
.navbar-nav .nav-account-action {
  width: 100%;
  margin-top: 4px;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  display: block;
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}
.navbar-nav .nav-account-action:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.navbar-nav .nav-account-logout {
  color: #8b4a4a;
}
.navbar-nav .nav-account-logout:disabled {
  cursor: wait;
  opacity: .65;
}

/* button 元素版（朗读按钮）*/
button.btn-nav-cta {
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
button.btn-nav-cta:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  text-align: center;
  border-bottom: 1px solid var(--border);
}

/* Upper: image background */
.hero-upper {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(235, 244, 252, 0.18);
}

.hero-upper-body {
  position: relative;
  z-index: 1;
  padding: 56px 24px 40px;
  text-align: center;
}

/* Glass card — wraps all text content for readability over the photo */
.hero-upper-body .hero-glass {
  display: inline-block;
  width: 100%;
  max-width: 580px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 20px;
  padding: 40px 40px 36px;
  box-shadow: 0 4px 32px rgba(74,127,165,0.12);
  /* fade out toward bottom-left */
  -webkit-mask-image: radial-gradient(
    ellipse 130% 130% at 85% 5%,
    rgba(0,0,0,1)   60%,
    rgba(0,0,0,0.7) 75%,
    rgba(0,0,0,0.2) 95%,
    rgba(0,0,0,0)   100%
  );
  mask-image: radial-gradient(
    ellipse 130% 130% at 85% 5%,
    rgba(0,0,0,1)   60%,
    rgba(0,0,0,0.7) 75%,
    rgba(0,0,0,0.2) 95%,
    rgba(0,0,0,0)   100%
  );
}

.hero-upper-body .hero-tag,
.hero-upper-body h1,
.hero-upper-body .hero-subtitle,
.hero-upper-body .hero-mood-quote {
  margin-left: auto;
  margin-right: auto;
}

.hero-upper-body .progress-block {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

/* Lower: plain background */
.hero-lower {
  background: var(--bg);
  padding: 36px 24px 48px;
}

.hero-tag {
  display: inline-block;
  background: rgba(74,127,165,0.12);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #1a2c3d;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #2C3E50;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.8;
}

/* ── Hero quote line ────────────────────────────────────────── */
.hero-mood-quote {
  display: none; /* moved to hero-img-quote */
}

/* Overlaid quote — absolute on the left side of the photo */
.hero-img-quote {
  position: absolute;
  left: 4%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e3a50;
  line-height: 2.2;
  letter-spacing: 0.22em;
  text-shadow:
    0 0 6px rgba(255,255,255,1),
    0 0 12px rgba(255,255,255,0.95),
    0 0 24px rgba(255,255,255,0.8),
    0 0 40px rgba(255,255,255,0.5);
  pointer-events: none;
  border-left: 2px solid rgba(30, 58, 80, 0.35);
  padding-left: 12px;
}

/* ── Progress Bar ───────────────────────────────────────────── */
.progress-block {
  max-width: 560px;
  margin: 0 auto 40px;
  text-align: left;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.progress-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2C3E50;
}
.progress-stats {
  font-size: 0.84rem;
  color: #4a6070;
  font-weight: 500;
}
.progress-stats strong {
  color: var(--primary-dark);
  font-size: 1.05rem;
  font-weight: 700;
}

.progress-bar-wrap {
  background: rgba(74,127,165,0.15);
  border-radius: 99px;
  height: 10px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
  transition: width 1s cubic-bezier(.4,0,.2,1);
}

.progress-milestone {
  font-size: 0.78rem;
  color: #607080;
  margin-top: 7px;
  text-align: right;
}

/* ── Book Cards (4 volumes) ─────────────────────────────────── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto 32px;
}

.book-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: 22px 18px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .18s;
  position: relative;
  overflow: hidden;
}
.book-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, #6FAECF 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.book-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.book-card .vol-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.book-card .vol-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.book-card .vol-range {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.book-card .vol-count {
  font-size: 0.8rem;
  color: var(--text-light);
}
.book-card .vol-count strong { color: var(--text); }

.book-card.starter-volume {
  border-color: #9bc9b9;
  background: linear-gradient(180deg, #f2fbf7 0%, #fff 100%);
}
.book-card.starter-volume::before {
  background: linear-gradient(90deg, #2f7d69, #6bb59d);
}
.book-card.starter-volume .vol-badge {
  color: #246454;
  background: #dff3eb;
}
.book-card.starter-volume .vol-title { color: #246454; }

.starter-catalog-entry { margin-bottom: 54px; }
.starter-catalog-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border: 1px solid #a8cfc1;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef9f5, #fff);
  box-shadow: 0 4px 14px rgba(47,125,105,.08);
}
.starter-catalog-label {
  display: inline-block;
  margin-bottom: 7px;
  padding: 2px 9px;
  color: #246454;
  background: #dff3eb;
  border-radius: 12px;
  font-size: .7rem;
  font-weight: 700;
}
.starter-catalog-banner strong { display: block; color: #28473e; }
.starter-catalog-banner p { color: #6c7f78; font-size: .82rem; margin-top: 5px; }
.starter-catalog-button {
  flex: 0 0 auto;
  padding: 9px 17px;
  color: #fff;
  background: #2f7d69;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
}

/* ── CTA Button ─────────────────────────────────────────────── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 14px 36px;
  border-radius: 99px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 18px rgba(74,127,165,.30);
  transition: background .18s, box-shadow .18s, transform .18s;
  cursor: pointer;
  border: none;
}
.btn-cta:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 24px rgba(74,127,165,.40);
  transform: translateY(-2px);
}

/* ── Feature Highlights ─────────────────────────────────────── */
.features {
  padding: 56px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.features h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 36px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-item {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.feature-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Contents Page ──────────────────────────────────────────── */
.contents-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.contents-page h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.contents-page .page-desc {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.vol-section { margin-bottom: 56px; }
.vol-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.vol-section-header .vol-num {
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 99px;
}
.vol-section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}
.vol-section-header .vol-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Article Grid ───────────────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 16px 14px 14px;
  transition: border-color .2s, box-shadow .2s, transform .18s;
  position: relative;
}

/* ── Article Card image background (done cards only) ───────── */
.article-card.done {
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 12px 12px;
  border-color: transparent;
  cursor: pointer;
}
.article-card.done:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.28);
  transform: translateY(-2px);
  border-color: transparent;
}
/* Overlay: transparent top, dark bottom — text readable, image visible */
.article-card.done::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.00) 0%,
    rgba(0,0,0,0.10) 40%,
    rgba(0,0,0,0.58) 100%
  );
  border-radius: inherit;
  z-index: 0;
}
.article-card.done > * {
  position: relative;
  z-index: 1;
}
.article-card.done .card-num   { color: var(--bg-card); font-size: 16px; font-weight: bolder; }
.article-card.done .card-en    { color: #fff; }
.article-card.done .card-zh    { color: rgba(255,255,255,0.80); }
.article-card.done .card-stars { color: #FFD54F; }
.article-card.done .card-tag   {
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.90);
}
.article-card.done .card-status-badge {
  background: rgba(76,175,80,0.85);
  color: #fff;
}

/* Pending */
.article-card.pending {
  opacity: 0.7;
  cursor: default;
}
.article-card.pending:hover {
  border-color: var(--border);
}

/* Locked (paid) — removed, no longer used */

.card-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.card-en {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
}
.card-zh {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.card-stars {
  font-size: 0.72rem;
  color: #F5A623;
  letter-spacing: -1px;
}
.card-tag {
  font-size: 0.68rem;
  background: #F0F0F0;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 99px;
}

/* done card num colour override — handled above in image-bg block */

.card-status-badge {
  display: inline-block;
  font-size: 0.66rem;
  padding: 2px 7px;
  border-radius: 99px;
  margin-bottom: 6px;
  font-weight: 600;
  width: fit-content;
}
.done .card-status-badge {
  background: #E8F5E9;
  color: #2E7D32;
}
.pending .card-status-badge {
  background: #F5F5F5;
  color: #999;
}
/* locked badge style removed */

/* placeholder cards */
.article-card.placeholder {
  opacity: 0.45;
  background: #F5F5F5;
}
.placeholder .card-en {
  color: var(--text-light);
  font-style: italic;
}

/* ── Article Illustration ───────────────────────────────── */
.article-illustration {
  position: relative;
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #F5F5F5;
  border: 1px dashed #BDBDBD;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-illustration img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}
.article-illustration .no-image-placeholder {
  display: none;
  color: #BDBDBD;
  font-size: 1rem;
  text-align: center;
  padding: 40px 24px;
  pointer-events: none;
}
.article-illustration.no-image img { display: none; }
.article-illustration.no-image .no-image-placeholder { display: block; }

/* ── Article Page ────────────────────────────────────────────── */
.article-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-light); }

/* Article Header */
.article-header {
  border: 2px dashed var(--primary);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  background: #fff;
}
.article-header .article-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.article-header h1 {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}
.article-header .title-zh {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Meta Row */
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding: 12px 16px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.article-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.meta-sep {
  color: var(--border);
  font-size: 1.1em;
}
.stars-color { color: #F5A623; }

/* Article Body */
.article-body {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}
.article-body p {
  line-height: 3.6em;
  margin-bottom: 1.8em;
  font-size: 1.05rem;
}

.article-intro {
  background: #fff;
  border: 1px solid rgba(74,127,165,0.18);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.article-intro h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.article-intro p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 14px;
}
.article-intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.article-tag-pill {
  background: rgba(74,127,165,0.08);
  color: var(--primary);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── Word Highlight Blocks ───────────────────────────────────── */
.w {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: baseline;
  cursor: default;
  position: relative;
  line-height: 1.3;
}

/* English word + inline Chinese gloss on the same line */
.w .en {
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

/* IPA shown below, centred under the word */
.w .note {
  font-size: 0.62em;
  color: #555;
  white-space: nowrap;
  line-height: 1.1;
  margin-top: 1px;
  pointer-events: none;
  text-align: center;
}

/* Green fallback (overridden per-element by JS rotation) */
.wg {
  background: var(--hl-1);
  border-radius: 3px;
  padding: 0 3px;
}

/* Yellow: phrases — fixed, never rotated */
.wy {
  background: var(--yellow-hl);
  border-radius: 3px;
  padding: 0 3px;
}

.w:hover { filter: brightness(0.90); }

/* ── Translation Section ────────────────────────────────────── */
.section-block {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .section-icon {
  color: var(--primary);
  font-size: 1.1em;
}

.translation-body p {
  font-size: 0.95rem;
  line-height: 2em;
  color: var(--text-muted);
  margin-bottom: 1em;
}

/* ── Fill-in-blank Exercises ────────────────────────────────── */
.exercise-list {
  counter-reset: exercise-counter;
}
.exercise-list li {
  counter-increment: exercise-counter;
  padding: 12px 14px 12px 44px;
  margin-bottom: 10px;
  background: #FAFAFA;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 2.2;
  position: relative;
}
.exercise-list li::before {
  content: counter(exercise-counter);
  position: absolute;
  left: 14px;
  top: 13px;
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.blank {
  display: inline-block;
  min-width: 80px;
  text-align: center;
  margin: 0 4px;
}

/* ── Fill-in-blank inputs ───────────────────────────────── */
.fill-input {
  display: inline-block;
  border: none;
  border-bottom: 2px solid #BDBDBD;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  padding: 0 4px 1px;
  min-width: 80px;
  width: auto;
  text-align: center;
  outline: none;
  transition: border-color .15s;
  vertical-align: baseline;
}
.fill-input:focus {
  border-bottom-color: var(--primary);
  background: var(--primary-light);
  border-radius: 3px 3px 0 0;
}
.fill-input.fill-correct {
  border-bottom-color: #4CAF50;
  background: #E8F5E9;
  border-radius: 3px 3px 0 0;
  color: #2E7D32;
  font-weight: 600;
}
.fill-input.fill-wrong {
  border-bottom-color: var(--primary);
  background: #FDECEA;
  border-radius: 3px 3px 0 0;
  color: var(--primary);
}
.blank-hint {
  font-size: 0.82em;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Hero quote line ────────────────────────────────────────── */
.hero-mood-quote {
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  color: var(--text-muted);
  letter-spacing: 0.07em;
  line-height: 1.9;
  margin-bottom: 32px;
  opacity: 0.9;
}



/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: #222;
  color: #aaa;
  text-align: center;
  padding: 36px 24px;
  font-size: 0.82rem;
  line-height: 1.9;
}
.footer .footer-brand {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}
.footer .footer-note,
.footer .footer-beian {
  margin-top: 8px;
}
.footer .footer-note {
  color: #ccc;
}
.footer .footer-beian a {
  color: #aaa;
}
.footer .footer-beian a:hover {
  color: #fff;
}
.footer a { color: #ccc; }
.footer a:hover { color: #fff; }

/* ── Article related resources ──────────────────────────────── */
.wechat-resource-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
}
.wechat-resource-copy { min-width: 0; }
.wechat-resource-title {
  color: #455a64;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.wechat-resource-copy p {
  color: #455a64;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}
.wechat-resource-qr {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}
.wechat-resource-qr-placeholder {
  box-sizing: border-box;
}

/* ── Extension privacy policy ───────────────────────────────── */
.extension-policy-page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 48px 24px 64px;
  color: #334957;
  line-height: 1.8;
}
.extension-policy-page h1 { margin: 0 0 8px; color: #203746; line-height: 1.35; }
.extension-policy-page h2 { margin: 30px 0 8px; color: #294858; font-size: 1.18rem; }
.extension-policy-page p { margin: 8px 0; }
.extension-policy-page a { color: #356e91; }
@media (max-width: 600px) {
  .extension-policy-page { padding: 32px 18px 48px; }
}

/* ── Purchase page ──────────────────────────────────────────── */
.purchase-page {
  min-height: calc(100vh - 180px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 64px 20px;
  background: #f4f7f9;
}
.purchase-card {
  width: min(100%, 780px);
  padding: 36px;
  border: 1px solid #d8e4ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(44, 62, 80, 0.08);
  text-align: center;
}
.purchase-kicker {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.purchase-card h1 { margin: 10px 0 12px; }
.purchase-description {
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}
.purchase-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 4px;
}
.purchase-plan {
  min-height: 154px;
  padding: 16px;
  text-align: left;
  border: 1px solid #d9e5ec;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
}
.purchase-plan:hover,
.purchase-plan.selected {
  border-color: #4A7FA5;
  box-shadow: 0 0 0 2px rgba(74, 127, 165, .12);
}
.purchase-plan.recommended {
  background: #f7fbf8;
  border-color: #9cccb3;
}
.purchase-plan:disabled {
  cursor: default;
  opacity: .72;
  background: #f5f8fa;
}
.purchase-plan-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef5f9;
  color: #4A7FA5;
  font-size: .72rem;
  font-weight: 700;
}
.purchase-plan strong,
.purchase-plan small {
  display: block;
}
.purchase-plan strong { color: #1f3140; font-size: 1rem; }
.purchase-plan-price {
  display: block;
  margin: 8px 0;
  color: #D97706;
  font-size: 1.35rem;
  font-weight: 800;
}
.purchase-plan-discount {
  display: block;
  margin: -4px 0 8px;
  color: #2E7D32;
  font-size: .75rem;
  font-weight: 700;
}
.purchase-plan small {
  color: #657887;
  line-height: 1.5;
  font-size: .78rem;
}
.purchase-price {
  color: #263746;
  font-size: 2rem;
  font-weight: 800;
  margin-top: 24px;
}
.purchase-status {
  color: #607080;
  font-size: 0.9rem;
  margin: 12px 0 18px;
}
.purchase-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.purchase-notes {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e6edf2;
  color: #7a8994;
  font-size: .78rem;
  line-height: 1.65;
  text-align: left;
}
.purchase-notes p { margin: 3px 0; }

/* ── Extension connection and personal library ─────────────── */
.extension-connect-page,
.library-page {
  min-height: calc(100vh - 80px);
  padding: 56px 20px;
  background: #f4f7f9;
}
.extension-connect-card {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 36px;
  border: 1px solid #d8e4ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(44, 62, 80, .08);
  text-align: center;
}
.extension-connect-card p { color: #607080; line-height: 1.75; }
.extension-connect-card small { display: block; margin-top: 18px; color: #82909a; line-height: 1.6; }
.library-page { max-width: none; }
.library-header { width: min(100%, 1080px); margin: 0 auto 28px; }
.library-header h1 { margin: 8px 0; color: #203343; }
.library-header p, .library-status { color: #687985; }
.library-status { width: min(100%, 1080px); margin: 0 auto 18px; }
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  width: min(100%, 1080px);
  margin: 0 auto;
}
.library-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 20px;
  border: 1px solid #dbe5eb;
  border-radius: 10px;
  background: #fff;
}
.library-card-title { color: #203343; font-size: 1.06rem; font-weight: 800; line-height: 1.45; text-decoration: none; }
.library-card-source { margin-top: 5px; color: #4A7FA5; font-size: .78rem; }
.library-card p { color: #687985; font-size: .86rem; line-height: 1.65; }
.library-card p mark { padding: 1px 2px; border-radius: 2px; background: #fff0a8; color: inherit; }
.library-card-note { margin: 0 0 13px; padding: 9px 10px; border-left: 3px solid #9abdd1; background: #f5f9fb; color: #5f7480; font-size: .78rem; line-height: 1.55; }
.library-word-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 14px; }
.library-word-tags span { padding: 3px 8px; border-radius: 999px; background: #eef5f9; color: #3e6f91; font-size: .72rem; }
.library-remove { align-self: flex-start; border: 0; background: transparent; color: #9b5a52; cursor: pointer; }
.library-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 20px;
  width: min(100%, 1180px);
  margin: 0 auto;
  align-items: start;
}
.library-list {
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  border: 1px solid #d8e4ed;
  border-radius: 12px;
  background: #fff;
}
.library-list-item {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #edf2f5;
  background: transparent;
  color: #2c3e50;
  text-align: left;
  cursor: pointer;
}
.library-list-item:last-child { border-bottom: 0; }
.library-list-item:hover { background: #f5f9fb; }
.library-list-item.active { background: #e8f2f8; box-shadow: inset 3px 0 #4a7fa5; }
.library-list-item strong,
.library-list-item span { display: block; }
.library-list-item strong { font-size: .9rem; line-height: 1.45; }
.library-list-item span { margin-top: 4px; color: #7a8c98; font-size: .72rem; }
.library-reader {
  padding: 28px 32px;
  border: 1px solid #d8e4ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(74,127,165,.08);
}
.library-reader-header {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #e7eef2;
}
.library-reader-header h2 { margin: 0; color: #203746; font-size: 1.45rem; line-height: 1.4; }
.library-reader-source { margin-top: 5px; color: #78909e; font-size: .78rem; }
.library-reader-actions { display: flex; flex: 0 0 auto; gap: 8px; align-items: flex-start; }
.library-reader-actions a,
.library-reader-actions button {
  padding: 7px 10px;
  border: 1px solid #cbd9e1;
  border-radius: 7px;
  background: #fff;
  color: #426f8b;
  font: inherit;
  font-size: .76rem;
  text-decoration: none;
  cursor: pointer;
}
.library-reader-actions button { color: #9b5a52; }
.library-reader-note { margin: 16px 0; padding: 11px 13px; border-left: 3px solid #8eb8d0; background: #f4f9fb; color: #5e7380; font-size: .86rem; line-height: 1.6; }
.library-reader-key { margin: 16px 0; color: #788892; font-size: .75rem; }
.library-reader-key > span { display: inline-block; width: 10px; height: 10px; margin-right: 2px; border-radius: 2px; }
.library-reader-content { color: #2d414d; }
.library-reader-content p { margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: 1.03rem; line-height: 2; }
.library-annotation { display: inline-flex; flex-direction: column; align-items: center; margin: 0 1px; padding: 0 3px; border-radius: 3px; vertical-align: baseline; cursor: default; line-height: 1.25; }
.library-annotation-line { white-space: nowrap; }
.library-annotation-line > span { font-family: var(--font-sans); font-size: .7em; font-weight: 600; }
.library-annotation small { color: #52616a; font-family: var(--font-sans); font-size: .58em; line-height: 1.15; white-space: nowrap; }
@media (max-width: 760px) {
  .library-page { padding: 32px 14px; }
  .library-workspace { grid-template-columns: 1fr; }
  .library-list { position: static; display: flex; max-height: none; overflow-x: auto; }
  .library-list-item { min-width: 210px; border-right: 1px solid #edf2f5; border-bottom: 0; }
  .library-reader { padding: 20px 16px; }
  .library-reader-header { flex-direction: column; }
}
.purchase-primary,
.purchase-secondary {
  width: 100%;
  padding: 12px 18px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.purchase-primary {
  border: 0;
  background: #4A7FA5;
  color: #fff;
}
.purchase-secondary {
  border: 1px solid #b8c9d5;
  background: #fff;
  color: #4A7FA5;
}
.purchase-primary:disabled,
.purchase-secondary:disabled { opacity: 0.55; cursor: wait; }
.purchase-qr-wrap { margin: 12px auto 20px; }
.purchase-qr-wrap img {
  width: 220px;
  height: 220px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}
.unlock-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(19, 32, 42, .48);
}
.unlock-modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 26px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .22);
}
.unlock-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}
.unlock-modal-kicker {
  color: #4A7FA5;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.unlock-modal h2 { margin: 6px 0 8px; color: #203343; }
.unlock-modal p { color: #60717d; line-height: 1.65; }
.unlock-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f8;
  cursor: pointer;
  font-size: 1.15rem;
}
.unlock-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.unlock-plan {
  display: flex;
  flex-direction: column;
  min-height: 176px;
  padding: 16px;
  border: 1px solid #d9e5ec;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  text-decoration: none;
}
.unlock-plan.recommended { background: #f7fbf8; border-color: #9cccb3; }
.unlock-plan.unavailable {
  opacity: .66;
  background: #f5f7f8;
}
.unlock-plan span { color: #4A7FA5; font-size: .72rem; font-weight: 800; }
.unlock-plan strong { margin-top: 8px; color: #203343; }
.unlock-plan em {
  margin: 8px 0;
  color: #D97706;
  font-style: normal;
  font-size: 1.4rem;
  font-weight: 800;
}
.unlock-plan i {
  margin: -4px 0 8px;
  color: #2E7D32;
  font-size: .76rem;
  font-style: normal;
  font-weight: 700;
}
.unlock-plan small { color: #657887; line-height: 1.5; }
.unlock-plan b { margin-top: auto; color: #2E7D32; font-size: .82rem; }

@media (max-width: 600px) {
  .purchase-page { padding: 32px 16px; }
  .purchase-card { padding: 28px 20px; }
  .purchase-plans,
  .unlock-plan-grid { grid-template-columns: 1fr; }
  .unlock-modal { padding: 22px 18px; }
}

@media (max-width: 640px) {
  .related-resource-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Book Quote ─────────────────────────────────────────────── */
.book-quote {
  border-left: 4px solid var(--primary);
  margin: 0 0 24px 0;
  padding: 10px 18px;
  background: var(--primary-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.88rem;
  color: var(--primary-dark);
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1.7;
}

/* ── Article Subtitle bar ───────────────────────────────────── */
.book-subtitle-bar {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 8px 16px;
  font-size: 0.82rem;
  color: var(--primary-dark);
  margin-bottom: 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ── Page Header (inner pages generic) ─────────────────────── */
.page-header {
  background: linear-gradient(135deg, #fff 0%, #EEF5FB 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px 32px;
  text-align: center;
}
.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.page-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Contents Page Header with image mosaic ────────────────── */
.contents-header {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.contents-header-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  z-index: 0;
}
.contents-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.45) saturate(0.8);
}

.contents-header-body {
  position: relative;
  z-index: 1;
  padding: 40px 24px 32px;
  text-align: center;
}
.contents-header-body h1 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.contents-header-body p {
  color: rgba(255,255,255,0.85);
}
.contents-header-body .progress-label,
.contents-header-body .progress-stats {
  color: rgba(255,255,255,0.9);
}
.contents-header-body .progress-stats strong {
  color: #fff;
}
.contents-header-body .progress-milestone {
  color: rgba(255,255,255,0.7);
}
.contents-header-body .progress-bar-wrap {
  background: rgba(255,255,255,0.25);
}

@media (max-width: 640px) {
  .contents-header-bg { grid-template-columns: repeat(3, 1fr); }
  .contents-header-bg img:nth-child(n+4) { display: none; }
  .article-card.done { min-height: 180px; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --nav-h: 52px; }
  .navbar { padding: 0 16px; }
  .navbar-brand { gap: 6px; }
  .navbar-brand::before { width: 32px; height: 32px; flex-basis: 32px; border-radius: 7px; }
  .navbar-brand .logo-zh,
  .navbar-brand .logo-sub { display: none; }
  .navbar-nav { gap: 2px; }
  .navbar-nav a { padding: 5px 8px; }
  .navbar-nav a.btn-nav-cta { display: none; }
  .navbar-nav .nav-account { margin-left: 1px; }
  .navbar-nav .nav-account-profile { padding: 3px; }
  .nav-account-name { display: none; }
  .nav-account-popover { right: -4px; }

  .hero { padding: 0; }
  .hero-upper-body {
    padding: 32px 16px 28px;
    text-align: center;
  }
  .hero-upper-body .hero-glass {
    padding: 28px 20px 24px;
  }
  .hero-img-quote { display: none; }
  .hero-lower { padding: 24px 16px 36px; }
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .features-grid { grid-template-columns: 1fr; }

  .article-body { padding: 20px 16px; }
  .article-header { padding: 16px 18px; }
  .section-block { padding: 20px 18px; }
  .exercise-list li { padding-left: 38px; }

  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .contents-page { padding: 24px 16px 60px; }
  .starter-catalog-banner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 400px) {
  .books-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .article-grid { grid-template-columns: 1fr 1fr; }
}

/* ── 触发按钮 #ap-trigger 已废弃，入口移至导航栏 ──────── */

/* ============================================================
   音频播放器 #audio-player-bar
   ============================================================ */
#audio-player-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #1c2a35;
  color: #e8f0f6;
  box-shadow: 0 -2px 16px rgba(0,0,0,.35);
  padding: 0 16px;
  font-family: var(--font-sans);
}

.ap-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
}

/* 播放 / 关闭 按钮 */
.ap-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #e8f0f6;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .15s;
  flex-shrink: 0;
}
.ap-btn:hover { background: rgba(255,255,255,.12); }
.ap-play svg { width: 22px; height: 22px; }
.ap-close    { font-size: 1rem; width: 30px; height: 30px; }

/* 中间信息区 */
.ap-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ap-label {
  font-size: 0.72rem;
  color: #8aabb8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 进度条 */
.ap-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ap-progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.18);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.ap-progress-fill {
  height: 100%;
  width: 0%;
  background: #4A7FA5;
  border-radius: 2px;
  transition: width .2s linear;
}
.ap-progress-track:hover .ap-progress-fill { background: #6eb3d6; }
.ap-time {
  font-size: 0.7rem;
  color: #8aabb8;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 倍速按钮组 */
.ap-speed-wrap {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.ap-speed {
  background: rgba(255,255,255,.08);
  border: none;
  color: #b0c8d8;
  font-size: 0.68rem;
  font-family: var(--font-sans);
  padding: 3px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ap-speed:hover { background: rgba(255,255,255,.18); color: #fff; }
.ap-speed.active { background: #4A7FA5; color: #fff; }

/* 页面底部加 padding 防止播放器遮住内容 */
body:has(#audio-player-bar) main { padding-bottom: 72px; }

@media (max-width: 600px) {
  .ap-speed-wrap { display: none; }
  .ap-inner { gap: 8px; }
}
