:root {
  --brand: #ffb020;            /* 座舱 HUD 琥珀金 */
  --brand-dark: #e09a00;
  --brand-soft: rgba(255, 176, 32, .12);
  --cyan: #38bdf8;             /* 雷达扫描青 */
  --cyan-soft: rgba(56, 189, 248, .12);
  --ink: #e8edf2;              /* 主文字 */
  --muted: #8a94a3;            /* 次要文字 */
  --bg: #0b0e13;               /* 机身底色 */
  --card: #131820;             /* 面板 */
  --card-2: #161c26;
  --border: #232b36;           /* 细线 */
  --price: #ff6b4a;            /* 价格橙红 */
  --gold: #ffb020;
  --shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .45);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.page-home,
body.page-orders,
body.page-cart,
body.page-pay,
body.page-success {
  background: #fff url("/landing/static/img/1.2dc8fc7f.png") no-repeat left top;
}

.page-home > .container,
.page-orders > .container,
.page-cart > .container,
.page-pay > .container,
.page-success > .container {
  color: #14212b;
}

.page-orders .panel {
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- 头部 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 19, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; height: 64px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.logo .dot {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #c97700);
  display: grid; place-items: center; color: #1a1206; font-size: 15px; font-weight: 800;
  box-shadow: 0 0 14px rgba(255, 176, 32, .4);
}
.logo span em { font-style: normal; color: var(--brand); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  padding: 8px 14px; border-radius: 9px; font-size: 15px; color: var(--muted); font-weight: 500;
  transition: .15s;
}
.nav a:hover { color: var(--ink); background: #1a212b; }
.nav a.on { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.cart-link {
  position: relative; display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 9px; font-size: 14px; color: var(--ink);
  background: var(--card-2); border: 1px solid var(--border);
}
.cart-link .badge {
  position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px;
  padding: 0 5px; border-radius: 10px; background: var(--brand); color: #1a1206;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.btn-admin { font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 9px; }
.btn-admin:hover { color: var(--ink); background: #1a212b; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 160% at 85% 10%, #12314a 0%, transparent 55%),
    radial-gradient(120% 160% at 10% 90%, #3a2a08 0%, transparent 50%),
    #0e141c;
  color: #fff; border-radius: 20px; padding: 58px 52px; margin-top: 24px;
  position: relative; overflow: hidden;
  border: 1px solid #1c242f;
}
.hero::before {
  content: ""; position: absolute; inset: 0; border-radius: 20px;
  background-image:
    linear-gradient(rgba(56, 189, 248, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, .05) 1px, transparent 1px);
  background-size: 34px 34px;
  z-index: 0;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 32, .16), transparent 70%);
  z-index: 0;
}
.hero h1, .hero p, .hero .stats { position: relative; z-index: 1; }
.hero h1 { font-size: 38px; line-height: 1.25; letter-spacing: -.5px; max-width: 580px; }
.hero h1 .hl {
  background: linear-gradient(90deg, #ffd98a, #ffb020, #ffe3a6, #ffd98a);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}
.hero p { margin-top: 14px; font-size: 16px; color: rgba(232, 237, 242, .82); max-width: 540px; }
.hero .stats { display: flex; gap: 38px; margin-top: 32px; }
.hero .stats b { font-size: 26px; display: block; color: var(--brand); font-variant-numeric: tabular-nums; }
.hero .stats span { font-size: 13px; color: rgba(232, 237, 242, .6); }

/* ---------- 课程商城浅色主题 ---------- */
.page-home .hero {
  background: linear-gradient(135deg, #fff 0%, #f7f9fc 58%, #edf4fb 100%);
  border-color: #d7dee8;
  box-shadow: 0 12px 30px rgba(20, 33, 43, .08);
}
.page-home .hero::before {
  background-image:
    linear-gradient(rgba(33, 98, 222, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 98, 222, .045) 1px, transparent 1px);
}
.page-home .hero::after { display: none; }
.page-home .hero h1 { color: #14212b; }
.page-home .hero h1 .hl {
  background: none;
  -webkit-text-fill-color: #14212b;
  animation: none;
}
.page-home .hero p { color: #52606d; }
.page-home .hero .stats b { color: #1677ff; }
.page-home .hero .stats span { color: #14212b; }

.page-home .search-box input {
  background: #fff;
  border-color: #cbd5e1;
  color: #14212b;
}
.page-home .search-box input::placeholder { color: #7b8794; }
.page-home .search-box input:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, .2);
}
.page-home .search-box button {
  background: transparent;
  color: #14212b;
}
.page-home .cats .cat {
  background: rgba(255, 255, 255, .82);
  border-color: #cbd5e1;
  color: #14212b;
}
.page-home .cats .cat:hover {
  border-color: #94a3b8;
  color: #14212b;
}
.page-home .cats .cat.on {
  background: #fff;
  border-color: #94a3b8;
  color: #14212b;
  font-weight: 800;
}

.page-home .course-card {
  background: linear-gradient(to top, #dceeff 0%, #fff 100%);
  border-color: #cbdceb;
  box-shadow: 0 10px 24px rgba(31, 75, 119, .1);
}
.page-home .course-card:hover {
  border-color: #1677ff;
  box-shadow: 0 18px 34px rgba(22, 119, 255, .18);
}
.page-home .course-card .course-body h3,
.page-home .course-card .course-body .sub,
.page-home .course-card .course-meta,
.page-home .course-card .price,
.page-home .course-card .price .orig {
  color: #14212b;
}
.page-home .course-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    ". cart"
    "price price";
  align-items: center;
  gap: 8px 12px;
  border-color: #cbdceb;
}
.page-home .course-foot .price { grid-area: price; }
.page-home .course-foot .btn-primary {
  grid-area: cart;
  min-width: 112px;
  white-space: nowrap;
  background: #1677ff;
  color: #fff;
}
.page-home .course-foot .btn-primary:hover { background: #0958d9; }
.page-home .course-cover .tag,
.page-home .course-cover .lvl {
  background: #1677ff;
  color: #fff;
}
.cs-widget .cs-fab {
  background: #1677ff;
  color: #fff;
  box-shadow: 0 8px 24px rgba(22, 119, 255, .26);
}

.page-orders .query-form .panel,
.page-orders .order-result {
  background: #fff;
  border-color: #d7dee8;
  box-shadow: 0 10px 24px rgba(31, 75, 119, .1);
  color: #14212b;
}
.page-orders .form-item label,
.page-orders .form-item input,
.page-orders .order-result,
.page-orders .order-result h3,
.page-orders .order-result h4,
.page-orders .order-info .row,
.page-orders .order-info .row b {
  color: #14212b;
}
.page-orders .form-item input {
  background: #fff;
  border-color: #cbd5e1;
}
.page-orders .form-item input[name="no"] {
  background: #eaf4ff;
  border-color: #b7d7ff;
}
.page-orders .form-item input:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, .14);
}
.page-orders .query-form .btn-primary {
  background: #1677ff;
  color: #fff;
}
.page-orders .query-form .btn-primary:hover { background: #0958d9; }
.page-orders .order-info {
  background: #eaf4ff;
  border-color: #b7d7ff;
}
.page-orders .order-info .row { border-color: #c8def3; }

/* ---------- 购物车与结算浅色主题 ---------- */
.page-cart .section-title { color: #14212b; }
.page-cart .section-title::before {
  background: #1677ff;
}
.page-cart .panel {
  background: #eaf4ff;
  border-color: #b7d7ff;
  box-shadow: 0 10px 24px rgba(31, 75, 119, .1);
  color: #14212b;
}
.page-cart .panel:hover { border-color: #8fc2ff; }
.page-cart .empty,
.page-cart .empty h3,
.page-cart .cart-table,
.page-cart .cart-table th,
.page-cart .cart-table td,
.page-cart .cart-item b,
.page-cart .cart-total,
.page-cart .form-item label,
.page-cart .pay-method .pm-name {
  color: #14212b;
}
.page-cart .cart-table th,
.page-cart .cart-table td,
.page-cart .cart-total {
  border-color: #c8def3;
}
.page-cart .form-item input,
.page-cart .form-item select,
.page-cart .form-item textarea {
  background: #fff;
  border-color: #b7d7ff;
  color: #14212b;
}
.page-cart .form-item input::placeholder,
.page-cart .form-item textarea::placeholder { color: #6b7b8d; }
.page-cart .form-item input:focus,
.page-cart .form-item textarea:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, .14);
}
.page-cart .pay-method {
  background: #eaf4ff;
  border-color: #b7d7ff;
}
.page-cart .pay-method:hover,
.page-cart .pay-method.on {
  background: #dceeff;
  border-color: #1677ff;
}
.page-cart .pay-method .radio { border-color: #7da9d8; }
.page-cart .pay-method.on .radio { border-color: #1677ff; }
.page-cart .pay-method.on .radio::after { background: #1677ff; }
.page-cart .pay-method .pm-desc { color: #52606d; }
.page-cart .btn-primary {
  background: #1677ff;
  color: #fff;
}
.page-cart .btn-primary:hover { background: #0958d9; }

/* ---------- 搜索 & 分类 ---------- */
.toolbar { margin: 28px 0 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.search-box { position: relative; flex: 1; min-width: 240px; }
.search-box input {
  width: 100%; padding: 12px 44px 12px 16px; border: 1px solid var(--border);
  border-radius: 12px; font-size: 15px; background: #12171f; color: var(--ink);
  outline: none; transition: .15s;
}
.search-box input::placeholder { color: #5b6470; }
.search-box input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
.search-box button {
  position: absolute; right: 6px; top: 6px; bottom: 6px; width: 38px;
  border: 0; border-radius: 8px; background: var(--brand); color: #1a1206; font-size: 16px;
}
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cat {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); font-size: 14px; color: var(--muted); transition: .15s;
}
.cat:hover { border-color: var(--brand); color: var(--brand); }
.cat.on { background: var(--brand); border-color: var(--brand); color: #1a1206; font-weight: 600; }

/* ---------- 课程卡片 ---------- */
.section-title { font-size: 20px; font-weight: 800; margin: 10px 0 18px; display: flex; align-items: center; gap: 12px; }
.section-title::before {
  content: ""; width: 6px; height: 22px; border-radius: 2px;
  background: repeating-linear-gradient(-45deg, var(--brand) 0 4px, #1a1f27 4px 8px);
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.course-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  display: flex; flex-direction: column; transition: .3s; position: relative;
}
.course-card::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .06), transparent);
  transform: skewX(-20deg); transition: left .7s ease; pointer-events: none; z-index: 2;
}
.course-card:hover::after { left: 130%; }
.course-card:hover { transform: translateY(-6px); border-color: var(--cyan); box-shadow: 0 20px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(56, 189, 248, .35); }
.course-cover {
  height: 132px; display: grid; place-items: center; font-size: 56px;
  position: relative; transition: font-size .45s cubic-bezier(.34, 1.56, .64, 1);
}
.course-card:hover .course-cover { font-size: 66px; }
.course-cover .tag {
  position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700;
  padding: 3px 9px; border-radius: 6px; background: rgba(255, 176, 32, .95); color: #1a1206;
}
.course-cover .lvl { position: absolute; top: 12px; right: 12px; font-size: 12px; color: rgba(232,237,242,.9); background: rgba(0,0,0,.35); padding: 3px 8px; border-radius: 6px; }
.course-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 17px; font-weight: 700; color: var(--ink); }
.course-body .sub { color: var(--muted); font-size: 13px; margin-top: 4px; min-height: 20px; }
.course-meta { display: flex; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.course-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.price { color: var(--price); font-weight: 800; font-size: 20px; }
.price small { font-size: 13px; }
.price .orig { color: var(--muted); font-weight: 400; font-size: 13px; text-decoration: line-through; margin-left: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; transition: .15s; position: relative; overflow: hidden;
}
.btn-primary { background: var(--brand); color: #1a1206; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-ghost { background: var(--brand-soft); color: var(--brand); }
.btn-ghost:hover { background: rgba(255, 176, 32, .2); }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-line { background: var(--card); border-color: var(--border); color: var(--ink); }
.btn-line:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger { background: var(--card); border-color: #4a2326; color: #ff7a7a; }
.btn-danger:hover { background: #2a1518; }
.sales { font-size: 12px; color: var(--muted); }

/* ---------- 详情 ---------- */
.detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; margin-top: 28px; align-items: start; }
.detail-cover { border-radius: var(--radius); height: 300px; display: grid; place-items: center; font-size: 120px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.detail-info h1 { font-size: 28px; letter-spacing: -.4px; }
.detail-info .sub { color: var(--muted); margin-top: 8px; font-size: 15px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.detail-meta span { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--card-2); color: var(--muted); border: 1px solid var(--border); }
.price-row { display: flex; align-items: baseline; gap: 12px; margin: 20px 0; }
.price-row .now { font-size: 34px; color: var(--price); font-weight: 800; }
.price-row .now small { font-size: 18px; }
.price-row .orig { color: var(--muted); text-decoration: line-through; font-size: 16px; }
.detail-btns { display: flex; gap: 12px; }
.features { margin-top: 26px; }
.features h4 { font-size: 15px; margin-bottom: 12px; color: var(--brand); }
.features ul { list-style: none; }
.features li { padding: 8px 0 8px 26px; position: relative; color: var(--ink); font-size: 14px; }
.features li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.detail-desc { margin-top: 20px; color: var(--muted); font-size: 15px; }

/* ---------- 购物车 / 结算 ---------- */
.page { margin-top: 28px; }
.panel {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: border-color .3s ease, box-shadow .3s ease;
}
.panel:hover { border-color: #2c3542; }
.panel-pad { padding: 26px 28px; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty .ico { font-size: 54px; }
.empty h3 { color: var(--ink); margin: 12px 0 8px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.cart-table td { padding: 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.cart-table tr:last-child td { border-bottom: 0; }
.cart-item { display: flex; align-items: center; gap: 14px; }
.cart-item .thumb { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; font-size: 26px; }
.cart-total { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 20px 28px; border-top: 1px solid var(--border); }
.cart-total .sum { color: var(--price); font-size: 26px; font-weight: 800; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-item label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; outline: none; background: #12171f; color: var(--ink); transition: .15s;
}
.form-item input::placeholder, .form-item textarea::placeholder { color: #5b6470; }
.form-item input:focus, .form-item textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
.form-item.full { grid-column: 1 / -1; }
.pay-methods { display: grid; gap: 12px; margin-top: 6px; }
.pay-method {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: .15s; background: var(--card-2);
}
.pay-method:hover { border-color: var(--brand); }
.pay-method input { display: none; }
.pay-method .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #3a4350; flex: none; display: grid; place-items: center; }
.pay-method.on { border-color: var(--brand); background: var(--brand-soft); }
.pay-method.on .radio { border-color: var(--brand); }
.pay-method.on .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.pay-method .pm-ico { font-size: 26px; }
.pay-method .pm-name { font-weight: 700; color: var(--ink); }
.pay-method .pm-desc { font-size: 13px; color: var(--muted); }
.pay-method[aria-disabled="true"], .chk-grid button[type="submit"]:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- 支付页 ---------- */
.pay-box { max-width: 460px; margin: 40px auto; text-align: center; }
.pay-box .amount { font-size: 40px; font-weight: 800; color: var(--price); }
.pay-box .amount small { font-size: 20px; }
.qr-wrap { display: inline-block; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); margin: 20px 0; }
.qr-wrap img { display: block; }
.hint { color: var(--muted); font-size: 14px; margin-top: 12px; }
.pay-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 6px; }

/* ---------- 成功页 ---------- */
.success-box { max-width: 520px; margin: 50px auto; text-align: center; }
.success-box .check {
  width: 76px; height: 76px; border-radius: 50%; color: #1a1206; font-size: 40px;
  display: grid; place-items: center; margin: 0 auto 20px;
  background: var(--brand); box-shadow: 0 0 30px rgba(255, 176, 32, .45);
}
.success-box h1 { font-size: 26px; }
.order-info { text-align: left; background: var(--card-2); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; margin: 22px 0; }
.order-info .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.order-info .row:last-child { border-bottom: 0; }
.order-info .row b { color: var(--price); }

/* ---------- 订单查询 ---------- */
.query-form { max-width: 560px; margin: 30px auto; }
.order-result { margin-top: 24px; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.status-paid { background: rgba(45, 212, 167, .15); color: #34d399; }
.status-pending { background: var(--brand-soft); color: var(--brand); }
.status-cancelled { background: #1c2129; color: var(--muted); }

/* ---------- 后台 ---------- */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side { background: #0a0d12; color: #cfe3da; padding: 24px 16px; border-right: 1px solid var(--border); }
.admin-side .logo { color: #fff; margin-bottom: 26px; padding: 0 8px; }
.admin-side a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 9px; font-size: 14px; color: #8a94a3; margin-bottom: 4px; }
.admin-side a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.admin-side a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.admin-main { padding: 28px 32px; background: var(--bg); }
.admin-main h1 { font-size: 22px; margin-bottom: 20px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card { background: var(--card); border-radius: 12px; border: 1px solid var(--border); padding: 20px; }
.stat-card .k { color: var(--muted); font-size: 13px; }
.stat-card .v { font-size: 26px; font-weight: 800; margin-top: 6px; }
.stat-card .v.green { color: #34d399; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.admin-table th { text-align: left; font-size: 13px; color: var(--muted); padding: 13px 16px; background: #0f141b; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 13px 16px; font-size: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-btn { font-size: 13px; padding: 5px 11px; border-radius: 7px; border: 1px solid var(--border); background: var(--card-2); color: var(--ink); }
.mini-btn:hover { border-color: var(--brand); color: var(--brand); }
.mini-btn.danger:hover { border-color: #4a2326; color: #ff7a7a; }
.badge-note { font-size: 12px; color: var(--muted); }

/* ---------- 登录 ---------- */
.login-box { max-width: 380px; margin: 90px auto; padding: 36px 34px; }
.login-box h1 { font-size: 22px; text-align: center; margin-bottom: 24px; }
.login-box .err { background: #2a1518; color: #ff7a7a; font-size: 13px; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }

/* ---------- 通用 ---------- */
.footer { margin-top: 60px; padding: 34px 0 44px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; text-align: center; background: #0e1116; }
.footer .brand { font-weight: 700; color: var(--ink); }
.gradient-a { background: linear-gradient(135deg, #10231c, #153d31); }
.gradient-b { background: linear-gradient(135deg, #2a1f0e, #4a3411); }
.gradient-c { background: linear-gradient(135deg, #0e1c26, #123a4a); }
.gradient-d { background: linear-gradient(135deg, #2a1215, #4a1c22); }
.gradient-e { background: linear-gradient(135deg, #181426, #2a1f42); }
.mt { margin-top: 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; }

@media (max-width: 760px) {
  .detail { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero { padding: 36px 26px; }
  .hero h1 { font-size: 28px; }
}

/* ==================== 动效增强 ==================== */
html { scroll-behavior: smooth; }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="scale"] { transform: scale(.9); }
[data-reveal].is-visible { opacity: 1; transform: none; }

.hero h1 .hl {
  background: linear-gradient(90deg, #ffd98a, #ffb020, #ffe3a6, #ffd98a);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 20px; z-index: 0; }
.particles span {
  position: absolute; border-radius: 50%; opacity: 0;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  15%  { opacity: .7; }
  85%  { opacity: .55; }
  100% { transform: translateY(-130px) scale(.35); opacity: 0; }
}

.badge.pop { animation: pop .38s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes pop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.55); }
  100% { transform: scale(1); }
}

.success-box .check { animation: popIn .6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes popIn {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==================== 客服窗口 ==================== */
.cs-widget { position: fixed; right: 24px; bottom: 24px; z-index: 200; }
.cs-fab {
  display: flex; align-items: center; gap: 8px; padding: 13px 20px;
  background: var(--brand); color: #1a1206; border: 0; border-radius: 999px;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45), 0 0 20px rgba(255, 176, 32, .35);
  transition: transform .2s ease;
}
.cs-fab:hover { transform: translateY(-3px); }
.cs-ico { font-size: 18px; }
.cs-panel {
  position: absolute; right: 0; bottom: 64px; width: 320px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6); overflow: hidden;
  transform: translateY(14px) scale(.96); opacity: 0; pointer-events: none;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), opacity .25s ease;
}
.cs-widget.open .cs-panel { transform: none; opacity: 1; pointer-events: auto; }
.cs-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: linear-gradient(135deg, #1a212b, #12171f); border-bottom: 1px solid var(--border);
}
.cs-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; font-size: 21px; }
.cs-name { font-weight: 700; font-size: 14px; }
.cs-status { font-size: 11px; color: #34d399; display: flex; align-items: center; gap: 4px; }
.cs-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 6px #34d399; }
.cs-close { margin-left: auto; background: transparent; border: 0; color: var(--muted); font-size: 22px; line-height: 1; padding: 0 2px; }
.cs-close:hover { color: #fff; }
.cs-body { padding: 14px 16px 16px; }
.cs-msg { background: var(--card-2); border: 1px solid var(--border); padding: 9px 12px; border-radius: 10px; font-size: 13px; color: var(--ink); margin-bottom: 8px; }
.cs-msg b { color: var(--brand); }
.cs-contact { margin-top: 6px; border-top: 1px solid var(--border); padding-top: 10px; }
.cs-row {
  display: grid;
  grid-template-columns: minmax(84px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
}
.cs-row span { color: var(--muted); min-width: 0; }
.cs-row b { color: var(--ink); min-width: 0; word-break: break-word; font-weight: 600; }
.cs-copy { background: var(--brand-soft); color: var(--brand); border: 0; padding: 4px 11px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.cs-copy:hover { background: rgba(255, 176, 32, .22); }

/* 核销指引（支付成功页） */
.redeem-box {
  text-align: left; background: var(--card); border: 1px solid var(--brand);
  border-radius: 14px; padding: 20px 22px; margin: 22px 0;
  box-shadow: 0 0 0 1px rgba(255, 176, 32, .15), 0 12px 34px rgba(0, 0, 0, .4);
}
.redeem-box .redeem-title { font-size: 17px; font-weight: 800; color: var(--brand); display: flex; align-items: center; gap: 8px; }
.redeem-box p { color: var(--muted); font-size: 13px; margin: 8px 0 14px; }
.redeem-order {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--card-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font-size: 14px;
}
.redeem-order b { color: var(--ink); letter-spacing: .5px; }
.redeem-contact { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 12px; }

@media (max-width: 760px) {
  .cs-widget { right: 16px; bottom: 16px; }
  .cs-panel { width: 288px; }
}

/* ==================== 课程详情富内容 ==================== */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 22px; flex-wrap: wrap; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }
.crumb .on { color: var(--ink); }

.detail-cover { position: relative; }
.detail-cover .tag {
  position: absolute; top: 14px; left: 14px; padding: 4px 12px; border-radius: 999px;
  background: var(--brand); color: #1a1206; font-size: 12px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.price-row .off {
  font-size: 12px; padding: 3px 9px; border-radius: 999px; font-weight: 700;
  background: var(--price); color: #fff;
}

.detail-layout { display: grid; grid-template-columns: 1fr 330px; gap: 32px; margin-top: 44px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 28px; }

.detail-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; }
.sec-title {
  display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800;
  margin-bottom: 18px; letter-spacing: -.2px;
}
.sec-title span {
  font-size: 12px; font-weight: 800; color: var(--brand); background: var(--brand-soft);
  border: 1px solid rgba(255, 176, 32, .3); padding: 3px 8px; border-radius: 6px;
  font-family: ui-monospace, monospace;
}
.sec-desc { color: var(--muted); font-size: 15px; line-height: 1.9; }

.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.audience-item {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: 14px;
  background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; color: var(--ink);
}
.audience-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); flex: none; }

.syllabus { display: flex; flex-direction: column; }
.syl-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--border); }
.syl-item:last-child { border-bottom: 0; padding-bottom: 0; }
.syl-num {
  font-family: ui-monospace, monospace; font-size: 20px; font-weight: 800; color: var(--brand);
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  background: var(--brand-soft); border: 1px solid rgba(255, 176, 32, .25); border-radius: 10px;
}
.syl-body h4 { font-size: 15px; margin-bottom: 4px; }
.syl-body p { color: var(--muted); font-size: 13px; line-height: 1.6; }

.outcome-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.outcome-item {
  padding: 14px 16px; font-size: 14px; color: var(--ink); background: linear-gradient(135deg, rgba(56, 189, 248, .08), transparent);
  border: 1px solid rgba(56, 189, 248, .25); border-radius: 10px;
}
.outcome-item:first-letter { color: var(--cyan); }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.faq-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-ico { color: var(--brand); font-size: 18px; transition: transform .2s ease; flex: none; }
.faq-item[open] .faq-ico { transform: rotate(45deg); }
.faq-a { padding: 0 16px 16px; color: var(--muted); font-size: 13px; line-height: 1.8; }

.detail-aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }
.buy-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.buy-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.buy-price .now { font-size: 32px; color: var(--price); font-weight: 800; }
.buy-price .now small { font-size: 17px; }
.buy-price .orig { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.btn-block { width: 100%; margin-bottom: 10px; justify-content: center; }
.buy-note { list-style: none; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.buy-note li { font-size: 12px; color: var(--muted); padding: 3px 0; }

.aside-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.aside-panel h4 { font-size: 14px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.steps { display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step b {
  width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #1a1206; font-size: 13px; font-weight: 800;
}
.step strong { display: block; font-size: 13px; }
.step span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.teacher .teacher-stat { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.teacher-stat b {
  font-size: 40px; font-weight: 800; background: linear-gradient(90deg, #ffd98a, #ffb020);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.teacher-stat span { font-size: 13px; color: var(--muted); }
.teacher-txt { font-size: 13px; color: var(--muted); line-height: 1.7; }
.teacher-txt b { color: var(--cyan); }

.assure { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.assure li { font-size: 12px; color: var(--muted); line-height: 1.6; padding-left: 14px; position: relative; }
.assure li::before { content: "▸"; position: absolute; left: 0; color: var(--brand); }
.assure li b { color: var(--ink); display: block; font-size: 13px; margin-bottom: 1px; }

@media (max-width: 960px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
}
@media (max-width: 640px) {
  .audience-grid, .outcome-grid { grid-template-columns: 1fr; }
  .detail-section { padding: 20px; }
}

/* ---------- 课程详情蓝色主题 ---------- */
.detail-meta .course-category,
.detail-meta .course-level {
  background: #eaf4ff;
  border-color: #b7d7ff;
  color: #1677ff;
}
.detail-cover .tag {
  background: #1677ff;
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 119, 255, .24);
}
.detail-btns .btn-primary,
.buy-card .btn-primary,
.course-card .btn-primary {
  background: #1677ff;
  color: #fff;
}
.detail-btns .btn-primary:hover,
.buy-card .btn-primary:hover,
.course-card .btn-primary:hover { background: #0958d9; }
.features h4,
.features__icon { color: #1677ff; }
.features__icon { margin-right: 6px; }
.features li,
.features li::before { color: #14212b; }
.detail-section {
  background: #eaf4ff;
  border-color: #b7d7ff;
}
.detail-section .sec-title { color: #1677ff; }
.detail-section .sec-title span {
  background: #1677ff;
  border-color: #1677ff;
  color: #0b3a78;
}
.detail-meta .course-duration,
.detail-meta .course-sales {
  background: #eaf4ff;
  border-color: #b7d7ff;
  color: #1677ff;
}
.crumb .on { color: #8a94a3; }
.detail-btns .btn-line,
.buy-card .btn-line {
  background: #eaf4ff;
  border-color: #b7d7ff;
  color: #1677ff;
}
.detail-btns .btn-line:hover,
.buy-card .btn-line:hover {
  background: #d7eaff;
  border-color: #1677ff;
  color: #0958d9;
}
.detail-section .sec-desc,
.detail-section .audience-item,
.detail-section .syl-body h4,
.detail-section .syl-body p,
.detail-section .outcome-item,
.detail-section .faq-item summary,
.detail-section .faq-a { color: #14212b; }
.detail-section .audience-item,
.detail-section .faq-item {
  background: #dceeff;
  border-color: #b7d7ff;
}
.detail-section .outcome-item { color: #14212b; }
.aside-panel,
.buy-card {
  background: #eaf4ff;
  border-color: #b7d7ff;
  box-shadow: 0 10px 24px rgba(31, 75, 119, .1);
}
.aside-panel h4,
.step strong,
.step span,
.teacher-stat span,
.teacher-txt,
.assure li,
.assure li b,
.buy-note li { color: #14212b; }
.step b {
  background: #1677ff;
  color: #fff;
}
.detail-section .syl-num {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
}
.teacher-stat b {
  background: none;
  -webkit-text-fill-color: #0b3a78;
  color: #0b3a78;
}
.detail-section .faq-item .faq-ico { color: #0b3a78; }

/* ---------- 课程商城价格布局 ---------- */
.page-home .course-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.page-home .course-foot .price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #f5222d;
  line-height: 1.1;
}
.page-home .course-foot .price .current {
  display: inline-flex;
  align-items: baseline;
}
.page-home .course-foot .price .orig {
  margin: 4px 0 0;
  color: #7b8794;
}
.page-home .course-foot .btn-primary {
  flex: none;
  min-width: 112px;
}

/* ---------- 支付与支付成功浅色主题 ---------- */
.page-pay .pay-box,
.page-success .success-box { color: #14212b; }
.page-pay .pay-box .amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  color: #1677ff;
  line-height: 1;
}
.page-pay .pay-box .amount small { line-height: 1; }
.page-pay .pay-logo,
.page-pay .hint,
.page-pay .muted { color: #14212b; }
.page-pay .btn-primary,
.page-success .btn-primary {
  background: #1677ff;
  color: #fff;
}
.page-pay .btn-primary:hover,
.page-success .btn-primary:hover { background: #0958d9; }
.page-pay .qr-wrap {
  border-color: #b7d7ff;
  box-shadow: 0 10px 24px rgba(31, 75, 119, .1);
}
.page-success .success-box .check {
  background: #1677ff;
  color: #fff;
  box-shadow: 0 0 30px rgba(22, 119, 255, .28);
}
.page-success .success-box h1,
.page-success .success-box .muted { color: #14212b; }
.page-success .order-info,
.page-success .redeem-box,
.page-success .redeem-order {
  background: #eaf4ff;
  border-color: #b7d7ff;
  box-shadow: 0 10px 24px rgba(31, 75, 119, .1);
}
.page-success .order-info .row,
.page-success .redeem-contact { border-color: #c8def3; }
.page-success .order-info .row,
.page-success .order-info .row b,
.page-success .redeem-box p,
.page-success .redeem-order,
.page-success .redeem-order b,
.page-success .redeem-contact .cs-row,
.page-success .redeem-contact .cs-row b { color: #14212b; }
.page-success .order-info .row b,
.page-success .redeem-box .redeem-title { color: #1677ff; }
.page-success .cs-copy {
  background: #dceeff;
  color: #1677ff;
}
.page-success .cs-copy:hover { background: #c8e4ff; }
.page-success .status-paid {
  background: #dceeff;
  color: #1677ff;
}
.page-pay .footer,
.page-success .footer {
  background: transparent;
  border-color: #c8def3;
  color: #52606d;
}
.page-pay .footer .brand,
.page-success .footer .brand,
.page-pay .footer .muted,
.page-success .footer .muted { color: #14212b; }

/* ---------- 客服入口 ---------- */
.cs-widget .cs-fab {
  min-width: 160px;
  min-height: 56px;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: #1677ff;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 12px 26px rgba(22, 119, 255, .3);
}
.cs-widget .cs-fab:hover { background: #0958d9; }

/* 兼容已启动服务渲染的支付页面：不依赖 body 页面标识。 */
body:has(.pay-box),
body:has(.success-box) {
  background: #fff url("/landing/static/img/1.2dc8fc7f.png") no-repeat left top;
}
body:has(.pay-box) > .container,
body:has(.success-box) > .container { color: #14212b; }

body:has(.pay-box) .pay-box,
body:has(.success-box) .success-box { color: #14212b; }
body:has(.pay-box) .pay-box .amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  color: #1677ff;
  line-height: 1;
}
body:has(.pay-box) .pay-box .amount small { line-height: 1; }
body:has(.pay-box) .pay-logo,
body:has(.pay-box) .hint,
body:has(.pay-box) .muted { color: #14212b; }
body:has(.pay-box) .btn-primary,
body:has(.success-box) .btn-primary { background: #1677ff; color: #fff; }
body:has(.pay-box) .btn-primary:hover,
body:has(.success-box) .btn-primary:hover { background: #0958d9; }
body:has(.pay-box) .qr-wrap {
  border-color: #b7d7ff;
  box-shadow: 0 10px 24px rgba(31, 75, 119, .1);
}
body:has(.success-box) .success-box .check {
  background: #1677ff;
  color: #fff;
  box-shadow: 0 0 30px rgba(22, 119, 255, .28);
}
body:has(.success-box) .success-box h1,
body:has(.success-box) .success-box .muted { color: #14212b; }
body:has(.success-box) .order-info,
body:has(.success-box) .redeem-box,
body:has(.success-box) .redeem-order {
  background: #eaf4ff;
  border-color: #b7d7ff;
  box-shadow: 0 10px 24px rgba(31, 75, 119, .1);
}
body:has(.success-box) .order-info .row,
body:has(.success-box) .redeem-contact { border-color: #c8def3; }
body:has(.success-box) .order-info .row,
body:has(.success-box) .order-info .row b,
body:has(.success-box) .redeem-box p,
body:has(.success-box) .redeem-order,
body:has(.success-box) .redeem-order b,
body:has(.success-box) .redeem-contact .cs-row,
body:has(.success-box) .redeem-contact .cs-row b { color: #14212b; }
body:has(.success-box) .order-info .row b,
body:has(.success-box) .redeem-box .redeem-title { color: #1677ff; }
body:has(.success-box) .cs-copy { background: #dceeff; color: #1677ff; }
body:has(.success-box) .cs-copy:hover { background: #c8e4ff; }
body:has(.success-box) .status-paid { background: #dceeff; color: #1677ff; }
body:has(.pay-box) .footer,
body:has(.success-box) .footer {
  background: transparent;
  border-color: #c8def3;
  color: #52606d;
}
body:has(.pay-box) .footer .brand,
body:has(.success-box) .footer .brand,
body:has(.pay-box) .footer .muted,
body:has(.success-box) .footer .muted { color: #14212b; }

/* ---------- 客服弹窗蓝色主题 ---------- */
.cs-panel {
  background: #f5f9ff;
  border-color: #b7d7ff;
  box-shadow: 0 20px 50px rgba(22, 119, 255, .2);
}
.cs-head {
  background: #0b3a78;
  border-color: #0b3a78;
  color: #fff;
}
.cs-avatar { background: rgba(255, 255, 255, .18); }
.cs-status { color: #dceeff; }
.cs-dot { background: #fff; box-shadow: 0 0 6px #fff; }
.cs-close,
.cs-close:hover { color: #fff; }
.cs-msg {
  background: #eaf4ff;
  border-color: #b7d7ff;
  color: #14212b;
}
.cs-msg b { color: #1677ff; }
.cs-contact { border-color: #b7d7ff; }
.cs-row span { color: #52606d; }
.cs-row b { color: #14212b; }
.cs-copy {
  background: #0b3a78;
  color: #fff;
}
.cs-copy:hover { background: #0958d9; }
