/* Leles English — 白底、大字、留白（参考 Apple 官网、SuperSimpleDev），点缀课程海报的手绘配色 */
@font-face { font-family: "Leles Brush"; src: url("../fonts/caveat-brush-latin-400-normal.woff2") format("woff2"); font-display: swap; }
:root {
  /* 海报配色 */
  --ink-blue: #1f3fb0; --ink-red: #e5401b; --ink-yellow: #f3c234; --ink-green: #1e5b3a; --cream: #faf6ee;
  --text: #1d1d1f; --muted: #6e6e73; --faint: #86868b;
  --bg: #fff; --gray: #f5f5f7; --line: #d2d2d7; --line-soft: #e8e8ed;
  --blue: #1f3fb0; --blue-hover: #2a4fd0; --link: #1f3fb0;
  --orange: #e5401b; --green: #1d8a3a; --green-soft: #e6f4ea;
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.47; letter-spacing: -0.01em; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1024px; margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; font-weight: 700; }
.link { color: var(--link); }
.link:hover { text-decoration: underline; }
.link-arrow::after { content: " ›"; }

/* ---------- 导航 ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.06); }
.site-header .bar { display: flex; align-items: center; height: 52px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.logo { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--ink-yellow); display: grid; place-items: center; flex: none;
  font-family: "Leles Brush", cursive; color: var(--ink-blue); font-size: 22px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink-blue); }
.logo { position: relative; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 53% 44%; transform: scale(1.9); transform-origin: 53% 44%; }
.wordmark { font-family: "Leles Brush", cursive; color: var(--ink-blue); font-size: 27px; line-height: 1; letter-spacing: 0; }
.brand b { font-weight: 600; font-size: 15px; color: var(--text); letter-spacing: -0.01em; }

/* 海报元素：手写体、黄色马克笔、红色笔触下划线 */
.hand { font-family: "Leles Brush", cursive; letter-spacing: 0; font-weight: 400; }
.mark { position: relative; display: inline-block; padding: 0 .25em; z-index: 0; }
.mark::before { content: ""; position: absolute; inset: 12% -2% 4% -2%; background: var(--ink-yellow); border-radius: 40% 25% 45% 20% / 60% 50% 60% 45%; transform: rotate(-1.5deg); z-index: -1; }
.stroke { position: relative; display: inline-block; }
.stroke::after { content: ""; position: absolute; left: 2%; right: -2%; bottom: -.12em; height: .16em; background: var(--ink-red); border-radius: 60% 40% 70% 30% / 100%; transform: rotate(-1deg); }
.dashes { color: var(--ink-red); }
.site-header nav { display: flex; gap: 28px; flex: 1; font-size: 14px; }
.site-header nav a, .account a:not(.btn), .account button.plain { color: var(--text); opacity: .8; font-size: 14px; }
.site-header nav a:hover, .account a:not(.btn):hover { opacity: 1; }
.site-header nav a.active { opacity: 1; font-weight: 600; }
.account { display: flex; gap: 20px; align-items: center; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer;
  border-radius: 980px; background: var(--blue); color: #fff; padding: 12px 24px; font: inherit; font-size: 17px; font-weight: 400; transition: background .2s; }
.btn:hover { background: var(--blue-hover); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-sm { padding: 6px 15px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 18px; }
.btn-dark { background: var(--text); }
.btn-dark:hover { background: #333336; }
.btn-ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-block { width: 100%; }
button.plain { background: none; border: 0; cursor: pointer; font: inherit; padding: 0; color: inherit; }

/* ---------- 首页 ---------- */
.hero { text-align: center; padding: 110px 0 90px; position: relative; overflow: hidden; }
.eyebrow { font-size: 21px; font-weight: 600; color: var(--ink-red); margin-bottom: 10px; }
.eyebrow.hand { font-size: 34px; color: var(--ink-blue); font-weight: 400; margin-bottom: 4px; }
.hero h1 { font-size: clamp(44px, 8vw, 88px); line-height: 1.05; letter-spacing: -0.035em; }
.hero p { font-size: clamp(19px, 2.4vw, 25px); color: var(--muted); max-width: 640px; margin: 22px auto 0; line-height: 1.35; }
.hero .actions { display: flex; gap: 28px; justify-content: center; align-items: center; margin-top: 40px; flex-wrap: wrap; }
.hero .actions .link { font-size: 18px; }

.section { padding: 96px 0; }
.section.gray { background: var(--gray); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 5vw, 56px); }
.section-head p { font-size: 21px; color: var(--muted); margin: 14px auto 0; max-width: 600px; }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; text-align: center; }
.point .big { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; }
.point h3 { font-size: 21px; margin: 10px 0 8px; }
.point p { color: var(--muted); margin: 0; font-size: 17px; }

.teacher { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.teacher .photo { aspect-ratio: 4/5; border-radius: 28px; background: var(--cream); display: grid; place-items: center; font-size: 96px; font-weight: 700; color: #c7d2e0; overflow: hidden; }
.teacher .photo { position: relative; }
.teacher .photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.teacher h2 { font-size: clamp(32px, 4.5vw, 48px); margin-bottom: 20px; }
.teacher p { color: var(--muted); font-size: 19px; margin: 0 0 16px; }

.cta { text-align: center; padding: 120px 0; }
.cta h2 { font-size: clamp(40px, 6vw, 64px); }
.cta p { font-size: 21px; color: var(--muted); margin: 16px 0 36px; }

/* ---------- 课程卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.course-card { display: flex; flex-direction: column; background: var(--bg); border-radius: var(--radius); overflow: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.section.gray .course-card { background: #fff; }
.section:not(.gray) .course-card, .page .course-card { background: var(--gray); }
.course-card:hover { transform: scale(1.015); box-shadow: 0 16px 40px rgba(0,0,0,.08); }
.cover { aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; text-align: center; color: #1d1d1f; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; background: var(--cream); position: relative; overflow: hidden; }
.cover .wordmark { font-size: 40px; }
.cover::before, .cover::after { content: ""; position: absolute; border-radius: 50%; opacity: .9; }
.cover::before { width: 90px; height: 90px; left: -26px; bottom: -30px; }
.cover::after { width: 54px; height: 54px; right: 18px; top: 16px; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover:has(img) { padding: 0; }
.cover.c0::before { background: var(--ink-red); } .cover.c0::after { background: var(--ink-yellow); }
.cover.c1::before { background: var(--ink-green); } .cover.c1::after { background: var(--ink-red); }
.cover.c2::before { background: var(--ink-yellow); } .cover.c2::after { background: var(--ink-blue); }
.cover.c3::before { background: var(--ink-blue); } .cover.c3::after { background: var(--ink-green); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.level { font-size: 12px; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: .02em; }
.card-body h3 { font-size: 24px; margin: 6px 0 8px; }
.card-body p { color: var(--muted); font-size: 15px; margin: 0 0 20px; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.price { font-weight: 600; }
.price-lg { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
s { color: var(--faint); font-size: .85em; margin-left: 6px; }
.tag { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 980px; background: var(--gray); color: var(--muted); font-weight: 500; }
.tag-ok { background: var(--green-soft); color: var(--green); }
.tag-blue { background: #e8f1fd; color: var(--blue); }

/* ---------- 普通页面 ---------- */
.page { padding-bottom: 40px; }
.page-head { text-align: center; padding: 80px 0 56px; }
.page-head h1 { font-size: clamp(40px, 6vw, 64px); }
.page-head p { color: var(--muted); font-size: 21px; margin: 14px 0 0; }

/* ---------- 课程详情 ---------- */
.course-top { padding: 48px 0 24px; }
.course-top .level { margin-bottom: 8px; }
.course-top h1 { font-size: clamp(32px, 5vw, 52px); }
.course-top p { color: var(--muted); font-size: 21px; margin: 12px 0 0; }
.course-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.player { background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; position: relative; }
.player video { width: 100%; height: 100%; display: block; }
.player .placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #f5f5f7; padding: 24px; font-size: 19px; }
.player .placeholder .btn { margin-top: 18px; }
.now-playing { font-size: 15px; color: var(--muted); margin: 14px 4px 0; }
.course-desc { margin-top: 40px; white-space: pre-line; font-size: 17px; color: #333336; }
.course-desc h2 { font-size: 28px; margin-bottom: 16px; color: var(--text); white-space: normal; }
.buy-box { background: var(--gray); border-radius: var(--radius); padding: 28px; position: sticky; top: 76px; }
.buy-box .btn { margin-top: 18px; }
.buy-box .hint { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.lesson-list { list-style: none; margin: 24px 0 0; padding: 0; }
.lesson-list li { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line-soft); cursor: pointer; font-size: 15px; }
.lesson-list li:hover .t { color: var(--blue); }
.lesson-list li.current .t { color: var(--blue); font-weight: 600; }
.lesson-list li .n { color: var(--faint); width: 22px; font-variant-numeric: tabular-nums; }
.lesson-list li .t { flex: 1; }
.lesson-list li small { color: var(--faint); white-space: nowrap; }
.lesson-list li.lock .t { color: var(--muted); }

/* ---------- 表单 ---------- */
.auth { max-width: 420px; margin: 0 auto; padding: 80px 22px 40px; }
.auth h1 { font-size: 40px; text-align: center; }
.auth .sub { text-align: center; color: var(--muted); font-size: 19px; margin: 12px 0 36px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px 4px; }
input, select, textarea { display: block; width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 17px; background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
.error { color: #e30000; font-size: 14px; min-height: 20px; margin: 4px 4px 10px; }
.switch { text-align: center; margin-top: 24px; font-size: 15px; color: var(--muted); }
.agree { font-size: 12px; color: var(--faint); margin-top: 18px; text-align: center; }
.agree a { color: var(--link); }

/* ---------- 支付弹窗 ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; z-index: 50; padding: 20px; animation: fade .2s; }
.modal { background: #fff; border-radius: 22px; padding: 36px 32px 28px; width: 100%; max-width: 380px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.2); }
.modal h3 { font-size: 24px; margin-bottom: 6px; }
.modal img { width: 220px; height: 220px; margin: 20px auto; }
.modal .muted { color: var(--muted); font-size: 15px; }
@keyframes fade { from { opacity: 0; } }

/* ---------- 我的 ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.table th { color: var(--muted); font-weight: 500; font-size: 13px; }
.panel { background: var(--gray); border-radius: var(--radius); overflow: hidden; }
.sub-head { font-size: 28px; margin: 64px 0 20px; }
.prose { max-width: 720px; margin: 0 auto; font-size: 19px; }
.prose h2 { font-size: 32px; margin: 48px 0 16px; }
.prose p, .prose li { color: #333336; }
.empty { color: var(--muted); padding: 48px 24px; text-align: center; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--gray); color: var(--muted); font-size: 12px; padding: 20px 0 28px; margin-top: 0; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .sep { margin: 0 8px; color: var(--line); }

@media (max-width: 860px) {
  body { font-size: 16px; }
  .course-layout, .teacher { grid-template-columns: 1fr; gap: 32px; }
  .buy-box { position: static; }
  .points { grid-template-columns: 1fr; gap: 40px; }
  .site-header .bar { gap: 18px; }
  .site-header nav { gap: 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 72px 0 64px; }
}
@media (max-width: 560px) {
  .site-header .bar { gap: 14px; }
  .site-header nav { gap: 14px; }
  .brand b { display: none; }
  .account .hide-sm { display: none; }
  .grid { grid-template-columns: 1fr; }
}

/* ---------- 课程详情页 ---------- */
.course-hero { text-align: center; padding: 72px 0 40px; }
.course-hero .level { font-size: 14px; margin-bottom: 14px; }
.course-hero h1 { font-size: clamp(38px, 6vw, 64px); }
.course-hero .lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 640px; margin: 16px auto 0; line-height: 1.4; }
.course-hero .buy { display: flex; gap: 22px; align-items: center; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.course-cover { max-width: 900px; margin: 16px auto 0; border-radius: 24px; overflow: hidden; }
.course-cover .cover { font-size: clamp(26px, 4vw, 44px); }
.course-cover .cover .wordmark { font-size: clamp(44px, 7vw, 80px); }
.toc { max-width: 760px; margin: 0 auto; }
.toc a { display: flex; align-items: center; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line-soft); }
.toc a:hover .t { color: var(--blue); }
.toc .no { font-family: "Leles Brush", cursive; font-size: 24px; color: var(--ink-red); width: 34px; text-align: center; }
.toc .t { flex: 1; font-size: 17px; }
.toc small { color: var(--faint); font-size: 14px; white-space: nowrap; }
.about-course { max-width: 760px; margin: 0 auto; white-space: pre-line; font-size: 19px; color: #333336; }
.modal .price-lg { margin-top: 4px; }
.modal .muted b { color: var(--text); }

/* 本地预览模式提示条 */
.preview-bar { background: #fff8e1; color: #6b5300; font-size: 13px; text-align: center; padding: 8px 16px; border-bottom: 1px solid #f3e3b0; }
.preview-bar code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }

/* 导航文字不换行（窄屏时也保持一行） */
.site-header nav a, .account a, .account button { white-space: nowrap; }
.site-header nav { flex: 1 0 auto; }
.account { flex: none; margin-left: auto; }
@media (max-width: 600px) {
  .site-header nav a[href="index.html"] { display: none; }
}
@media (max-width: 400px) {
  .wordmark { font-size: 23px; }
  .site-header nav { gap: 10px; }
  .account { gap: 10px; }
}

/* 首页：左边 Lele's English，右边照片 */
.hero:has(.hero-split) { padding: 40px 0 44px; }
.hero-split { display: grid; grid-template-columns: 1fr auto; gap: 48px; max-width: 860px; margin: 0 auto; align-items: center; text-align: left; }
.hero-text .hand { font-size: clamp(44px, 6.5vw, 80px); color: var(--ink-blue); line-height: 1; }
.hero-photo { margin: 0; width: min(240px, 30vw); aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden;
  box-shadow: 14px 14px 0 var(--ink-yellow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .hero-split { grid-template-columns: 1fr; gap: 36px; text-align: center; justify-items: center; }
  .hero-photo { width: min(200px, 55vw); }
}


/* 顶部圆形 Logo：白底蓝字 Leles */
.brand-badge { width: 46px; height: 46px; flex: none; border-radius: 50%; background: #fff; border: 2px solid var(--ink-blue);
  display: grid; place-items: center; font-family: "Leles Brush", cursive; color: var(--ink-blue); font-size: 17px; line-height: 1;
  padding-top: 2px; transition: transform .2s; }
.brand-badge:hover { transform: rotate(-6deg); }
.site-header .account { margin-left: auto; }

/* 社交媒体小字 */
.hero-social, .footer-social { font-size: 14px; color: var(--muted); }
.hero-social { margin-top: 22px; padding-left: 6px; }
.hero-social a, .footer-social a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.hero-social a:hover, .footer-social a:hover { color: var(--ink-blue); text-decoration-color: currentColor; }
.hero-social .sep, .footer-social .sep { margin: 0 8px; color: var(--line); }
.footer-social { font-size: 12px; width: 100%; order: -1; }
.mp { position: relative; cursor: default; }
.mp img { display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 140px; height: 140px;
  background: #fff; padding: 6px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15); z-index: 5; }
.mp:hover img { display: block; }
@media (max-width: 700px) { .hero-social { padding-left: 0; } }

/* 课程页：Notion 式课程简介 */
.about-course.rich { white-space: normal; font-size: 17px; background: #fff; border-radius: var(--radius); padding: 36px 44px; }
@media (max-width: 700px) { .about-course.rich { padding: 24px 20px; } }
/* 有封面图时不显示装饰圆点 */
.cover:has(img)::before, .cover:has(img)::after { display: none; }

/* 我的课程：昵称 */
#who .nick { color: var(--text); font-weight: 600; }
#who .link { margin-left: 10px; font-size: 15px; }
#who input { display: inline-block; width: 240px; max-width: 70vw; padding: 8px 12px; font-size: 16px; vertical-align: middle; margin-right: 6px; }
#who .nick-hint { font-size: 13px; color: var(--faint); margin-top: 8px; }

/* 有效期 */
.tag-exp { background: #fdebec; color: #c4302b; font-weight: 600; }
.card-foot .exp { color: var(--faint); font-size: 12px; margin-left: 6px; }
.course-hero .validity { width: 100%; font-size: 14px; color: var(--muted); margin-top: -6px; }

/* 首页：Lessons 区块离顶部近一些 */
.hero + .section { padding-top: 56px; }
.hero + .section .section-head { margin-bottom: 32px; }

/* 🔔 消息 */
.bell-wrap { position: relative; }
.bell { position: relative; font-size: 17px; line-height: 1; padding: 4px; opacity: .85; }
.bell:hover { opacity: 1; }
.bell i { position: absolute; top: -4px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #e5401b; color: #fff;
  font: 600 10px/16px -apple-system, sans-serif; font-style: normal; text-align: center; }
.bell-panel { position: absolute; right: -60px; top: calc(100% + 12px); width: 320px; max-height: 70vh; overflow-y: auto; background: #fff; border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 12px 40px rgba(0,0,0,.16); z-index: 40; padding: 6px; animation: fade .12s; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-size: 15px; }
.bell-head .link { font-size: 13px; }
.bell-item { display: block; padding: 10px 12px; border-radius: 10px; }
.bell-item:hover { background: var(--gray); }
.bell-item .t { font-size: 14px; font-weight: 600; color: var(--text); }
.bell-item.unread .t::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e5401b; margin-right: 6px; vertical-align: middle; }
.bell-item .b { font-size: 13px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bell-item .d { font-size: 11px; color: var(--faint); margin-top: 4px; }
.bell-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .bell-panel { position: fixed; left: 12px; right: 12px; top: 60px; width: auto; } }

/* 微信登录 */
.or-line { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; margin: 18px 0; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.btn-wechat { background: #07c160; }
.btn-wechat:hover { background: #06ad56; }

/* 兑换码 */
.redeem-link { width: 100%; font-size: 14px; margin-top: -4px; }
.redeem-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--gray); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 28px; }
.redeem-box > span { font-weight: 600; }
.redeem-box input { flex: 1; min-width: 200px; width: auto; padding: 8px 12px; font-size: 15px; letter-spacing: .5px; }
.redeem-msg { width: 100%; font-size: 14px; color: #e30000; min-height: 0; }
.redeem-msg:empty { display: none; }
.redeem-msg.ok { color: var(--green); }

/* ---------- 首页：阅读空间专区 ---------- */
.rdp-section { background: linear-gradient(180deg, #fff 0%, #f3f6ff 100%); }
.rdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.rdp-badge { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink-blue); background: #e8eeff; border-radius: 980px; padding: 5px 12px; }
.rdp-text h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.2; margin: 16px 0 12px; letter-spacing: -0.02em; }
.rdp-mark { background: linear-gradient(transparent 58%, rgba(255, 212, 0, .55) 58%); padding: 0 2px; }
.rdp-lead { font-size: 19px; color: var(--muted); margin: 0 0 22px; }
.rdp-feats { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.rdp-feats li { font-size: 14px; color: var(--muted); line-height: 1.5; }
.rdp-feats b { display: block; color: var(--text); font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.rdp-small { display: block; font-size: 11px; color: var(--faint); margin-top: 3px; }
.rdp-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rdp-note { font-size: 14px; color: var(--faint); }
.rdp-window { background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(31, 63, 176, .14), 0 0 0 1px rgba(31, 63, 176, .08); overflow: hidden; }
.rdp-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.rdp-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e5e5ea; }
.rdp-bar span { margin-left: 10px; font-size: 13px; color: var(--muted); }
.rdp-body { padding: 22px 28px 10px; }
.rdp-body h3 { font-size: 22px; margin: 0 0 10px; }
.rdp-body .n-content { font-size: 17px; line-height: 1.9; }
.rdp-body .n-content p { margin: 0; }
.rdp-body .u-margin { right: -24px; }
.rdp-hints { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 28px 20px; }
.rdp-hints span { font-size: 13px; color: var(--muted); background: var(--gray); border-radius: 980px; padding: 5px 12px; }
@media (max-width: 860px) {
  .rdp { grid-template-columns: 1fr; gap: 36px; }
  .rdp-body { padding: 18px 18px 6px; }
  .rdp-hints { padding: 10px 18px 16px; }
  .rdp-body .u-margin { right: -12px; }
}

/* ---------- 用户协议 / 隐私政策 ---------- */
.prose.legal { font-size: 16px; line-height: 1.85; padding-bottom: 80px; }
.prose.legal h2 { font-size: 20px; margin: 36px 0 10px; }
.prose.legal ol { padding-left: 1.4em; margin: 0 0 8px; }
.prose.legal li { margin: 4px 0; }
.legal-key { background: #fff8e6; border: 1px solid #f3dca0; border-radius: 12px; padding: 14px 18px; margin: 0 0 28px; font-size: 15px; line-height: 1.75; color: #5c4400; }
.page-head .muted { color: var(--faint); font-size: 14px; margin-top: 6px; }
/* 购买按钮旁的退款说明 */
.no-refund { font-size: 12px; color: var(--faint); line-height: 1.6; margin-top: 8px; }
.no-refund a { color: inherit; text-decoration: underline; }

/* 首页示范：三步引导 + 图例 */
.rdp-hints b { color: var(--ink-blue); margin-right: 2px; }
.rdp-hints i { font-style: normal; border-radius: 3px; padding: 0 3px; margin: 0 2px; }
.rdp-hints .hl-y { background: rgba(255, 212, 0, .38); }
.rdp-hints .hl-g { background: rgba(91, 201, 120, .32); }
.rdp-hints .hl-u { text-decoration: underline; text-decoration-color: #e5401b; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rdp-hints .hl-w { background: rgba(80, 160, 255, .10); border-bottom: 1.5px dashed rgba(51, 126, 169, .7); border-radius: 2px; }
.rdp-legend { font-size: 12px; color: var(--faint); margin: -8px 28px 18px; line-height: 1.6; }
.rdp-body .n-content p + p { margin-top: 10px; }
@media (max-width: 860px) { .rdp-legend { margin: -6px 18px 14px; } }
#who .pwd-form { display: grid; gap: 8px; max-width: 320px; margin: 0 auto; }
#who .pwd-form input { width: 100%; max-width: none; margin: 0; box-sizing: border-box; }

/* 网页 App：添加到桌面的引导 */
.install-modal { max-width: 400px; text-align: left; }
.install-modal h3, .install-modal > .muted { text-align: center; }
.modal img.install-icon { width: 64px; height: 64px; margin: 0 auto 10px; display: block; border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.install-modal .btn { display: block; width: 100%; margin-top: 18px; }
.install-or { text-align: center; color: var(--faint); font-size: 13px; margin: 12px 0 0; }
.install-steps { margin: 16px 0 0; padding-left: 1.3em; font-size: 15px; line-height: 1.7; }
.install-steps li { margin: 6px 0; }
.install-note { font-size: 12px; color: var(--faint); margin: 16px 0 10px; }
.install-modal #installClose { display: block; margin: 0 auto; }
.install-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 10px 10px 10px 12px; box-shadow: 0 8px 30px rgba(0,0,0,.16), 0 0 0 1px rgba(0,0,0,.04); font-size: 13px; animation: fade .3s; max-width: 520px; margin: 0 auto; }
.install-bar img { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.install-bar span { flex: 1; min-width: 0; color: var(--muted); line-height: 1.4; }
.install-bar b { display: block; color: var(--text); font-size: 14px; }
.install-x { border: 0; background: none; color: var(--faint); font-size: 14px; padding: 4px 6px; cursor: pointer; }
.account button.app-btn { color: var(--ink-blue); opacity: 1; font-weight: 500; }
.account button.app-btn:hover { text-decoration: underline; }
@media (max-width: 600px) { .app-btn .app-long { display: none; } }

/* 分享给朋友 */
.share-modal { max-width: 360px; }
.modal img.share-qr { width: 180px; height: 180px; margin: 14px auto 6px; display: block; }
.share-wx { font-size: 15px; line-height: 1.7; background: #f2f5ff; border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; }
.share-link { display: flex; gap: 8px; margin: 14px 0 10px; }
.share-link input { flex: 1; min-width: 0; font-size: 13px; padding: 7px 10px; border: 1px solid var(--line, #d2d2d7); border-radius: 8px; color: var(--muted); }
.install-share { text-align: center; font-size: 13px; color: var(--faint); margin: 0 0 6px; }

/* 下载页 app.html */
.dl-wx { position: sticky; top: 60px; z-index: 5; display: flex; flex-direction: column; gap: 2px; background: #1f3fb0; color: #fff; border-radius: 12px; padding: 12px 44px 12px 14px; margin: 12px 0 0; font-size: 13px; }
.dl-wx b { font-size: 15px; }
.dl-arrow { position: absolute; right: 12px; top: 6px; font-size: 26px; animation: dl-bob 1.2s ease-in-out infinite; }
@keyframes dl-bob { 50% { transform: translate(3px, -4px); } }
.dl-hero { text-align: center; padding: 46px 0 20px; }
.dl-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.dl-hero h1 { font-size: 34px; margin: 14px 0 6px; }
.dl-lead { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0 0 22px; }
.dl-steps { text-align: left; max-width: 420px; margin: 18px auto 0; background: var(--gray, #f5f5f7); border-radius: 14px; padding: 14px 18px; font-size: 15px; }
.dl-steps ol { margin: 8px 0 0; padding-left: 1.3em; line-height: 1.8; }
.dl-done { font-size: 16px; margin: 0 0 12px; }
.dl-small { color: var(--faint); font-size: 12px; margin-top: 16px; }
.dl-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 10px 0 0; }
.dl-feats div { border: 1px solid var(--line, #e5e5ea); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.dl-feats b { display: block; color: var(--text); font-size: 15px; }
.dl-more { text-align: center; margin: 30px 0 10px; }
@media (max-width: 600px) { .dl-feats { grid-template-columns: 1fr; } }
.dl-icon { display: block; margin: 0 auto; }

/* 词汇挑战卡片；首页上和课程之间有一条淡淡的分界线 */
.chc-block:not(:empty) { margin-top: 56px; padding-top: 8px; border-top: 1px solid rgba(0, 0, 0, .07); }
.chc { display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: var(--radius, 18px); padding: 20px 22px; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.04); border: 1px solid rgba(0,0,0,.05); transition: transform .15s, box-shadow .15s; }
.chc:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.chc-badge { align-self: flex-start; background: #fff4d6; color: #8a5a00; font-size: 12px; font-weight: 600; border-radius: 980px; padding: 3px 10px; }
.chc b { font-size: 19px; }
.chc p { margin: 0; color: var(--muted); font-size: 14px; }
.chc-meta { font-size: 13px; color: var(--faint); }
.chc-go { margin-top: 6px; font-weight: 600; color: var(--ink-blue, #1f3fb0); font-size: 14px; }
.chc-price { color: var(--ink-red, #e5401b); }
