/* ============ 云课 · 现代东方学院风设计系统 ============ */
:root {
  --paper: #f7f3ea;
  --paper-2: #efe9db;
  --paper-3: #e6ddc8;
  --card: #fffdf8;
  --ink: #1d1912;
  --ink-2: #4a4436;
  --ink-3: #8a8270;
  --vermilion: #c73e2e;
  --vermilion-2: #a72f1f;
  --vermilion-soft: #f5e0da;
  --pine: #2c5046;
  --gold: #a8763e;
  --line: rgba(29, 25, 18, 0.12);
  --line-2: rgba(29, 25, 18, 0.06);
  --shadow: 0 10px 30px rgba(29, 25, 18, 0.08);
  --shadow-lg: 0 24px 60px rgba(29, 25, 18, 0.14);
  --serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --alipay: #1677ff;
  --wechat: #07c160;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 500px at 85% -100px, rgba(199, 62, 46, 0.05), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 234, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 36px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.seal {
  width: 40px; height: 40px; background: var(--vermilion); color: #fdf8ee;
  font-family: var(--serif); font-weight: 900; font-size: 22px;
  display: grid; place-items: center; border-radius: 9px;
  transform: rotate(-4deg);
  box-shadow: inset 0 0 0 2px rgba(253, 248, 238, 0.45), 0 4px 10px rgba(199, 62, 46, 0.35);
}
.brand-name { font-family: var(--serif); font-weight: 900; font-size: 20px; letter-spacing: 2px; }
.brand-sub { font-size: 10px; color: var(--ink-3); letter-spacing: 3px; margin-top: 1px; }
.nav-links { display: flex; gap: 6px; flex: 1; }
.nav-links a {
  padding: 8px 14px; font-size: 14px; color: var(--ink-2); border-radius: 8px;
  transition: all .18s; position: relative;
}
.nav-links a:hover { color: var(--vermilion); background: rgba(199, 62, 46, 0.06); }
.nav-links a.active { color: var(--vermilion); font-weight: 700; }
.header-user { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--pine); color: #f4efe2;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; overflow: hidden;
}
.avatar.small { width: 26px; height: 26px; font-size: 11px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 10px; padding: 12px 26px; font-size: 15px; font-weight: 700;
  transition: all .2s; background: var(--ink); color: #f7f3ea; letter-spacing: 1px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--vermilion); color: #fdf8ee; box-shadow: 0 8px 20px rgba(199, 62, 46, 0.32); }
.btn-primary:hover { background: var(--vermilion-2); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-soft { background: rgba(29, 25, 18, 0.07); color: var(--ink); }
.btn-soft:hover { background: rgba(29, 25, 18, 0.13); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 34px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- form ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); font-weight: 500; margin-bottom: 7px; letter-spacing: 1px; }
.input {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; background: var(--card); color: var(--ink); outline: none; transition: border .18s, box-shadow .18s;
}
.input:focus { border-color: var(--vermilion); box-shadow: 0 0 0 3px rgba(199, 62, 46, 0.12); }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

/* ---------- carousel ---------- */
.carousel { position: relative; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow-lg); background: var(--ink); }
.carousel-track { display: flex; transition: transform .65s cubic-bezier(.7,.05,.25,1); }
.carousel-slide { position: relative; min-width: 100%; aspect-ratio: 21/8; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-cap {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 42px 44px 30px;
  background: linear-gradient(transparent, rgba(20, 16, 10, 0.82));
  color: #f7f3ea;
}
.carousel-cap h3 { font-family: var(--serif); font-size: 28px; font-weight: 900; letter-spacing: 2px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.carousel-cap p { margin-top: 6px; font-size: 13px; opacity: .85; letter-spacing: 1px; }
.carousel-dots { position: absolute; right: 26px; bottom: 22px; display: flex; gap: 8px; z-index: 2; }
.carousel-dots span {
  width: 26px; height: 4px; border-radius: 2px; background: rgba(247, 243, 234, .35); cursor: pointer; transition: all .25s;
}
.carousel-dots span.on { background: var(--vermilion); width: 40px; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(29, 25, 18, 0.4); color: #f7f3ea; font-size: 18px;
  backdrop-filter: blur(4px); transition: all .2s; opacity: 0;
}
.carousel:hover .carousel-arrow { opacity: 1; }
.carousel-arrow:hover { background: var(--vermilion); }
.carousel-arrow.prev { left: 18px; }
.carousel-arrow.next { right: 18px; }

/* ---------- notice bar ---------- */
.notice-bar {
  display: flex; align-items: center; gap: 12px; margin-top: 18px;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--vermilion);
  border-radius: 10px; padding: 12px 18px; font-size: 13.5px; color: var(--ink-2);
}
.notice-bar b { color: var(--vermilion); font-family: var(--serif); letter-spacing: 2px; }

/* ---------- section ---------- */
.section { margin-top: 56px; }
.section-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.section-head h2 {
  font-family: var(--serif); font-size: 30px; font-weight: 900; letter-spacing: 3px;
  position: relative; padding-left: 18px;
}
.section-head h2::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 6px;
  background: var(--vermilion); border-radius: 3px;
}
.section-head p { color: var(--ink-3); font-size: 13px; letter-spacing: 2px; padding-bottom: 4px; }

/* ---------- course card ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.course-card {
  background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; cursor: pointer;
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--paper-3); }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.course-card:hover .course-thumb img { transform: scale(1.05); }
.thumb-tag {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 6px;
  background: rgba(29, 25, 18, .68); color: #f7f3ea; font-size: 11.5px; letter-spacing: 1px;
  backdrop-filter: blur(4px);
}
.course-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 17px; font-weight: 700; line-height: 1.45; letter-spacing: .5px; }
.course-sub { margin-top: 6px; font-size: 13px; color: var(--ink-3); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.course-meta { display: flex; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--ink-3); letter-spacing: .5px; }
.course-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.price { font-family: var(--serif); color: var(--vermilion); font-weight: 900; font-size: 24px; }
.price::before { content: '¥'; font-size: 14px; margin-right: 2px; }
.price-old { font-size: 12.5px; color: var(--ink-3); text-decoration: line-through; margin-left: 8px; font-family: var(--sans); font-weight: 400; }
.update-time { font-size: 11.5px; color: var(--gold); letter-spacing: .5px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 90px; background: #171410; color: rgba(247, 243, 234, .72); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; padding: 46px 0 38px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand .seal { transform: rotate(-4deg) scale(.92); }
.footer-brand h4 { font-family: var(--serif); color: #f7f3ea; font-size: 20px; letter-spacing: 3px; }
.footer-brand p { font-size: 12.5px; margin-top: 8px; line-height: 1.8; }
.footer-col h5 { color: #f7f3ea; font-size: 13px; letter-spacing: 2px; margin-bottom: 14px; }
.footer-col p { font-size: 13px; line-height: 2.1; }
.footer-qr { margin-top: 12px; width: 120px; height: 120px; border-radius: 10px; border: 1px solid var(--line-2); overflow: hidden; background: #fff; }
.footer-qr img { width: 100%; height: 100%; object-fit: cover; }
.footer-wx-id { font-size: 12px; margin-top: 6px; }
.footer-icp { border-top: 1px solid rgba(247, 243, 234, .12); text-align: center; font-size: 12px; padding: 16px 0; letter-spacing: 1px; }

/* ---------- auth page ---------- */
.auth-wrap { display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - 68px); }
.auth-side {
  background: linear-gradient(150deg, #241e15 0%, #3a2c20 55%, #4c3425 100%);
  color: #f7f3ea; display: flex; flex-direction: column; justify-content: center; padding: 70px 64px; position: relative; overflow: hidden;
}
.auth-side::after {
  content: '学'; position: absolute; right: -60px; bottom: -90px; font-family: var(--serif); font-weight: 900;
  font-size: 420px; color: rgba(199, 62, 46, .14); line-height: 1; pointer-events: none;
}
.auth-side h2 { font-family: var(--serif); font-size: 40px; font-weight: 900; letter-spacing: 6px; line-height: 1.3; }
.auth-side p { margin-top: 20px; font-size: 14px; opacity: .75; line-height: 2; letter-spacing: 1px; }
.auth-side ul { margin-top: 30px; display: grid; gap: 12px; font-size: 14px; }
.auth-side li { list-style: none; display: flex; gap: 10px; align-items: center; opacity: .9; }
.auth-side li::before { content: ''; width: 7px; height: 7px; background: var(--vermilion); border-radius: 2px; transform: rotate(45deg); }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .seal { width: 52px; height: 52px; font-size: 28px; border-radius: 12px; }
.auth-card h1 { font-family: var(--serif); font-size: 28px; font-weight: 900; margin: 26px 0 6px; letter-spacing: 2px; }
.auth-card .sub { color: var(--ink-3); font-size: 13.5px; margin-bottom: 30px; letter-spacing: 1px; }
.auth-switch { text-align: center; margin-top: 22px; font-size: 13.5px; color: var(--ink-3); }
.auth-switch a { color: var(--vermilion); font-weight: 700; cursor: pointer; }

/* ---------- course detail ---------- */
.detail-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; margin-top: 34px; }
.detail-cover { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16/9; background: var(--paper-3); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-family: var(--serif); font-size: 30px; font-weight: 900; letter-spacing: 1px; line-height: 1.4; }
.detail-info .sub { color: var(--ink-2); margin-top: 10px; font-size: 14.5px; line-height: 1.7; }
.detail-tags { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.tag { padding: 5px 12px; border-radius: 999px; font-size: 12px; letter-spacing: 1px; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2); }
.tag.red { background: var(--vermilion-soft); color: var(--vermilion); border-color: rgba(199,62,46,.25); }
.buy-card {
  margin-top: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; box-shadow: var(--shadow);
}
.buy-row { display: flex; align-items: baseline; gap: 12px; }
.buy-card .price { font-size: 34px; }
.buy-stats { display: flex; gap: 20px; margin: 14px 0 18px; font-size: 12.5px; color: var(--ink-3); }
.buy-stats b { color: var(--ink); font-size: 15px; display: block; font-family: var(--serif); }

.episode-list { margin-top: 30px; }
.episode-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line-2); margin-bottom: 10px; transition: all .18s;
}
.episode-row.playable { cursor: pointer; }
.episode-row.playable:hover { border-color: var(--vermilion); box-shadow: var(--shadow); transform: translateX(4px); }
.ep-num { font-family: var(--serif); font-weight: 900; color: var(--ink-3); font-size: 15px; width: 34px; }
.ep-title { flex: 1; font-size: 14.5px; font-weight: 500; }
.ep-badge { font-size: 11.5px; padding: 3px 9px; border-radius: 6px; letter-spacing: 1px; }
.ep-badge.free { background: rgba(44, 80, 70, .12); color: var(--pine); }
.ep-badge.lock { background: rgba(29, 25, 18, .07); color: var(--ink-3); }
.ep-badge.try { background: var(--vermilion-soft); color: var(--vermilion); }
.ep-time { font-size: 12px; color: var(--ink-3); }

/* ---------- payment ---------- */
.pay-wrap { max-width: 560px; margin: 46px auto 80px; }
.pay-head { text-align: center; margin-bottom: 26px; }
.pay-head h1 { font-family: var(--serif); font-size: 26px; font-weight: 900; letter-spacing: 3px; }
.pay-head p { color: var(--ink-3); font-size: 13px; margin-top: 8px; letter-spacing: 1px; }
.pay-card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line-2); }
.pay-titlebar { padding: 20px 28px; color: #fff; display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 1px; }
.pay-titlebar.alipay { background: linear-gradient(120deg, #1677ff, #4096ff); }
.pay-titlebar.wechat { background: linear-gradient(120deg, #07c160, #2bc47a); }
.pay-titlebar .logo-dot { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 16px; }
.pay-info { display: flex; justify-content: space-between; padding: 18px 28px; background: var(--paper-2); font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.pay-info b { font-family: var(--serif); font-size: 15px; }
.pay-qr-zone { display: flex; flex-direction: column; align-items: center; padding: 34px 28px 30px; }
.qr-frame { width: 210px; height: 210px; border-radius: 14px; border: 2px solid currentColor; padding: 14px; position: relative; }
.qr-frame canvas, .qr-frame img { width: 100% !important; height: 100% !important; }
.qr-frame.alipay { color: var(--alipay); }
.qr-frame.wechat { color: var(--wechat); }
.pay-amount { font-family: var(--serif); font-size: 32px; font-weight: 900; margin-top: 22px; }
.pay-tip { margin-top: 12px; font-size: 13px; color: var(--ink-3); text-align: center; line-height: 1.8; }
.pay-count { margin-top: 14px; font-size: 12.5px; color: var(--vermilion); letter-spacing: 1px; }
.pay-sim-note { margin-top: 18px; padding: 10px 16px; border-radius: 10px; background: #fdf6e3; border: 1px solid #ecd9a0; font-size: 12.5px; color: #8a6d1a; text-align: center; }
.pay-success { text-align: center; padding: 60px 30px; }
.pay-success .ok-ring {
  width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 36px; color: #fff; background: var(--pine); animation: pop .4s cubic-bezier(.5,1.6,.4,1);
}
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- player ---------- */
.player-wrap { margin-top: 30px; }
.player-shell {
  position: relative; background: #100e0b; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 16/9;
}
.player-shell video { width: 100%; height: 100%; object-fit: contain; display: block; }
.player-guard { position: absolute; inset: 0; z-index: 5; user-select: none; }
.watermark {
  position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: .09;
  display: flex; flex-wrap: wrap; gap: 60px 90px; padding: 30px; transform: rotate(-18deg); overflow: hidden;
  color: #fff; font-size: 14px; letter-spacing: 2px; align-content: flex-start;
}
.guard-overlay {
  position: absolute; inset: 0; z-index: 30; background: rgba(16, 14, 11, .96); color: #f7f3ea;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 30px;
}
.guard-overlay h3 { font-family: var(--serif); font-size: 22px; letter-spacing: 3px; color: var(--vermilion); }
.guard-overlay p { font-size: 13.5px; opacity: .8; line-height: 2; }
.pbar { display: flex; align-items: center; gap: 14px; margin-top: 16px; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 20px; }
.pbar .now { font-weight: 700; font-size: 14.5px; flex: 1; }

/* ---------- profile ---------- */
.me-grid { display: grid; grid-template-columns: 300px 1fr; gap: 28px; margin-top: 30px; }
.me-card { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 30px 26px; box-shadow: var(--shadow); height: fit-content; text-align: center; }
.me-card .avatar { width: 84px; height: 84px; font-size: 32px; margin: 0 auto 16px; background: var(--pine); }
.me-card h2 { font-family: var(--serif); font-size: 21px; letter-spacing: 1px; }
.me-card .phone { color: var(--ink-3); font-size: 13px; margin-top: 6px; letter-spacing: 1px; }
.me-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.me-tabs button {
  padding: 9px 22px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--card); font-size: 14px; color: var(--ink-2); transition: all .18s;
}
.me-tabs button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 700; }
.order-row, .mycourse-row {
  display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 14px 18px; margin-bottom: 12px;
}
.order-row .cov, .mycourse-row .cov { width: 88px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--paper-3); flex-shrink: 0; }
.or-info { flex: 1; min-width: 0; }
.or-info h4 { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.or-info p { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.status-chip { font-size: 12px; padding: 4px 12px; border-radius: 999px; letter-spacing: 1px; }
.status-chip.paid { background: rgba(44, 80, 70, .12); color: var(--pine); }
.status-chip.pending { background: rgba(168, 118, 62, .14); color: var(--gold); }
.status-chip.closed { background: rgba(29, 25, 18, .08); color: var(--ink-3); }

/* ---------- toast & modal ---------- */
.toast-wrap { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 999; display: grid; gap: 10px; }
.toast {
  background: #241f17; color: #f7f3ea; padding: 12px 26px; border-radius: 12px; font-size: 14px;
  box-shadow: var(--shadow-lg); animation: tin .3s; letter-spacing: 1px; border-left: 4px solid var(--vermilion);
}
.toast.ok { border-left-color: var(--pine); }
@keyframes tin { from { opacity: 0; transform: translateY(-14px); } }

.loading-page { padding: 120px 0; text-align: center; color: var(--ink-3); letter-spacing: 4px; font-size: 13px; }
.empty { text-align: center; padding: 70px 0; color: var(--ink-3); font-size: 14px; letter-spacing: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-hero, .auth-wrap, .me-grid { grid-template-columns: 1fr; }
  .auth-side { padding: 44px 30px; min-height: 220px; }
  .auth-side h2 { font-size: 28px; }
  .carousel-slide { aspect-ratio: 16/9; }
}
@media (max-width: 620px) {
  .course-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 22px; }
  .carousel-cap h3 { font-size: 18px; }
}

/* ---------- 分类筛选 / 搜索 ---------- */
.cat-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.cat-chip {
  padding: 8px 20px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); font-size: 13.5px; color: var(--ink-2); letter-spacing: 1px; transition: all .18s;
}
.cat-chip:hover { border-color: var(--vermilion); color: var(--vermilion); }
.cat-chip.on { background: var(--vermilion); border-color: var(--vermilion); color: #fdf8ee; font-weight: 700; }
.search-row { margin-bottom: 18px; }
.search-input { max-width: 420px; }

/* ---------- 登录方式切换 ---------- */
.auth-tabs { display: flex; background: var(--paper-2); border-radius: 11px; padding: 4px; margin-bottom: 24px; }
.auth-tab {
  flex: 1; padding: 10px 0; border: none; background: none; border-radius: 9px;
  font-size: 14px; color: var(--ink-3); letter-spacing: 2px; transition: all .2s;
}
.auth-tab.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: 0 2px 8px rgba(29,25,18,.08); }
.code-row { display: flex; gap: 10px; }
.code-row .input { flex: 1; }
.code-btn { white-space: nowrap; padding: 12px 18px; font-size: 13.5px; }
.code-btn[disabled] { opacity: .6; }
.hint.demo-code { color: var(--gold); background: #fdf6e3; border: 1px solid #ecd9a0; border-radius: 8px; padding: 8px 12px; margin-top: 10px; line-height: 1.7; }

/* ---------- 新增：密码显隐 ---------- */
.input-eye-wrap { position: relative; }
.input-eye-wrap .input { padding-right: 44px; }
.input-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: none; background: none; font-size: 15px; opacity: .45; padding: 6px; filter: grayscale(1);
}
.input-eye.showing { opacity: .9; }

/* ---------- 新增：用户协议 ---------- */
.agree-row { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; line-height: 1.6; }
.agree-row input { margin-top: 3px; accent-color: var(--vermilion); }
.agree-row a { color: var(--vermilion); font-weight: 700; }
.modal-mask-agree {
  position: fixed; inset: 0; background: rgba(23, 20, 15, .55); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(2px);
}
.agree-box {
  background: var(--card); border-radius: 16px; max-width: 560px; width: 100%;
  max-height: 82vh; overflow-y: auto; padding: 30px 34px; box-shadow: var(--shadow-lg);
  animation: agpop .22s cubic-bezier(.5, 1.4, .4, 1);
}
@keyframes agpop { from { transform: translateY(16px) scale(.98); opacity: 0; } }
.agree-box h3 { font-family: var(--serif); font-size: 21px; letter-spacing: 3px; margin-bottom: 18px; }
.agree-text { font-size: 13.5px; color: var(--ink-2); line-height: 2; margin-bottom: 22px; }
.agree-text p { margin-bottom: 12px; }

/* ---------- 新增：订单已关闭 ---------- */
.status-chip.closed { background: rgba(29, 25, 18, .06); color: var(--ink-3); }

/* ---------- 继续学习 ---------- */
.continue-learn { margin-top: 20px; background: var(--card); border: 1px solid var(--line-2); border-left: 4px solid var(--vermilion); border-radius: 12px; padding: 18px 22px; box-shadow: var(--shadow); }
.cl-head b { font-family: var(--serif); font-size: 18px; letter-spacing: 2px; }
.cl-head span { margin-left: 12px; font-size: 12.5px; color: var(--ink-3); }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 14px; }
.cl-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; transition: all .18s; background: var(--paper); }
.cl-card:hover { border-color: var(--vermilion); box-shadow: var(--shadow); }
.cl-cov { width: 74px; height: 44px; object-fit: cover; border-radius: 7px; background: var(--paper-3); flex-shrink: 0; }
.cl-info { flex: 1; min-width: 0; }
.cl-info h4 { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-info p { font-size: 12px; color: var(--ink-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-play { color: var(--vermilion); font-size: 15px; }

/* ---------- 评价 ---------- */
.review-wrap { background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; padding: 26px 30px; }
.review-form { border-bottom: 1px dashed var(--line); padding-bottom: 22px; margin-bottom: 22px; }
.rf-stars { display: flex; gap: 8px; margin-bottom: 14px; }
.rf-star { font-size: 26px; color: var(--paper-3); cursor: pointer; transition: all .15s; user-select: none; }
.rf-star.on { color: #f5a623; transform: scale(1.08); }
.rf-star:hover { transform: scale(1.15); }
.review-item { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.review-item:last-child { border-bottom: none; padding-bottom: 4px; }
.rv-head { display: flex; align-items: center; gap: 10px; }
.rv-name { font-size: 13.5px; font-weight: 700; }
.rv-stars { color: #f5a623; font-size: 13px; letter-spacing: 2px; }
.rv-date { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.rv-content { margin-top: 9px; font-size: 13.5px; color: var(--ink-2); line-height: 1.9; }

/* ---------- 优惠券 ---------- */
.coupon-box { margin-bottom: 20px; padding: 14px 16px; background: var(--paper-2); border: 1px dashed var(--gold); border-radius: 10px; }
.coupon-row { display: flex; gap: 10px; }
.coupon-row .input { flex: 1; background: #fff; }
.coupon-on { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--gold); font-weight: 700; }

/* ---------- 排序 ---------- */
.sort-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.sort-chip { padding: 6px 15px; border-radius: 8px; border: none; background: transparent; font-size: 12.5px; color: var(--ink-3); letter-spacing: .5px; transition: all .15s; }
.sort-chip:hover { color: var(--vermilion); }
.sort-chip.on { background: var(--ink); color: var(--paper); font-weight: 700; }

/* ---------- 编码不兼容警告 ---------- */
.codec-warn {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: rgba(122, 34, 22, .92); color: #fdf8ee; font-size: 13px; line-height: 1.8;
  padding: 12px 22px; border-radius: 10px; z-index: 8; max-width: 86%; text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

/* ---------- 新增：两级分类 ---------- */
.cat-row.sub { margin-top: -10px; margin-bottom: 22px; }
.cat-row.sub .cat-chip { font-size: 12.5px; padding: 6px 16px; border-color: var(--line-2); background: transparent; }
.cat-row.sub .cat-chip.on { background: var(--vermilion-2); border-color: var(--vermilion-2); color: #fdf8ee; }

/* ---------- 新增：收藏 ---------- */
.thumb-fav {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--vermilion); display: grid; place-items: center;
  font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.18); z-index: 2;
}
.detail-actions { display: flex; gap: 10px; margin: 12px 0 4px; }
.btn-fav {
  padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card);
  font-size: 13px; color: var(--ink-2); letter-spacing: 1px; transition: all .18s; cursor: pointer;
}
.btn-fav:hover { border-color: var(--vermilion); color: var(--vermilion); }
.btn-fav.on { border-color: var(--vermilion); background: var(--vermilion-soft); color: var(--vermilion); font-weight: 700; }

/* ---------- 新增：课程落地页 ---------- */
.benefits-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 8px;
}
.benefits-strip > div {
  display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 14px 16px;
}
.benefits-strip > div > span { font-size: 20px; }
.benefits-strip b { font-size: 13.5px; display: block; }
.benefits-strip p { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 12px 0; box-shadow: 0 -6px 24px rgba(29,25,18,.08);
}
.sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sticky-inner .price { font-family: var(--serif); font-size: 26px; font-weight: 900; color: var(--vermilion); }
.sticky-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 20px; }
.faq-list summary { font-size: 14.5px; font-weight: 700; cursor: pointer; letter-spacing: .5px; }
.faq-list p { font-size: 13.5px; color: var(--ink-2); line-height: 1.9; margin-top: 10px; }

/* ---------- 新增：章节进度 ---------- */
.ep-badge.pos { background: rgba(51, 81, 122, .1); color: var(--indigo); }
.ep-row-wrap { display: flex; flex-direction: column; }
.ep-progress {
  height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; position: relative; flex: 1; margin: 0 8px; min-width: 40px;
}
.ep-progress::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: var(--pine); border-radius: 2px; }

/* ---------- 新增：笔记 ---------- */
.note-item { background: var(--card); border: 1px solid var(--line-2); border-left: 4px solid var(--vermilion); border-radius: 10px; padding: 14px 18px; }
.note-head { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.note-head b { font-size: 13.5px; }
.note-ep { font-size: 12px; color: var(--ink-3); flex: 1; }
.note-date { font-size: 11.5px; color: var(--ink-3); }
.note-body { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.player-notes { margin-top: 14px; display: grid; gap: 10px; }
.player-notes .en-head { font-family: var(--serif); font-size: 16px; font-weight: 900; letter-spacing: 1px; }
.player-notes .note-item { border-left-color: var(--pine); }
@media (max-width: 620px) {
  .benefits-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 新增：购物车 ---------- */
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; padding: 4px 6px; color: var(--ink); text-decoration: none; }
.cart-badge {
  position: absolute; top: -4px; right: -6px; min-width: 16px; height: 16px; border-radius: 9px;
  background: var(--vermilion); color: #fff; font-size: 10px; line-height: 16px; text-align: center; padding: 0 3px;
}
.cart-list { display: grid; gap: 12px; }
.cart-row {
  display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 14px 18px;
}
.cart-check input { width: 18px; height: 18px; accent-color: var(--vermilion); cursor: pointer; }
.cart-foot {
  display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 16px 20px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; position: sticky; bottom: 16px;
}
.cart-total { flex: 1; font-size: 13.5px; color: var(--ink-3); text-align: right; }
.cart-total b { color: var(--ink); }
.cart-total .price { font-size: 20px; color: var(--vermilion); }

/* ---------- 新增：图文详情 ---------- */
.detail-imgs { display: grid; gap: 16px; }
.detail-imgs img { width: 100%; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); }

/* ---------- 新增：个人中心 - 邀请与优惠券 ---------- */
.invite-box { margin-top: 20px; padding: 16px; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 12px; text-align: left; }
.invite-head b { font-size: 14px; display: block; letter-spacing: 1px; }
.invite-head span { font-size: 12px; color: var(--ink-3); display: block; margin-top: 3px; }
.invite-code-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.invite-code { font-family: var(--serif); font-size: 20px; font-weight: 900; letter-spacing: 3px; color: var(--vermilion); }
.invite-link { font-size: 11px; color: var(--ink-3); word-break: break-all; margin-top: 8px; }
.invite-stat { font-size: 12.5px; margin-top: 10px; color: var(--ink-2); }
.mycoupon {
  display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; border-left: 4px solid var(--vermilion);
}
.mycoupon.used { opacity: .55; border-left-color: var(--ink-3); }
.mc-value { font-family: var(--serif); font-size: 26px; font-weight: 900; color: var(--vermilion); min-width: 72px; text-align: center; }
.mc-info { flex: 1; }
.mc-info b { font-size: 14px; }
.mc-info p { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.mc-code { font-family: var(--serif); letter-spacing: 1px; font-weight: 700; color: var(--ink); }
.mc-status { display: inline-block; font-size: 11.5px; margin-top: 6px; padding: 2px 9px; border-radius: 999px; background: var(--vermilion-soft); color: var(--vermilion); }
.mycoupon.used .mc-status { background: rgba(29,25,18,.08); color: var(--ink-3); }
