/* ===== 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #f5f6fa;
  --card: #ffffff;
  --border: #eceef3;
  --text: #20242b;
  --muted: #8a8f9c;
  --accent: #f1502f;
  --accent-soft: #fff0ec;
  --accent-border: #ffd2c6;
  --green: #1a9e6b;
  --green-soft: #e9f8f1;
  --blue: #2563eb;
  --blue-soft: #eef4ff;
  --cream: #fff8e8;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(30, 32, 36, .04), 0 4px 16px rgba(30, 32, 36, .05);
}
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 14px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d8dbe2; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ===== 顶栏 ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 12px 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transform: translateZ(0);
}
/* 与 .page 完全同一套：max-width 1280 + 左右 padding 32px，logo 与侧栏左对齐 */
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 0 32px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  line-height: 0;
}
.brand img {
  height: 64px;
  margin: -8px 0;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
  object-position: left center;
}
.nav { display: flex; gap: 8px; align-items: center; }
.nav-pill.mobile-only { display: none; }
.nav-pill.mobile-tablet-only { display: none; }
.nav-pill {
  position: relative;
  padding: 8px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  font-size: 14px; color: #4a4f5a;
  transition: all .15s;
}
.nav-pill:hover { border-color: #d8dbe2; }
.nav-pill.active { background: #22252d; color: #fff; border-color: #22252d; }
.nav-badge {
  position: absolute; top: -4px; right: -2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: #fff;
  border-radius: 999px; font-size: 11px; line-height: 18px; text-align: center;
}

.course-back-top {
  position: fixed;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(34, 37, 45, .12);
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: #2b2e35;
  box-shadow: 0 8px 24px rgba(30, 32, 36, .18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.course-back-top span { font-size: 24px; line-height: 1; }
.course-back-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.course-back-top:active { transform: scale(.94); }

/* ===== 布局 ===== */
.page { max-width: 1280px; margin: 0 auto; padding: 24px 32px 64px; }
.topbar + .page { padding-top: 96px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  transition: all .15s;
}
.btn:hover { border-color: #d0d3db; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #e04525; border-color: #e04525; }
.btn-dark { background: #22252d; border-color: #22252d; color: #fff; }
.btn-ghost { border-color: var(--accent-border); color: var(--accent); background: #fff; }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.input {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  background: #fff; outline: none; transition: border .15s;
}
.input:focus { border-color: var(--accent); }
.label { font-size: 13px; color: var(--muted); margin-bottom: 6px; display: block; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.green { color: var(--green); }
.small { font-size: 12px; }
.hidden { display: none !important; }

.tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
}
.tag-orange { background: var(--accent-soft); color: var(--accent); }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-blue { background: var(--blue-soft); color: var(--blue); }
.tag-gray { background: #f1f2f6; color: var(--muted); }

/* ===== 课程首页 ===== */
.layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.sidebar { position: sticky; top: 86px; padding: 20px; }
.side-brand h2 { font-size: 18px; font-weight: 700; color: var(--accent); }
.side-brand p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.side-note {
  margin: 14px 0; padding: 10px 12px;
  background: #f8f9fc; border-radius: 10px;
  font-size: 12px; color: var(--muted); line-height: 1.5;
}
.side-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left;
  padding: 12px 14px; border-radius: 12px;
  font-size: 14px; color: #3a3f4a; margin-bottom: 4px;
  border: 1px solid transparent;
  transition: all .15s;
}
.side-item:hover { background: #f7f8fb; }
.side-item.active { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); font-weight: 600; }
.side-item .cnt { font-size: 12px; color: var(--muted); font-weight: 400; display: block; margin-top: 2px; }
.side-divider { height: 1px; background: var(--border); margin: 12px 0; }
.side-more { font-size: 12px; color: var(--muted); margin-top: 14px; padding: 0 6px; display: flex; justify-content: space-between; }

.section-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.section-head h1 { font-size: 26px; font-weight: 800; }
.section-head .desc { color: var(--muted); margin-top: 4px; }
.status-badge {
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent); white-space: nowrap;
}
.status-badge.on { background: var(--green-soft); color: var(--green); }
.lesson-label-filter {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 0 0 16px; padding-bottom: 2px;
}

.auth-page { min-height: calc(100vh - 90px); display: grid; place-items: center; padding: 32px 16px 70px; }
.auth-panel { width: min(100%, 430px); padding: 32px; }
.auth-logo { color: var(--accent); font-weight: 800; font-size: 20px; margin-bottom: 20px; }
.auth-panel h1 { margin: 0 0 8px; }
.auth-code-line { display: flex; gap: 8px; align-items: center; }
.auth-code-line .input { min-width: 0; flex: 1; }
.auth-code-line .btn { white-space: nowrap; }
.auth-footnote { text-align: center; margin: 14px 0 0; }
.auth-message { margin-bottom: 14px; }
@media (max-width: 480px) {
  .auth-panel { padding: 24px 18px; }
  .auth-code-line { align-items: stretch; flex-direction: column; }
  .auth-code-line .btn { width: 100%; }
}
.lesson-label-pill {
  flex: none; min-height: 34px; padding: 7px 16px;
  border: 1px solid var(--border); border-radius: 999px;
  background: #fff; color: var(--muted); font-size: 13px;
}
.lesson-label-pill:hover { border-color: var(--accent-border); color: var(--accent); }
.lesson-label-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.lesson-filter-empty { grid-column: 1 / -1; padding: 60px 20px; }
.tablet-course-grid { display: contents; }
.course-search-wrap { position: relative; max-width: 520px; margin: 0 0 14px; }
.course-search-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 20px; line-height: 1; pointer-events: none;
}
.course-search-input {
  width: 100%; min-height: 42px; padding: 9px 14px 9px 42px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.course-search-input::-webkit-search-decoration,
.course-search-input::-webkit-search-cancel-button,
.course-search-input::-webkit-search-results-button,
.course-search-input::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}
.course-search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.open-banner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.open-banner.open-banner-2 { grid-template-columns: 1fr 1fr; }
.open-banner .ob-main { padding: 18px; border-left: 4px solid var(--accent); }
.open-banner .ob-main h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.open-banner .ob-card {
  padding: 18px; border: 1.5px solid var(--accent-border); border-radius: 14px;
  background: #fff; transition: all .15s; text-align: left; display: block;
  width: 100%; cursor: pointer; font: inherit; color: inherit;
}
.open-banner .ob-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.open-banner .ob-card.blue { border-color: #bcd3f7; }
.open-banner .ob-card.ob-go {
  background: #e8f8ee;
  border-color: #86efac;
  color: #166534;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.open-banner .ob-card.ob-go h4 { color: #15803d; }
.open-banner .ob-card.ob-go p { color: #3f8f5a; }
.open-banner .ob-card.ob-go:hover {
  background: #dcfce7;
  border-color: #4ade80;
  box-shadow: 0 6px 16px rgba(22, 163, 74, .12);
}
.open-banner .ob-go-text { flex: 1; min-width: 0; }
.open-banner .ob-go-arrow {
  flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: #16a34a; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; line-height: 1;
}
.open-banner .ob-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.open-banner .ob-card p { font-size: 12px; color: var(--muted); }
.ob-label { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 6px; display: block; }

.lesson-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mobile-masonry-column { display: none; }
.lesson-card {
  overflow: hidden; transition: all .15s; cursor: pointer;
  display: grid; grid-template-columns: minmax(112px, 42%) minmax(0, 1fr);
  order: var(--lesson-order, 0);
}
.lesson-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(30,32,36,.1); }
.lesson-cover {
  height: 140px; /* 固定高度：有图/无图一致 */
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #fff;
  flex: none;
}
.lesson-card .lesson-cover,
.lesson-card .lesson-cover.has-img { width: 100%; height: 100%; min-height: 190px; }
.lesson-cover .emoji { font-size: 56px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.15)); }
.lesson-cover .cover-img {
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block; border: 0;
  clip-path: inset(2px);
}
.lesson-body { padding: 14px 16px 16px; min-width: 0; display: flex; flex-direction: column; }
.lesson-body .meta {
  min-width: 0; font-size: 12px; color: var(--muted);
  display: flex; gap: 6px; align-items: flex-start; flex-wrap: nowrap;
}
.lesson-meta-text { min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
.lesson-body .meta .tag { flex: none; white-space: nowrap; }
.lesson-body h3 { font-size: 15px; font-weight: 700; margin: 6px 0 12px; min-height: 24px; }
.lesson-body .btn { margin-top: auto; }
.lesson-card[data-type="download"] .lesson-body h3 { margin-top: 0; margin-bottom: 6px; }
.download-card-intro {
  color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}

/* ===== 课程内容页 ===== */
.lesson-tabs { display: inline-flex; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.lesson-tabs button { padding: 7px 22px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.lesson-tabs button.active { background: var(--accent); color: #fff; font-weight: 600; }

.read-page { max-width: 1280px; margin: 0 auto; }
.read-topbar { margin-bottom: 18px; }
.read-top-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lesson-print-frame {
  position: fixed; right: 0; bottom: 0; width: 1px; height: 1px;
  border: 0; opacity: 0; pointer-events: none;
}
.read-title-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: 8px; flex-wrap: wrap;
}
.read-title-row h1 { font-size: 22px; font-weight: 800; }
.read-day { font-size: 13px; color: var(--muted); font-weight: 600; }

.study-layout { display: grid; grid-template-columns: 1.15fr 0.95fr; gap: 22px; align-items: start; }

/* 左侧：封面固定高度 + 正文 */
.read-left { overflow: hidden; padding: 0; }
.read-cover {
  width: 100%; height: auto;
  background: #f3f4f8;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.read-cover img {
  width: 100%; height: auto;
  object-fit: contain;
  display: block;
  background: #fff;
  cursor: zoom-in;
}
.read-cover:hover img { opacity: .92; }
.read-cover-fallback {
  min-height: 360px; flex-direction: column; gap: 10px; padding: 24px;
}
.read-cover-fallback .emoji { font-size: 56px; }
.read-cover-fallback h2 { font-size: 20px; font-weight: 800; text-align: center; }

.read-article { padding: 16px 20px 20px; }
.article-toolbar { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.article-body { line-height: 1.9; font-size: 15.5px; color: #2b303a; }
.article-body.is-hidden { display: none; }
.mobile-tablet-article-toggle { display: none; }
.article-sent {
  margin: 0 0 10px; padding: 6px 4px; border-radius: 8px;
  transition: background .12s; border: 1px solid transparent;
}
.article-sent.playing { background: var(--blue-soft); border-color: #c7dbfb; }
/* 正文每个单词可点击 */
.word-click {
  cursor: pointer; border-radius: 3px; padding: 0 1px;
  transition: background .12s, color .12s;
}
.word-click:hover { background: #e8f0fe; color: #1a56db; }
.word-click.is-core {
  background: #fff3cd; color: #92400e; font-weight: 600;
}
.word-click.is-core:hover { background: #ffe08a; }
.article-vocab-tags {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.vocab-tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700;
  cursor: pointer; border: 1px solid var(--accent-border);
}
.vocab-tag:hover { background: #ffe0d6; }

.read-right { min-width: 0; }
.resource-detail-layout {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 22px; align-items: start;
}
.resource-gallery-card { padding: 18px; min-width: 0; }
.resource-gallery-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.resource-gallery-head h3 { font-size: 17px; font-weight: 800; }
.resource-gallery-head p { color: var(--muted); font-size: 12px; margin-top: 2px; }
.resource-detail-thumbs {
  display: flex; gap: 9px; overflow-x: auto; padding: 2px 2px 10px;
  margin-bottom: 10px; scrollbar-width: thin;
}
.resource-detail-thumb {
  position: relative; flex: 0 0 74px; width: 74px; height: 88px;
  border: 2px solid transparent; border-radius: 10px; overflow: hidden;
  background: #f4f5f8; transition: border-color .12s, box-shadow .12s;
}
.resource-detail-thumb:hover { border-color: #c9cdd6; }
.resource-detail-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.resource-detail-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.resource-detail-thumb span {
  position: absolute; right: 4px; bottom: 4px; min-width: 19px; height: 19px;
  padding: 0 5px; border-radius: 999px; background: rgba(20,22,28,.72); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700;
}
.resource-main-stage {
  min-height: 480px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: #f4f5f8;
  display: flex; align-items: flex-start; justify-content: center;
}
.resource-main-stage > img {
  display: block; width: 100%; height: auto; max-height: none;
  object-fit: contain; background: #fff; cursor: zoom-in;
}
.resource-intro-card { padding: 24px; position: sticky; top: 86px; }
.resource-intro-card h2 { font-size: 22px; font-weight: 800; margin: 5px 0 16px; }
.resource-intro-text {
  min-height: 160px; color: #374151; font-size: 15px; line-height: 1.9;
  padding: 16px; background: #f8f9fc; border-radius: 12px; border: 1px solid var(--border);
}
.resource-download-btn { margin-top: 20px; padding-top: 12px; padding-bottom: 12px; text-align: center; }
.resource-download-note { margin-top: 9px; color: var(--muted); font-size: 12px; text-align: center; }
.resource-link-value {
  margin: 14px 0 16px; padding: 13px 14px; border: 1px solid var(--border);
  border-radius: 10px; background: #f8f9fc; color: #374151; font-size: 13px;
  line-height: 1.6; word-break: break-all; user-select: all;
}
.lab-tools { display: flex; justify-content: flex-end; gap: 14px; margin-bottom: 4px; }
.sent-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.sent-body { flex: 1; min-width: 0; }
.sent-en { font-size: 14px; color: #2b303a; line-height: 1.55; }
.sent-cn { font-size: 12.5px; color: var(--accent); margin-top: 4px; line-height: 1.5; }
.sent-actions { display: flex; gap: 8px; margin-top: 6px; }
.sent-act {
  font-size: 11px; font-weight: 600; color: var(--muted);
  padding: 4px 10px; border-radius: 6px; background: #f1f2f6;
  display: inline-flex; align-items: center; gap: 3px;
}
.sent-act:hover { color: var(--accent); background: var(--accent-soft); }
.sent-act.is-showing { color: var(--accent); background: var(--accent-soft); }
.vocab-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vocab-heading { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.vocab-ipa { color: var(--muted); font-size: 12px; font-weight: 500; }
.vocab-cn { color: var(--accent); font-size: 13px; line-height: 1.4; }

/* 单词释义抽屉：右侧弹出，背景不虚化、可看清正文 */
.modal-mask.word-modal {
  background: rgba(0,0,0,.12) !important; /* 轻微遮罩，不虚化 */
  align-items: stretch !important; justify-content: flex-end !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none;
}
.modal-mask.word-modal * { pointer-events: auto; }
.word-drawer-box {
  width: 380px !important; max-width: 92vw;
  background: #fff !important;
  padding: 22px 22px 18px !important;
  border-radius: 18px 0 0 18px !important;
  box-shadow: -8px 0 24px rgba(0,0,0,.12) !important;
  height: 100vh; max-height: 100vh; overflow-y: auto;
  animation: slideInRight .25s ease-out;
  pointer-events: auto;
  position: relative;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.word-drawer-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: #f1f2f6; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.word-drawer-close:hover { background: #ffe0d6; color: var(--accent); }
@media (max-width: 600px) {
  .word-drawer-box { width: 92vw !important; border-radius: 18px 0 0 18px !important; }
  .lesson-grid { grid-template-columns: 1fr; }
}

/* 图片放大查看 */
.modal-mask.img-zoom {
  background: rgba(0,0,0,.85) !important;
  align-items: center !important;
  justify-content: center !important;
}
.img-zoom-box {
  width: auto !important; max-width: 96vw; max-height: 92vh;
  padding: 0 !important; border-radius: 8px !important;
  background: transparent !important; box-shadow: none !important;
  position: relative;
}
.img-zoom-box .modal-close-btn {
  position: fixed; top: 18px; right: 18px;
  background: rgba(255,255,255,.9); color: #333;
  width: 40px; height: 40px; font-size: 18px;
}
.img-zoom-box .modal-close-btn:hover { background: #fff; color: var(--accent); }
.img-zoom-wrap { display: flex; align-items: center; justify-content: center; }
.img-zoom-img { max-width: 96vw; max-height: 92vh; object-fit: contain; border-radius: 8px; }
.wp-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.wp-word { font-size: 26px; font-weight: 800; line-height: 1.2; }
.wp-ipa { font-size: 14px; color: var(--muted); margin-top: 4px; }
.wp-head-actions { display: flex; gap: 8px; }
.wp-icon {
  width: 36px; height: 36px; border-radius: 50%; background: #fff6d6;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; color: #8a6d1d;
}
.wp-icon:hover { background: #ffe9a8; }
.wp-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.wp-label { font-size: 13px; color: var(--muted); }
.wp-accent { display: inline-flex; background: #f1f2f6; border-radius: 10px; padding: 3px; }
.wp-acc {
  padding: 5px 14px; border-radius: 8px; font-size: 13px; color: var(--muted); font-weight: 600;
}
.wp-acc.active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.wp-def { font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
.wp-pos { color: var(--accent); font-weight: 700; margin-right: 6px; }
.wp-cn { color: #2b303a; }
.wp-divider { height: 1px; background: var(--border); margin: 12px 0; }
.wp-ctx { font-size: 13.5px; line-height: 1.65; color: #374151; margin-bottom: 8px; }
.wp-ctx b { font-weight: 700; }
.wp-footer { margin-top: 16px; }
.wp-footer .btn { border-radius: 999px; padding: 10px 22px; }

.quiz-section { margin-top: 28px; }
.quiz-wrap { padding: 8px 22px 22px; }
.quiz-head { padding: 18px 0 8px; }
.quiz-head h2 { font-size: 20px; font-weight: 800; }

.poster {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  background: #fff;
}
.poster-with-cover { position: sticky; top: 86px; }
.poster-cover-wrap {
  position: relative; background: #f8f9fc;
  height: 280px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.poster-cover-img {
  width: 100%; height: 100%; display: block;
  object-fit: contain; background: #fff;
}
.poster-hero { padding: 28px 24px 20px; position: relative; }
.poster-day {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: #1e293b; color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 8px; text-align: center; line-height: 1.4;
}
.poster-day span { display: block; font-size: 9px; font-weight: 400; opacity: .7; }
.poster-title-band {
  display: inline-block; background: #1e293b; color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  padding: 6px 16px; border-radius: 8px; margin-bottom: 10px;
}
.poster-hero h1 { font-size: 30px; font-weight: 900; letter-spacing: .5px; }
.poster-emoji { font-size: 64px; position: absolute; right: 24px; bottom: 10px; opacity: .9; }
.poster-body { padding: 20px 24px 24px; }
.poster-point { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.poster-point .num {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.poster-point p { font-size: 13px; color: #374151; line-height: 1.55; }
.poster-foot {
  border-top: 2px dashed var(--border); padding: 10px 24px;
  font-size: 12px; color: var(--muted); font-weight: 600;
}

.lab-card { padding: 20px; margin-bottom: 18px; }
.lab-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.lab-title { font-size: 11px; letter-spacing: 1px; color: var(--muted); font-weight: 700; display: block; }
.lab-head h3 { font-size: 17px; font-weight: 800; margin-top: 2px; }
.lab-head p { font-size: 12px; color: var(--muted); }
.play-main {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: var(--accent); color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(241, 80, 47, .35);
  transition: transform .15s;
}
.play-main:hover { transform: scale(1.06); }
.progress-wrap { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; }
.progress-range {
  --progress: 0%;
  flex: 1; min-width: 80px; height: 24px; margin: 0;
  background: transparent; cursor: pointer; touch-action: pan-y;
  -webkit-appearance: none; appearance: none;
}
.progress-range::-webkit-slider-runnable-track {
  height: 5px; border-radius: 999px;
  background: linear-gradient(to right, var(--accent) 0 var(--progress), #f0f1f5 var(--progress) 100%);
}
.progress-range::-webkit-slider-thumb {
  width: 16px; height: 16px; margin-top: -5.5px; border: 2px solid #fff; border-radius: 50%;
  background: var(--accent); box-shadow: 0 1px 5px rgba(32, 36, 43, .28);
  -webkit-appearance: none; appearance: none;
}
.progress-range::-moz-range-track { height: 5px; border-radius: 999px; background: #f0f1f5; }
.progress-range::-moz-range-progress { height: 5px; border-radius: 999px; background: var(--accent); }
.progress-range::-moz-range-thumb {
  width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%;
  background: var(--accent); box-shadow: 0 1px 5px rgba(32, 36, 43, .28);
}
.progress-range:focus-visible { outline: 2px solid var(--accent-border); outline-offset: 2px; border-radius: 999px; }
.progress-range:disabled { cursor: default; opacity: .55; }
.speed-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.speed-row .lbl { font-size: 12px; color: var(--muted); }
.speed-pill { padding: 4px 12px; border-radius: 8px; font-size: 12px; color: #4a4f5a; border: 1px solid transparent; }
.speed-pill.active { background: #22252d; color: #fff; font-weight: 600; }
.replay-btn { font-size: 12px; color: var(--accent); font-weight: 600; }
.replay-btn.pressed { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(1px); }
.loop-btn { padding: 3px 8px; border: 1px solid transparent; border-radius: 6px; }
.loop-btn.active { color: #fff; background: var(--accent); border-color: var(--accent); }

.follow-mode-control {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 10px 0 2px; padding-top: 10px; border-top: 1px solid var(--border);
}
.follow-mode-control p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; text-align: right; }
.follow-mode-switch { display: inline-flex; align-items: center; gap: 7px; flex: none; color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; }
.follow-mode-switch input { position: absolute; opacity: 0; pointer-events: none; }
.follow-mode-slider { width: 34px; height: 20px; border-radius: 999px; background: #d7dbe4; position: relative; transition: background .16s; }
.follow-mode-slider::after { content: ''; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .16s; }
.follow-mode-switch input:checked + .follow-mode-slider { background: var(--accent); }
.follow-mode-switch input:checked + .follow-mode-slider::after { transform: translateX(14px); }
.follow-mode-switch input:focus-visible + .follow-mode-slider { outline: 2px solid var(--accent-border); outline-offset: 2px; }

.sentence-card { padding: 20px; margin-bottom: 18px; }
.sentence-card h3 { font-size: 16px; font-weight: 800; }
.sentence-card .sub { font-size: 12px; color: var(--green); font-weight: 600; margin: 2px 0 0; }
.sentence-list { max-height: 340px; overflow-y: auto; padding-right: 4px; }
.sentence-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: all .12s; margin-bottom: 2px;
}
.sentence-item:hover { background: #f7f8fb; }
.sentence-item.playing { background: var(--blue-soft); border-color: #c7dbfb; }
.sentence-item .idx {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: #f1f2f6; color: var(--muted);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.sentence-item.playing .idx { background: var(--blue); color: #fff; }

.vocab-card { padding: 20px; }
.vocab-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.vocab-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed var(--border);
}
.vocab-row:last-child { border-bottom: none; }
.vocab-word { font-weight: 700; font-size: 15px; }
.vocab-say-btn {
  flex: none; padding: 5px 9px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted); font-size: 12px; white-space: nowrap; transition: all .12s;
}
.vocab-say-btn:hover { background: #f1f2f6; color: var(--text); }
.icon-btn {
  width: 30px; height: 30px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 15px; transition: all .12s;
}
.icon-btn:hover { background: #f1f2f6; color: var(--text); }
.add-btn {
  font-size: 12px; font-weight: 600; color: var(--accent);
  padding: 4px 10px; border-radius: 8px; white-space: nowrap;
}
.add-btn:hover { background: var(--accent-soft); }
.add-btn.done { color: var(--green); }
.add-btn.done:hover { background: var(--green-soft); color: #0f7a4a; }

/* ===== 练习页 ===== */
.quiz-card { padding: 24px; margin-bottom: 16px; }
.quiz-q { font-size: 16px; font-weight: 700; line-height: 1.7; margin-bottom: 16px; }
.quiz-q .qnum { color: var(--accent); margin-right: 6px; }
.quiz-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quiz-opt {
  padding: 12px; border: 1.5px solid var(--border); border-radius: 12px;
  font-size: 14px; text-align: center; transition: all .12s; background: #fff;
}
.quiz-opt:hover { border-color: #c8cdd8; }
.quiz-opt.correct { border-color: var(--green); background: var(--green-soft); color: var(--green); font-weight: 700; }
.quiz-opt.wrong { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.quiz-result { text-align: center; padding: 40px 20px; }
.quiz-result .score { font-size: 52px; font-weight: 900; color: var(--accent); }
.quiz-result p { color: var(--muted); margin: 8px 0 20px; }

/* ===== 开通页 ===== */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.page-head .crumb { color: var(--accent); font-size: 13px; font-weight: 600; }
.page-head h1 { font-size: 26px; font-weight: 800; margin-top: 4px; }
.page-head .desc { color: var(--muted); margin-top: 6px; }
.notice-bar {
  background: var(--green-soft); border: 1px solid #c9ecdc;
  color: var(--green); border-radius: 12px;
  padding: 12px 18px; font-size: 13px; margin-bottom: 18px;
  display: flex; gap: 24px;
}
.notice-bar b { font-weight: 700; }
.all-card {
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, #fff7f3, #fffcf5);
  border-radius: var(--radius); padding: 22px 24px;
  cursor: pointer; margin-bottom: 22px; transition: all .15s;
  box-shadow: 0 0 0 3px rgba(241, 80, 47, .12);
}
.all-card:hover { box-shadow: 0 0 0 3px rgba(241, 80, 47, .18), var(--shadow); }
.all-card h3 { font-size: 19px; font-weight: 800; margin: 6px 0; }
.all-card .sub { color: var(--muted); font-size: 13px; }
.all-card .price { color: var(--accent); font-size: 20px; font-weight: 900; margin-top: 14px; }
.all-card .price small { font-size: 13px; font-weight: 600; }
.all-card .break { color: var(--muted); font-size: 12px; margin-top: 4px; }
.pick-layout { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.pick-head { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 13px; }
.pick-row {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1.5px solid var(--border); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 10px; cursor: pointer; transition: all .12s;
}
.pick-row:hover { border-color: #d6dae2; }
.pick-row.checked { border-color: var(--accent); background: #fffaf8; }
.pick-row.disabled { opacity: .55; cursor: not-allowed; }
.pick-check {
  flex: none; width: 24px; height: 24px; border-radius: 8px;
  border: 2px solid #d6dae2; color: transparent;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.pick-row.checked .pick-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.pick-row h4 { font-size: 15px; font-weight: 700; }
.pick-row p { font-size: 12px; color: var(--muted); }
.summary-card { padding: 22px; position: sticky; top: 86px; }
.summary-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: #3a3f4a; }
.sum-row .minus { color: var(--accent); }
.sum-row.total { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 16px; font-weight: 800; }
.sum-row.total .val { color: var(--accent); font-size: 24px; font-weight: 900; }

/* ===== 账号页 ===== */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.profile-card {
  background: linear-gradient(120deg, #fff6df, #ffedd8);
  border: 1px solid #f5e2b8; border-radius: var(--radius);
  padding: 26px; margin-bottom: 18px;
}
.profile-card .plabel { font-size: 12px; color: #a8832e; font-weight: 600; }
.profile-name-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 8px 0 12px;
}
.profile-card h2 { font-size: 26px; font-weight: 900; margin: 0; }
.profile-name-row #btn-edit-profile {
  border: 1px solid #e8c97a; color: #8a6a1a; background: rgba(255,255,255,.7);
}
.profile-name-row #btn-edit-profile:hover {
  background: #fff; border-color: #d4a84b; color: #6b5010;
}
.code-chip {
  display: inline-block; background: #1e293b; color: #fff;
  font-weight: 700; letter-spacing: 1px;
  padding: 6px 16px; border-radius: 8px; font-size: 14px;
}
.profile-card .hint { font-size: 12px; color: #a8832e; margin-top: 14px; line-height: 1.6; }
.course-status-card { padding: 22px; margin-bottom: 18px; border-left: 4px solid var(--accent); }
.course-status-card h3 { font-size: 17px; font-weight: 800; margin: 4px 0 8px; }
.course-status-card p { font-size: 13px; color: var(--muted); }
.course-status-card .green-note { color: var(--green); font-size: 12px; margin-top: 10px; }
.account-membership-actions {
  display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap;
  gap: 10px; margin-top: 14px;
}
.mini-card { padding: 22px; }
.mini-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.form-row { margin-bottom: 14px; }
.lesson-classify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.history-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.history-item:last-child { border-bottom: none; }

/* ===== 会员权限表 ===== */
.membership-current {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 14px; padding: 13px 16px; border: 1px solid #b7e4c7;
  border-radius: 8px; background: #f0fdf4; color: #166534; font-size: 14px;
}
.membership-table-wrap { overflow-x: auto; border-radius: 8px; }
.membership-table { width: 100%; min-width: 680px; border-collapse: collapse; table-layout: fixed; }
.membership-table th, .membership-table td {
  padding: 16px 14px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center; vertical-align: middle;
}
.membership-table th:first-child { width: 28%; text-align: left; }
.membership-table tr > *:last-child { border-right: 0; }
.membership-table tbody tr:last-child > *, .membership-table tfoot tr:last-child > * { border-bottom: 0; }
.membership-table thead th { background: #f8f9fc; font-size: 15px; }
.membership-table thead th strong { display: block; }
.membership-price { display: block; margin-top: 5px; color: var(--accent); font-size: 18px; font-weight: 900; }
.permission-yes { color: var(--green); font-size: 21px; font-weight: 900; }
.permission-no { color: #dc2626; font-size: 23px; font-weight: 800; }
.membership-download-row td span + span { font-size: 13px; color: var(--text); }
.membership-table tfoot th, .membership-table tfoot td { background: #fffaf8; }
.membership-buy-btn { width: 100%; max-width: 150px; min-height: 40px; padding-left: 10px; padding-right: 10px; }
.membership-footnote { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.purchase-contact-modal { text-align: center; }
.purchase-contact-modal h3 { text-align: center; padding-right: 0; }
.purchase-plan-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 12px; }
.purchase-plan-price { padding: 12px 10px; border: 1px solid var(--border); border-radius: 8px; background: #f8f9fc; }
.purchase-plan-price span { display: block; color: var(--muted); font-size: 12px; }
.purchase-plan-price b { display: block; margin-top: 3px; color: var(--accent); font-size: 22px; }
.purchase-contact-tip { margin: 10px 0 16px; font-size: 16px; font-weight: 800; }
.purchase-contact-image {
  display: block; width: min(100%, 340px); max-height: 440px; margin: 0 auto;
  object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: #fff;
}
.purchase-contact-empty {
  display: flex; align-items: center; justify-content: center; min-height: 220px;
  border: 1px dashed var(--border); border-radius: 8px; color: var(--muted); background: #f8f9fc;
}
.purchase-contact-price { margin-top: 14px; color: var(--muted); }
.purchase-contact-price b { color: var(--accent); font-size: 20px; }

/* ===== 词汇本 ===== */
.vocab-list-card { padding: 10px 22px; }
.vocab-list-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) 42px minmax(120px, 1fr) minmax(160px, 1.6fr) 112px 72px; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.vocab-list-row:last-child { border-bottom: none; }
.vocab-list-header { display: grid; grid-template-columns: minmax(120px, 1.2fr) 42px minmax(120px, 1fr) minmax(160px, 1.6fr) 112px 72px; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 700; }
.vocab-list-header span:nth-last-child(-n+2) { text-align: center; }
.vocab-list-word, .vocab-list-cn, .vocab-list-lesson, .vocab-list-date { min-width: 0; overflow-wrap: anywhere; }
.vocab-list-date { text-align: center; white-space: nowrap; }
.vocab-list-action { justify-self: end; }
.empty-box { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-box .big { font-size: 48px; margin-bottom: 12px; }

/* ===== 弹窗 ===== */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 22, 28, .4);
  display: flex; align-items: center; justify-content: center;
  /* 不虚化背景，保持清晰 */
}
.modal {
  position: relative;
  background: #fff; border-radius: 20px; width: 440px; max-width: 92vw;
  max-height: 88vh; overflow-y: auto; padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; padding-right: 36px; }
.modal .sub { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.modal-close-btn {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: #f1f2f6; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1;
}
.modal-close-btn:hover { background: #ffe0d6; color: var(--accent); }

/* 板块 Emoji 选择器 */
.emoji-pick-grid {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px;
  max-height: 160px; overflow-y: auto; padding: 8px;
  background: #f8f9fc; border: 1px solid var(--border); border-radius: 12px;
}
.emoji-pick {
  width: 100%; aspect-ratio: 1; border-radius: 8px; font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1.5px solid transparent; transition: all .12s;
}
.emoji-pick:hover { background: #eef2ff; border-color: #c7d2fe; }
.emoji-pick.active {
  background: var(--green-soft); border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, .15);
}
.pay-channel {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer;
}
.pay-channel.checked { border-color: var(--accent); background: #fffaf8; }
.pay-channel .ic { font-size: 22px; }
.pay-note { font-size: 12px; color: var(--muted); background: #f8f9fc; border-radius: 10px; padding: 10px 14px; margin: 14px 0; }
.success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  font-size: 36px; display: flex; align-items: center; justify-content: center;
  margin: 10px auto 16px;
}
.copy-box {
  display: flex; gap: 8px; align-items: center;
  background: #f8f9fc; border: 1px dashed #d6dae2; border-radius: 10px;
  padding: 12px 16px; margin: 12px 0; font-weight: 700; letter-spacing: .5px;
}

/* ===== Toast ===== */
.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  background: #22252d; color: #fff; padding: 11px 22px;
  border-radius: 999px; font-size: 14px; z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  animation: toastIn .25s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ===== 管理端 ===== */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side { background: #1d212b; color: #c9cdd6; padding: 24px 14px; position: sticky; top: 0; height: 100vh; }
.admin-side .logo { padding: 0 12px 20px; }
.admin-side .logo img {
  display: block; width: 168px; max-width: 100%; height: 42px;
  object-fit: contain; object-position: left center;
}
.admin-menu-item {
  display: flex; align-items: center; width: 100%; text-align: left;
  padding: 11px 14px; border-radius: 10px; margin-bottom: 4px;
  color: #c9cdd6; font-size: 14px; transition: all .12s;
}
.admin-menu-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; min-width: 24px; margin-right: 9px; line-height: 1;
}
.admin-menu-item:hover { background: rgba(255,255,255,.06); }
.admin-menu-item.active { background: var(--accent); color: #fff; font-weight: 600; }
.admin-main { padding: 28px 32px; }
.admin-workspace { min-width: 0; }
.admin-revenue {
  min-height: 44px; display: flex; align-items: center; justify-content: flex-end;
  padding: 14px 32px 0; color: var(--muted); font-size: 12px;
}
.admin-revenue > span { margin-right: 5px; font-size: 14px; }
.admin-revenue b { margin: 0 3px; color: var(--accent); font-size: inherit; }
.admin-revenue + .admin-main { padding-top: 14px; }
.admin-main h1 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.admin-main .page-sub { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.admin-page-heading {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px;
}
.admin-page-heading .page-sub { margin-bottom: 0; }
.admin-page-heading .admin-toolbar { flex: none; margin-bottom: 0; }
.about-editor-card { max-width: 920px; padding: 22px; }
.about-toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); cursor: pointer;
}
.about-toggle-row > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.about-toggle-row small { color: var(--muted); }
.about-toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-control { width: 46px; height: 26px; border-radius: 999px; background: #d6d9e0; position: relative; flex: none; transition: .2s; }
.switch-control::after { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: .2s; }
.about-toggle-row input:checked + .switch-control { background: var(--accent); }
.about-toggle-row input:checked + .switch-control::after { transform: translateX(20px); }
.about-toggle-row input:focus-visible + .switch-control { outline: 3px solid var(--accent-soft); }
.about-editor-card .ql-toolbar.ql-snow {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 9px;
  border-color: var(--border); border-radius: 8px 8px 0 0; background: #f8f9fb;
}
.about-editor-card .ql-toolbar.ql-snow .ql-formats { margin-right: 4px; }
.about-editor-card .ql-toolbar.ql-snow button,
.about-editor-card .ql-toolbar.ql-snow .ql-picker-label { border-radius: 4px; }
.about-editor-card .ql-toolbar.ql-snow button:hover,
.about-editor-card .ql-toolbar.ql-snow .ql-picker-label:hover { background: #fff; }
.rich-editor.ql-container.ql-snow {
  min-height: 380px; border-color: var(--border); border-radius: 0 0 8px 8px;
  background: #fff; font-family: inherit; font-size: 15px;
}
.rich-editor .ql-editor { min-height: 378px; padding: 18px; line-height: 1.8; overflow-wrap: anywhere; }
.rich-editor .ql-editor:focus { box-shadow: inset 0 0 0 1px var(--accent); }
.about-editor-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.about-page { max-width: 920px; margin: 0 auto; }
.about-content { padding: 28px 32px; line-height: 1.85; overflow-wrap: anywhere; }
.about-content h1, .about-content h2, .about-content h3, .about-content h4 { margin: 1.2em 0 .55em; line-height: 1.35; }
.about-content h1:first-child, .about-content h2:first-child, .about-content h3:first-child, .about-content p:first-child { margin-top: 0; }
.about-content p, .about-content ul, .about-content ol, .about-content blockquote { margin: .7em 0; }
.about-content ul, .about-content ol { padding-left: 1.6em; }
.about-content a { color: var(--accent); text-decoration: underline; }
.about-content blockquote { padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); }
.about-content img, .rich-editor .ql-editor img { display: block; max-width: 100%; height: auto; margin: 14px auto; }
.about-content iframe, .rich-editor .ql-editor iframe { display: block; width: 100%; max-width: 760px; aspect-ratio: 16 / 9; height: auto; margin: 14px auto; border: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 20px; }
.stat-card .num { font-size: 30px; font-weight: 900; margin-top: 6px; }
.stat-card .lbl { font-size: 13px; color: var(--muted); }
.stat-card .stat-detail { margin-top: 7px; color: var(--muted); font-size: 12px; }
.page-stat-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 240px)); margin-bottom: 16px; }
.table-card { overflow: hidden; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; padding: 12px 16px; color: var(--muted);
  font-weight: 600; background: #f8f9fc; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tr:hover td { background: #fafbfd; }
.lesson-select { width: 16px; height: 16px; margin: 0; vertical-align: middle; accent-color: var(--accent); cursor: pointer; }
.profile-code-search { width: min(100%, 320px); }
.lesson-search { width: min(100%, 320px); margin-left: auto; }
.profile-phone-cell { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-source-tags { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.profile-source-tag { font-size: 11px; line-height: 1.4; padding: 2px 7px; }
.profile-member-empty { color: var(--text); font-weight: 600; }
.profile-member-expiry { margin-top: 4px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.profile-actions { white-space: nowrap; }
.profile-record-adjustment { margin-top: 4px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.admin-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.section-order-controls { display: inline-flex; gap: 5px; white-space: nowrap; }
.section-order-btn { width: 30px; height: 30px; padding: 0; font-size: 17px; line-height: 1; }
.section-order-btn:disabled { opacity: .35; cursor: not-allowed; }
.label-create-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.label-create-row .input { flex: 1; min-width: 0; }
.label-create-row .btn { flex: none; }
.label-admin-list { display: flex; flex-direction: column; gap: 8px; }
.label-admin-row {
  display: grid; grid-template-columns: auto minmax(100px, 1fr) auto auto;
  align-items: center; gap: 8px; padding: 9px;
  border: 1px solid var(--border); border-radius: 8px; background: #fafbfd;
}
.label-admin-row .label-name-input { min-width: 0; padding: 8px 10px; }
.empty-labels { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 13px; }
.note-history-field { position: relative; width: 200px; flex: none; }
.note-history-field .input { width: 100% !important; }
.note-history-menu {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 100%;
  max-height: 220px; overflow-y: auto; padding: 4px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 20px rgba(30,32,36,.12);
}
.note-history-option {
  display: block; width: 100%; padding: 9px 10px; border-radius: 7px;
  background: #fff; color: var(--text); text-align: left; font-size: 13px;
}
.note-history-option:hover, .note-history-option:focus { background: #f7f8fb; color: var(--accent); outline: none; }
.code-note-field { width: 100%; }
.generated-code-box { margin: 0 0 16px; flex-wrap: wrap; }
.generated-code-box span { padding: 4px 8px; border-radius: 5px; background: #fff; border: 1px solid var(--border); }
.code-actions { justify-content: flex-start; margin-top: -6px; }
.admin-wechat-upload { display: block; margin-bottom: 10px; cursor: pointer; }
.admin-wechat-upload > div {
  display: flex; align-items: center; justify-content: center; min-height: 260px;
  padding: 12px; border: 2px dashed #d6dae2; border-radius: 8px; background: #fafbfd;
  color: var(--muted); transition: border-color .15s, background .15s;
}
.admin-wechat-upload:hover > div { border-color: var(--accent); background: #fffaf8; }
.admin-wechat-upload img { display: block; max-width: 100%; max-height: 360px; object-fit: contain; }
.price-setting-list { display: grid; gap: 10px; margin-bottom: 18px; }
.price-setting-row {
  display: grid; grid-template-columns: minmax(100px, 1fr) minmax(160px, 220px);
  align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border);
}
.price-setting-row label { font-weight: 700; }
.price-input-wrap { position: relative; }
.price-input-wrap span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.price-input-wrap .input { padding-left: 30px; }
.sec-pill { flex: none; white-space: nowrap; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: 13px; }
.sec-pill.active { background: #22252d; color: #fff; border-color: #22252d; }
.filter-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; margin-left: 4px; padding: 0 6px;
  border-radius: 999px; background: #f1f2f6; color: var(--muted);
  font-size: 11px; font-weight: 700;
}
.sec-pill.active .filter-count { background: rgba(255,255,255,.2); color: #fff; }
.admin-filter-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.admin-filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-filter-caption { width: 58px; flex: none; color: var(--muted); font-size: 12px; font-weight: 600; }
.admin-label-filter { padding-top: 10px; border-top: 1px dashed var(--border); }
.upload-zone {
  border: 2px dashed #d6dae2; border-radius: var(--radius);
  padding: 48px 20px; text-align: center; cursor: pointer;
  transition: all .15s; background: #fafbfd;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--accent); background: var(--accent-soft); }
.upload-zone .big { font-size: 40px; margin-bottom: 10px; }
.step-tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 12px; }
.step-tag .n {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 12px; display: inline-flex; align-items: center; justify-content: center;
}
.ocr-log { font-size: 12px; color: var(--muted); margin-top: 10px; min-height: 18px; }

/* 教材识别：左图右文 */
.import-split {
  display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start;
}
.import-cover-pane {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); position: sticky; top: 24px;
}
.import-cover-frame {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
  background: #f8f9fc; min-height: 280px;
  display: flex; align-items: center; justify-content: center;
}
.import-cover-frame img { width: 100%; display: block; max-height: 520px; object-fit: contain; }
.import-form-pane { min-width: 0; }
.resource-pages-pane { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
.resource-upload-zone {
  display: block; width: 100%; box-sizing: border-box;
  padding: 24px 12px; margin-bottom: 8px;
}
.resource-upload-zone .big { font-size: 34px; margin-bottom: 6px; }
.resource-pages-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.resource-pages-empty {
  grid-column: 1 / -1; padding: 30px 10px; text-align: center; color: var(--muted);
  border: 1px dashed var(--border); border-radius: 12px; background: #fafbfd; font-size: 13px;
}
.resource-page-item { min-width: 0; border: 1px solid var(--border); border-radius: 10px; padding: 6px; background: #fff; }
.resource-page-image { position: relative; height: 128px; border-radius: 7px; overflow: hidden; background: #f3f4f8; }
.resource-page-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.resource-page-number, .resource-cover-badge {
  position: absolute; top: 5px; padding: 3px 7px; border-radius: 999px;
  font-size: 9px; font-weight: 700; color: #fff; background: rgba(20,22,28,.72);
}
.resource-page-number { right: 5px; }
.resource-cover-badge { left: 5px; background: var(--accent); }
.resource-page-actions { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 4px; margin-top: 6px; }
.resource-page-actions .btn { min-width: 0; padding-left: 4px; padding-right: 4px; }
.resource-free-note {
  padding: 12px 14px; border-radius: 10px; background: var(--green-soft);
  color: var(--green); font-size: 13px; font-weight: 600;
}
.ocr-raw-pre {
  white-space: pre-wrap; font-size: 12px; color: var(--muted);
  background: #f8f9fc; border-radius: 10px; padding: 12px; margin-top: 8px;
  max-height: 180px; overflow: auto;
}

/* 封面预览（表单内） */
.cover-preview-box {
  border: 1px solid var(--border); border-radius: 12px; background: #fafbfd;
  padding: 12px; min-height: 120px;
}
.cover-preview-img {
  max-width: 100%; max-height: 220px; border-radius: 10px; display: block;
  margin: 0 auto 10px; object-fit: contain; background: #fff;
}
.cover-preview-actions { text-align: center; }
.audio-upload-box {
  border: 1px solid var(--border); border-radius: 12px; background: #fafbfd;
  padding: 12px;
}
.audio-upload-box audio { display: block; width: 100%; margin-bottom: 10px; }
.audio-upload-actions, .audio-upload-empty, .import-audio-picker {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.audio-upload-actions .small, .audio-upload-empty .small, .import-audio-picker .small { flex: 1; min-width: 180px; }
.import-audio-picker { margin-top: 14px; }
.audio-transcribe-status { min-height: 20px; margin-top: 8px; color: var(--green); font-size: 13px; }
.audio-transcribe-status.error { color: var(--accent); }
.cover-preview-empty {
  text-align: center; padding: 24px 12px; color: var(--muted);
}
.cover-preview-empty .big { font-size: 36px; margin-bottom: 8px; }
.lesson-thumb {
  width: 48px; height: 48px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--border); display: block; background: #f1f2f6;
}
.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.admin-login-card { width: 380px; padding: 36px; }
.admin-login-card h1 { font-size: 22px; font-weight: 800; margin: 12px 0 4px; }
.admin-login-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 24px; }

@media (max-width: 1080px) {
  .layout, .study-layout, .resource-detail-layout, .pick-layout, .account-grid, .import-split { grid-template-columns: 1fr; }
  .lesson-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar, .summary-card, .import-cover-pane, .resource-intro-card, .resource-pages-pane { position: static; max-height: none; }
  .open-banner { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar-inner { flex-wrap: wrap; gap: 10px; padding: 0 20px; }
  .page { padding: 20px 20px 48px; }
  .brand { display: none; }
  .nav-pill.mobile-tablet-only { display: inline-flex; }
  .mobile-tablet-article-toggle { display: inline-flex; }
  .follow-mode-control { gap: 10px; }
  .quiz-opts { grid-template-columns: 1fr 1fr; }
  .poster-cover-wrap { height: 220px; }
}

/* ===== 手机和平板布局：统一触控与阅读体验 ===== */
@media (max-width: 1080px) {
  body { overflow-x: hidden; }
  .topbar { padding: 8px 0; }
  .topbar-inner { padding: 0 14px; gap: 8px; }
  .brand img { height: 44px; margin: -5px 0; max-width: 150px; }
  .nav { flex: 1; min-width: 0; justify-content: flex-end; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-pill { flex: none; padding: 7px 12px; font-size: 13px; }
  .nav-pill.mobile-only { display: inline-flex; }
  .page { padding: 16px 14px 40px; }
  .topbar + .page { padding-top: 68px; }

  .layout { display: flex; flex-direction: column; gap: 14px; }
  .course-home-layout {
    gap: 0; margin: -16px -14px 0;
  }
  .course-home-layout > div:last-child {
    width: 100%; min-width: 0; max-width: 100%; padding: 10px 8px 0;
    overflow-x: hidden;
  }
  .course-home-layout .sidebar {
    position: sticky; top: var(--course-sticky-top, 52px); z-index: 900;
    width: 100%; padding: 0 8px; border: 0;
    border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none;
    background: #fff; transform: translateZ(0);
  }
  .course-home-layout .side-brand,
  .course-home-layout .side-note,
  .course-home-layout .side-links { display: none; }
  .side-sections {
    display: flex; gap: 20px; overflow-x: auto; padding: 0 6px;
    margin: 0; scrollbar-width: none; scroll-behavior: smooth;
  }
  .side-sections::-webkit-scrollbar { display: none; }
  .side-sections .side-item {
    position: relative; flex: 0 0 auto; width: auto; min-height: 52px;
    margin: 0; padding: 15px 3px 13px; border: 0; border-radius: 0;
    background: transparent; color: #8a8f9c; font-size: 15px;
    align-items: center; white-space: nowrap;
  }
  .side-sections .side-item:hover { background: transparent; }
  .side-sections .side-item.active { background: transparent; color: #22252d; font-weight: 800; }
  .side-sections .side-item.active::after {
    content: ''; position: absolute; left: 3px; right: 3px; bottom: 0;
    height: 3px; border-radius: 999px 999px 0 0; background: var(--accent);
  }
  .side-sections .side-item .cnt,
  .side-sections .side-item > span:last-child { display: none; }
  .side-sections .side-item > span:first-child { min-width: 0; line-height: 1.35; }

  .course-home-layout .section-head,
  .course-home-layout .open-banner { display: none; }
  .section-head h1 { font-size: 22px; }
  .section-head .desc { font-size: 13px; }
  .status-badge { padding: 5px 9px; font-size: 11px; }
  .course-home-layout .lesson-label-filter {
    width: 100%; min-width: 0; max-width: 100%;
    flex-wrap: nowrap; overflow-x: auto; gap: 7px; margin: 0 0 10px;
    padding: 0 0 2px; scrollbar-width: none;
  }
  .course-home-layout .course-search-wrap { max-width: none; margin-bottom: 10px; }
  .lesson-label-filter::-webkit-scrollbar { display: none; }
  .course-home-layout .lesson-label-pill { min-height: 31px; padding: 5px 12px; font-size: 12px; }
  .course-home-layout .lesson-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px; align-items: start;
  }
  .course-home-layout .mobile-masonry-column {
    display: flex; flex-direction: column; gap: 8px; min-width: 0;
  }
  .course-home-layout .tablet-course-grid { display: none; }
  .course-home-layout .lesson-card {
    display: flex; flex-direction: column; min-height: 0; order: initial;
    border: 0; border-radius: 9px; box-shadow: 0 1px 4px rgba(30,32,36,.08);
    background: #fff;
  }
  .course-home-layout .lesson-card:hover { transform: none; box-shadow: 0 1px 4px rgba(30,32,36,.08); }
  .course-home-layout .lesson-card .lesson-cover,
  .course-home-layout .lesson-card .lesson-cover.has-img {
    width: 100%; height: auto; min-height: 0; flex: none; background: #fff;
  }
  .course-home-layout .lesson-cover:not(.has-img) { aspect-ratio: 4 / 5; }
  .course-home-layout .lesson-cover .cover-img {
    width: 100%; height: auto; max-width: 100%; max-height: none;
    object-fit: contain; clip-path: none;
  }
  .course-home-layout .lesson-body { padding: 9px 9px 10px; min-height: 0; }
  .course-home-layout .lesson-body h3 {
    order: 1; min-height: 0; margin: 0 0 7px;
    font-size: 14px; line-height: 1.45; font-weight: 700;
  }
  .course-home-layout .lesson-body .meta {
    order: 2; margin: 0 0 9px; font-size: 10.5px; line-height: 1.4;
  }
  .course-home-layout .lesson-meta-text {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .course-home-layout .download-card-intro {
    order: 2; margin: 0 0 9px; font-size: 10.5px; line-height: 1.45;
  }
  .course-home-layout .lesson-body .btn {
    order: 3; min-height: 31px; padding: 6px 7px; border-radius: 8px;
    font-size: 11px;
  }
  .course-home-layout .lesson-filter-empty { grid-column: 1 / -1; }

  .read-topbar { margin-bottom: 14px; }
  .read-top-actions { align-items: flex-start; }
  .read-top-actions > div { min-width: 0; }
  .read-top-actions .btn { flex: none; }
  .read-title-row { gap: 4px; margin-top: 6px; }
  .read-title-row h1 { font-size: 20px; line-height: 1.35; }
  .read-day { font-size: 12px; }
  .study-layout { gap: 14px; }
  .resource-detail-layout { gap: 14px; }
  .resource-gallery-card { padding: 12px; }
  .resource-detail-thumb { flex-basis: 64px; width: 64px; height: 78px; }
  .resource-main-stage { min-height: 300px; }
  .resource-intro-card { padding: 18px; }
  .resource-intro-text { min-height: 120px; font-size: 14px; line-height: 1.8; }
  .read-article { padding: 12px 14px 16px; }
  .article-body { font-size: 15px; line-height: 1.8; }
  .article-sent { margin-bottom: 8px; padding: 5px 2px; }
  .lab-card, .sentence-card, .vocab-card { padding: 14px; margin-bottom: 14px; }
  .lab-head { align-items: flex-start; gap: 10px; }
  .lab-head h3 { font-size: 16px; }
  .lab-head p { line-height: 1.5; }
  .play-main { width: 46px; height: 46px; font-size: 18px; }
  .progress-wrap { gap: 6px; margin-top: 12px; }
  .speed-row { flex-wrap: wrap; gap: 6px; }
  .speed-pill { min-height: 32px; padding: 5px 12px; }
  .sentence-list { max-height: none; overflow: visible; padding-right: 0; }
  .sentence-item { gap: 8px; padding: 10px 4px; }
  .sentence-item .idx { width: 26px; height: 26px; }
  .sent-en { font-size: 14.5px; line-height: 1.55; }
  .sent-actions { gap: 6px; }
  .sent-act { min-height: 34px; padding: 6px 10px; }
  .vocab-row { flex-wrap: wrap; gap: 8px; padding: 12px 0; }
  .vocab-main { flex: 1 1 calc(100% - 100px); min-width: 150px; }
  .vocab-say-btn { min-height: 34px; }
  .add-btn { margin-left: auto; min-height: 34px; }

  .page-head { gap: 12px; flex-wrap: wrap; }
  .page-head h1 { font-size: 22px; }
  .page-head > .btn { margin-left: auto; }
  .membership-current { align-items: flex-start; flex-direction: column; gap: 4px; }
  .membership-table-wrap { margin-left: -4px; margin-right: -4px; }
  .membership-table { min-width: 620px; }
  .membership-table th, .membership-table td { padding: 13px 10px; }
  .membership-table th:first-child { width: 25%; }
  .membership-buy-btn { min-height: 38px; font-size: 12px; }
  .notice-bar { flex-direction: column; gap: 4px; padding: 11px 13px; }
  .pick-head { gap: 6px; flex-wrap: wrap; }
  .pick-row { gap: 10px; padding: 12px; }
  .summary-card { position: static; padding: 16px; }
  .account-grid { gap: 12px; }
  .profile-card { padding: 18px; }
  .profile-card h2 { font-size: 22px; }
  .vocab-list-card { padding: 8px 14px; }
  .vocab-list-header { display: none; }
  .vocab-list-row { grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr) 68px; gap: 8px; padding: 12px 0; }
  .vocab-list-lesson { grid-column: 1 / 3; }
  .vocab-list-date { grid-column: 3 / 4; text-align: left; }
  .vocab-list-action { grid-column: 4 / 5; }
  .modal { width: calc(100vw - 24px); max-width: calc(100vw - 24px); padding: 20px 16px; border-radius: 16px; }
  .word-drawer-box { padding: 20px 16px 16px !important; }

  .admin-shell { display: flex; flex-direction: column; }
  .admin-side { position: static; width: 100%; height: auto; padding: 12px 10px; }
  .admin-side .logo { padding: 0 4px 10px; }
  .admin-side .logo img { width: 150px; height: 36px; }
  .admin-menu-item { display: inline-flex; width: auto; padding: 8px 10px; margin: 0 2px 4px 0; font-size: 13px; white-space: nowrap; }
  .admin-menu-icon { width: 20px; min-width: 20px; margin-right: 5px; }
  .admin-side > .small { display: block; margin-top: 8px !important; padding: 0 4px !important; }
  .admin-main { padding: 18px 14px 36px; }
  .admin-main h1 { font-size: 20px; }
  .admin-page-heading { align-items: stretch; flex-direction: column; gap: 12px; }
  .admin-page-heading .admin-toolbar { width: 100%; }
  .admin-page-heading .admin-toolbar .btn { flex: 1; }
  .about-editor-card { padding: 16px; }
  .about-editor-card .ql-toolbar.ql-snow { padding: 7px 5px; gap: 2px; }
  .about-editor-card .ql-toolbar.ql-snow .ql-formats { margin-right: 2px; }
  .rich-editor.ql-container.ql-snow { min-height: 300px; }
  .rich-editor .ql-editor { min-height: 298px; padding: 14px; }
  .about-content { padding: 20px 16px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card .num { font-size: 24px; }
  .table-card { overflow-x: auto; }
  .import-cover-pane { padding: 14px; }
  .import-cover-frame { min-height: 200px; }
  .admin-login-card { width: calc(100vw - 28px); padding: 24px 18px; }
  .note-history-field { width: min(100%, 240px); }
  .admin-filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .admin-filter-row::-webkit-scrollbar { display: none; }
  .admin-filter-caption { position: sticky; left: 0; z-index: 1; width: auto; padding-right: 4px; background: var(--bg); }
  .admin-label-filter { padding-top: 9px; }
  .lesson-classify-grid { grid-template-columns: 1fr; gap: 0; }
  .label-admin-row { grid-template-columns: auto minmax(88px, 1fr) auto auto; gap: 6px; padding: 7px; }
  .label-admin-row .btn { padding-left: 8px; padding-right: 8px; }
}

/* 平板课程列表：增加列数，缩小封面，方便快速浏览 */
@media (min-width: 768px) and (max-width: 1080px) {
  .course-home-layout .lesson-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
  }
  .course-home-layout .mobile-masonry-column { display: none; }
  .course-home-layout .tablet-course-grid {
    display: grid; grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px;
  }
  .course-home-layout .lesson-card .lesson-cover,
  .course-home-layout .lesson-card .lesson-cover.has-img {
    height: auto; aspect-ratio: 4 / 5; overflow: hidden;
  }
  .course-home-layout .lesson-card .lesson-cover .cover-img {
    width: 100%; height: 100%; max-height: none; object-fit: contain;
  }
}

@media (max-width: 480px) {
  .topbar-inner { padding: 0 10px; }
  .brand img { height: 39px; margin: -4px 0; max-width: 132px; }
  .nav-pill { padding: 6px 10px; font-size: 12px; }
  .page { padding-left: 10px; padding-right: 10px; }
  .course-home-layout { margin-left: -10px; margin-right: -10px; }
  .course-home-layout .lesson-body h3 { font-size: 13.5px; }
  .course-home-layout .side-sections { gap: 18px; }
  .read-title-row h1 { font-size: 19px; }
  .article-body { font-size: 14.5px; }
  .quiz-opts { grid-template-columns: 1fr; }
  .vocab-say-btn { padding: 7px 10px; }
  .price-setting-row { grid-template-columns: 1fr; gap: 7px; }
}
