@font-face {
  font-family: "Alkatip";
  src: url("/assets/fonts/AlkatipBasmaTom.ttf") format("truetype"),
       url("https://cdn.jsdelivr.net/gh/UyCode/uyfonts@main/ALKATIP%20Basma%20Tom.ttf") format("truetype");
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+08A0-08FF;
}
:root {
  --primary: #FF6B35;
  --secondary: #5b96f6;
  --accent: #ff7d37;
  --bg: #f5f6fa;
  --text: #1a1a2e;
  --muted: #999;
  --card: #fff;
  --ok: #2f9e6b;
  --danger: #a33b32;
  --radius: 16px;
  --shadow: 0 8px 22px rgba(80,50,20,.05);
  /* 课程海报与轮播统一横版 16:9 */
  --cover-ratio: 16 / 9;
  --banner-ratio: 16 / 9;
  --lesson-h: 48px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: #e8e9ee; color: var(--text); font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
body.ug { font-family: "Alkatip", "UKIJ Tuz", "Segoe UI", "Microsoft YaHei", sans-serif; line-height: 1.9; }
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
ul, ol, p, h1, h2, h3 { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.hide { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }
#app { display: none; max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; box-shadow: 0 0 60px rgba(80,50,20,.12); }
html.skip-gate #app.ready { display: block; }
#view { min-height: 100vh; padding-bottom: 28px; }
body.has-tab #view { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
body.has-bar #view { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
body.lock { overflow: hidden; height: 100vh; }

#wx-gate, #lang-modal {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 24px 18px; background: linear-gradient(180deg, #eaf2ff 0%, #f6f1ea 42%, #fff6ee 100%);
}
html.skip-gate #wx-gate { display: none; }
#lang-modal { display: none; z-index: 90; background: rgba(43,36,28,.46); }
#lang-modal.show { display: flex; }
.gate-card, .lang-card {
  width: min(420px, 100%); background: #fff; border-radius: 24px; padding: 28px 22px 22px;
  box-shadow: 0 16px 50px rgba(255,107,53,.16); text-align: center;
}
.logo-mark {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px;
  background: linear-gradient(145deg, var(--primary), #FF8C42); color: #fff;
  display: grid; place-items: center; font-size: 28px; font-weight: 700; overflow: hidden;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.gate-card h1, .lang-card h1 { font-size: 22px; line-height: 1.45; }
.gate-card .ug-line, .lang-card .ug-line { font-family: "Alkatip", sans-serif; direction: rtl; line-height: 1.9; margin-top: 6px; }
.gate-reason {
  margin-top: 12px; padding: 8px 12px; border-radius: 12px;
  background: #fff6ef; color: #a85b12; font-size: 13px; line-height: 1.55;
}
.muted { color: var(--muted); font-size: 13px; line-height: 1.7; }
.fine { color: #bbb; font-size: 12px; line-height: 1.6; margin-top: 10px; }
.lang-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.lang-pick {
  border-radius: 16px; padding: 16px 8px; background: #f4f8ff; border: 2px solid transparent; font-size: 18px;
}
.lang-pick small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.lang-pick.ug { font-family: "Alkatip", sans-serif; background: #fff6ef; font-size: 20px; line-height: 1.8; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; padding: 12px 16px; font-weight: 700; line-height: 1.3; }
.btn.block { width: 100%; }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; box-shadow: 0 4px 14px rgba(255,107,53,.35); }
.btn.accent { background: linear-gradient(135deg, #ff7d37, #ff9558); color: #fff; box-shadow: 0 4px 14px rgba(255,125,55,.35); }
.btn.ghost { background: #fff; color: var(--primary); border: 1px solid #FFD0B5; }
.btn.soft { background: #FFF3E0; color: var(--primary); }
.btn.exam { background: linear-gradient(135deg, #ff7d37, #ff9558); color: #fff; box-shadow: 0 4px 14px rgba(255,125,55,.28); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: scale(.98); }
.gate-card .btn { margin-top: 16px; }

.search-bar { position: sticky; top: 0; z-index: 20; padding: 10px 16px 8px; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(12px); display: flex; align-items: center; gap: 8px; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 10px 12px; box-shadow: 0 6px 18px rgba(80,50,20,.05); flex: 1; min-width: 0; }
.search input { flex: 1; border: 0; outline: none; background: transparent; min-width: 0; font-size: 14px; }
.search .x { width: 22px; height: 22px; border-radius: 50%; background: #efe6dc; color: var(--muted); }
.si { color: var(--muted); display: grid; }
.search-go {
  flex: none; height: 42px; padding: 0 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #ff8c42); color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
  box-shadow: 0 4px 12px rgba(255,107,53,.32);
}
.search-go:active { transform: scale(.98); }
html.night .search-go { box-shadow: 0 4px 12px rgba(255,107,53,.22); }

.pad { padding: 0 16px; }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px 16px 4px; }
.cat { background: #fff; border-radius: 18px; padding: 12px 4px; text-align: center; border: 1.5px solid transparent; box-shadow: var(--shadow); transition: all .2s ease; }
.cat.on { border-color: var(--primary); background: #FFF3E0; }
.cat b { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; margin: 0 auto 6px; font-size: 22px; overflow: hidden; }
.cat b img { width: 100%; height: 100%; object-fit: cover; }
.cat span { display: block; font-size: 12px; line-height: 1.35; }

.banner-vp {
  margin: 12px 16px 0;
  width: calc(100% - 32px);
  aspect-ratio: var(--banner-ratio);
  height: auto;
  max-height: none;
  overflow: hidden;
  border-radius: 18px;
  position: relative;
  direction: ltr;
  box-shadow: 0 8px 24px rgba(255,107,53,.15);
  touch-action: pan-y;
  cursor: grab;
  background: #f3f0ec;
}
.banner-vp:active { cursor: grabbing; }
.banner-track { display: flex; height: 100%; transition: transform .45s ease; will-change: transform; }
.banner-slide {
  min-width: 100%; height: 100%; flex: none;
  color: #fff; text-align: start; padding: 20px 16px;
  position: relative;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  user-select: none; -webkit-user-select: none;
}
.banner-slide.has-img { padding: 0; }
.banner-slide strong { display: block; font-size: 20px; line-height: 1.45; max-width: 78%; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.banner-slide em { display: block; margin-top: 8px; font-style: normal; opacity: .92; font-size: 13px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; }
.dot { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.55); padding: 0; }
.dot.on { width: 16px; background: #fff; }

.sec { margin-top: 16px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; padding: 0 16px 8px; gap: 8px; }
.sec-h h2 { font-size: 17px; }
.sec-h h2::before { content: ""; display: inline-block; width: 4px; height: 16px; border-radius: 4px; background: linear-gradient(180deg, #ff7d37, #ff9558); margin-inline-end: 8px; vertical-align: -2px; }
.hscroll {
  display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll .mini { touch-action: pan-x; }
.card-stack {
  display: flex; flex-direction: column; gap: 10px;
  padding: 0 16px 4px;
}
.card-stack .mini {
  min-width: 0; width: 100%;
  display: grid; grid-template-columns: 168px 1fr; gap: 12px; align-items: center;
  text-align: start; padding: 10px;
}
.card-stack .mini .cover {
  width: 168px; height: auto; aspect-ratio: var(--cover-ratio);
  border-radius: 12px; margin: 0;
}
.card-stack .mini strong { display: block; font-size: 14px; line-height: 1.45; }
.card-stack .mini .sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 4px;
}
.card-grid .gcard {
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: start;
  padding: 8px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-grid .gcard .cover {
  width: 100%;
  height: auto;
  aspect-ratio: var(--cover-ratio);
  border-radius: 12px;
  margin: 0 0 8px;
}
.card-grid .gcard strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
  min-height: 2.8em;
}
.card-grid .gcard .sub { color: var(--muted); font-size: 11px; margin-top: 4px; }
.card-grid .gcard .price { font-size: 15px; margin-top: 4px; }
.mini, .vcard, .rank, .menu, .panel, .plan, .order, .cmt {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
}
.mini { min-width: 132px; scroll-snap-align: start; padding: 8px; text-align: start; }
.mini .cover {
  width: 100%; height: auto; aspect-ratio: var(--cover-ratio);
  border-radius: 12px;
}
.vcard {
  width: calc(100% - 32px); margin: 0 auto 10px;
  display: flex; gap: 12px; padding: 10px;
  text-align: start; align-items: center;
}
.vcard .cover {
  width: 168px; height: auto; aspect-ratio: var(--cover-ratio);
  border-radius: 12px; flex: none;
}
.meta { flex: 1; min-width: 0; }
.meta strong, .mini strong { display: block; font-size: 14px; line-height: 1.45; }
.meta .sub, .mini .sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
.meta .sub.sub2, .mini .sub.sub2, .gcard .sub.sub2 { margin-top: 2px; }
.price { color: var(--accent); font-weight: 800; font-size: 16px; }
.price-origin, del.price-origin {
  display: inline-block; margin-inline-end: 8px;
  color: #b0a79c; font-size: .72em; font-weight: 500;
  text-decoration: line-through;
}
.detail-price { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.detail-price .now { line-height: 1.2; }
.detail-price .now.free, .price .free { color: var(--ok); }
.detail-price .now.vip-free, .price .vip-free { color: #0ea5b8; }
html.night .detail-price .now.vip-free, html.night .price .vip-free { color: #5eead4; }
.refund-manual-link {
  display: inline; border: 0; background: none; padding: 0; margin: 0;
  color: var(--primary); text-decoration: underline; cursor: pointer;
  font: inherit; vertical-align: baseline;
}
html.night .refund-manual-link { color: #ffb087; }
.price-row { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.promo-cd {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff1e8; color: #c2410c; border-radius: 999px;
  padding: 4px 10px; font-size: 12px;
}
.promo-cd em { font-style: normal; opacity: .85; }
.promo-cd b { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
html.night .promo-cd { background: #3a2418; color: #ffb087; }
html.night .price-origin, html.night del.price-origin { color: #7a8496; }
.price.free { color: var(--ok); font-size: 14px; }
.tag { display: inline-block; background: #fff1e8; color: var(--accent); border-radius: 999px; padding: 1px 6px; font-size: 11px; font-style: normal; margin-inline-end: 4px; }
.tag.green { background: #e8f7ef; color: var(--ok); }
.cover {
  position: relative; overflow: hidden; display: grid; place-items: center;
  color: #fff; font-size: 26px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  aspect-ratio: var(--cover-ratio);
}
.cover img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.rank { margin: 0 16px; padding: 6px; }
.rank button { width: 100%; display: flex; gap: 10px; align-items: center; padding: 8px; text-align: start; border-radius: 12px; }
.rank .n { width: 22px; text-align: center; font-weight: 800; color: #c9b8a4; font-style: normal; }
.rank .n.top { color: var(--accent); }
.rank .cover {
  width: 72px; height: auto; aspect-ratio: var(--cover-ratio);
  border-radius: 8px; font-size: 14px; flex: none;
}
.vip-wrap { margin: 0 16px; border-radius: 22px; padding: 16px; background: linear-gradient(145deg, var(--primary) 0%, var(--secondary) 50%, #7ab5ff 100%); color: #fff; box-shadow: 0 10px 30px rgba(255,107,53,.25); position: relative; overflow: hidden; }
.vip-wrap h2 { font-size: 18px; }
.vip-lead { margin-top: 6px; font-size: 12px; opacity: .92; line-height: 1.5; }
.vip-status {
  display: inline-flex; align-items: center; margin-top: 8px;
  background: rgba(255,255,255,.18); color: #fff;
  border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600;
}
.vip-status.on { background: rgba(255,255,255,.28); }
.plans { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; padding-bottom: 2px; }
.plans::-webkit-scrollbar { display: none; }
.plan {
  min-width: 148px; max-width: 180px; color: var(--text); padding: 12px;
  text-align: start; background: #fff; border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.plan strong { display: block; font-size: 14px; line-height: 1.35; }
.plan-days {
  display: inline-block; margin-top: 6px; padding: 2px 8px;
  border-radius: 999px; background: #FFF1E8; color: var(--accent);
  font-size: 11px; font-weight: 700;
}
.plan b { display: block; color: var(--accent); font-size: 20px; margin: 8px 0 0; }
.plan li { font-size: 12px; color: #6d645b; line-height: 1.45; margin-top: 3px; }
.vip-benefits {
  margin-top: 12px; padding: 12px 12px 10px;
  background: rgba(255,255,255,.16); border-radius: 14px;
  max-width: 100%; box-sizing: border-box;
}
.vip-benefits-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.vip-benefits ul { margin: 0; padding: 0 0 0 1.15em; }
.vip-benefits li { font-size: 12px; line-height: 1.55; opacity: .95; margin-top: 4px; }
.vip-benefits.in-sheet {
  background: #fff8f1; color: var(--text);
  margin-top: 12px;
}
.vip-benefits.in-sheet li { opacity: 1; color: #6d645b; }
.vip-sheet-plans { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.sheet-plan { min-width: 0; max-width: none; width: 100%; }
.vip-sheet-status {
  margin-top: 8px; padding: 8px 10px; border-radius: 10px;
  background: #f3f5f8; color: var(--text); font-size: 13px; font-weight: 600;
}
.vip-sheet-status.on { background: #e8f7ef; color: var(--ok); }
.vip-me {
  margin: 0 16px 12px; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(135deg, #fff7f0, #eef5ff);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  box-shadow: var(--shadow);
}
.vip-me b { display: block; font-size: 14px; }
.vip-me .fine { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.vip-me .btn.small { padding: 8px 12px; font-size: 12px; flex: none; }
.promo-me {
  background: linear-gradient(135deg, #fff4ec, #ffe8d6);
  margin-top: -4px;
}
.promo-me b { color: var(--primary); }
html.night .vip-me { background: linear-gradient(135deg, #2a221c, #1c2433); }
html.night .promo-me { background: linear-gradient(135deg, #3a2418, #2a221c); }
html.night .plan { background: var(--card); color: var(--text); }
html.night .plan li { color: var(--muted); }
html.night .plan-days { background: #3a2418; color: #ffb087; }
.site-foot { padding: 18px 16px 8px; text-align: center; }
.site-foot .foot-beian { margin: 8px 0; line-height: 1.7; }
.site-foot .foot-links button.linkish {
  background: none; border: 0; padding: 0; color: var(--muted);
  text-decoration: underline; text-underline-offset: 2px; font: inherit; cursor: pointer;
}
.site-foot .foot-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; }
.site-foot .foot-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.site-foot .foot-links span { color: var(--muted); }

.sort-bar {
  display: flex; gap: 0; margin: 0 16px 10px; background: var(--card);
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
}
.sort-bar button {
  flex: 1; padding: 10px 4px; font-size: 13px; color: var(--muted);
  border-right: 1px solid color-mix(in srgb, var(--muted) 18%, transparent);
}
.sort-bar button:last-child { border-right: 0; }
.sort-bar button.on { color: var(--primary); font-weight: 700; background: color-mix(in srgb, var(--primary) 8%, transparent); }

.filter-bar { padding: 0 16px 8px; }
.filter-group {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; min-width: 0;
}
.filter-group.wrap { align-items: flex-start; }
.filter-label {
  flex: none; font-size: 12px; color: var(--muted);
  max-width: 4.5em; line-height: 1.3;
  padding-top: 6px;
}
.filter-chips {
  display: flex; flex-wrap: nowrap; gap: 6px; align-items: center;
  overflow-x: auto; min-width: 0; flex: 1;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  padding: 2px 2px 4px;
  scrollbar-width: none;
}
.filter-chips.wrap {
  flex-wrap: wrap;
  overflow: visible;
  touch-action: auto;
  overscroll-behavior: auto;
}
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chips .chip { flex: none; white-space: nowrap; }
.chip {
  border: 1px solid color-mix(in srgb, var(--muted) 25%, transparent);
  background: var(--card); color: var(--text); border-radius: 999px;
  padding: 4px 10px; font-size: 12px;
}
.chip.on { border-color: var(--primary); color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.btn-back-home {
  flex: none;
  align-self: center;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  background: #1F6FEB;
  color: #fff;
  box-shadow: 0 4px 12px rgba(31, 111, 235, .28);
}
.btn-back-home:active { transform: scale(.98); opacity: .92; }
html.night .btn-back-home { background: #3B82F6; color: #fff; }

html.night {
  --bg: #12151c;
  --text: #e8eaef;
  --muted: #9aa3b2;
  --card: #1c212b;
  --primary: #ff8a4c;
  --secondary: #5b9cff;
  --accent: #ff8a4c;
  --ok: #3ecf8e;
  --shadow: 0 6px 18px rgba(0,0,0,.35);
}
html.night body,
body.night { background: #0b0d12; color: var(--text); }
html.night #app { box-shadow: 0 0 60px rgba(0,0,0,.45); }
html.night .brand-header { filter: brightness(.92); }
html.night .cat, html.night .mini, html.night .vcard, html.night .gcard, html.night .panel, html.night .menu, html.night .order, html.night .order-line,
html.night .stat, html.night .icon-btn, html.night .speeds button, html.night .chip,
html.night textarea, html.night .field {
  background: var(--card);
  color: var(--text);
  border-color: #2a3140;
}
html.night .menu button { border-color: #2a3140; color: var(--text); }
html.night .search, html.night .sort-bar { background: var(--card); }
html.night .sort-row button { background: #243041; border-color: #3a4558; color: #c9d2e0; }
html.night .sort-row button.on { background: color-mix(in srgb, var(--primary) 18%, #243041); border-color: var(--primary); color: var(--primary); }
html.night .notice-bar { background: #2a2218; border-color: #5a4030; color: #e0c3a0; }
html.night .actionbar, html.night #tabbar {
  background: rgba(18, 21, 28, .96);
  border-color: #2a3140;
}
html.night #tabbar { border-top-color: #2a3140; }
html.night #tabbar button { color: #7a8496; }
html.night #tabbar button.on { color: var(--primary); }
html.night .subhead { background: color-mix(in srgb, var(--bg) 96%, transparent); }
html.night .fine { color: #8b95a8; }
html.night .profile .fine { color: rgba(255,255,255,.82); }
html.night .lesson { border-top-color: #2a3140; }
html.night .compliance { background: #2a2218; border-color: #5a4030; color: #e0c3a0; }

.brand-header {
  display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff;
}
.brand-header .brand-logo {
  width: 42px; height: 42px; flex: none; background: #fff; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px; font-weight: 900; color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,.12); overflow: hidden;
}
.brand-header .brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-header .brand-name { font-size: 17px; font-weight: 700; line-height: 1.4; }
.brand-header .brand-sub { font-size: 11px; opacity: .85; margin-top: 2px; line-height: 1.5; }
.notice-bar { margin: 10px 16px 0; background: #fff8ef; border: 1px solid #ffd7b8; border-radius: 12px; padding: 8px 12px; color: #8a4b1f; font-size: 12px; line-height: 1.6; }
.compliance { margin: 12px 16px; background: #fff8ef; border: 1px solid #ffd7b8; border-radius: 14px; padding: 10px 12px; color: #8a4b1f; font-size: 12px; line-height: 1.65; }

.subhead { position: sticky; top: 0; z-index: 16; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 10px; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(12px); }
.subhead h1 { flex: 1; font-size: 16px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 36px; height: 36px; border-radius: 12px; background: #fff; display: grid; place-items: center; }
body.ug .flip { transform: scaleX(-1); }
.hero {
  margin: 0 16px; width: calc(100% - 32px); height: auto;
  aspect-ratio: var(--cover-ratio);
  border-radius: 18px;
}
.panel { margin: 0 16px 12px; padding: 12px; }
.panel h3 { font-size: 15px; margin-bottom: 6px; }
.lesson-panel { margin: 0 16px 12px; padding: 12px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.lesson-panel h3 { font-size: 15px; margin-bottom: 8px; }
.lesson-scroll {
  max-height: calc(var(--lesson-h) * 5.5);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  border-radius: 10px;
  touch-action: pan-y;
}
.lesson {
  width: 100%; min-height: var(--lesson-h); box-sizing: border-box;
  display: flex; gap: 8px; align-items: center; text-align: start;
  padding: 8px 6px; border-top: 1px solid #f5f5f5;
}
.lesson:first-of-type, .lesson-scroll > .lesson:first-child { border-top: 0; }
.lesson i { flex: none; font-style: normal; font-size: 11px; color: var(--ok); background: #e8f7ef; border-radius: 999px; padding: 2px 6px; }
.lesson.lock i { color: var(--danger); background: #fff1f0; }
.lesson.on { background: #f4f8ff; border-radius: 10px; }
.lesson span { flex: 1; min-width: 0; line-height: 1.35; }
.lesson em { color: var(--muted); font-style: normal; font-size: 12px; flex: none; }
.lesson-play {
  flex: none; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), #ff8a4c);
  color: #fff; font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.lesson.lock .lesson-play { display: none; }
.lesson-scroll .lesson.lock { opacity: .72; }
.exam-entry { padding-top: 0; padding-bottom: 8px; }
.exam-entry .btn { margin-top: 0; }
.exam-frame-wrap {
  margin: 0;
  height: calc(100vh - 52px);
  background: #fff;
  overflow: hidden;
}
.exam-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.actionbar, #tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); width: min(480px, 100%); bottom: 0; z-index: 30;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px); padding-bottom: env(safe-area-inset-bottom);
}
.actionbar { display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(80,50,20,.06); }
.actionbar .btn { flex: 1; }
#tabbar {
  display: flex; border-top: 1px solid #f0e7de;
  direction: ltr; /* 按已开启 Tab 数量均分铺满底栏 */
}
#tabbar button { flex: 1; min-width: 0; padding: 8px 0 10px; color: #bbb; font-size: 11px; }
#tabbar button.on { color: var(--primary); }
#tabbar svg { display: block; margin: 0 auto 2px; }

.menu .lang-entry { flex-wrap: wrap; }
.menu .lang-cn { margin-inline-end: 8px; }
.menu .lang-ug {
  font-family: "Alkatip", "Microsoft YaHei", sans-serif;
  direction: rtl; unicode-bidi: isolate;
  color: var(--muted); font-size: 13px; line-height: 1.6;
}
.menu .lang-entry .arrow { margin-inline-start: auto; }

.player-wrap { position: relative; margin: 0 16px; background: #1c1915; border-radius: 16px; overflow: hidden; }
video { width: 100%; height: 210px; background: #1c1915; }
.play-wm {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  overflow: hidden;
}
.play-wm span {
  position: absolute;
  color: rgba(255,255,255,.38);
  font-size: 13px; font-weight: 650;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
  white-space: nowrap;
  animation: play-wm-drift 14s linear infinite;
}
.play-wm span:nth-child(2) {
  animation-delay: -7s;
  font-size: 12px;
  color: rgba(255,255,255,.28);
}
@keyframes play-wm-drift {
  0% { top: 10%; left: 6%; }
  25% { top: 58%; left: 42%; }
  50% { top: 28%; left: 18%; }
  75% { top: 70%; left: 8%; }
  100% { top: 10%; left: 6%; }
}
.player-wrap.is-image {
  background: #12110f;
  border: 1px solid rgba(255,255,255,.06);
}
.image-stage {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: var(--cover-ratio);
  overflow: hidden;
  background: #0d0c0b;
}
.lesson-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #0d0c0b;
}
.image-meta {
  padding: 10px 14px 12px;
  color: #f5efe7;
}
.image-meta .audio-label {
  background: rgba(255,255,255,.12);
  color: #ffe8d6;
}
.image-meta .audio-title {
  color: #fff;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
}
.player-wrap.is-audio {
  background: linear-gradient(160deg, #fff7f0 0%, #ffe8d6 42%, #ffd4b8 100%);
  border: 1px solid #f0d5c0;
  box-shadow: 0 10px 28px rgba(255, 107, 53, 0.12);
  padding: 16px 14px 12px;
}
.audio-stage {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.audio-cover {
  width: 132px;
  height: auto;
  aspect-ratio: var(--cover-ratio);
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  flex: none;
  box-shadow: 0 8px 18px rgba(80, 40, 10, 0.18);
  background: #fff;
}
.audio-cover.placeholder {
  display: grid;
  place-items: center;
  font-size: 36px;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), var(--secondary, #ff9a5a));
}
.audio-meta { min-width: 0; flex: 1; }
.audio-label {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.12);
  color: var(--primary);
  margin-bottom: 6px;
}
.audio-title {
  font-size: 16px;
  font-weight: 700;
  color: #3d2f26;
  line-height: 1.35;
  word-break: break-word;
}
.audio-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #8a7464;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audio-el {
  width: 100%;
  height: 40px;
  display: block;
}
.speeds { display: flex; gap: 6px; padding: 10px 16px; flex-wrap: wrap; }
.speeds button, .chip { border-radius: 999px; padding: 6px 10px; background: #fff; color: #6d645b; font-size: 12px; }
.speeds button.on { background: var(--primary); color: #fff; }
textarea, .field { width: 100%; border: 1px solid #efe6dc; background: #fff; border-radius: 12px; padding: 10px 12px; outline: none; }
textarea { min-height: 88px; resize: vertical; }

.profile { margin: 8px 16px 12px; background: linear-gradient(145deg, var(--primary) 0%, var(--secondary) 50%, #7ab0ff 100%); color: #fff; border-radius: 22px; padding: 18px 16px; display: flex; gap: 12px; align-items: center; box-shadow: 0 8px 24px rgba(255,107,53,.2); }
.profile .fine { color: rgba(255,255,255,.85); margin-top: 4px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--primary); display: grid; place-items: center; font-weight: 800; font-size: 22px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.sort-row { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sort-row button { border: 1px solid #ffd7b8; background: #fff; border-radius: 999px; padding: 2px 8px; font-size: 12px; color: #a85b12; }
.sort-row button.on { background: #fff3e0; border-color: var(--primary); color: var(--primary); }
.menu { margin: 0 16px; overflow: hidden; }
.menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-top: 1px solid #f5f5f5; text-align: start; }
.menu button:first-child { border-top: 0; }
.menu .arrow { margin-inline-start: auto; color: #c9b8a4; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 12px; }
.vip-head .stats { grid-template-columns: 1fr 1fr; }
@media (min-width: 360px) {
  .vip-head .stats { grid-template-columns: repeat(4, 1fr); }
}
.task-card { cursor: pointer; }
.chip { border: 1px solid #e6e0d8; }

.task-hero {
  margin: 12px 16px 8px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 88%, #1a1a2e), color-mix(in srgb, var(--accent, #ff7d37) 70%, #222));
  color: #fff;
}
.task-hero .fine, .task-hero span { color: rgba(255,255,255,.82); }
.task-hero-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.task-hero-lecoin { text-align: right; }
.task-hero-grid-coin { margin-top: 8px; }
.task-lecoin-note { margin: 10px 0 0; font-size: 12px; line-height: 1.5; opacity: .78; }
.sheet-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sheet-head-row h3 { margin: 0; }
.sheet-recv-mini { font-size: 12px; padding: 4px 8px; }
.task-hero-cash { font-size: 28px; font-weight: 800; letter-spacing: .02em; }
.task-recv-link {
  flex-shrink: 0; align-self: center; margin: 0; padding: 0; border: none; background: transparent;
  color: rgba(255,255,255,.95); font-size: 12px; font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; white-space: nowrap; cursor: pointer;
}
.task-recv-link:active { opacity: .75; }
.task-hero-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.18);
}
.task-hero-grid div { text-align: center; }
.task-hero-grid b { display: block; font-size: 14px; }
.task-hero-grid span { font-size: 11px; }
.task-hero-actions { margin-top: 14px; }
.task-hero-btns {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.task-hero-btns .btn {
  flex: 1; max-width: 32%; padding: 10px 6px; font-size: 13px; font-weight: 650;
  border: none; border-radius: 12px; white-space: nowrap;
}
.task-btn-mine {
  background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.28) !important;
}
.task-btn-bill { background: rgba(255,255,255,.28); color: #fff; }
.task-btn-withdraw { background: #fff; color: var(--primary); }
.task-btn-placeholder { flex: 1; max-width: 32%; }
.task-hero .btn.primary { background: #fff; color: var(--primary); border: none; }
.task-hero .btn.ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.task-hero .btn.soft { background: rgba(255,255,255,.2); color: #fff; border: none; }
.task-filter-wrap { padding: 4px 0 2px; }
.task-filter {
  display: flex; gap: 8px; overflow: auto; padding: 6px 16px;
  -webkit-overflow-scrolling: touch;
}
.task-filter-status { padding-top: 0; }
.task-sort-bar { margin: 8px 16px 10px; }
.task-filter-panel { margin-top: 0; }
.task-list { padding-bottom: 4px; }
.task-vcard .price { margin-top: 6px; }
.task-rank { margin: 12px 16px 24px; width: auto; }
.task-rank-title {
  text-align: center; margin: 0 0 12px;
  font-size: 13px; font-weight: 700;
  color: #c45a7a; letter-spacing: 0.06em;
}
.task-rank-tabs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 12px;
}
.task-rank-tab {
  flex: 1; min-width: 0; max-width: 120px;
  padding: 8px 6px; border-radius: 999px;
  font-size: 13px; font-weight: 650;
  background: #f3e8ef; color: #9a6a80;
  border: 1px solid transparent;
}
.task-rank-tab.on {
  background: linear-gradient(135deg, #ff8f6b, #e85a9b);
  color: #fff;
  box-shadow: 0 4px 12px rgba(232, 90, 155, 0.28);
}
.task-rank-scroll {
  max-height: 260px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.task-rank-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 8px; align-items: center;
  padding: 10px 2px; font-size: 13px;
  border-bottom: 1px solid color-mix(in srgb, #e85a9b 12%, transparent);
}
.task-rank-row:last-child { border-bottom: 0; }
.task-rank-who {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #5a3a48; font-weight: 650;
}
.task-rank-who em {
  display: inline-block; min-width: 1.2em; font-style: normal;
  color: #e85a9b; font-weight: 800; margin-right: 2px;
}
.task-rank-time {
  text-align: center; color: #9a7a88; font-size: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.task-rank-amt {
  text-align: end; color: #e67a30; font-size: 13px; font-weight: 750;
  white-space: nowrap;
}
.task-rank-empty {
  text-align: center; color: #b08a9a; font-size: 13px; padding: 18px 8px;
}
html.night .task-rank-title { color: #f0a0c0; }
html.night .task-rank-tab { background: #2a2430; color: #c8a0b4; }
html.night .task-rank-tab.on { background: linear-gradient(135deg, #c45a40, #b04080); color: #fff; }
html.night .task-rank-who { color: #f0d8e4; }
html.night .task-rank-time { color: #a8909c; }
html.night .task-rank-amt { color: #ffb070; }
.task-checkin-panel {
  margin: 12px 16px; width: auto;
  user-select: none;
}
.task-checkin-panel .task-checkin-days {
  pointer-events: auto;
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  -webkit-overflow-scrolling: touch; touch-action: pan-x;
}
.task-checkin-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px;
  position: relative;
}
.task-checkin-head.has-act {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 8px;
}
.task-checkin-title {
  font-weight: 700;
  justify-self: start;
  min-width: 0;
}
.task-checkin-head .task-checkin-btn {
  flex: none; pointer-events: auto; white-space: nowrap;
  justify-self: end;
  font-size: 14px;
}
.task-checkin-act {
  font-size: 14px; font-weight: 700;
  color: var(--primary);
  text-align: center;
  justify-self: center;
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  padding: 0 4px;
}
.task-checkin-sub {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px;
  margin-bottom: 10px; line-height: 1.45;
}
.task-checkin-streak { flex: none; white-space: nowrap; font-weight: 650; color: #8a6a4a; }
.task-checkin-tip { flex: 1; min-width: 0; color: var(--muted); }
.task-checkin-poster {
  width: 100%; max-height: 160px; object-fit: cover; border-radius: 12px; margin-bottom: 10px; display: block;
  pointer-events: none;
}
.task-checkin-day {
  flex: 0 0 auto; min-width: 56px; padding: 8px 6px; border-radius: 12px; text-align: center;
  background: #d8d2c8; border: 1px solid #c4bcb0; pointer-events: none;
}
.task-checkin-day em { display: block; font-style: normal; font-size: 11px; color: #6a635a; margin-bottom: 4px; }
.task-checkin-day b { font-size: 13px; color: #4a453e; }
.task-checkin-day.on {
  background: #ebe4d8; border-color: #c9b89a;
}
.task-checkin-day.on em { color: #7a6548; }
.task-checkin-day.on b { color: #5a4030; }
.task-checkin-day.lit {
  background: #fff7ea; border-color: #efc48a;
}
.task-checkin-day.lit em { color: #9a6a30; }
.task-checkin-day.lit b { color: #c47a20; }
/* 满签额外奖励：始终橙黄，不受 lit / 夜间 影响 */
.task-checkin-panel .task-checkin-day.bonus,
.task-checkin-panel .task-checkin-day.bonus.lit,
.task-checkin-panel .task-checkin-day.bonus.on {
  background: #ff9f3a !important;
  border-color: #e88820 !important;
  min-width: 64px;
}
.task-checkin-panel .task-checkin-day.bonus em,
.task-checkin-panel .task-checkin-day.bonus b,
.task-checkin-panel .task-checkin-day.bonus.lit em,
.task-checkin-panel .task-checkin-day.bonus.lit b,
.task-checkin-panel .task-checkin-day.bonus.on em,
.task-checkin-panel .task-checkin-day.bonus.on b {
  color: #fffaf3 !important;
}
html.night .task-checkin-streak { color: #e0c4a0; }
html.night .task-checkin-day { background: #3a4250; border-color: #4e5868; }
html.night .task-checkin-day em { color: #aeb6c4; }
html.night .task-checkin-day b { color: #dde3ee; }
html.night .task-checkin-day.on { background: #4a5568; border-color: #6a7a94; }
html.night .task-checkin-day.lit { background: #4a5a70; border-color: #7a9aba; }
html.night .task-checkin-day.lit em { color: #c8daf0; }
html.night .task-checkin-day.lit b { color: #eef5ff; }
html.night .task-checkin-panel .task-checkin-day.bonus,
html.night .task-checkin-panel .task-checkin-day.bonus.lit,
html.night .task-checkin-panel .task-checkin-day.bonus.on {
  background: #ff9f3a !important;
  border-color: #e88820 !important;
}
html.night .task-checkin-panel .task-checkin-day.bonus em,
html.night .task-checkin-panel .task-checkin-day.bonus b,
html.night .task-checkin-panel .task-checkin-day.bonus.lit em,
html.night .task-checkin-panel .task-checkin-day.bonus.lit b {
  color: #fffaf3 !important;
}
.bill-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 0 16px 12px; width: auto;
}
.bill-stats .stat { text-align: center; }
.bill-sort-bar { margin-bottom: 8px; }
.bill-time-panel {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 16px 10px;
}
.bill-month-select { width: auto; min-width: 140px; margin: 0; }
.bill-list {
  margin: 0 16px 24px; width: auto;
  display: flex; flex-direction: column; gap: 0;
}
.bill-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--muted) 12%, transparent);
}
.bill-row-title { font-size: 14px; font-weight: 600; }
.bill-kind {
  display: inline-block; padding: 0 6px; border-radius: 999px; font-size: 11px;
  background: #f2f0ec;
}
.bill-kind.cashable { background: #e8f7ee; color: #1b7a3d; }
.bill-kind.frozen { background: #fff6e5; color: #a67c00; }
.bill-kind.withdrawn { background: #eef2f7; color: #4a5a6a; }
.bill-amt { font-size: 15px; color: var(--primary); white-space: nowrap; }
html.night .task-vcard { background: #1c2230; }
html.night .task-hero { background: linear-gradient(145deg, #3a2a1f, #2a3344); }
.stat { background: #fff; border-radius: 16px; padding: 12px; }
.stat b { display: block; font-size: 20px; color: var(--primary); }
.stat span { color: var(--muted); font-size: 12px; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.preview-tip { display: block; width: calc(100% - 32px); margin: 8px auto; background: #fff6e8; color: #a85b12; border-radius: 12px; padding: 8px; font-size: 12px; }

.mask { position: fixed; inset: 0; background: rgba(30,20,10,.45); z-index: 70; }
.sheet, .modal { position: fixed; z-index: 71; background: #fff; }
.sheet { left: 50%; transform: translateX(-50%); bottom: 0; width: min(480px, 100%); border-radius: 20px 20px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 78vh; overflow: auto; }
.sheet.sheet-shake {
  width: min(560px, 100%);
  max-height: 92vh;
  padding: 12px 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #fff8f2 0%, #fff 28%);
}
.sheet.sheet-shake h3 { font-size: 18px; letter-spacing: .04em; margin: 0; }
.modal { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(400px, 92%); max-height: 86vh; overflow: auto; border-radius: 18px; padding: 12px; }
.sheet h3, .modal h3 { font-size: 16px; margin-bottom: 8px; }
.coupon-item { width: 100%; text-align: start; padding: 8px; border-radius: 10px; margin-top: 6px; background: #f7f4ef; }
.coupon-item.on { outline: 2px solid var(--primary); }
#toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 120; background: rgba(43,36,28,.92); color: #fff; border-radius: 999px; padding: 10px 14px; font-size: 13px; max-width: min(420px, 92%); text-align: center; }
.kvs { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 14px; }
.bubble { max-width: 86%; padding: 8px 12px; border-radius: 14px; margin: 8px 16px; line-height: 1.6; }
.bubble.bot { background: #fff; }
.bubble.me { background: var(--primary); color: #fff; margin-inline-start: auto; }
#ai-box, .ai-box { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 8px 0 12px; }
.ai-page {
  display: flex; flex-direction: column;
  min-height: calc(100vh - env(safe-area-inset-top));
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}
.ai-input {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(480px, 100%); z-index: 28;
  display: flex; gap: 8px; align-items: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, #fff);
  backdrop-filter: blur(12px);
  border-top: 1px solid color-mix(in srgb, var(--muted) 18%, transparent);
  box-shadow: 0 -6px 20px rgba(0,0,0,.06);
}
.ai-input input { flex: 1; margin: 0; }
.ai-input .btn { flex: none; white-space: nowrap; }
.inbox-input { gap: 6px; }
.inbox-media { display: block; max-width: 100%; max-height: 220px; border-radius: 10px; margin-top: 6px; }
.order-line {
  display: flex; align-items: center; gap: 8px;
  width: calc(100% - 32px); margin: 0 auto 8px; padding: 10px 12px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  text-align: start; font-size: 13px; line-height: 1.3;
}
.order-line .ol-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.order-line .ol-time { flex: none; color: var(--muted); white-space: nowrap; font-size: 11px; max-width: 38%; overflow: hidden; text-overflow: ellipsis; }
.order-line .ol-amt { flex: none; white-space: nowrap; }
.order-line .ol-st { flex: none; white-space: nowrap; color: var(--muted); }
html.night .ai-input { background: rgba(18, 21, 28, .96); border-top-color: #2a3140; }
body.ai-open #toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
.legal p { margin-bottom: 8px; font-size: 14px; line-height: 1.75; }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.err-banner { margin: 12px 16px; background: #fff1f0; border: 1px solid #ffccc7; color: #a33b32; border-radius: 14px; padding: 10px 12px; font-size: 13px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sec, .vcard, .mini, .gcard { animation: fadeUp .35s ease both; }

.detail-stats {
  display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap;
}
.detail-stat {
  flex: 1; min-width: 72px;
  background: #fff8f1; border: 1px solid #ffe0c8; border-radius: 14px;
  padding: 10px 8px; text-align: center;
}
.detail-stat b { display: block; font-size: 18px; color: var(--primary); line-height: 1.2; }
.detail-stat span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

.teacher-block { margin-top: 4px; }
.teacher-block-inner { display: flex; gap: 12px; align-items: flex-start; }
.teacher-cover {
  width: 96px; flex: none; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
}
.teacher-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.teacher-meta { flex: 1; min-width: 0; }
.teacher-meta b { font-size: 16px; }
.teacher-meta .muted { margin-top: 6px; font-size: 13px; line-height: 1.6; }

.dist-promo-block .dist-promo-line { font-size: 14px; line-height: 1.55; color: var(--text); }
.dist-promo-block .dist-promo-line.sub { margin-top: 4px; color: var(--muted); font-size: 13px; }

.task-detail-poster {
  margin: 0 16px 10px; border-radius: 16px; overflow: hidden;
  background: #f3eee8; aspect-ratio: 16 / 9;
}
.task-detail-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }

#tab-popup {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 18px;
}
.tab-popup-mask {
  position: absolute; inset: 0; background: rgba(30, 24, 18, .48);
}
.tab-popup-card {
  position: relative; z-index: 1; width: min(360px, 100%);
  background: #fff; border-radius: 20px; padding: 22px 18px 16px;
  box-shadow: 0 18px 48px rgba(40, 28, 16, .22); text-align: center;
  animation: fadeUp .28s ease both;
}
.tab-popup-card h3 { font-size: 18px; margin-bottom: 10px; }
.tab-popup-body {
  text-align: left; font-size: 14px; line-height: 1.7; color: #4a4036;
  max-height: 42vh; overflow: auto; margin-bottom: 14px; white-space: normal;
}

/* �˺���Ϣ */
.phone-sms-hint { color: #c2783a !important; margin-top: 6px; }
.acc-hero { position: relative; margin: 8px 16px 14px; }
.acc-hero-bg {
  position: absolute; inset: 0 8px auto; height: 88px; border-radius: 22px;
  background: linear-gradient(135deg, #ff8a4c 0%, #ff6b35 42%, #5b96f6 100%);
  opacity: .95; filter: blur(0);
}
.acc-card {
  position: relative; margin-top: 18px; padding: 18px 16px 16px;
  background: var(--card, #fff); border-radius: 22px;
  box-shadow: 0 10px 28px rgba(40,28,16,.08);
  text-align: center;
}
.acc-avatar-wrap { display: inline-block; position: relative; margin-top: -42px; }
.acc-avatar {
  width: 76px; height: 76px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(145deg, #ffe0c8, #d7e6ff);
  border: 3px solid #fff; box-shadow: 0 6px 16px rgba(255,107,53,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: #fff; margin: 0 auto;
}
.acc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-avatar-edit {
  display: inline-block; margin-top: 8px; font-size: 12px; color: var(--accent, #ff6b35);
  cursor: pointer; padding: 4px 10px; border-radius: 999px; background: #fff4ec;
}
.acc-display-name {
  margin-top: 10px; font-size: 18px; font-weight: 700; letter-spacing: .02em;
}
.acc-name-row {
  display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 10px; flex-wrap: wrap;
}
.acc-name-input {
  flex: 1; min-width: 120px; max-width: 180px; border: 1px solid #efe6dc; border-radius: 12px;
  padding: 8px 10px; text-align: center; font-size: 15px; font-weight: 600; outline: none;
  background: #fffaf6;
}
.acc-pending {
  display: inline-block; margin-top: 6px; font-size: 11px; color: #c2783a;
  background: #fff4e8; padding: 2px 8px; border-radius: 999px;
}
.acc-stats {
  margin: 0 16px 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.acc-stats > div {
  background: var(--card, #fff); border-radius: 16px; padding: 12px 8px; text-align: center;
  box-shadow: 0 4px 14px rgba(40,28,16,.05);
}
.acc-stats b { display: block; font-size: 16px; color: var(--primary, #ff6b35); }
.acc-stats span { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.acc-panel {
  margin: 0 16px 12px; background: var(--card, #fff); border-radius: 18px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(40,28,16,.05);
}
.acc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 14px; border-top: 1px solid #f3ece4; font-size: 13px;
}
.acc-row:first-child { border-top: 0; }
.acc-row > span { color: var(--muted); flex-shrink: 0; }
.acc-row > b { font-weight: 600; text-align: end; word-break: break-all; }
.acc-row-r { display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.acc-foot { margin: 4px 20px 20px; text-align: center; line-height: 1.5; }
.warn-line { color: #b45309; }
.id-shake-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.id-shake-head-main { min-width: 0; flex: 1; }
.ad-slot { position: relative; margin: 10px 16px; background: #fff7f2; border-radius: 12px; overflow: hidden; border: 1px dashed #e0a070; }
.ad-mark {
  display: inline-block; margin: 8px 10px 0; padding: 0 6px;
  border: 1px solid #c45c26; border-radius: 4px;
  color: #c45c26; background: #fff; font-size: 12px; font-weight: 700; line-height: 20px;
}
.ad-ylh-banner .ad-slot-body { width: 100%; min-height: 52px; aspect-ratio: 6.4 / 1; }
.ad-ylh-template .ad-slot-body { min-height: 72px; }
.ad-slot-body img { display: block; width: 100%; max-height: 180px; object-fit: cover; }
.ad-slot-body b { display: block; padding: 8px 10px 10px; font-size: 14px; }
.ad-feed-link { color: inherit; text-decoration: none; display: block; }
.ad-splash { position: fixed; inset: 0; z-index: 80; background: #111; display: flex; align-items: center; justify-content: center; }
.ad-splash img, .ad-splash video { max-width: 100%; max-height: 100%; }
.ad-splash .ad-mark { position: absolute; top: 16px; left: 16px; z-index: 2; margin: 0; }
.ad-splash-skip { position: absolute; top: 16px; right: 16px; z-index: 2; border: 0; border-radius: 999px; padding: 6px 10px; background: rgba(0,0,0,.55); color: #fff; }
.ad-reward { position: fixed; inset: 0; z-index: 85; background: rgba(20,12,8,.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ad-reward-card { width: min(420px, 100%); background: #fff; border-radius: 16px; padding: 12px; }
.ad-reward-card p { margin: 0 0 8px; font-size: 13px; }
.ad-reward-card video { width: 100%; max-height: 52vh; background: #000; border-radius: 10px; }
.ad-slot-body iframe.ad-union-frame,
.ad-reward-card iframe.ad-union-frame { display: block; width: 100%; height: 140px; border: 0; background: transparent; }
.ad-splash iframe.ad-union-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #111; }
.ad-reward-card .btn { margin-top: 8px; width: 100%; }
html.night .ad-slot, html.night .ad-reward-card { background: #1c2230; }
.id-shake-ask {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(30, 20, 10, .38);
}
.id-shake-ask-card {
  width: min(280px, 100%); background: #fff; color: var(--text);
  border-radius: 14px; padding: 14px 14px 12px;
  box-shadow: 0 10px 28px rgba(40, 24, 8, .18);
}
.id-shake-ask-card p { margin: 0; font-size: 14px; line-height: 1.5; }
.id-shake-ask-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.id-shake-ask-btns .btn { padding: 5px 14px; font-size: 13px; min-height: 0; }
html.night .id-shake-ask-card { background: #1c2230; }
.id-shake-acts { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.id-shake-acts .btn { padding: 5px 10px; font-size: 13px; font-weight: 700; line-height: 1.2; border-radius: 999px; min-height: 0; }
.id-shake-meta { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.id-shake-meta b { color: var(--text); font-size: 14px; }
.sheet.sheet-shake #id-shake-hint { margin: 0 0 6px; font-size: 12px; line-height: 1.4; }
.id-shake-grid {
  display: grid;
  grid-template-columns: repeat(var(--shake-cols, 2), minmax(0, 1fr));
  gap: 6px; margin: 0;
}
.id-shake-num {
  appearance: none; border: 1px solid #eadfd2; background: #fff;
  color: var(--text); border-radius: 8px; padding: 4px 2px; min-height: 32px;
  font-size: 15px; font-weight: 800; letter-spacing: .04em;
  font-variant-numeric: tabular-nums; cursor: pointer;
  box-shadow: none;
}
.id-shake-num.on,
.id-shake-num.locked.on {
  border-color: var(--accent, #e85d04); background: #fff1e6; box-shadow: inset 0 0 0 1px var(--accent, #e85d04);
}
.id-shake-slot.spin {
  color: #9a6b4f; filter: blur(.3px);
  animation: idShakeFlicker .12s linear infinite;
}
.id-shake-num.locked { animation: none; filter: none; color: var(--text); }
@keyframes idShakeFlicker {
  0% { opacity: .72; transform: translateY(1px); }
  50% { opacity: 1; transform: translateY(-1px); }
  100% { opacity: .8; transform: translateY(0); }
}
html.night .id-shake-num { background: #1c2230; border-color: #2a3140; color: var(--text); }
html.night .id-shake-num.on { background: #2a1f18; border-color: #ff9f6b; }
html.night .acc-card, html.night .acc-stats > div, html.night .acc-panel { background: var(--card); }
html.night .acc-name-input { background: #1c2230; border-color: #2a3140; color: var(--text); }
html.night .acc-row { border-color: #2a3140; }
html.night .acc-avatar-edit { background: #3a2418; color: #ffb087; }
