/* ===== 知识付费 · 前端样式（清透明亮 · 蓝紫主色 + 多彩点缀） ===== */
:root {
  /* 底色：清透冷白，屏幕更亮，文字更清晰 */
  --bg-1: #f2f6fd;
  --bg-2: #e7eefb;
  /* 主色：清亮蓝 */
  --brand: #3b6cf6;
  --brand-2: #5b87ff;
  --brand-deep: #2148bf;
  --brand-soft: #ebf1ff;
  --brand-line: #d2e0ff;
  /* 会员金 */
  --gold: #f0a12a;
  --gold-2: #ffc266;
  --gold-deep: #9c6208;
  --gold-soft: #fff4e0;
  --gold-line: #f7dcb0;
  /* 多彩点缀：青 / 紫 / 玫红 / 红 / 绿 */
  --teal: #0fb3a4;
  --violet: #7b5cf0;
  --rose: #ef4d76;
  --red: #e5484d;
  --green: #12b76a;
  --teal-soft: #e3f8f5;
  --teal-line: #b8ece6;
  --violet-soft: #f0ecff;
  --violet-line: #dbd2ff;
  --rose-soft: #ffeef2;
  --rose-line: #ffd3de;
  --red-soft: #fdeced;
  --red-line: #f8cdd0;
  --green-soft: #e6f9f0;
  --green-line: #c2eed9;
  --ink: #131a2b;
  --ink-2: #4e5773;
  --ink-3: #78829c;
  --line: #e2e9f7;
  --line-2: #eef2fb;
  --glass: #ffffff;
  --glass-strong: #ffffff;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 2px 10px rgba(24, 46, 104, .06);
  --shadow-lg: 0 14px 36px rgba(24, 46, 104, .16);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ===== 自定义字体 =====
   维吾尔语（巴斯马体）字体由管理员在后台「字体设置」中选择；
   中文使用系统字体预设（默认/微软雅黑/宋体/黑体/楷体/仿宋）。 */
@font-face {
  font-family: 'Uyghur UKIJ Basma';
  src: url('../fonts/UKIJ-Basma.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Uyghur Basma Tom';
  src: url('../fonts/ALKATIP-Basma-Tom.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  overscroll-behavior-y: contain;
  min-height: 100vh;
  background: var(--bg-1);
  background-image:
    radial-gradient(1100px 460px at 50% -200px, #dce8ff 0%, rgba(220, 232, 255, 0) 72%),
    radial-gradient(620px 420px at 108% 8%, rgba(123, 92, 240, .10) 0%, rgba(123, 92, 240, 0) 70%),
    radial-gradient(560px 380px at -8% 22%, rgba(15, 179, 164, .09) 0%, rgba(15, 179, 164, 0) 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 15px; }
img { display: block; max-width: 100%; }
/* 站内图片禁止长按保存/拖拽，仅海报类图片（要保存分享）例外 */
img { -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; user-select: none; -webkit-user-drag: none; }
.pd-gallery-item img, .share-poster img, .dp-slide img {
  -webkit-touch-callout: default; -webkit-user-select: auto; -moz-user-select: auto; user-select: auto; -webkit-user-drag: auto;
}

#app { max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative; z-index: 1; }

/* ===== 顶栏 ===== */
#topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; height: 54px; padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.back-btn {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  flex-shrink: 0; border: 1px solid var(--line);
  background: #fff;
  background-image: linear-gradient(180deg, #ffffff 0%, rgba(242, 247, 255, .94) 100%);
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(24, 46, 104, .06);
  transition: background-color .18s ease;
}
.back-btn:active { background-image: none; background-color: var(--bg-2); box-shadow: inset 0 1px 3px rgba(24, 46, 104, .1); }
.back-btn svg { width: 20px; height: 20px; }
.topbar-title { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: calc(100% - 110px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-weight: 800; font-size: 17px; letter-spacing: .3px; }
.topbar-right { flex-shrink: 0; min-width: 36px; margin-left: auto; display: flex; align-items: center; justify-content: flex-end; }
.lang-btn {
  height: 32px; padding: 0 11px; border-radius: 12px;
  font-size: 13px; font-weight: 700; color: var(--brand-deep);
  border: 1px solid var(--line);
  background: #fff;
  background-image: linear-gradient(180deg, #ffffff 0%, rgba(242, 247, 255, .94) 100%);
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(24, 46, 104, .06);
  transition: background-color .18s ease; white-space: nowrap;
}
.lang-btn:active { background-image: none; background-color: var(--bg-2); box-shadow: inset 0 1px 3px rgba(24, 46, 104, .1); }
.back-btn[hidden] { display: none !important; }
#home-btn[hidden] { display: none !important; }

#view { padding: 14px 14px calc(96px + var(--safe-b)); }
#view.no-tab { padding-bottom: 28px; }

/* ===== 底部导航（实底白条） ===== */
#tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 60;
  bottom: calc(10px + var(--safe-b));
  width: calc(100% - 24px); max-width: 536px;
  display: flex; height: 62px; padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(24, 46, 104, .08);
}
#tabbar.hidden { display: none; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--ink-3); position: relative; border-radius: 12px;
  transition: color .18s ease, background-color .18s ease;
}
.tab:active { background: var(--bg-2); }
.tab-icon { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.tab-icon svg { width: 24px; height: 24px; }
.tab-label { font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.tab.active { color: var(--brand-deep); background: var(--brand-soft); }
/* 四个栏目各用一档点缀色，选中态一眼分得清 */
#tabbar .tab:nth-child(2).active { color: #0a8f84; background: var(--teal-soft); }
#tabbar .tab:nth-child(4).active { color: #6b4be0; background: var(--violet-soft); }
.tab-vip .tab-icon { color: var(--gold); }
.tab-vip.active { color: var(--gold-deep); background: var(--gold-soft); }

/* ===== 通用组件 ===== */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.section-title { font-size: 17px; font-weight: 800; margin: 22px 2px 12px; display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: break-word; }
.section-title::before { content: ''; width: 4px; height: 16px; background: linear-gradient(180deg, var(--brand) 0%, var(--violet) 100%); border-radius: 2px; }
.section-more { margin-left: auto; font-size: 13px; color: var(--ink-2); font-weight: 600; }

/* 按钮：玻璃底 + 顶部高光，全站统一一套质感 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 48px; padding: 0 26px; border-radius: 14px;
  font-size: 15px; font-weight: 700;
  border: 1px solid var(--line);
  background: #fff; color: var(--ink);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(242, 247, 255, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 4px 12px rgba(24, 46, 104, .05);
  transition: background-color .18s ease, border-color .18s ease, opacity .18s ease;
}
.btn:active { background-color: var(--bg-2); box-shadow: inset 0 1px 3px rgba(24, 46, 104, .1); }
.btn-primary {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.btn-amber {
  background: var(--gold); color: #fff; border-color: var(--gold);
}
/* 主按钮：顶部亮、底部略深，和登录面板里的玻璃按钮一模一样 */
.btn-primary {
  background-image: linear-gradient(180deg, #7096ff 0%, var(--brand) 54%, #2f5ede 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(16, 36, 80, .16), 0 8px 20px rgba(59, 108, 246, .24);
}
.btn-primary:active {
  background-image: linear-gradient(180deg, #5f85f2 0%, var(--brand-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 10px rgba(59, 108, 246, .2);
}
.btn-amber {
  background-image: linear-gradient(180deg, #ffc76e 0%, var(--gold) 54%, #dd8d12 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(120, 70, 0, .16), 0 8px 20px rgba(240, 161, 42, .24);
}
.btn-amber:active {
  background-image: linear-gradient(180deg, #f3b355 0%, var(--gold-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 10px rgba(240, 161, 42, .2);
}
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline { background: #fff; color: var(--ink-2); border-color: var(--line); }
/* 次要按钮同样是玻璃，只是底更白、字是彩色 */
.btn-ghost, .btn-outline, .exit-cancel {
  background-image: linear-gradient(180deg, #ffffff 0%, rgba(238, 244, 255, .9) 100%);
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(24, 46, 104, .07);
}
.btn-ghost { border-color: rgba(59, 108, 246, .32); }
.btn-ghost:active, .btn-outline:active, .exit-cancel:active {
  background-image: none; background-color: var(--bg-2);
  box-shadow: inset 0 1px 3px rgba(24, 46, 104, .1);
}
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 18px; font-size: 13px; border-radius: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* 支付方式按钮 */
.pay-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 54px; border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 15px; font-weight: 700; color: var(--ink);
  background-image: linear-gradient(180deg, #ffffff 0%, rgba(240, 245, 255, .92) 100%);
  box-shadow: inset 0 1px 0 #fff, 0 5px 14px rgba(24, 46, 104, .06);
  transition: background-color .18s ease, border-color .18s ease;
}
.pay-btn:active { background-image: none; background-color: var(--bg-2); box-shadow: inset 0 1px 3px rgba(24, 46, 104, .1); }
.pay-ico { width: 24px; height: 24px; display: inline-flex; flex-shrink: 0; }
.pay-ico svg { width: 24px; height: 24px; display: block; }
.pay-wechat .pay-ico { color: #07C160; }
.pay-alipay .pay-ico { color: #1677FF; }
.pay-balance .pay-ico { color: var(--brand); }
.pay-config-warn { text-align: left; font-size: 12.5px; line-height: 1.55; color: var(--gold-deep); background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; }

/* ===== 状态标签（VIP / 免费 / 已购买 / 锁定 / 类型） ===== */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: .2px; padding: 4px 9px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
.tag::before { content: ''; width: 12px; height: 12px; flex: 0 0 auto; display: none; background: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.tag-vip { color: var(--gold-deep); background: var(--gold-soft); border-color: var(--gold-line); }
.tag-free { color: var(--brand-deep); background: var(--brand-soft); border-color: var(--brand-line); }
.tag-activity { color: #b62f52; background: var(--rose-soft); border-color: var(--rose-line); }
.tag-audio, .tag-pdf, .tag-video, .tag-image, .tag-document { color: var(--ink-2); background: var(--line-2); border-color: var(--line); }
.tag-lock { color: var(--red); background: var(--red-soft); border-color: var(--red-line); }
.tag-owned { color: #0a8f84; background: var(--teal-soft); border-color: var(--teal-line); }
.tag-vip::before { display: block; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 17l-1.5-9 5.5 4L12 5l4 7 5.5-4L20 17z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 17l-1.5-9 5.5 4L12 5l4 7 5.5-4L20 17z'/%3E%3C/svg%3E"); }
.tag-free::before { display: block; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='10.5' rx='1.6'/%3E%3Cpath d='M3 6.5h18V10H3z'/%3E%3Cpath d='M12 6.5v14'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='10.5' rx='1.6'/%3E%3Cpath d='M3 6.5h18V10H3z'/%3E%3Cpath d='M12 6.5v14'/%3E%3C/svg%3E"); }
.tag-owned::before { display: block; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
.tag-lock::before { display: block; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='9.5' rx='2'/%3E%3Cpath d='M8 10.5V8a4 4 0 018 0v2.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='9.5' rx='2'/%3E%3Cpath d='M8 10.5V8a4 4 0 018 0v2.5'/%3E%3C/svg%3E"); }
.tag-activity::before { display: block; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M13 2L4 14h6l-1 8 9-12h-6z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M13 2L4 14h6l-1 8 9-12h-6z'/%3E%3C/svg%3E"); }
.tag-video::before { display: block; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='2.5' y='5.5' width='12.5' height='13' rx='2.5'/%3E%3Cpath d='M15 10.8l6-3.5v9.4l-6-3.5z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='2.5' y='5.5' width='12.5' height='13' rx='2.5'/%3E%3Cpath d='M15 10.8l6-3.5v9.4l-6-3.5z'/%3E%3C/svg%3E"); }
.tag-audio::before { display: block; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l10-2v13'/%3E%3Ccircle cx='6.6' cy='18' r='2.6'/%3E%3Ccircle cx='16.6' cy='16' r='2.6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l10-2v13'/%3E%3Ccircle cx='6.6' cy='18' r='2.6'/%3E%3Ccircle cx='16.6' cy='16' r='2.6'/%3E%3C/svg%3E"); }
.tag-pdf::before, .tag-document::before { display: block; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M14 2.8H7A2.2 2.2 0 004.8 5v14A2.2 2.2 0 007 21.2h10A2.2 2.2 0 0019.2 19V8z'/%3E%3Cpath d='M14 2.8V8h5.2M8 12.6h8M8 16.2h5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M14 2.8H7A2.2 2.2 0 004.8 5v14A2.2 2.2 0 007 21.2h10A2.2 2.2 0 0019.2 19V8z'/%3E%3Cpath d='M14 2.8V8h5.2M8 12.6h8M8 16.2h5'/%3E%3C/svg%3E"); }
.tag-image::before { display: block; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='4.8' width='18' height='14.4' rx='2.4'/%3E%3Ccircle cx='8.2' cy='9.6' r='1.6'/%3E%3Cpath d='M3.6 16.6l4.6-4.4a1.6 1.6 0 012.2 0l5.2 5.1'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='4.8' width='18' height='14.4' rx='2.4'/%3E%3Ccircle cx='8.2' cy='9.6' r='1.6'/%3E%3Cpath d='M3.6 16.6l4.6-4.4a1.6 1.6 0 012.2 0l5.2 5.1'/%3E%3C/svg%3E"); }
.tag-info { white-space: normal; max-width: 100%; }

/* ===== 促销角标（京东风格：红 / 金 / 青 三色斜切角标 + 省钱胶囊） ===== */
.promo-badge {
  position: absolute; top: 0; left: 0; z-index: 2;
  display: inline-flex; align-items: center; gap: 3px;
  max-width: calc(100% - 72px);
  padding: 3px 9px 3px 6px;
  font-size: 11px; font-weight: 800; line-height: 1.55; letter-spacing: .2px;
  color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-radius: 0 0 10px 0;
  background-image: linear-gradient(135deg, #ff6a3d 0%, #e8352f 100%);
  box-shadow: 0 3px 8px rgba(214, 45, 40, .26), inset 0 1px 0 rgba(255, 255, 255, .34);
  text-shadow: 0 1px 1px rgba(140, 20, 16, .26);
}
.promo-badge.promo-gold { background-image: linear-gradient(135deg, #f8bb55 0%, #de8a10 100%); box-shadow: 0 3px 8px rgba(196, 122, 15, .24), inset 0 1px 0 rgba(255, 255, 255, .4); }
.promo-badge.promo-teal { background-image: linear-gradient(135deg, #37c9b6 0%, #0a9c90 100%); box-shadow: 0 3px 8px rgba(10, 156, 144, .22), inset 0 1px 0 rgba(255, 255, 255, .34); text-shadow: none; }
.promo-badge::before {
  content: ''; width: 10px; height: 10px; flex: 0 0 auto; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2L4 14h6l-1 8 9-12h-6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2L4 14h6l-1 8 9-12h-6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* 详情页促销标签：与角标同色系，走 tag 尺寸 */
.tag-promo { color: #fff; border-color: transparent; background-image: linear-gradient(135deg, #ff6a3d 0%, #e8352f 100%); box-shadow: 0 2px 6px rgba(214, 45, 40, .2); }
.tag-promo::before {
  display: block; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2L4 14h6l-1 8 9-12h-6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2L4 14h6l-1 8 9-12h-6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* 省钱胶囊：省多少直接标出来，不做前端算价，数值来自服务端 save_amount */
.promo-save {
  display: inline-flex; align-items: center; flex: 0 0 auto;
  padding: 1px 6px; border-radius: 5px;
  font-size: 10.5px; font-weight: 800; line-height: 1.6; letter-spacing: 0;
  color: #d62a24; white-space: nowrap;
  background: #fff4f1; border: 1px solid #ffcfc4;
}
.promo-save-lg { font-size: 12px; padding: 2px 8px; border-radius: 6px; }
/* 详情页价格条下方的促销说明行 */
.pd-promo {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 10px; padding: 9px 12px;
  border-radius: var(--radius-sm);
  background-image: linear-gradient(135deg, #fff5f2 0%, #ffe9e3 100%);
  border: 1px solid #ffd3c7;
}
.pd-promo-label {
  display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto;
  padding: 2px 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 800; color: #fff; white-space: nowrap;
  background-image: linear-gradient(135deg, #ff6a3d 0%, #e8352f 100%);
  box-shadow: 0 2px 6px rgba(214, 45, 40, .22);
}
.pd-promo-label::before {
  content: ''; width: 10px; height: 10px; flex: 0 0 auto; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2L4 14h6l-1 8 9-12h-6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2L4 14h6l-1 8 9-12h-6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pd-promo-text { font-size: 12.5px; font-weight: 700; line-height: 1.5; color: #b62f2a; overflow-wrap: anywhere; word-break: break-word; }

.price { color: var(--gold); font-weight: 800; }
.price-symbol { font-size: .72em; }
.price-orig { color: var(--ink-3); text-decoration: line-through; font-weight: 400; font-size: 13px; margin-left: 6px; }

.avatar { border-radius: 50%; object-fit: cover; background: var(--bg-2); }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.empty svg { width: 64px; height: 64px; opacity: .4; margin-bottom: 12px; }

/* 支付状态页（去装饰化，简洁） */
.pay-state { text-align: center; padding: 36px 22px 40px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.pay-state h2 { font-size: 20px; font-weight: 800; margin: 14px 0 6px; }
.pay-state p { color: var(--ink-3); font-size: 13px; margin: 0; }
.pay-state .pay-sub { color: var(--ink-2); font-size: 14px; margin: 0 0 18px; }
.pay-badge { width: 68px; height: 68px; margin: 0 auto 4px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pay-badge svg { width: 34px; height: 34px; }
.pay-badge-ok { background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line); }
.pay-badge-wait { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
.pay-info { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 14px; margin-bottom: 20px; }
.pay-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.pay-row:last-child { border-bottom: 0; }
.pay-row span { color: var(--ink-3); flex-shrink: 0; }
.pay-row b { color: var(--ink); font-weight: 700; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-state .btn { width: 100%; }
.pay-state .btn + .btn { margin-top: 10px; }
.spinner { width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-count { margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.learn-desc { font-size: 13px; color: var(--ink-2); line-height: 1.7; margin: 8px 0 12px; white-space: pre-wrap; word-break: break-word; }

/* 骨架屏 */
.skeleton { position: relative; overflow: hidden; background: #e8eefb; border-radius: 8px; }
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ===== 首页 ===== */
.banner-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.banner-track { display: flex; direction: ltr; transition: transform .45s cubic-bezier(.22, .61, .36, 1); }
.banner-item { flex: 0 0 100%; aspect-ratio: 2.1 / 1; position: relative; background: var(--bg-2); }
.banner-item img { width: 100%; height: 100%; object-fit: cover; }
.banner-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.banner-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .55); transition: all .3s; }
.banner-dots i.on { width: 18px; background: #fff; }
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 30px; height: 30px; border-radius: 50%; border: none; padding: 0;
  background: rgba(0, 0, 0, .28); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s;
}
.banner-arrow:hover { background: rgba(0, 0, 0, .45); }
.banner-arrow svg { width: 18px; height: 18px; }
.banner-arrow.prev { left: 8px; }
.banner-arrow.prev svg { transform: rotate(180deg); }
.banner-arrow.next { right: 8px; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cat-ico {
  width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand);
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.cat-item:active .cat-ico { transform: translateY(1px); opacity: .86; }
.cat-ico svg { width: 26px; height: 26px; }
/* 分类图标六色轮转：蓝 / 青 / 紫 / 玫红 / 金 / 绿，靠浅底+同色图标保持干净 */
.cat-ico.cat-c0 { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); }
.cat-ico.cat-c1 { background: var(--teal-soft); border-color: var(--teal-line); color: #0a9c90; }
.cat-ico.cat-c2 { background: var(--violet-soft); border-color: var(--violet-line); color: var(--violet); }
.cat-ico.cat-c3 { background: var(--rose-soft); border-color: var(--rose-line); color: var(--rose); }
.cat-ico.cat-c4 { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold); }
.cat-ico.cat-c5 { background: var(--green-soft); border-color: var(--green-line); color: #0f9d5c; }
.cat-ico img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.cat-name { font-size: 12px; color: var(--ink-2); font-weight: 700; max-width: 100%; overflow-wrap: break-word; word-break: break-word; text-align: center; }

.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.product-card:active { border-color: var(--brand-line); box-shadow: var(--shadow); }
.product-cover { position: relative; aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }
.product-cover img { width: 100%; height: 100%; object-fit: cover; }
.product-cover .corner-tag { position: absolute; top: 8px; left: 8px; }
.product-cover .corner-tag-r { position: absolute; top: 8px; right: 8px; z-index: 1; }
.product-cover .corner-tag-r .tag { background: #fff; border-color: var(--line); color: var(--ink-2); box-shadow: 0 1px 3px rgba(24, 46, 104, .12); }
.product-body { padding: 10px 12px 13px; }
.product-title { font-size: 14px; font-weight: 700; line-height: 1.6; min-height: 45px; overflow: hidden; overflow-wrap: break-word; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; row-gap: 6px; }
.product-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 1px 6px; flex-shrink: 0; max-width: 100%; }
.product-price .price-now { font-size: 16.5px; line-height: 1.2; letter-spacing: -.2px; }
.product-price .price-orig { margin-left: 0; font-size: 11.5px; }
.product-stats { display: flex; align-items: center; gap: 6px 8px; flex-shrink: 1; min-width: 0; flex-wrap: wrap; }
.product-sales, .product-views { font-size: 12px; color: var(--ink-3); white-space: nowrap; }

/* 列表底部：加载更多 / 已加载全部 */
.load-more {
  display: block; width: 100%; max-width: 220px; margin: 18px auto 2px;
  padding: 11px 20px; border-radius: 999px;
  background-color: var(--brand-soft); border: 1px solid var(--brand-line);
  background-image: linear-gradient(180deg, #f7faff 0%, rgba(226, 236, 255, .96) 100%);
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(59, 108, 246, .12);
  color: var(--brand-deep); font-size: 13.5px; font-weight: 700; letter-spacing: .3px;
  transition: background-color .18s ease, border-color .18s ease;
}
.load-more:active { background-image: none; background-color: var(--brand-line); border-color: #c3d4ff; box-shadow: inset 0 1px 3px rgba(24, 46, 104, .12); }
.load-more:disabled, .load-more.is-loading { opacity: .6; background-image: none; background-color: var(--bg-2); border-color: var(--line); color: var(--ink-3); box-shadow: none; }
.list-end { display: flex; align-items: center; gap: 10px; padding: 18px 0 4px; color: var(--ink-3); font-size: 12.5px; letter-spacing: .4px; }
.list-end::before, .list-end::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* 活动横幅 */
.act-banner {
  margin-top: 16px; border-radius: var(--radius); padding: 16px 18px;
  background: linear-gradient(135deg, #eef3ff 0%, #f4f0ff 58%, #e9f9f7 100%);
  color: var(--ink); position: relative; overflow: hidden;
  border: 1px solid var(--brand-line);
  display: flex; align-items: center; gap: 14px;
}
.act-banner .act-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.act-banner h4 { font-size: 17px; font-weight: 800; line-height: 1.6; position: relative; z-index: 1; }
.act-banner p { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.7; position: relative; z-index: 1; overflow-wrap: break-word; word-break: break-word; }
.act-banner .act-ask { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 12px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; position: relative; z-index: 1; white-space: nowrap; transition: background-color .18s ease; }
.act-banner .act-ask:active { background: var(--brand-deep); }
.act-banner .act-ask svg { width: 16px; height: 16px; }

/* ===== 意见反馈 ===== */
.fb-item { padding: 16px; }
.fb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.fb-date { font-size: 12px; color: var(--ink-3); }
.fb-content { font-size: 14px; line-height: 1.7; color: var(--ink); overflow-wrap: break-word; word-break: break-word; white-space: pre-wrap; }
.fb-solved { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-deep); font-size: 13px; font-weight: 700; }
.fb-gold { color: var(--gold); }
.fb-reply { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.fb-reply-h { font-size: 12px; color: var(--ink-2); margin-bottom: 4px; font-weight: 700; }
.fb-reply > div:last-child { font-size: 13px; line-height: 1.7; color: var(--ink); overflow-wrap: break-word; word-break: break-word; }
.fb-push, .fr-push { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; text-decoration: none; }
.fb-push .fb-cover, .fr-push .fb-cover { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--line); }
.fb-push-body, .fr-push-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fb-push-title, .fr-push-title { font-size: 13px; line-height: 1.5; color: var(--ink); overflow-wrap: break-word; word-break: break-word; }
.fb-push b, .fr-push b { flex-shrink: 0; font-weight: 700; white-space: nowrap; }
.fb-result { margin-top: 18px; padding: 16px; }
.fb-result-h { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.fb-result .fr-solved { padding: 10px 12px; border-radius: 10px; background: var(--gold-soft); font-size: 13px; font-weight: 700; margin: 0 0 8px; overflow-wrap: break-word; word-break: break-word; }
.fb-result .fr-push { margin: 0 0 8px; }

/* 推送课程居中弹窗（广告式，常驻显示，仅关闭按钮可关闭） */
.push-ad-mask { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 28px; animation: pushAdFade .25s ease; }
.push-ad { position: relative; width: 100%; max-width: 360px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 60px rgba(0, 0, 0, .28); cursor: pointer; animation: fadeIn .2s; }
.push-ad-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 32px; height: 32px; border: none; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; transition: background-color .18s ease; }
.push-ad-close:hover { background: rgba(0, 0, 0, .62); }
.push-ad-cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--line); }
.push-ad-body { padding: 14px 16px 16px; }
.push-ad-label { font-size: 13px; font-weight: 700; }
.push-ad-title { margin-top: 6px; font-size: 16px; font-weight: 700; color: var(--ink); overflow-wrap: break-word; word-break: break-word; }
.push-ad-cta { margin-top: 12px; font-size: 14px; font-weight: 700; }
@keyframes pushAdFade { from { opacity: 0; } to { opacity: 1; } }

/* ===== 课程列表 ===== */
.filter-bar { display: flex; gap: 8px; margin-bottom: 14px; position: sticky; top: 54px; z-index: 40; background: transparent; padding: 4px 0; }
.search-box {
  flex: 1; display: flex; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px;
}
.search-box svg { width: 18px; height: 18px; color: var(--ink-3); flex-shrink: 0; }
.search-box input { flex: 1; border: none; outline: none; height: 42px; padding: 0 8px; background: transparent; color: var(--ink); }
.search-box input::placeholder { color: var(--ink-3); }
.search-clear {
  flex-shrink: 0; width: 22px; height: 22px; border: none; border-radius: 50%;
  background: var(--ink-3); color: #fff; font-size: 15px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: .8; padding: 0;
}
.search-clear[hidden] { display: none; }
.search-clear:active { opacity: 1; }
.cat-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0; padding: 7px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  background-image: linear-gradient(180deg, #ffffff 0%, rgba(242, 247, 255, .94) 100%);
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(24, 46, 104, .06);
  color: var(--ink-2); font-size: 13px; font-weight: 700; line-height: 1.3;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.cat-tab svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .8; }
.cat-tab-t { max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-tab.active svg { opacity: 1; }
.teacher-list { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.teacher-list::-webkit-scrollbar { display: none; }
.teacher-item {
  flex: 0 0 auto; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 2px 0; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  color: var(--ink-2); font: inherit; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; user-select: none;
}
.teacher-item:active { opacity: .75; }
.teacher-item.active .teacher-name { color: var(--brand-deep); }
.teacher-item.active .teacher-ava { box-shadow: 0 0 0 2px rgba(59, 108, 246, .40); }
.teacher-ava { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-deep); font-weight: 800; font-size: 20px; line-height: 1; }
.teacher-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.teacher-ava-ph { border: 1px solid var(--brand-line); }
.teacher-ava-ph svg { width: 26px; height: 26px; }
.teacher-ava-svc { background: #fff; border: 1px solid var(--brand-line); }
.teacher-ava-svc svg { width: 32px; height: 22px; display: block; }
.teacher-name { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; line-height: 1.3; font-size: 12.5px; font-weight: 700; }
.cat-tab:active { background-image: none; background-color: var(--bg-2); box-shadow: inset 0 1px 3px rgba(24, 46, 104, .1); }
.cat-tab.active {
  background-color: var(--brand-soft);
  background-image: linear-gradient(180deg, #f4f8ff 0%, rgba(226, 236, 255, .96) 100%);
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(59, 108, 246, .14);
  color: var(--brand-deep); border-color: var(--brand-line);
}
.sort-row { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.sort-btn { padding: 6px 14px; border-radius: 10px; font-size: 12.5px; color: var(--ink-2); font-weight: 700; border: 1px solid var(--line); cursor: pointer; background-color: #fff; background-image: linear-gradient(180deg, #ffffff 0%, rgba(242, 247, 255, .94) 100%); box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(24, 46, 104, .05); transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.sort-btn:active { background-image: none; background-color: var(--bg-2); box-shadow: inset 0 1px 3px rgba(24, 46, 104, .1); }
.sort-btn.active { background-color: var(--brand-soft); background-image: linear-gradient(180deg, #f4f8ff 0%, rgba(226, 236, 255, .96) 100%); box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(59, 108, 246, .14); color: var(--brand-deep); border-color: var(--brand-line); }

/* ===== 商品详情 ===== */
/* 封面/海报按图片真实比例显示（--pd-ar = 宽/高），不裁剪、不留多余空白 */
.pd-cover { width: 100%; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--bg-2); aspect-ratio: var(--pd-ar, 16 / 10); max-height: 80vh; max-width: calc(80vh * var(--pd-ar, 1.6)); }
.pd-cover img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-gallery { position: relative; width: 100%; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--bg-2); aspect-ratio: var(--pd-ar, .75); max-height: 88vh; max-width: calc(88vh * var(--pd-ar, .75)); }
.pd-gallery-track { display: flex; direction: ltr; height: 100%; transition: transform .45s cubic-bezier(.22, .61, .36, 1); }
.pd-gallery-item { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; height: 100%; overflow: hidden; }
.pd-gallery-item img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-gallery-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.pd-gallery-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .55); transition: all .3s; }
.pd-gallery-dots i.on { width: 18px; background: #fff; }
.dp-carousel { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; margin-bottom: 4px; }
.dp-carousel-track { display: flex; direction: ltr; transition: transform .45s cubic-bezier(.22, .61, .36, 1); }
.dp-slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; }
.dp-slide img { width: 100%; height: auto; max-height: none; object-fit: contain; display: block; }
.dp-carousel-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dp-carousel-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .55); transition: all .3s; }
.dp-carousel-dots i.on { width: 18px; background: #fff; }
.dp-save-row { display: flex; align-items: center; gap: 10px; margin: 10px 0 18px; }
.dp-save-row .btn { flex: none; }
.dp-save-tip { flex: 1; min-width: 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.pd-head { padding: 16px 4px 4px; min-width: 0; }
.pd-title { font-size: clamp(18px, 5.1vw, 22px); font-weight: 800; line-height: 1.45; letter-spacing: 0; overflow-wrap: anywhere; word-break: break-word; hyphens: auto; }
.pd-sub { color: var(--ink-2); font-size: 14px; line-height: 1.6; margin-top: 6px; overflow-wrap: anywhere; word-break: break-word; }
.pd-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.pd-teacher { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 4px 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.pd-teacher-ava { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-deep); font-weight: 800; font-size: 22px; }
.pd-teacher-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.pd-teacher-label { font-size: 12px; color: var(--ink-3); }
.pd-teacher-name { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-teacher-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pd-price-row { display: flex; align-items: baseline; gap: 8px; padding: 16px; background: var(--brand-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 6px; }
.pd-price-now { font-size: 30px; }
.pd-desc { margin-top: 16px; }
.pd-desc .content { font-size: 14.5px; color: var(--ink-2); line-height: 1.8; word-break: break-word; }
.pd-desc .content img { border-radius: 12px; margin: 8px 0; }
.file-list { display: flex; flex-direction: column; gap: 10px; }
.file-item { display: flex; align-items: center; gap: 12px; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: background-color .18s ease, border-color .18s ease; }
.file-item:active { background: var(--bg-2); }
.file-item.locked { opacity: .68; }
.file-item.locked .file-name { color: var(--ink-2); }
.file-ico { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--bg-2); color: var(--brand-deep); overflow: hidden; }
.file-ico svg { width: 22px; height: 22px; }
.file-ico img.file-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-info { flex: 1; min-width: 0; }
.file-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; word-break: break-word; }
.file-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.file-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

.pd-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 60; width: 100%; max-width: 560px; background: #fff; border-top: 1px solid var(--line); padding: 10px 14px calc(10px + var(--safe-b)); display: flex; align-items: center; gap: 12px; }
.pd-bar .buy-info { flex: 1; }
.pd-bar .buy-label { font-size: 12px; color: var(--ink-3); }
.pd-bar .buy-price { font-size: 24px; }
.pd-bar .buy-price-row { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.pd-bar .buy-orig { font-size: 12px; color: var(--ink-3); font-weight: 400; }

/* 详情页动作行（收藏 / 稍后看 / 分享） */
.pd-actions { display: flex; gap: 10px; margin-top: 16px; margin-bottom: calc(80px + var(--safe-b)); }
.pd-act {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  height: 64px; border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-color: #fff;
  background-image: linear-gradient(180deg, #ffffff 0%, rgba(242, 247, 255, .94) 100%);
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(24, 46, 104, .06);
  color: var(--ink-2); font-size: 12px; font-weight: 700;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.pd-act:active { background-image: none; background-color: var(--bg-2); box-shadow: inset 0 1px 3px rgba(24, 46, 104, .1); }
.pd-act svg { width: 22px; height: 22px; }
.pd-act.on { color: var(--brand-deep); border-color: var(--brand-line); background-color: var(--brand-soft); background-image: linear-gradient(180deg, #f4f8ff 0%, rgba(226, 236, 255, .96) 100%); box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(59, 108, 246, .14); }
.pd-act .pd-n { font-size: 11px; font-weight: 800; }
.pd-act.on .pd-n { color: var(--brand-deep); }

/* 积分页 */
.points-head { margin-bottom: 14px; padding: 24px 16px; text-align: center; color: var(--ink); background: linear-gradient(135deg, #f3f7ff 0%, #eef2ff 100%); border: 1px solid var(--line); border-radius: var(--radius); }
.points-head .num { font-size: 36px; font-weight: 800; line-height: 1.1; color: var(--brand-deep); }
.points-head .lbl { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.points-head p { font-size: 12px; color: var(--ink-3); margin-top: 10px; }

/* ===== 学习/播放页 ===== */
.learn-wrap { padding: 0; }

/* 播放器外壳 */
.learn-player {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.learn-head {
  padding: 13px 16px; display: flex; align-items: center; gap: 8px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.learn-head h3 { flex: 1; min-width: 0; font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 视频：深色画布（仅承托视频画面，避免亮底反光刺眼） */
.learn-video { position: relative; overflow: hidden; background: #18211d; }
.learn-video video { width: 100%; aspect-ratio: 16/9; display: block; -webkit-touch-callout: none; user-select: none; }
/* 动态水印：跟随播放器覆盖在画面上，缓慢漂移，透明度低但录屏可辨认 */
.wm-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; opacity: .16; font-family: "Uyghur Basma Tom", "Uyghur UKIJ Basma", sans-serif; }
.wm-track { position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 26px 34px; animation: wmDrift 56s linear infinite alternate; }
.wm-t { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; letter-spacing: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); transform: rotate(-18deg); }
@keyframes wmDrift {
  0% { transform: translate3d(-11%, -7%, 0); }
  100% { transform: translate3d(11%, 7%, 0); }
}
.wm-fs { position: absolute; right: 8px; top: 8px; z-index: 3; width: 30px; height: 30px; padding: 0; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .32); background: rgba(0, 0, 0, .26); color: #fff; display: flex; align-items: center; justify-content: center; }
.wm-fs svg { width: 15px; height: 15px; }
.wm-fs:active { background: rgba(0, 0, 0, .5); }
.learn-video:fullscreen { background: #000; }
.learn-video:fullscreen video { width: 100%; height: 100%; object-fit: contain; aspect-ratio: auto; }
.learn-video:-webkit-full-screen { background: #000; }
.learn-video:-webkit-full-screen video { width: 100%; height: 100%; object-fit: contain; aspect-ratio: auto; }

/* 音频：浅色卡片 + 波形 */
.learn-audio { padding: 30px 20px 24px; text-align: center; color: var(--ink); background: linear-gradient(135deg, #f3f7ff 0%, #eef2ff 100%); border-bottom: 1px solid var(--line); }
.learn-audio h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; color: var(--ink); }
.learn-audio .cover { position: relative; width: 128px; height: 128px; border-radius: 50%; margin: 0 auto 18px; background: #fff; border: 1px solid var(--line); color: var(--brand); display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 6px 18px rgba(59, 108, 246, .10); }
.learn-audio .cover svg { width: 52px; height: 52px; }
.learn-audio .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.learn-audio .cover::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(59, 108, 246, .14); pointer-events: none; }
.learn-audio.playing .cover { animation: spin 12s linear infinite; }

.audio-wave { position: relative; display: flex; align-items: center; justify-content: center; gap: 3px; height: 64px; margin: 6px 0 20px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.audio-wave i { width: 4px; height: 42px; border-radius: 2px; background: rgba(59, 108, 246, .45); transform: scaleY(.22); transform-origin: center; transition: transform .12s linear; animation: idle-breathe 3.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.audio-wave.playing i { animation: none; }
@keyframes idle-breathe { 0%, 100% { transform: scaleY(.18); } 50% { transform: scaleY(.42); } }

.audio-controls { display: flex; align-items: center; gap: 12px; }
.audio-play-btn { position: relative; width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: var(--brand); border: none; background-image: linear-gradient(180deg, #7096ff 0%, var(--brand) 58%, #2f5ede 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 18px rgba(59, 108, 246, .28); transition: opacity .18s ease, background-color .18s ease; }
.audio-play-btn:active { opacity: .9; background-color: var(--brand-deep); background-image: linear-gradient(180deg, #5f85f2 0%, var(--brand-deep) 100%); }
.audio-play-btn::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-38%, -50%); width: 0; height: 0; border-left: 15px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.audio-play-btn.playing::before { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 16px; height: 18px; border: none; background: linear-gradient(90deg, #fff 0 40%, rgba(255, 255, 255, 0) 40% 60%, #fff 60% 100%); }

.audio-track { position: relative; flex: 1; height: 6px; border-radius: 3px; background: rgba(59, 108, 246, .16); cursor: pointer; }
.audio-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--brand); overflow: hidden; }
.audio-thumb { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(59, 108, 246, .16); transform: translate(-50%, -50%); }
.audio-time { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--brand-deep); min-width: 76px; text-align: right; font-variant-numeric: tabular-nums; }
.learn-audio audio { display: none; }

/* PDF / 图片内嵌区 */
.learn-pdf { background: #fff; }
.learn-pdf iframe { width: 100%; height: 70vh; border: none; display: block; }
.learn-image { background: #fff; }
.learn-image img { width: 100%; display: block; }

/* PDF 预览（PDF.js 渲染，兼容微信内置浏览器） */
.learn-pdf-view .learn-head { padding: 0 2px; }
.pdf-stage { width: 100%; max-height: 72vh; overflow: auto; -webkit-overflow-scrolling: touch; background: #fff; border-radius: var(--radius-sm); display: flex; align-items: flex-start; justify-content: center; border: 1px solid var(--line); }
.pdf-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 56px 16px; color: var(--ink-2); font-size: 14px; }
.pdf-canvas { display: block; margin: 0 auto; background: #fff; }
.pdf-error { padding: 48px 20px; text-align: center; color: var(--ink-2); }
.pdf-error p { margin: 0 0 16px; font-size: 14px; }
.pdf-toolbar { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; }
.pdf-nav { min-width: 84px; padding: 9px 14px; font-size: 13px; font-weight: 700; color: var(--brand); background-color: #fff; background-image: linear-gradient(180deg, #ffffff 0%, rgba(242, 247, 255, .94) 100%); border: 1px solid var(--line); border-radius: 999px; box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(24, 46, 104, .06); }
.pdf-nav:active:not(:disabled) { background-image: none; background-color: var(--bg-2); box-shadow: inset 0 1px 3px rgba(24, 46, 104, .1); }
.pdf-nav:disabled { opacity: .4; box-shadow: none; }
.pdf-page { font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pdf-actions { margin-top: 12px; }

/* 文档 / 文章卡片 */
.learn-document { padding: 42px 22px; text-align: center; }
.learn-document .doc-ico { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; background: var(--bg-2); color: var(--ink-2); }
.learn-document .doc-ico svg { width: 42px; height: 42px; }
.learn-document .doc-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 16px; word-break: break-all; }
.learn-article { padding: 26px 20px; }
.learn-article-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; }
.learn-article-head .learn-article-title { flex: 1; margin-bottom: 0; }
.learn-article-title { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 14px; line-height: 1.4; word-break: break-word; }
.learn-text { font-size: 15px; color: var(--ink); line-height: 1.9; word-break: break-word; }

/* 全屏查看入口按钮 */
.fs-btn { margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; height: 36px; border-radius: 999px; background: var(--brand); border: 1px solid var(--brand); color: #fff; font-size: 13px; font-weight: 700; background-image: linear-gradient(180deg, #7096ff 0%, var(--brand) 58%, #2f5ede 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 5px 14px rgba(59, 108, 246, .22); }
.fs-btn svg { width: 16px; height: 16px; }
.fs-btn:active { background-color: var(--brand-deep); border-color: var(--brand-deep); background-image: linear-gradient(180deg, #5f85f2 0%, var(--brand-deep) 100%); }

/* ===== 全屏查看覆盖层 ===== */
.fs-layer {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 300;
  display: flex; flex-direction: column;
  background: rgba(13, 22, 18, .97);
  animation: fadeIn .18s;
}
.fs-head {
  flex-shrink: 0; display: flex; justify-content: flex-end;
  padding: 12px 14px 8px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
}
.fs-close {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .24);
  color: #fff;
}
.fs-close:active { opacity: .7; }
.fs-close svg { width: 20px; height: 20px; }
.fs-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* 图片 */
.fs-media { background: #000; }
.fs-media .fs-body { align-items: center; justify-content: center; padding: 12px; }
.fs-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* PDF */
.fs-pdf-stage {
  flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 14px calc(16px + env(safe-area-inset-bottom, 0px));
}
.fs-pdf-stage .pdf-canvas { max-width: 100%; height: auto; background: #fff; border-radius: 4px; }
.fs-pdf-stage .pdf-toolbar { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.fs-pdf-stage .pdf-nav { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .28); }
.fs-pdf-stage .pdf-page { color: rgba(255, 255, 255, .85); }

/* 文本 / 文档 */
.fs-doc .fs-body {
  overflow: auto; -webkit-overflow-scrolling: touch;
  padding: 6px 24px calc(28px + env(safe-area-inset-bottom, 0px));
}
.fs-title { color: #fff; font-size: 20px; font-weight: 800; line-height: 1.4; margin-bottom: 16px; word-break: break-word; }
.fs-text { color: rgba(240, 245, 241, .92); font-size: 16px; line-height: 1.9; word-break: break-word; }

/* 锁定占位 */
.learn-lock { padding: 56px 24px 40px; text-align: center; }
.learn-lock .lock-ico { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; color: var(--red); background: var(--red-soft); border: 1px solid var(--red-line); }
.learn-lock .lock-ico svg { width: 42px; height: 42px; }
.learn-lock h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.learn-lock p { font-size: 13px; color: var(--ink-2); margin-bottom: 22px; }

/* 播放器内描述文案 */
.learn-player > .learn-desc { padding: 0 16px; margin: 12px 0 16px; }
.learn-audio > .learn-desc, .learn-document > .learn-desc, .learn-article > .learn-desc { padding: 0; }

/* 章节列表 */
.learn-list { margin-top: 16px; }
.learn-item { display: flex; align-items: center; gap: 12px; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; transition: background-color .18s ease, border-color .18s ease; }
.learn-item:active { background: var(--bg-2); }
.learn-item.active { border: 1px solid var(--brand-line); background: var(--brand-soft); }
.learn-item.locked { opacity: .68; }
.learn-item.locked .file-name { color: var(--ink-2); }

/* ===== 登录 ===== */
.auth-wrap { padding: 30px 20px; }
.auth-logo { text-align: center; margin: 10px 0 28px; }
.auth-logo .mark { width: 66px; height: 66px; border-radius: 18px; margin: 0 auto 12px; background: var(--brand); display: flex; align-items: center; justify-content: center; color: #fff; }
.auth-logo .mark svg { width: 34px; height: 34px; }
.auth-logo .mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; display: block; }
.auth-logo h2 { font-size: 22px; font-weight: 800; }
.auth-logo p { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.auth-tabs { display: flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 22px; }
.auth-tab { flex: 1; text-align: center; padding: 9px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--ink-2); transition: background-color .18s ease, color .18s ease; }
.auth-tab.active { background-color: #fff; background-image: linear-gradient(180deg, #ffffff 0%, rgba(242, 247, 255, .94) 100%); box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(24, 46, 104, .08); color: var(--ink); border: 1px solid var(--line); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field .control { display: flex; align-items: center; background-color: #fff; background-image: linear-gradient(180deg, #ffffff 0%, rgba(244, 248, 255, .96) 100%); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(24, 46, 104, .05); }
.field input { flex: 1; border: none; outline: none; height: 50px; padding: 0 14px; background: transparent; color: var(--ink); }
.field .code-btn { flex-shrink: 0; padding: 0 14px; color: var(--brand-deep); font-weight: 700; font-size: 13px; border-left: 1px solid var(--line); height: 50px; display: flex; align-items: center; transition: background-color .18s ease; }
.field .code-btn:active { background-color: var(--brand-soft); }
.field .code-btn[disabled] { color: var(--ink-3); }
.wechat-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: #07c160; margin-top: 14px; transition: background-color .18s ease, border-color .18s ease; background-image: linear-gradient(180deg, #ffffff 0%, rgba(244, 251, 246, .96) 100%); box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(7, 193, 96, .08); }
.wechat-btn:active { background-image: none; background-color: #f3faf5; border-color: #cdebd8; }
.wechat-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.wechat-btn-lg { height: 54px; background: #07c160; color: #fff; border-color: #07c160; border-radius: 16px; }
.wechat-btn-lg:active { background: #06a854; border-color: #06a854; }
.wechat-btn-lg {
  background-image: linear-gradient(180deg, rgba(74, 214, 143, .98), rgba(7, 193, 96, .99));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(4, 110, 55, .18), 0 8px 20px rgba(7, 193, 96, .24);
}
.wechat-btn-lg:active {
  background-image: linear-gradient(180deg, #3cc77d 0%, #06a854 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 10px rgba(7, 193, 96, .2);
}
.auth-extra { text-align: center; margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* ===== 我的 ===== */
.mine-top { display: flex; align-items: center; gap: 14px; padding: 22px 16px; background: linear-gradient(135deg, #f3f7ff 0%, #eef2ff 100%); border-radius: var(--radius); color: var(--ink); border: 1px solid var(--line); }
.mine-top .avatar { width: 64px; height: 64px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.mine-info { flex: 1; min-width: 0; }
.mine-name { font-size: 18px; font-weight: 800; color: var(--ink); }
.mine-phone { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.mine-bind {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; padding: 4px 11px;
  border-radius: 999px; border: 1px solid rgba(59, 108, 246, .22);
  background: rgba(255, 255, 255, .92); color: var(--brand);
  font-size: 12px; font-weight: 700; line-height: 1.2;
  box-shadow: inset 0 1px 0 #fff, 0 2px 8px rgba(24, 46, 104, .06);
}
.mine-bind svg { width: 13px; height: 13px; display: block; }
.mine-bind:active { background: var(--brand-soft); }
.mine-id { font-size: 12px; color: var(--ink-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.vip-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--gold-deep); background: var(--gold-soft); border: 1px solid var(--gold-line); padding: 3px 9px; border-radius: 999px; margin-top: 6px; }
.vip-badge svg { width: 14px; height: 14px; }
.wallet { display: flex; gap: 10px; margin-top: 14px; }
.wallet-item { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; text-align: center; }
.wallet-item .num { font-size: 20px; font-weight: 800; color: var(--brand-deep); }
.wallet-item .lbl { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.wallet-item .act { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--gold); }

.menu-card { margin-top: 14px; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.menu-item:last-child { border-bottom: none; }
.menu-ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--bg-2); color: var(--brand); }
.menu-ico svg { width: 19px; height: 19px; }
.menu-label { flex: 1; font-size: 15px; font-weight: 600; }
.menu-arrow { color: var(--ink-3); }
.menu-arrow svg { width: 18px; height: 18px; }

/* ===== 列表页 ===== */
.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.list-row .thumb { width: 74px; height: 54px; border-radius: 12px; object-fit: cover; background: var(--bg-2); flex-shrink: 0; }
.list-row .info { flex: 1; min-width: 0; }
.list-row .info h4 { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .info p { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

/* ===== 充值 / 会员 ===== */
.recharge-options { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.rc-opt { padding: 15px; text-align: center; background-color: #fff; background-image: linear-gradient(180deg, #ffffff 0%, rgba(242, 247, 255, .94) 100%); border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(24, 46, 104, .06); transition: background-color .18s ease, border-color .18s ease; }
.rc-opt:active { background-image: none; background-color: var(--bg-2); box-shadow: inset 0 1px 3px rgba(24, 46, 104, .1); }
.rc-opt.active { border-color: var(--brand); background-color: var(--brand-soft); background-image: linear-gradient(180deg, #f4f8ff 0%, rgba(226, 236, 255, .96) 100%); box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(59, 108, 246, .16); }
.rc-opt .n { font-size: 18px; font-weight: 800; color: var(--brand-deep); }
.vip-plan { display: flex; align-items: center; gap: 14px; padding: 16px; background-color: #fff; background-image: linear-gradient(180deg, #ffffff 0%, rgba(242, 247, 255, .94) 100%); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(24, 46, 104, .06); margin-bottom: 12px; }
.vip-plan .plan-info { flex: 1; }
.vip-plan .plan-name { font-size: 16px; font-weight: 800; }
.vip-plan .plan-price { margin-top: 6px; }
.vip-plan.hot { border: 1px solid var(--gold); background-color: var(--gold-soft); background-image: linear-gradient(180deg, #fffdf7 0%, rgba(255, 240, 214, .96) 100%); box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(240, 161, 42, .16); }

/* 会员页顶部：浅色会员卡 */
.vip-hero { padding: 24px; background: linear-gradient(160deg, #fffdf7 0%, #fff5e2 55%, #ffefd9 100%); border: 1px solid var(--gold-line); }
.vip-hero .vh-ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 15px; background: #fff; border: 1px solid var(--gold-line); color: var(--gold); box-shadow: var(--shadow); }
.vip-hero .vh-title { font-size: 21px; font-weight: 800; margin-top: 14px; color: var(--ink); overflow-wrap: anywhere; word-break: break-word; }
.vip-hero .vh-sub { font-size: 14px; font-weight: 700; margin-top: 10px; color: var(--gold-deep); }
.vip-hero .vh-note { font-size: 13px; margin-top: 6px; line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere; word-break: break-word; }

/* ===== 优惠券票券（拼多多风） ===== */
.coupon-ticket {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 92px;
  margin-bottom: 12px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.coupon-ticket.is-used { opacity: .55; }
.ct-left {
  width: 96px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--gold-deep);
  background: var(--gold-soft);
  border: 1px solid var(--line);
  border-right: 1px dashed var(--gold-line);
  border-radius: 14px 0 0 14px;
}
.ct-amount { display: flex; align-items: baseline; line-height: 1; }
.ct-cur { font-size: 15px; font-weight: 700; }
.ct-num { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.ct-cond { font-size: 11px; opacity: .85; }
.ct-right {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: none;
  border-radius: 0 14px 14px 0;
}
.ct-info { flex: 1; min-width: 0; }
.ct-name { font-size: 15px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-rule { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.ct-btn {
  flex-shrink: 0;
  height: 34px;
  padding: 0 16px;
  border-radius: 17px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--gold);
  background-image: linear-gradient(180deg, #ffc76e 0%, var(--gold) 54%, #dd8d12 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 5px 14px rgba(240, 161, 42, .24);
}
.ct-btn[disabled] { opacity: .5; pointer-events: none; }
.ct-btn.ct-claimed { background: var(--bg-2); background-image: none; color: var(--ink-3); box-shadow: none; border: 1px solid var(--line); opacity: 1; }
.ct-status {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.coupon-ticket.is-used .ct-status { background: rgba(153, 167, 159, .2); color: var(--ink-3); }
/* 票券左右分割处缺口 */
.coupon-ticket::before,
.coupon-ticket::after {
  content: '';
  position: absolute;
  left: 96px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-1);
  transform: translateX(-50%);
  z-index: 2;
}
.coupon-ticket::before { top: -7px; }
.coupon-ticket::after { bottom: -7px; }

/* 购买弹窗内优惠券选择 */
.buy-coupon { margin-top: 18px; }
.bc-title { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; letter-spacing: .5px; }
.bc-list { display: flex; flex-direction: column; gap: 10px; max-height: 216px; overflow: auto; padding: 2px; }
.bc-item {
  position: relative;
  display: flex;
  align-items: stretch;
  border-radius: 14px;
  background-color: #fff;
  background-image: linear-gradient(180deg, #ffffff 0%, rgba(246, 250, 255, .96) 100%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(24, 46, 104, .05);
  text-align: left;
  overflow: hidden;
  transition: border-color .18s ease, background-color .18s ease;
}
.bc-item:hover { border-color: var(--brand-line); }
/* 左侧面额区 */
.bc-ribbon {
  position: relative;
  width: 88px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 6px;
  color: var(--ink-2);
  background: var(--bg-2);
  border-right: 1px dashed var(--line);
  transition: background-color .18s ease, color .18s ease;
}
.bc-amount { display: flex; align-items: baseline; line-height: 1; }
.bc-amount b { font-size: 28px; font-weight: 900; letter-spacing: -.5px; }
.bc-amount b.bc-none { font-size: 24px; opacity: .6; }
.bc-amount i { font-style: normal; font-size: 15px; font-weight: 800; }
/* 票券撕口（上下缺口，卡在面额区与信息区虚线分割处） */
.bc-ribbon::before,
.bc-ribbon::after {
  content: '';
  position: absolute;
  right: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}
.bc-ribbon::before { top: -7px; }
.bc-ribbon::after { bottom: -7px; }
/* 信息区 */
.bc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 14px 12px 18px; }
.bc-name { font-size: 15px; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-desc { font-size: 12px; color: var(--ink-3); }
/* 选择勾 */
.bc-check {
  align-self: center;
  margin-right: 14px;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  position: relative;
  transition: border-color .18s ease, background-color .18s ease;
}
.bc-item.active {
  border-color: var(--brand);
  background-color: var(--brand-soft);
  background-image: linear-gradient(180deg, #f7faff 0%, rgba(229, 238, 255, .96) 100%);
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(59, 108, 246, .16);
}
.bc-item.active .bc-ribbon { background: var(--brand-soft); color: var(--brand-deep); }
.bc-item.active .bc-check {
  border-color: var(--brand);
  background: var(--brand);
}
.bc-item.active .bc-check::after {
  content: '';
  position: absolute;
  left: 5px; top: 2px;
  width: 7px; height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.bc-empty { padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px dashed var(--line); font-size: 13px; color: var(--ink-3); text-align: center; }

/* ===== 弹窗 ===== */
#modal-root { position: fixed; inset: 0; z-index: 200; display: none; }
#modal-root.show { display: block; }
.modal-mask { position: absolute; inset: 0; background: rgba(18, 26, 43, .46); animation: fadeIn .2s ease; }
.modal-panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 88%; max-width: 360px; max-height: 92vh; overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line); border-radius: 20px; padding: 22px;
  box-shadow: var(--shadow-lg); animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-title { font-size: 17px; font-weight: 800; text-align: center; margin-bottom: 14px; }

/* ===== 底部登录面板（玻璃） ===== */
.modal-panel.sheet-panel {
  left: 0; right: 0; bottom: 0; top: auto; transform: none;
  width: 100%; max-width: 520px; margin: 0 auto; max-height: 86vh; overflow-y: auto;
  padding: 8px 20px calc(16px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0;
  border: 1px solid rgba(255, 255, 255, .72); border-bottom: 0;
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  box-shadow: 0 -14px 40px rgba(24, 46, 104, .18);
  animation: sheetUp .3s cubic-bezier(.2, .8, .3, 1);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .modal-panel.sheet-panel { animation: none; } }
.sheet-grab { width: 38px; height: 4px; margin: 6px auto 16px; border-radius: 2px; background: rgba(24, 46, 104, .16); }
.sheet-head { text-align: center; padding: 0 4px 18px; }
.sheet-badge {
  width: 54px; height: 54px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px; color: var(--brand);
  background: rgba(235, 241, 255, .9);
  border: 1px solid rgba(59, 108, 246, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.sheet-badge svg { width: 27px; height: 27px; display: block; }
.sheet-title { font-size: 19px; font-weight: 800; margin: 0 0 6px; }
.sheet-desc { font-size: 13px; line-height: 1.6; color: var(--ink-2); margin: 0 auto; max-width: 300px; }

/* 玻璃主按钮：半透明渐变 + 顶部高光 + 背景模糊 */
.btn-glass {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; height: 56px; border-radius: 18px;
  font-size: 17px; font-weight: 800; letter-spacing: .2px; color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
  background-color: var(--brand);
  background-image: linear-gradient(180deg, rgba(104, 145, 255, .96), rgba(59, 108, 246, .98));
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(20, 40, 90, .14), 0 10px 26px rgba(59, 108, 246, .3);
  transition: filter .18s ease, box-shadow .18s ease;
}
.btn-glass::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 46%;
  border-radius: 17px 17px 44px 44px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.btn-glass > * { position: relative; z-index: 1; }
.btn-glass:active { filter: brightness(.94); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 14px rgba(59, 108, 246, .26); }
.btn-glass[disabled] { opacity: .6; pointer-events: none; }
.btn-glass svg { width: 22px; height: 22px; flex: 0 0 auto; }
/* 微信一键登录：绿色玻璃，和底部面板同一套质感 */
.btn-glass-wx {
  background-color: #07c160;
  background-image: linear-gradient(180deg, rgba(63, 211, 134, .97), rgba(7, 193, 96, .99));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(4, 110, 55, .16), 0 10px 26px rgba(7, 193, 96, .26);
}
.btn-glass-wx:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 4px 14px rgba(7, 193, 96, .22); }
/* 面板里的次要按钮：白玻璃 + 蓝字 */
.btn-glass-line {
  margin-top: 10px; height: 54px; font-size: 16px;
  color: var(--brand);
  background-color: rgba(255, 255, 255, .55);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .3));
  border-color: rgba(59, 108, 246, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 6px 16px rgba(24, 46, 104, .08);
}
.btn-glass-line:active { filter: none; background-color: var(--brand-soft); }
.sheet-agree { text-align: center; font-size: 12px; line-height: 1.7; color: var(--ink-3); margin: 14px 0 0; }
.sheet-agree a { color: var(--brand); font-weight: 600; }
.sheet-agree .dot { margin: 0 6px; opacity: .55; }
/* 面板里的输入框：白玻璃，和上面的按钮是一套 */
.sheet-label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-3); margin: 0 2px 6px; }
.sheet-control {
  display: flex; align-items: center; height: 52px; border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(59, 108, 246, .16);
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(24, 46, 104, .05);
  overflow: hidden;
}
.sheet-control input { flex: 1; min-width: 0; height: 100%; padding: 0 14px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.sheet-control input::placeholder { color: var(--ink-3); font-weight: 500; }
.sheet-control .code-btn { flex-shrink: 0; height: 100%; padding: 0 14px; border: 0; border-left: 1px solid rgba(59, 108, 246, .14); background: transparent; color: var(--brand); font-size: 13px; font-weight: 800; }
.sheet-control .code-btn[disabled] { color: var(--ink-3); }
.sheet-captcha { margin-top: 12px; }
.sheet-captcha[hidden] { display: none; }
.sheet-cancel { display: block; width: 100%; height: 50px; margin-top: 2px; background: none; border: 0; color: var(--ink-3); font-size: 15px; font-weight: 600; }
/* ===== 退出确认弹窗 ===== */
.exit-panel {
  width: 90%; max-width: 340px;
  padding: 28px 24px 22px;
  text-align: center;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.exit-ico {
  width: 60px; height: 60px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
}
.exit-ico svg { width: 28px; height: 28px; display: block; }
.exit-panel .exit-title { font-size: 18px; margin-bottom: 6px; }
.exit-msg { text-align: center; color: var(--ink-2); font-size: 14px; line-height: 1.7; margin: 0 0 22px; }
.exit-actions { display: flex; gap: 12px; }
.exit-actions .btn { flex: 1; padding: 0 10px; height: 46px; border-radius: 14px; }
.exit-cancel {
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.exit-ok {
  color: #fff;
  border: 1px solid transparent;
  background: var(--brand);
  background-image: linear-gradient(180deg, #7096ff 0%, var(--brand) 54%, #2f5ede 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 16px rgba(59, 108, 246, .22);
}
.exit-ok:active { background-image: linear-gradient(180deg, #5f85f2 0%, var(--brand-deep) 100%); }

/* 分享面板 */
.share-panel {
  background: linear-gradient(180deg, #f9fbff 0%, #eef4ff 100%);
  border-color: rgba(255, 255, 255, .8);
}
.share-poster { border-radius: 14px; overflow: hidden; margin-bottom: 12px; background: #fff; border: 1px solid var(--line); padding: 8px; text-align: center; box-shadow: 0 6px 18px rgba(24, 46, 104, .08); }
/* 海报按自身真实比例完整显示，只受面板宽度和视口高度限制 */
.share-poster img { width: auto; max-width: 100%; height: auto; max-height: min(60vh, 680px); object-fit: contain; display: block; margin: 0 auto; border-radius: 8px; }
/* 面板按钮统一玻璃质感（半透明渐变 + 背景模糊 + 高光） */
.share-panel .btn-glass { margin-top: 12px; }
.share-panel .btn-glass:first-of-type { margin-top: 0; }
.share-qr { width: 180px; height: 180px; margin: 4px auto 12px; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.share-qr img { width: 100%; height: 100%; display: block; }
.share-qr-fail { color: var(--ink-3); font-size: 13px; text-align: center; line-height: 1.7; }
.share-tip { text-align: center; color: var(--ink-2); font-size: 13px; margin-bottom: 12px; }
.share-link { padding: 9px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 12px; word-break: break-all; margin-bottom: 14px; max-height: 64px; overflow: auto; }

/* ===== 页面加载器 ===== */
#page-loader { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: var(--bg-1); transition: opacity .35s ease, visibility .35s ease; }
#page-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-spinner { position: relative; width: 56px; height: 56px; }
.loader-spinner::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 4px solid rgba(59, 108, 246, .14); }
.loader-spinner::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 4px solid transparent; border-top-color: var(--brand); animation: loader-spin .8s linear infinite; }
@keyframes loader-spin { to { transform: rotate(360deg); } }
.loader-text { font-size: 13px; color: var(--ink-2); letter-spacing: .06em; }

/* ===== Toast ===== */
#toast { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 300; background: rgba(18, 26, 43, .90); color: #fff; padding: 13px 22px; border-radius: 14px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s ease; max-width: 80%; text-align: center; }
#toast.show { opacity: 1; }

/* 订单状态 */
.status { font-weight: 700; }
.status-paid { color: var(--green); }
.status-pending { color: var(--gold); }
.status-cancelled { color: var(--ink-3); }

/* 富文本重置 */
.rich-text img { max-width: 100%; border-radius: 12px; }
.rich-text p { margin: 6px 0; }
.rich-text h1, .rich-text h2, .rich-text h3 { margin: 10px 0 6px; }

/* ===================== 桌面端适配 ===================== */
@media (min-width: 768px) {
  #app { max-width: 1120px; }

  #topbar { height: 64px; padding: 0 24px; }
  .topbar-title { font-size: 18px; }
  .back-btn { width: 40px; height: 40px; border-radius: 13px; }
  .back-btn svg { width: 22px; height: 22px; }

  #view { padding: 24px 24px calc(100px + var(--safe-b)); }
  #view.no-tab { padding-bottom: 36px; }

  #tabbar { max-width: 620px; height: 68px; }

  /* 首页 */
  .banner-item { aspect-ratio: 3 / 1; }
  .cat-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 20px; margin-top: 20px; }
  .cat-ico { width: 62px; height: 62px; border-radius: 20px; }
  .cat-ico svg { width: 28px; height: 28px; }
  .cat-name { font-size: 13px; }

  /* 商品网格 */
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .product-title { font-size: 15px; min-height: 48px; }
  .product-card:hover { border-color: var(--brand-line); box-shadow: 0 4px 14px rgba(24, 46, 104, .07); }

  /* 课程列表筛选 */
  .filter-bar { top: 64px; }
  .cat-tab { padding: 9px 20px; font-size: 14px; }

  /* 详情页：居中卡片 */
  .pd-page { max-width: 820px; margin: 0 auto; }
  .pd-title { font-size: 30px; }
  .pd-sub { font-size: 16px; }
  .pd-price-now { font-size: 38px; }
  .pd-actions { margin-bottom: calc(56px + var(--safe-b)); }
  .pd-comments { padding-bottom: calc(56px + var(--safe-b)); }
  .pd-bar { max-width: 820px; padding: 14px 20px calc(14px + var(--safe-b)); }

  /* 服务详情：整页限宽，图片给足高度，保障项排成一行 */
  .svcd-page { max-width: 760px; margin: 0 auto; }
  .svcd-hero { max-height: 340px; }
  .svcd-body { padding: 20px 4px 0; }
  .svcd-title { font-size: 24px; }
  .svcd-guards { grid-template-columns: repeat(4, 1fr); }
  .svcd-bar { max-width: 760px; padding: 12px 20px calc(12px + var(--safe-b)); }

  /* 学习/播放页 */
  .learn-wrap { max-width: 980px; margin: 0 auto; }
  .learn-video video { max-height: 620px; }
  .learn-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .learn-list .learn-item { margin-bottom: 0; }

  /* 窄内容页居中限宽 */
  .auth-wrap { max-width: 440px; margin: 0 auto; }
  .mine-top, .wallet, .card, .list-row { max-width: 820px; margin-left: auto; margin-right: auto; }
}

/* ===================== 拼图验证码 ===================== */
.captcha-box { margin: 4px 0 14px; }
.captcha-stage {
  position: relative; width: 100%; aspect-ratio: 300 / 160;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line); background: var(--line-2);
  user-select: none; -webkit-user-select: none;
}
.captcha-stage img.captcha-bg { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.captcha-stage img.captcha-piece {
  position: absolute; left: 0; top: 0; cursor: grab; z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28); border-radius: 3px;
}
.captcha-stage img.captcha-piece:active { cursor: grabbing; }
.captcha-stage.ok { border-color: rgba(59, 108, 246, .45); }
.captcha-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.captcha-tip { font-size: 12px; font-weight: 600; color: var(--ink-3); transition: color .2s; }
.captcha-tip.ok { color: var(--brand-deep); }
.captcha-refresh { font-size: 12px; font-weight: 700; color: var(--brand-deep); text-decoration: none; flex-shrink: 0; }

/* ===================== 协议勾选 ===================== */
.agree-line {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--ink-2); line-height: 1.6;
  margin: -4px 2px 12px; cursor: pointer;
}
.agree-line input {
  width: 15px; height: 15px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--brand);
}
.agree-line a { color: var(--brand-deep); font-weight: 700; }

/* ===================== 协议页 ===================== */
.agree-page { padding: 6px 0 24px; }
.agree-card { padding: 18px 20px; margin-bottom: 14px; }

/* ===================== 评论 ===================== */
.pd-comments { margin-top: 22px; padding-bottom: calc(80px + var(--safe-b)); }
.pd-comments .section-title { margin-bottom: 12px; }
.cm-list { display: flex; flex-direction: column; gap: 12px; }
.cm-item { display: flex; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cm-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--bg-2); flex-shrink: 0; }
.cm-body { flex: 1; min-width: 0; }
.cm-head { display: flex; align-items: center; gap: 8px; }
.cm-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.cm-time { font-size: 11px; color: var(--ink-3); }
.cm-content { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin-top: 4px; word-break: break-word; white-space: pre-wrap; }
.cm-form { display: flex; gap: 10px; margin-top: 14px; }
.cm-form input { flex: 1; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 22px; background-color: #fff; background-image: linear-gradient(180deg, #ffffff 0%, rgba(244, 248, 255, .96) 100%); box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(24, 46, 104, .05); outline: none; color: var(--ink); font-size: 14px; }
.cm-form .btn { flex-shrink: 0; border-radius: 22px; height: 44px; padding: 0 18px; }

/* ===================== 排行榜 ===================== */
.rank-tabs { display: flex; gap: 10px; margin-bottom: 14px; }
.rank-tab { flex: 1; height: 42px; border: 1px solid var(--line); background-color: #fff; background-image: linear-gradient(180deg, #ffffff 0%, rgba(242, 247, 255, .94) 100%); box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(24, 46, 104, .06); color: var(--ink-2); font-weight: 700; font-size: 14px; border-radius: 22px; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.rank-tab:active { background-image: none; background-color: var(--bg-2); box-shadow: inset 0 1px 3px rgba(24, 46, 104, .1); }
.rank-tab.on { color: var(--brand-deep); background-color: var(--brand-soft); background-image: linear-gradient(180deg, #f4f8ff 0%, rgba(226, 236, 255, .96) 100%); box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(59, 108, 246, .14); border-color: var(--brand-line); }
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.rk-no { width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; border-radius: 50%; background: var(--bg-2); color: var(--ink-3); }
.rk-1 { background: #fdf0d6; color: #9a6a15; }
.rk-2 { background: #eaf0f8; color: #4e5773; }
.rk-3 { background: #fdeee6; color: #a05a3c; }
.rk-cover { width: 52px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--bg-2); flex-shrink: 0; }
.rk-info { flex: 1; min-width: 0; }
.rk-title { font-size: 14px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-count { font-size: 12px; color: var(--ink-3); margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.rk-count i { display: inline-flex; color: var(--gold); }
.rk-count i svg { width: 14px; height: 14px; }
.agree-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.agree-card p { font-size: 13px; color: var(--ink-2); line-height: 1.8; margin: 4px 0; }
.agree-text { font-size: 13px; color: var(--ink-2); line-height: 1.9; word-break: break-word; }

/* ===================== 远程教程（付费服务） ===================== */

/* 列表页头图 */
.svc-head {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px; padding: 18px;
  border-radius: 20px; color: #fff;
  background-image: linear-gradient(135deg, #3b6cf6 0%, #5b87ff 55%, #7b5cf0 100%);
  box-shadow: 0 12px 28px rgba(59, 108, 246, .26);
}
.svc-head::before,
.svc-head::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.svc-head::before { width: 150px; height: 150px; right: -48px; top: -66px; background: rgba(255, 255, 255, .16); }
.svc-head::after { width: 90px; height: 90px; right: 40px; bottom: -58px; background: rgba(255, 255, 255, .1); }
.svc-head-logo {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 60px; height: 60px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  box-shadow: 0 6px 16px rgba(12, 30, 80, .18), inset 0 0 0 1px rgba(255, 255, 255, .55);
}
.svc-head-logo svg { width: 36px; height: 25px; display: block; }
.svc-head-body { position: relative; z-index: 1; flex: 1; min-width: 0; }
.svc-head-body h3 { font-size: 18px; font-weight: 800; color: #fff; line-height: 1.35; }
.svc-head-body p { margin-top: 5px; font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .88); overflow-wrap: break-word; word-break: break-word; }
.svc-head-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.svc-head-chips span {
  padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.5;
  color: #fff; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3);
}

/* 服务卡片 */
.svc-list { display: flex; flex-direction: column; gap: 10px; }
.svc-card {
  display: block; width: 100%; padding: 14px 16px 12px;
  text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.svc-card:active { border-color: var(--brand-line); box-shadow: 0 6px 18px rgba(24, 46, 104, .1); transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .svc-card:hover { border-color: var(--brand-line); box-shadow: 0 8px 22px rgba(24, 46, 104, .1); transform: translateY(-1px); }
}
.svc-main { display: flex; align-items: flex-start; gap: 12px; }
.svc-ico {
  width: 52px; height: 52px; border-radius: 15px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background-color: var(--brand-soft);
  background-image: linear-gradient(180deg, #fff 0%, var(--brand-soft) 100%);
  border: 1px solid var(--brand-line); color: var(--brand); overflow: hidden;
}
.svc-ico svg { width: 32px; height: 22px; }
.svc-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-body { flex: 1; min-width: 0; display: block; }
.svc-title { display: block; font-size: 15.5px; font-weight: 800; line-height: 1.45; overflow-wrap: break-word; word-break: break-word; }
.svc-desc {
  display: -webkit-box; margin-top: 5px; font-size: 12.5px; line-height: 1.7; color: var(--ink-2);
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: break-word; word-break: break-word;
}
.svc-foot {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 8px 10px;
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line);
}
.svc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; font-size: 12px; color: var(--ink-3); }
.svc-meta span { white-space: nowrap; }
.svc-dot { width: 3px; height: 3px; flex-shrink: 0; border-radius: 50%; background: var(--ink-3); opacity: .55; }
.svc-buy { flex-shrink: 0; display: flex; align-items: center; gap: 12px; margin-left: auto; }
.svc-price { display: inline-flex; align-items: baseline; gap: 6px; }
.svc-price b { font-size: 19px; font-weight: 800; color: var(--gold-deep); line-height: 1.1; }
.svc-price s { font-size: 11.5px; color: var(--ink-3); }
.svc-book {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 16px; border-radius: 11px;
  background-image: linear-gradient(180deg, var(--brand-2) 0%, var(--brand) 100%);
  color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(59, 108, 246, .24);
}

/* 下单弹窗：服务内容 + 支付方式 */
.svc-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--line-2); color: var(--ink-3); font-size: 13px; line-height: 1;
}
.svc-close:active { background: var(--line); }
.svc-hero {
  padding: 16px; border-radius: 16px; color: #fff; overflow: hidden;
  background-image: linear-gradient(135deg, #3b6cf6 0%, #5b87ff 58%, #7b5cf0 100%);
  box-shadow: 0 10px 24px rgba(59, 108, 246, .24);
}
.svc-hero-main { display: flex; align-items: center; gap: 12px; }
.svc-hero-ico {
  width: 52px; height: 52px; border-radius: 15px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--brand); overflow: hidden;
  box-shadow: 0 4px 12px rgba(12, 30, 80, .16);
}
.svc-hero-ico svg { width: 32px; height: 22px; }
.svc-hero-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-hero-txt { flex: 1; min-width: 0; }
.svc-hero-txt h4 { font-size: 15.5px; font-weight: 800; line-height: 1.45; color: #fff; overflow-wrap: break-word; word-break: break-word; }
.svc-hero-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 5px; font-size: 11.5px; color: rgba(255, 255, 255, .86); }
.svc-hero-meta .svc-dot { background: #fff; opacity: .6; }
.svc-hero-price { display: flex; align-items: baseline; gap: 8px; margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(255, 255, 255, .22); }
.svc-hero-price b { font-size: 25px; font-weight: 800; line-height: 1; }
.svc-hero-price s { font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.svc-detail {
  margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  background: var(--line-2); border: 1px solid var(--line);
  font-size: 13px; line-height: 1.75; color: var(--ink-2); white-space: pre-wrap;
  overflow-wrap: break-word; word-break: break-word;
}
.svc-pay-label { display: flex; align-items: center; gap: 8px; margin: 18px 2px 10px; font-size: 13px; font-weight: 800; color: var(--ink); }
.svc-pay-label::before { content: ''; width: 3px; height: 13px; border-radius: 2px; background-image: linear-gradient(180deg, var(--brand) 0%, var(--violet) 100%); }
.svc-pays { display: flex; flex-direction: column; gap: 10px; }
.svc-pays .pay-btn { height: 52px; border-radius: 14px; justify-content: flex-start; gap: 12px; padding: 0 14px; }
.svc-pays .pay-btn:active { background-image: none; }
.svc-pays .pay-name { flex: 1; min-width: 0; text-align: left; font-size: 14.5px; }
.pay-amt { flex-shrink: 0; font-size: 14.5px; font-weight: 800; color: var(--gold-deep); }
.pay-btn[disabled] { opacity: .6; pointer-events: none; }
.svc-pay-tip { font-size: 12px; line-height: 1.7; color: var(--ink-3); margin: 10px 2px 0; }
.svc-agree { margin: 12px 2px 0; }
.svc-hint { font-size: 13px; color: var(--ink-3); line-height: 1.7; margin: 0 2px 12px; }
.svc-order .info .svc-note { font-size: 12px; color: var(--brand-deep); background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 10px; padding: 6px 10px; margin-top: 6px; line-height: 1.6; overflow-wrap: break-word; word-break: break-word; }
.svc-order .info .svc-amount { font-size: 13px; font-weight: 800; color: var(--gold-deep); margin-top: 3px; }
.svc-order .info .svc-reason { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.6; overflow-wrap: break-word; word-break: break-word; }
.svc-order { align-items: flex-start; }
.svc-order .info .status { font-size: 12px; margin-left: 4px; }
.svc-top { display: flex; justify-content: flex-end; margin-bottom: 10px; }

/* ===================== 远程教程：优惠标签 ===================== */
.svc-off {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px 2px 7px; border-radius: 999px;
  font-size: 11px; font-weight: 800; line-height: 1.65; letter-spacing: .2px;
  color: #a25705; white-space: nowrap;
  background-image: linear-gradient(180deg, #fff6e6 0%, #ffe5b8 100%);
  border: 1px solid #f6d495;
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(240, 161, 42, .18);
}
.svc-off::before {
  content: ''; width: 10px; height: 10px; flex-shrink: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='6.6' cy='6.6' r='2.3'/%3E%3Ccircle cx='17.4' cy='17.4' r='2.3'/%3E%3Cpath d='M19.5 4.5L4.5 19.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='6.6' cy='6.6' r='2.3'/%3E%3Ccircle cx='17.4' cy='17.4' r='2.3'/%3E%3Cpath d='M19.5 4.5L4.5 19.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 列表页：先说清买的是什么 */
.svc-explain {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px; padding: 14px;
  border-radius: 16px;
  background-image: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  border: 1px solid var(--brand-line);
  box-shadow: inset 0 1px 0 #fff;
}
.svc-explain-ico {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background-image: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 100%);
  box-shadow: 0 4px 10px rgba(59, 108, 246, .24);
}
.svc-explain-ico svg { width: 19px; height: 19px; }
.svc-explain-body { flex: 1; min-width: 0; }
.svc-explain-title { font-size: 13.5px; font-weight: 800; color: var(--brand-deep); }
.svc-explain-text {
  margin-top: 4px; font-size: 12.5px; line-height: 1.7; color: var(--ink-2);
  overflow-wrap: break-word; word-break: break-word;
}

/* ===================== 服务详情（整页，先看图再看内容） ===================== */
.svcd-page { padding-bottom: calc(86px + var(--safe-b)); }
.svcd-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 10; min-height: 170px; max-height: 300px;
  border-radius: 20px;
  background-image: linear-gradient(135deg, #2f5be0 0%, #4a76ff 52%, #7b5cf0 100%);
  box-shadow: 0 14px 30px rgba(40, 72, 170, .24);
}
.svcd-hero-bg {
  position: absolute; left: -14px; top: -14px;
  width: calc(100% + 28px); height: calc(100% + 28px);
  object-fit: cover; opacity: .48; filter: blur(18px) saturate(140%);
}
.svcd-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(180deg, rgba(14, 28, 72, .04) 0%, rgba(14, 28, 72, .34) 100%);
}
.svcd-hero-main {
  position: relative; z-index: 1; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.svcd-hero-img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 16px; box-shadow: 0 12px 30px rgba(8, 20, 60, .34);
}
.svcd-hero-ph { color: rgba(255, 255, 255, .92); }
.svcd-hero-ph svg { width: 84px; height: 58px; display: block; }

.svcd-body { padding: 16px 2px 0; }
.svcd-title { font-size: 20px; font-weight: 800; line-height: 1.45; color: var(--ink); overflow-wrap: break-word; word-break: break-word; }
.svcd-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.svcd-chip {
  padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.6;
  color: var(--brand-deep); background: var(--brand-soft); border: 1px solid var(--brand-line);
}

.svcd-price-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  margin-top: 14px; padding: 14px 16px;
  border-radius: 16px;
  background-image: linear-gradient(135deg, #fffaf1 0%, #ffeed4 100%);
  border: 1px solid var(--gold-line);
  box-shadow: inset 0 1px 0 #fff;
}
.svcd-price { display: inline-flex; align-items: baseline; gap: 2px; color: var(--gold-deep); }
.svcd-price i { font-style: normal; font-size: 16px; font-weight: 800; }
.svcd-price b { font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -.5px; }
.svcd-orig { font-size: 12px; color: var(--ink-3); }

.svcd-block {
  margin-top: 14px; padding: 14px 16px;
  border-radius: 16px;
  background-image: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  border: 1px solid var(--brand-line);
}
.svcd-block-title { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 800; color: var(--brand-deep); }
.svcd-block-title::before { content: ''; width: 3px; height: 13px; border-radius: 2px; background-image: linear-gradient(180deg, var(--brand) 0%, var(--violet) 100%); }
.svcd-block-text {
  margin-top: 8px; font-size: 13px; line-height: 1.8; color: var(--ink-2);
  overflow-wrap: break-word; word-break: break-word;
}

.svcd-flow { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.svcd-step {
  padding: 11px 14px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; line-height: 1.65; color: var(--ink-2);
  box-shadow: var(--shadow);
  overflow-wrap: break-word; word-break: break-word;
}

.svcd-detail {
  padding: 14px 16px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.85; color: var(--ink-2);
  box-shadow: var(--shadow);
  overflow-wrap: break-word; word-break: break-word;
}
.svcd-detail p { margin: 0 0 8px; }
.svcd-detail p:last-child { margin-bottom: 0; }

.svcd-guards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svcd-guard {
  display: flex; align-items: center; gap: 9px;
  padding: 12px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.svcd-guard-ico {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-line);
}
.svcd-guard-ico svg { width: 16px; height: 16px; }
.svcd-guard-txt { font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--ink-2); overflow-wrap: break-word; word-break: break-word; }

/* 底部下单条 */
.svcd-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 60;
  width: 100%; max-width: 560px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px calc(10px + var(--safe-b));
  background: rgba(255, 255, 255, .93);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 26px rgba(24, 46, 104, .1);
}
.svcd-bar-info { flex-shrink: 0; min-width: 86px; }
.svcd-bar-now { font-size: 22px; font-weight: 800; line-height: 1.15; color: var(--gold-deep); }
.svcd-bar-sub { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 11px; color: var(--ink-3); }
.svcd-bar-sub s { font-size: 11px; }
.svcd-buy {
  flex: 1; min-width: 0; height: 50px; padding: 0 14px; border-radius: 15px;
  font-size: 15px; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===================== 服务支付面板 ===================== */
.svcpay-head {
  position: relative; overflow: hidden;
  padding: 20px 18px 16px; border-radius: 20px; text-align: center; color: #fff;
  background-image: linear-gradient(140deg, #3358d4 0%, #4a76ff 52%, #7b5cf0 100%);
  box-shadow: 0 12px 26px rgba(45, 74, 170, .26);
}
.svcpay-head::before,
.svcpay-head::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.svcpay-head::before { width: 160px; height: 160px; right: -56px; top: -74px; background: rgba(255, 255, 255, .14); }
.svcpay-head::after { width: 110px; height: 110px; left: -46px; bottom: -64px; background: rgba(255, 255, 255, .1); }
.svcpay-head > * { position: relative; z-index: 1; }
.svcpay-title { font-size: 12.5px; font-weight: 700; letter-spacing: 1px; color: rgba(255, 255, 255, .82); }
.svcpay-name {
  margin-top: 6px; font-size: 14px; font-weight: 700; color: #fff;
  overflow-wrap: break-word; word-break: break-word;
}
.svcpay-amount { display: flex; align-items: baseline; justify-content: center; gap: 2px; margin-top: 10px; }
.svcpay-amount i { font-style: normal; font-size: 18px; font-weight: 800; }
.svcpay-amount b { font-size: 42px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.svcpay-amount-label { margin-top: 4px; font-size: 11.5px; color: rgba(255, 255, 255, .78); }
.svcpay-save {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, .3);
  font-size: 11.5px; color: rgba(255, 255, 255, .86);
}
.svcpay-save .svc-off {
  color: #8a4a00; background-image: linear-gradient(180deg, #fff8ea 0%, #ffe2ab 100%);
  border-color: rgba(255, 255, 255, .55); box-shadow: none;
}
.svcpay-rate { font-weight: 800; color: #ffe0a3; }
.svcpay-orig { color: rgba(255, 255, 255, .7); }
.svcpay-label { display: flex; align-items: center; gap: 7px; margin: 18px 2px 10px; font-size: 13px; font-weight: 800; color: var(--ink); }
.svcpay-label::before { content: ''; width: 3px; height: 13px; border-radius: 2px; background-image: linear-gradient(180deg, var(--brand) 0%, var(--violet) 100%); }
.svcpay-list { display: flex; flex-direction: column; gap: 10px; }
.svcpay-list .pay-btn { height: 54px; border-radius: 15px; }
.svcpay-note { margin: 12px 2px 0; font-size: 12px; line-height: 1.7; color: var(--ink-3); }
.svcpay-agree { margin: 14px 2px 2px; }
.svcpay-cancel {
  display: block; width: 100%; height: 48px; margin-top: 4px;
  border: 0; border-radius: 14px; background: none;
  color: var(--ink-3); font-size: 14px; font-weight: 700;
}
.svcpay-cancel:active { background: var(--line-2); }

/* ===================== 统一支付面板（课程/会员/充值/服务） ===================== */
/* 面板底部留白交给确认条自己带，避免确认条贴底后下面多出一条缝隙 */
.modal-panel.pay-sheet { padding-bottom: 0; }
.pay-sheet .svcpay-cancel { margin-bottom: calc(10px + env(safe-area-inset-bottom)); }
.pay-sheet .svcpay-head { padding: 18px 16px 14px; }
.pay-sheet .svcpay-amount b { font-size: 38px; }
.pay-sheet .buy-coupon { margin-top: 16px; }
.pay-sheet .buy-coupon .bc-list { max-height: 38vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pay-agree { margin: 14px 2px 0; }

/* 没勾协议时从底部推出的确认条：点确认自动勾选协议并继续这次支付 */
.pay-agree-bar {
  position: sticky; bottom: 0; z-index: 5;
  display: none; align-items: center; gap: 10px;
  margin: 12px -20px 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--gold-line);
  background: rgba(255, 251, 243, .97);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 -10px 26px rgba(24, 46, 104, .12);
}
.pay-agree-bar.show { display: flex; animation: agreeBarUp .26s cubic-bezier(.2, .8, .3, 1); }
@keyframes agreeBarUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.pab-text { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 700; line-height: 1.5; color: #8a5a00; }
.pab-ok {
  flex-shrink: 0; height: 40px; padding: 0 15px; border: 0; border-radius: 12px;
  font-size: 13.5px; font-weight: 800; color: #fff; letter-spacing: .2px;
  background-color: var(--gold);
  background-image: linear-gradient(180deg, #ffc76e 0%, var(--gold) 54%, #dd8d12 100%);
  box-shadow: 0 6px 16px rgba(240, 161, 42, .32);
}
.pab-ok:active { filter: brightness(.95); box-shadow: 0 2px 8px rgba(240, 161, 42, .28); }
@media (max-width: 400px) {
  .pab-text { font-size: 12px; }
  .pab-ok { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .pay-agree-bar.show { animation: none; } }

/* ===================== 移动端适配 ===================== */
@media (max-width: 767px) {
  #topbar, #tabbar, .pd-bar, .auth-tabs, .learn-head { background: #fff; }
}
