/* ============================================================
   跨博商城 · 全端样式（PC / H5）
   ============================================================ */
:root {
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-soft: #eef2ff;
  --brand-line: #dfe4ff;
  --ink: #0f172a;
  --text: #1f2937;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --bg: #f5f6fb;
  --card: #ffffff;
  --line: #e9ecf5;
  --amber: #f59e0b;
  --amber-soft: #fff7e6;
  --green: #10b981;
  --green-soft: #e9f9f2;
  --red: #ef4444;
  --blue: #0ea5e9;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
  --header-h: 68px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, select, textarea { font: inherit; color: inherit; }
i { font-style: normal; }
img, svg { max-width: 100%; }
::selection { background: #ddd6fe; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cdd3e2; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.page { min-height: calc(100vh - var(--header-h)); animation: pageIn .35s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(233, 236, 245, .9);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; display: grid; place-items: center; font-size: 19px;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .32);
}
.logo-text { font-weight: 800; font-size: 17px; letter-spacing: -.2px; line-height: 1.1; }
.logo-text small { display: block; font-size: 10px; font-weight: 500; color: var(--muted-2); letter-spacing: 1.4px; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: #4b5563; font-weight: 500; transition: .18s; white-space: nowrap; }
.nav-link:hover { background: #f3f4fb; color: var(--ink); }
.nav-link.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  color: #4b5563; font-size: 19px; position: relative; transition: .18s;
}
.icon-btn:hover { background: #f3f4fb; color: var(--ink); }
.cart-dot {
  position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--red); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.header-user { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 999px; transition: .18s; }
.header-user:hover { background: #f3f4fb; }
.header-user .hu-name { font-size: 13px; font-weight: 600; }
.header-user .hu-role { font-size: 11px; color: var(--muted-2); line-height: 1.1; }

.avatar {
  width: var(--s, 38px); height: var(--s, 38px); border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 700;
  font-size: calc(var(--s, 38px) * .4); flex-shrink: 0; border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
}

/* ---------- 底部导航（H5） ---------- */
.bottom-nav { display: none; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; transition: .2s; white-space: nowrap; line-height: 1.2;
}
.btn i { font-size: 16px; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px rgba(99, 102, 241, .28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(99, 102, 241, .36); }
.btn-outline { border-color: #dfe3ef; background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: #c7cdea; background: #fbfbff; }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-soft:hover { background: #e4e8ff; }
.btn-ghost { color: var(--muted); padding: 8px 12px; }
.btn-ghost:hover { background: #f3f4fb; color: var(--ink); }
.btn-amber { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; box-shadow: 0 8px 20px rgba(245, 158, 11, .3); }
.btn-danger { background: #fef2f2; color: var(--red); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 7px;
  font-size: 11.5px; font-weight: 600; line-height: 1.5; background: #f3f4f6; color: #4b5563;
}
.tag-indigo { background: var(--brand-soft); color: var(--brand); }
.tag-amber { background: var(--amber-soft); color: #b45309; }
.tag-green { background: var(--green-soft); color: #047857; }
.tag-red { background: #fef2f2; color: #b91c1c; }
.tag-slate { background: #f1f5f9; color: #475569; }

.section { padding: 46px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-title { font-size: 24px; font-weight: 800; letter-spacing: -.4px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.section-title i { color: var(--brand); font-size: 21px; }
.section-sub { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.more-link { font-size: 13px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.more-link:hover { gap: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: rgba(79, 70, 229, .09); color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .3px;
}
.eyebrow.amber { background: rgba(245, 158, 11, .13); color: #b45309; }

.progress { height: 7px; border-radius: 999px; background: #eef0f7; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .5s ease; }
.progress.amber > span { background: linear-gradient(90deg, #fbbf24, #f97316); }
.progress.green > span { background: linear-gradient(90deg, #34d399, #10b981); }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #eef0ff 0%, #f7f4ff 42%, #f5f6fb 100%); }
.hero::before {
  content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px;
  background: radial-gradient(circle, rgba(124, 58, 237, .22), transparent 65%);
  border-radius: 50%; filter: blur(10px);
}
.hero::after {
  content: ''; position: absolute; width: 380px; height: 380px; left: -160px; bottom: -240px;
  background: radial-gradient(circle, rgba(79, 70, 229, .16), transparent 65%);
  border-radius: 50%;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 62px 0 66px; }
.hero-title { font-size: clamp(32px, 4.1vw, 52px); line-height: 1.15; font-weight: 850; letter-spacing: -1.6px; color: var(--ink); margin: 18px 0 16px; }
.hero-title em { font-style: normal; background: linear-gradient(120deg, var(--brand), #a855f7 65%, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 16px; color: #4b5563; max-width: 520px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-stats { display: flex; gap: 34px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; line-height: 1.2; }
.hero-stats .stat span { font-size: 12.5px; color: var(--muted); }

.hero-art { position: relative; height: 380px; }
.art-card {
  position: absolute; background: rgba(255, 255, 255, .92); border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px; box-shadow: var(--shadow-lg); padding: 15px 17px; backdrop-filter: blur(8px);
  animation: floaty 6s ease-in-out infinite;
}
.art-main { left: 6%; top: 34px; width: 300px; padding: 20px; }
.art-main .am-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.art-main .am-icon { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #4f46e5, #8b5cf6); color: #fff; display: grid; place-items: center; font-size: 20px; }
.art-main .am-title { font-weight: 700; font-size: 14px; }
.art-main .am-sub { font-size: 11.5px; color: var(--muted-2); }
.art-bars { display: flex; align-items: flex-end; gap: 8px; height: 74px; margin-top: 6px; }
.art-bars i { flex: 1; border-radius: 6px 6px 4px 4px; background: linear-gradient(180deg, #c7d2fe, #818cf8); opacity: .9; }
.art-bars i:nth-child(4), .art-bars i:nth-child(5) { background: linear-gradient(180deg, #818cf8, #4f46e5); }
.art-commission { right: 0; top: 0; animation-delay: -1.4s; }
.art-commission .val { font-size: 22px; font-weight: 800; color: #b45309; line-height: 1.2; }
.art-commission .lbl { font-size: 11px; color: var(--muted); }
.art-team { right: 4%; bottom: 24px; width: 205px; animation-delay: -2.8s; }
.art-team .at-title { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.art-avatars { display: flex; align-items: center; }
.art-avatars .avatar { margin-left: -8px; border-color: #fff; }
.art-avatars .avatar:first-child { margin-left: 0; }
.art-level { left: 0; bottom: 4px; display: flex; align-items: center; gap: 9px; animation-delay: -4.2s; }
.art-level .lv-icon { width: 34px; height: 34px; border-radius: 10px; background: #fff7e6; color: #d97706; display: grid; place-items: center; font-size: 17px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- 等级阶梯 ---------- */
.ladder-card { padding: 26px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ladder-item { position: relative; border-radius: 16px; padding: 18px 16px; background: #fafbff; border: 1px solid var(--line); transition: .2s; }
.ladder-item:hover { transform: translateY(-3px); border-color: var(--brand-line); box-shadow: var(--shadow); }
.ladder-item .lv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ladder-item .lv-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; color: #fff; }
.ladder-item .lv-code { font-size: 11px; font-weight: 800; color: var(--muted-2); letter-spacing: 1px; }
.ladder-item h4 { font-size: 14px; font-weight: 700; color: var(--ink); }
.ladder-item p { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 5px; min-height: 34px; }
.ladder-item .lv-xp { margin-top: 10px; font-size: 11px; color: var(--muted-2); display: flex; align-items: center; gap: 4px; }
.ladder-item.current { border-color: var(--brand); box-shadow: 0 8px 22px rgba(79, 70, 229, .14); background: #fff; }
.ladder-item.current::after { content: '我的等级'; position: absolute; top: -9px; right: 12px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }

/* ---------- 产品网格 ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; transition: .22s; position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dfe3f5; }
.p-cover { position: relative; height: 158px; display: grid; place-items: center; overflow: hidden; }
.p-cover::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 78% 18%, rgba(255,255,255,.35), transparent 45%); }
.p-cover .p-icon { font-size: 54px; color: rgba(255, 255, 255, .92); position: relative; z-index: 1; filter: drop-shadow(0 6px 14px rgba(0,0,0,.18)); }
.p-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(255, 255, 255, .92); color: #b45309; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.p-level { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: rgba(15, 23, 42, .38); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; backdrop-filter: blur(4px); }
.p-body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-title { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.p-sub { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.p-footer { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.price { font-size: 19px; font-weight: 850; color: #ef4444; letter-spacing: -.5px; }
.price::first-letter { font-size: 13px; }
.price-old { font-size: 11.5px; color: var(--muted-2); text-decoration: line-through; }
.sales { margin-left: auto; font-size: 11px; color: var(--muted-2); white-space: nowrap; }
.p-tags { display: flex; gap: 5px; flex-wrap: wrap; }

/* ---------- 卡片 / 功能 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.feature-card .f-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
.feature-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 12.5px; color: var(--muted); line-height: 1.65; }

.split-banner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.split-main { padding: 34px 36px; }
.split-main h3 { font-size: 25px; font-weight: 800; letter-spacing: -.6px; color: var(--ink); margin: 12px 0 10px; }
.split-main p { font-size: 13.5px; color: var(--muted); max-width: 430px; line-height: 1.75; }
.split-main .split-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.split-aside { background: linear-gradient(145deg, #312e81, #6d28d9 60%, #9333ea); padding: 30px; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 12px; position: relative; overflow: hidden; }
.split-aside::after { content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.09); right: -80px; top: -80px; }
.split-aside .sa-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 13px 16px; position: relative; z-index: 1; }
.split-aside .sa-row b { font-size: 20px; font-weight: 800; }
.split-aside .sa-row span { font-size: 12px; color: rgba(255,255,255,.72); }

/* ---------- 列表页 / 筛选 ---------- */
.page-head { padding: 34px 0 22px; }
.page-head h1 { font-size: 28px; font-weight: 850; letter-spacing: -.7px; color: var(--ink); }
.page-head p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: #4b5563; transition: .18s; white-space: nowrap; }
.chip:hover { border-color: var(--brand-line); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(79, 70, 229, .22); }
.search-box {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; min-width: 230px; margin-left: auto; color: var(--muted-2);
}
.search-box input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 13.5px; color: var(--ink); }
.search-box input::placeholder { color: var(--muted-2); }
.sort-select {
  appearance: none; -webkit-appearance: none; background-color: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 34px 8px 16px;
  font-size: 13px; color: #4b5563; font-family: inherit; cursor: pointer; outline: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  transition: .18s;
}
.sort-select:hover { border-color: var(--brand-line); color: var(--brand); }
.sort-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .1); }

/* ---------- 好物网格 ---------- */
.grid-goods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- 商品详情 ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; padding: 28px 0 10px; align-items: start; }
.cover-xl { border-radius: 24px; min-height: 340px; display: grid; place-items: center; position: relative; overflow: hidden; color: #fff; }
.cover-xl .big-icon { font-size: 108px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.22)); }
.cover-xl .cv-tag { position: absolute; top: 18px; left: 18px; background: rgba(255,255,255,.94); color: #b45309; font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.cover-xl .cv-level { position: absolute; bottom: 18px; left: 18px; background: rgba(15,23,42,.35); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.25); padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.cover-xl::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 76% 16%, rgba(255,255,255,.35), transparent 48%); }
.detail-info h1 { font-size: clamp(24px, 2.5vw, 32px); font-weight: 850; letter-spacing: -.8px; line-height: 1.28; color: var(--ink); }
.detail-sub { font-size: 14px; color: var(--muted); margin-top: 9px; }
.detail-meta { display: flex; align-items: center; gap: 14px; margin: 14px 0 18px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.detail-meta b { color: var(--ink); }
.detail-price-box { background: linear-gradient(120deg, #fff7ed, #fff); border: 1px solid #ffe7c7; border-radius: 16px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.detail-price-box .price { font-size: 30px; }
.detail-price-box .price-old { font-size: 13px; }
.detail-price-box .dp-note { margin-left: auto; font-size: 12px; color: #b45309; background: rgba(245,158,11,.12); padding: 5px 12px; border-radius: 8px; font-weight: 600; }
.benefit-list { display: grid; gap: 8px; margin: 18px 0; }
.benefit-list li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: #374151; }
.benefit-list i { color: var(--green); font-size: 16px; }
.buy-bar { display: flex; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 36px; height: 38px; display: grid; place-items: center; color: var(--muted); font-size: 16px; }
.qty button:hover { background: #f5f6fb; color: var(--ink); }
.qty span { min-width: 34px; text-align: center; font-weight: 600; font-size: 13.5px; }
.commission-hint { display: flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 12.5px; color: #b45309; background: var(--amber-soft); border: 1px dashed #fcd34d; padding: 10px 14px; border-radius: 10px; }
.detail-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 34px 0 22px; overflow-x: auto; }
.tab-btn { padding: 0 0 12px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; white-space: nowrap; }
.tab-btn.active { color: var(--brand); border-color: var(--brand); }
.rich-text { font-size: 14px; color: #4b5563; line-height: 1.85; }
.rich-text p + p { margin-top: 12px; }
.syllabus { display: grid; gap: 8px; }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fafbff; border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; }
.lesson-row .lr-index { width: 24px; height: 24px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.lesson-row .lr-min { margin-left: auto; color: var(--muted-2); font-size: 12px; }
.review-item { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.review-item:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.review-head b { font-size: 13px; }
.review-head span { font-size: 11.5px; color: var(--muted-2); }
.stars { color: #f59e0b; font-size: 12px; letter-spacing: 1px; }
.review-item p { font-size: 13px; color: #4b5563; }

/* ---------- 购物车 ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr .9fr; gap: 24px; align-items: start; padding-bottom: 50px; }
.cart-list { display: grid; gap: 12px; }
.cart-item { display: flex; align-items: center; gap: 14px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.cart-item .ci-cover { width: 74px; height: 74px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 27px; flex-shrink: 0; }
.cart-item .ci-body { flex: 1; min-width: 0; }
.cart-item .ci-body h4 { font-size: 14px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item .ci-body p { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.cart-item .ci-price { font-weight: 800; color: #ef4444; font-size: 15px; white-space: nowrap; }
.cart-item .ci-del { color: var(--muted-2); font-size: 17px; padding: 6px; border-radius: 8px; }
.cart-item .ci-del:hover { background: #fef2f2; color: var(--red); }
.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; position: sticky; top: calc(var(--header-h) + 18px); }
.cart-summary h3 { font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 7px 0; }
.sum-row b { color: var(--ink); font-size: 14px; }
.sum-total { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.sum-total span { font-size: 13px; color: var(--muted); }
.sum-total b { font-size: 24px; font-weight: 850; color: #ef4444; }
.cart-bar { position: sticky; bottom: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 12px 0; display: flex; align-items: center; gap: 14px; }
.cart-bar .cb-total { margin-left: auto; font-size: 13px; color: var(--muted); }
.cart-bar .cb-total b { font-size: 22px; color: #ef4444; font-weight: 850; }

.check-line { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.check {
  width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #cbd5e1; background: #fff;
  display: inline-grid; place-items: center; color: #fff; font-size: 11px; cursor: pointer; flex-shrink: 0; transition: .15s;
}
.check.on { background: var(--brand); border-color: var(--brand); }

/* ---------- 订单 ---------- */
.order-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin-bottom: 14px; }
.order-head { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); padding-bottom: 13px; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.order-head .oh-id { font-weight: 600; color: var(--ink); }
.order-status { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--brand); }
.order-status.done { color: var(--green); }
.order-status.wait { color: var(--amber); }
.order-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.order-item .oi-cover { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 21px; flex-shrink: 0; }
.order-item h4 { font-size: 13.5px; font-weight: 600; }
.order-item p { font-size: 11.5px; color: var(--muted-2); }
.order-item .oi-price { margin-left: auto; font-weight: 700; font-size: 13.5px; }
.order-foot { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; flex-wrap: wrap; }
.order-foot b { font-size: 17px; color: #ef4444; font-weight: 800; }
.order-foot .of-actions { display: flex; gap: 8px; }

/* ---------- 学习中心 ---------- */
.learn-hero { display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px; margin-bottom: 22px; }
.level-card { position: relative; overflow: hidden; border-radius: 22px; padding: 26px 28px; background: linear-gradient(130deg, #312e81, #4f46e5 48%, #7c3aed); color: #fff; box-shadow: 0 18px 40px rgba(79, 70, 229, .28); }
.level-card::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); right: -60px; top: -100px; }
.level-card .lc-top { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; }
.ring { width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(#fbbf24 calc(var(--p, 0) * 1%), rgba(255,255,255,.18) 0); display: grid; place-items: center; flex-shrink: 0; }
.ring-inner { width: 74px; height: 74px; border-radius: 50%; background: #3b3699; display: grid; place-items: center; text-align: center; }
.ring-inner b { font-size: 20px; font-weight: 850; line-height: 1.1; display: block; }
.ring-inner span { font-size: 10px; color: rgba(255,255,255,.7); }
.level-card h2 { font-size: 24px; font-weight: 850; letter-spacing: -.5px; }
.level-card .lc-sub { font-size: 12.5px; color: rgba(255,255,255,.72); margin-top: 4px; }
.level-card .lc-xp { margin-top: 14px; font-size: 12px; color: rgba(255,255,255,.75); display: flex; justify-content: space-between; }
.level-card .progress { background: rgba(255,255,255,.2); height: 8px; margin-top: 7px; }
.level-card .progress > span { background: linear-gradient(90deg, #fbbf24, #f97316); }
.level-card .lc-badges { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; position: relative; z-index: 1; }
.level-card .lc-badge { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.16); padding: 5px 11px; border-radius: 999px; font-size: 11.5px; display: inline-flex; gap: 5px; align-items: center; }

.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 17px 18px; }
.metric .m-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; margin-bottom: 10px; }
.metric b { display: block; font-size: 24px; font-weight: 850; color: var(--ink); letter-spacing: -.5px; line-height: 1.2; }
.metric span { font-size: 11.5px; color: var(--muted); }
.metric .m-foot { font-size: 11px; color: var(--muted-2); margin-top: 5px; }

.week-chart { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; height: 120px; padding: 8px 4px 0; }
.week-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.week-col .wc-bar { width: 100%; max-width: 30px; border-radius: 7px 7px 4px 4px; background: linear-gradient(180deg, #c7d2fe, #818cf8); min-height: 4px; transition: .3s; }
.week-col .wc-bar.today { background: linear-gradient(180deg, #818cf8, #4f46e5); box-shadow: 0 4px 10px rgba(79,70,229,.3); }
.week-col span { font-size: 10.5px; color: var(--muted-2); }
.week-col b { font-size: 10px; color: var(--muted); font-weight: 600; }
.chart-caption { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted-2); margin-top: 4px; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.course-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.course-card .cc-cover { height: 116px; display: flex; align-items: center; gap: 14px; padding: 0 20px; color: #fff; position: relative; overflow: hidden; }
.course-card .cc-cover i { font-size: 40px; opacity: .92; }
.course-card .cc-cover .cc-lv { font-size: 11px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.25); padding: 4px 10px; border-radius: 999px; }
.course-card .cc-body { padding: 15px 18px 17px; flex: 1; display: flex; flex-direction: column; gap: 9px; }
.course-card h3 { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.course-card .cc-meta { font-size: 11.5px; color: var(--muted-2); display: flex; gap: 12px; }
.course-card .cc-progress { margin-top: auto; }
.course-card .cc-progress .cp-row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.course-card .cc-progress .cp-row b { color: var(--brand); }

.continue-card { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 18px; background: linear-gradient(120deg, #eef2ff, #fff); border: 1px solid var(--brand-line); margin-bottom: 22px; }
.continue-card .cn-icon { width: 54px; height: 54px; border-radius: 15px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-size: 26px; flex-shrink: 0; }
.continue-card .cn-body { flex: 1; min-width: 0; }
.continue-card .cn-body h3 { font-size: 15.5px; font-weight: 700; }
.continue-card .cn-body p { font-size: 12px; color: var(--muted); margin: 2px 0 8px; }

/* ---------- 课程播放器 ---------- */
.course-layout { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; padding: 24px 0 44px; }
.lesson-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; position: sticky; top: calc(var(--header-h) + 18px); }
.lp-head { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.lp-head h3 { font-size: 15px; font-weight: 800; color: var(--ink); }
.lp-head p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.lp-list { max-height: 55vh; overflow-y: auto; padding: 8px; }
.lesson-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 11px; text-align: left; font-size: 13px; color: #4b5563; transition: .15s; }
.lesson-item:hover { background: #f7f8fe; }
.lesson-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.lesson-item .li-num { width: 24px; height: 24px; border-radius: 8px; background: #f1f3fa; color: var(--muted); font-size: 11px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.lesson-item.done .li-num { background: var(--green-soft); color: var(--green); }
.lesson-item.active .li-num { background: var(--brand); color: #fff; }
.lesson-item .li-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson-item .li-min { font-size: 10.5px; color: var(--muted-2); }

.player { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.player-head { padding: 20px 26px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.player-head h2 { font-size: 18px; font-weight: 800; color: var(--ink); flex: 1; min-width: 200px; }
.player-head .ph-step { font-size: 11.5px; color: var(--muted); background: #f5f6fb; padding: 5px 12px; border-radius: 999px; }
.player-body { padding: 30px 34px 34px; min-height: 430px; display: flex; flex-direction: column; }
.slide-title { font-size: 25px; font-weight: 850; letter-spacing: -.6px; color: var(--ink); line-height: 1.35; }
.slide-lead { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.8; }
.slide-bullets { display: grid; gap: 10px; margin-top: 20px; }
.slide-bullets li { display: flex; gap: 10px; font-size: 13.5px; color: #374151; background: #fafbff; border: 1px solid var(--line); padding: 12px 15px; border-radius: 12px; line-height: 1.6; }
.slide-bullets li i { color: var(--brand); margin-top: 2px; flex-shrink: 0; }
.slide-example { margin-top: 20px; background: #0f172a; color: #e2e8f0; border-radius: 14px; padding: 16px 18px; font-size: 13px; line-height: 1.8; }
.slide-example b { color: #a5b4fc; display: block; font-size: 11px; letter-spacing: 1px; margin-bottom: 6px; font-weight: 700; }
.player-foot { margin-top: auto; padding-top: 26px; display: flex; align-items: center; gap: 12px; }
.player-foot .pf-hint { font-size: 12px; color: var(--muted-2); }
.player-foot .btn:last-child { margin-left: auto; }

.quiz { margin-top: 22px; }
.quiz .q-label { font-size: 11.5px; font-weight: 800; color: var(--brand); letter-spacing: 1px; }
.quiz h3 { font-size: 17px; font-weight: 750; color: var(--ink); margin: 7px 0 16px; line-height: 1.55; }
.option { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); background: #fff; border-radius: 13px; text-align: left; font-size: 13.5px; margin-bottom: 10px; transition: .16s; }
.option:hover { border-color: #c7cdea; background: #fbfbff; }
.option .op-key { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--muted); flex-shrink: 0; }
.option.selected { border-color: var(--brand); background: var(--brand-soft); }
.option.selected .op-key { background: var(--brand); border-color: var(--brand); color: #fff; }
.option.correct { border-color: var(--green); background: var(--green-soft); }
.option.correct .op-key { background: var(--green); border-color: var(--green); color: #fff; }
.option.wrong { border-color: var(--red); background: #fef2f2; }
.option.wrong .op-key { background: var(--red); border-color: var(--red); color: #fff; }
.answer-zone { display: flex; flex-wrap: wrap; gap: 8px; min-height: 54px; padding: 12px; border: 1.5px dashed #d5daea; border-radius: 13px; background: #fafbff; margin-bottom: 14px; }
.answer-chip { background: #fff; border: 1px solid var(--brand-line); color: var(--brand); padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.order-items { display: flex; flex-wrap: wrap; gap: 8px; }
.order-item-btn { padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 13px; }
.order-item-btn:hover { border-color: var(--brand); }
.order-item-btn.used { opacity: .35; pointer-events: none; }
.feedback { margin-top: 14px; border-radius: 13px; padding: 14px 16px; font-size: 13px; line-height: 1.7; }
.feedback.ok { background: var(--green-soft); border: 1px solid #b7f0d8; color: #047857; }
.feedback.no { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.feedback b { display: block; margin-bottom: 3px; }
.complete-box { margin: auto; text-align: center; max-width: 420px; padding: 20px 0; }
.complete-box .cp-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 36px; margin: 0 auto 18px; animation: pop .4s ease both; }
.complete-box h2 { font-size: 26px; font-weight: 850; letter-spacing: -.5px; }
.complete-box p { color: var(--muted); font-size: 13.5px; margin: 8px 0 20px; }
.complete-stats { display: flex; justify-content: center; gap: 26px; margin: 18px 0 24px; }
.complete-stats b { display: block; font-size: 20px; font-weight: 800; color: var(--ink); }
.complete-stats span { font-size: 11.5px; color: var(--muted); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- 学习路径 ---------- */
.assess-card { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.assess-step { margin-bottom: 28px; }
.assess-step .as-label { font-size: 12px; font-weight: 800; color: var(--brand); letter-spacing: 1px; margin-bottom: 9px; }
.assess-step h3 { font-size: 19px; font-weight: 750; color: var(--ink); margin-bottom: 14px; }
.assess-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.assess-opt { padding: 15px; border: 1.5px solid var(--line); border-radius: 13px; background: #fff; text-align: left; transition: .16s; }
.assess-opt:hover { border-color: #c7cdea; }
.assess-opt.selected { border-color: var(--brand); background: var(--brand-soft); }
.assess-opt b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 700; }
.assess-opt span { font-size: 11.5px; color: var(--muted); }
.assess-opt.selected b { color: var(--brand); }

.path-result { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), #ddd6fe); }
.timeline-item { position: relative; margin-bottom: 18px; }
.timeline-dot { position: absolute; left: -34px; top: 20px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); color: var(--brand); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.timeline-item.done .timeline-dot { background: var(--green); border-color: var(--green); color: #fff; }
.stage-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.stage-card .sc-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stage-card .sc-top h3 { font-size: 15px; font-weight: 700; color: var(--ink); }
.stage-card p { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.stage-card .sc-course { margin-top: 12px; display: flex; align-items: center; gap: 10px; background: #fafbff; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; }
.stage-card .sc-course .sc-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 15px; flex-shrink: 0; }
.stage-card .sc-course b { font-size: 12.5px; font-weight: 600; }
.stage-card .sc-course span { font-size: 10.5px; color: var(--muted-2); display: block; }
.stage-card .sc-course i.arrow { margin-left: auto; color: var(--muted-2); }
.stage-card .sc-mile { margin-top: 10px; font-size: 11.5px; color: #b45309; background: var(--amber-soft); padding: 7px 11px; border-radius: 8px; display: flex; gap: 6px; align-items: center; }
.path-aside { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 18px); }
.path-summary { padding: 22px; }
.path-summary h3 { font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.ps-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding: 6px 0; }
.ps-row b { color: var(--ink); }
.path-note { font-size: 11.5px; color: var(--muted); line-height: 1.7; background: #fafbff; border-radius: 10px; padding: 12px; margin-top: 12px; }

/* ---------- 分销中心 ---------- */
.dist-hero { border-radius: 24px; padding: 30px 34px; background: linear-gradient(130deg, #1e1b4b, #4338ca 55%, #7c3aed); color: #fff; position: relative; overflow: hidden; box-shadow: 0 20px 44px rgba(67, 56, 202, .3); }
.dist-hero::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.08); right: -70px; top: -120px; }
.dist-hero::after { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(251,191,36,.14); left: 30%; bottom: -130px; }
.dh-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.dh-top .dh-level { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 5px 13px; font-size: 12px; font-weight: 700; }
.dh-top .dh-code { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.12); padding: 6px 12px; border-radius: 10px; }
.dh-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; position: relative; z-index: 1; }
.dh-metric { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 15px; padding: 15px 17px; }
.dh-metric b { display: block; font-size: 25px; font-weight: 850; letter-spacing: -.8px; line-height: 1.3; }
.dh-metric span { font-size: 11.5px; color: rgba(255,255,255,.7); }
.dh-actions { display: flex; gap: 10px; margin-top: 22px; position: relative; z-index: 1; flex-wrap: wrap; }

.team-tree { display: grid; gap: 12px; padding: 22px; }
.tree-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fafbff; }
.tree-row.root { background: linear-gradient(120deg, #eef2ff, #fff); border-color: var(--brand-line); }
.tree-row .tr-depth { font-size: 10.5px; font-weight: 800; color: #fff; background: var(--brand); padding: 2px 8px; border-radius: 999px; }
.tree-row .tr-depth.l2 { background: #a78bfa; }
.tree-row b { font-size: 13.5px; font-weight: 600; }
.tree-row span { font-size: 11.5px; color: var(--muted-2); }
.tree-row .tr-amt { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--amber); }

.dist-grid { display: grid; grid-template-columns: 1.55fr .95fr; gap: 22px; align-items: start; }
.dist-side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 18px); }
.invite-card { padding: 20px; }
.invite-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.invite-card p { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.code-box { display: flex; align-items: center; gap: 10px; background: #fafbff; border: 1.5px dashed var(--brand-line); border-radius: 12px; padding: 11px 14px; margin-bottom: 10px; }
.code-box b { font-size: 18px; font-weight: 850; letter-spacing: 2px; color: var(--brand); }
.code-box .btn { margin-left: auto; }
.invite-link { font-size: 11px; color: var(--muted-2); word-break: break-all; line-height: 1.6; }
.rule-list { display: grid; gap: 9px; }
.rule-list li { font-size: 12.5px; color: var(--muted); line-height: 1.7; display: flex; gap: 8px; }
.rule-list li i { color: var(--brand); margin-top: 2px; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th { text-align: left; font-size: 11.5px; font-weight: 700; color: var(--muted-2); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 13px 12px; border-bottom: 1px solid #f1f3fa; color: #4b5563; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table b { color: var(--ink); }
.amt { color: #b45309; font-weight: 800; }
.status-pill { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.status-pill.pending { background: var(--amber-soft); color: #b45309; }
.status-pill.settled { background: var(--green-soft); color: #047857; }

/* ---------- 成就 ---------- */
.ach-hero { display: grid; grid-template-columns: 1.4fr .9fr; gap: 20px; margin-bottom: 22px; }
.growth-card { padding: 26px; }
.growth-card h2 { font-size: 22px; font-weight: 850; letter-spacing: -.5px; color: var(--ink); }
.growth-card .gc-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.gc-bars { display: grid; gap: 13px; margin-top: 20px; }
.gc-bar-row .gbr-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.gc-bar-row .gbr-top b { color: var(--ink); }
.badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.badge-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 16px; text-align: center; transition: .2s; position: relative; }
.badge-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.badge-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; margin: 0 auto 11px; }
.badge-card h4 { font-size: 13px; font-weight: 700; color: var(--ink); }
.badge-card p { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.5; min-height: 33px; }
.badge-card .b-reward { margin-top: 8px; font-size: 10.5px; color: #b45309; }
.badge-card.locked { opacity: .62; filter: grayscale(.5); }
.badge-card .b-lock { position: absolute; top: 10px; right: 10px; color: var(--muted-2); font-size: 13px; }
.task-item { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px dashed var(--line); }
.task-item:last-child { border-bottom: 0; }
.task-item .tk-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.task-item .tk-body { flex: 1; min-width: 0; }
.task-item .tk-body b { font-size: 13.5px; font-weight: 650; display: block; }
.task-item .tk-body span { font-size: 11.5px; color: var(--muted); }
.task-item .tk-progress { font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.rank-item:last-child { border-bottom: 0; }
.rank-no { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: #f1f3fa; color: var(--muted); flex-shrink: 0; }
.rank-no.top1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.rank-no.top2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #fff; }
.rank-no.top3 { background: linear-gradient(135deg, #fdba74, #f97316); color: #fff; }
.rank-item .rk-name { font-size: 13px; font-weight: 600; }
.rank-item .rk-amt { margin-left: auto; font-size: 12.5px; font-weight: 700; color: #b45309; }
.rank-item.me { background: var(--brand-soft); border-radius: 10px; padding: 11px 10px; border-bottom: 0; margin-top: 6px; }

/* ---------- 登录 ---------- */
.auth-page { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; }
.auth-visual { background: linear-gradient(150deg, #1e1b4b, #4338ca 55%, #7c3aed); color: #fff; padding: 60px 56px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-visual::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.07); right: -130px; top: -140px; }
.auth-visual::after { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(251,191,36,.12); left: -90px; bottom: -120px; }
.auth-visual h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 850; letter-spacing: -1px; line-height: 1.25; position: relative; z-index: 1; }
.auth-visual p { font-size: 14px; color: rgba(255,255,255,.72); margin-top: 14px; max-width: 400px; line-height: 1.8; position: relative; z-index: 1; }
.auth-perks { margin-top: 30px; display: grid; gap: 12px; position: relative; z-index: 1; }
.auth-perk { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.88); }
.auth-perk i { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 14px; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 50px 30px; }
.auth-card { width: 100%; max-width: 390px; }
.auth-card h1 { font-size: 27px; font-weight: 850; letter-spacing: -.6px; color: var(--ink); }
.auth-card .ac-sub { font-size: 13px; color: var(--muted); margin-top: 6px; }
.auth-tabs { display: flex; background: #f3f4fb; border-radius: 12px; padding: 4px; margin: 24px 0 20px; }
.auth-tab { flex: 1; padding: 8px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.auth-tab.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 12.5px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  background: #fafbff; outline: 0; font-size: 13.5px; transition: .16s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.form-field .ff-hint { font-size: 11px; color: var(--muted-2); margin-top: 5px; }
.form-field input:disabled { background: #f8fafc; color: var(--muted-2); cursor: not-allowed; }
.form-field .form-error { font-size: 11.5px; color: var(--red); margin-top: 7px; line-height: 1.5; }
.form-field .form-error[hidden] { display: none; }
.auth-extra { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin: 4px 0 18px; }
.auth-note { font-size: 11.5px; color: var(--muted-2); text-align: center; margin-top: 16px; line-height: 1.7; }
.demo-account { margin-top: 18px; background: #fafbff; border: 1px dashed var(--line); border-radius: 11px; padding: 11px 14px; font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.demo-account b { color: var(--ink); }

/* ---------- 个人中心 ---------- */
.profile-hero { border-radius: 24px; padding: 28px 30px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; gap: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.profile-hero h1 { font-size: 24px; font-weight: 850; letter-spacing: -.5px; }
.profile-hero .ph-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.profile-hero .ph-badges { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.profile-hero .ph-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-align: center; transition: .2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card b { display: block; font-size: 24px; font-weight: 850; color: var(--ink); letter-spacing: -.5px; }
.stat-card span { font-size: 11.5px; color: var(--muted); }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.menu-item { display: flex; align-items: center; gap: 13px; padding: 17px 18px; background: #fff; border: 1px solid var(--line); border-radius: 15px; transition: .18s; }
.menu-item:hover { border-color: var(--brand-line); box-shadow: var(--shadow); }
.menu-item .mi-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.menu-item .mi-body b { display: block; font-size: 13.5px; font-weight: 650; }
.menu-item .mi-body span { font-size: 11.5px; color: var(--muted); }
.menu-item .mi-arrow { margin-left: auto; color: var(--muted-2); }

/* ---------- 弹窗 / Toast ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(15, 23, 42, .48); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .2s ease both; }
.modal { background: #fff; border-radius: 22px; width: 100%; max-width: 470px; max-height: 88vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: modalIn .26s cubic-bezier(.2,.9,.3,1.1) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-head { padding: 20px 24px 14px; display: flex; align-items: center; gap: 10px; }
.modal-head h3 { font-size: 17px; font-weight: 800; color: var(--ink); flex: 1; }
.modal-close { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); font-size: 17px; }
.modal-close:hover { background: #f3f4fb; }
.modal-body { padding: 0 24px 20px; overflow-y: auto; }
.modal-foot { padding: 14px 24px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.modal-foot .btn { flex: 1; }
.pay-list { display: grid; gap: 9px; margin-top: 6px; }
.pay-opt { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 13.5px; }
.pay-opt .pay-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 15px; flex-shrink: 0; }
.pay-opt .pay-check { margin-left: auto; color: var(--brand); opacity: 0; font-size: 17px; }
.pay-opt.selected { border-color: var(--brand); background: var(--brand-soft); }
.pay-opt.selected .pay-check { opacity: 1; }
.modal-total { display: flex; justify-content: space-between; align-items: baseline; background: #fff7ed; border: 1px solid #ffe7c7; border-radius: 12px; padding: 12px 15px; margin-top: 14px; font-size: 12.5px; color: #92400e; }
.modal-total b { font-size: 21px; font-weight: 850; color: #ef4444; }

.toast-wrap { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: rgba(15, 23, 42, .92); color: #fff; font-size: 13px; padding: 11px 18px;
  border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.25); display: flex; align-items: center; gap: 8px;
  animation: toastIn .25s ease both; max-width: 88vw;
}
.toast i { color: #6ee7b7; font-size: 15px; }
.toast.error i { color: #fca5a5; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 空状态 / 页脚 ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .em-icon { width: 70px; height: 70px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 30px; color: var(--muted-2); margin: 0 auto 16px; }
.empty h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.empty p { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }

.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 30px; padding: 36px 0 30px; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand { max-width: 330px; }
.footer-brand p { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.8; }
.footer-links { display: flex; gap: 54px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.footer-col a { display: block; font-size: 12px; color: var(--muted); padding: 3px 0; }
.footer-col a:hover { color: var(--brand); }
.copyright { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted-2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.text-muted { color: var(--muted); }
.text-brand { color: var(--brand); }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.ml-auto { margin-left: auto; }
.w-full { width: 100%; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .main-nav { gap: 0; }
  .nav-link { padding: 8px 10px; font-size: 13px; }
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .grid-goods { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .hero-inner { gap: 26px; }
  .hero-art { transform: scale(.9); transform-origin: center; }
  .ladder-card { grid-template-columns: repeat(3, 1fr); }
  .course-layout { grid-template-columns: 280px 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .main-nav { display: none; }
  .header-user .hu-name, .header-user .hu-role { display: none; }
  .container { padding: 0 18px; }
  .hero-inner { grid-template-columns: 1fr; padding: 40px 0 44px; }
  .hero-art { display: none; }
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .grid-goods { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .split-banner { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; gap: 24px; }
  .cover-xl { min-height: 250px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .learn-hero { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .course-layout { grid-template-columns: 1fr; }
  .lesson-panel { position: static; }
  .lp-list { max-height: 240px; }
  .path-result { grid-template-columns: 1fr; }
  .path-aside { position: static; }
  .dist-grid { grid-template-columns: 1fr; }
  .dist-side { position: static; }
  .dist-hero { padding: 24px; }
  .dh-grid { grid-template-columns: repeat(2, 1fr); }
  .ach-hero { grid-template-columns: 1fr; }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-wrap { padding: 34px 20px 50px; }
  .profile-hero { flex-wrap: wrap; }
  .profile-hero .ph-actions { margin-left: 0; width: 100%; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .menu-grid { grid-template-columns: 1fr; }
  .assess-card { padding: 24px; }
  .assess-options { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 14.5px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .container { padding: 0 14px; }
  .header-inner { gap: 10px; }
  .site-header { border-bottom-color: #eef0f7; }
  .logo-mark { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; }
  .logo-text { font-size: 15px; }
  .logo-text small { font-size: 8.5px; letter-spacing: 1px; }
  .header-actions { gap: 2px; }
  .icon-btn { width: 34px; height: 34px; font-size: 18px; }
  .header-user { padding: 0; }
  .header-user .avatar { --s: 32px; }

  .section { padding: 30px 0; }
  .section-head { margin-bottom: 16px; }
  .section-title { font-size: 19px; }
  .section-sub { font-size: 12px; }
  .page-head { padding: 22px 0 16px; }
  .page-head h1 { font-size: 22px; }
  .page-head p { font-size: 12.5px; }

  .hero-inner { padding: 30px 0 34px; }
  .hero-title { font-size: 30px; letter-spacing: -1px; margin: 14px 0 12px; }
  .hero-sub { font-size: 13.5px; }
  .hero-actions .btn { flex: 1; }
  .hero-stats { gap: 20px; margin-top: 26px; }
  .hero-stats .stat b { font-size: 19px; }
  .hero-stats .stat span { font-size: 11px; }

  .ladder-card { grid-template-columns: 1fr; padding: 16px; gap: 10px; }
  .ladder-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 13px 14px; }
  .ladder-item .lv-head { margin: 0; }
  .ladder-item .lv-code { display: none; }
  .ladder-item h4 { font-size: 13.5px; }
  .ladder-item p { display: none; }
  .ladder-item .lv-xp { margin: 0; font-size: 10.5px; text-align: right; }
  .ladder-item.current::after { position: static; grid-column: 3; font-size: 9px; justify-self: end; }

  .grid-products { gap: 10px; }
  .grid-goods { gap: 10px; }
  .product-card { border-radius: 14px; }
  .p-cover { height: 112px; }
  .p-cover .p-icon { font-size: 38px; }
  .p-badge { font-size: 9.5px; padding: 2px 7px; top: 8px; left: 8px; }
  .p-level { right: 8px; bottom: 8px; font-size: 9.5px; }
  .p-body { padding: 10px 11px 12px; }
  .p-title { font-size: 13px; min-height: 38px; }
  .p-sub { font-size: 10.5px; }
  .price { font-size: 16.5px; }
  .price-old { font-size: 10px; }
  .sales { display: none; }
  .p-tags { display: none; }

  .split-main { padding: 24px 20px; }
  .split-main h3 { font-size: 21px; }
  .split-aside { padding: 22px; }

  .filter-bar { gap: 8px; }
  .search-box { margin-left: 0; width: 100%; min-width: 0; }
  .chip { padding: 7px 13px; font-size: 12px; }

  .detail-info h1 { font-size: 22px; }
  .detail-price-box .price { font-size: 26px; }
  .detail-price-box .dp-note { margin-left: 0; width: 100%; }
  .buy-bar { gap: 8px; position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); padding: 10px 0; margin: 0 -14px; padding-left: 14px; padding-right: 14px; border-top: 1px solid var(--line); }
  .buy-bar .btn { flex: 1; }
  .qty { display: none; }
  .commission-hint { font-size: 11.5px; }

  .cart-item { padding: 10px; gap: 10px; }
  .cart-item .ci-cover { width: 58px; height: 58px; font-size: 22px; }
  .cart-bar .cb-total b { font-size: 19px; }
  .cart-bar .btn { padding: 10px 18px; }

  .order-card { padding: 14px; border-radius: 14px; }
  .order-item .oi-cover { width: 44px; height: 44px; font-size: 18px; }

  .learn-hero { gap: 14px; }
  .level-card { padding: 20px; border-radius: 18px; }
  .level-card .lc-top { gap: 13px; }
  .ring { width: 76px; height: 76px; }
  .ring-inner { width: 60px; height: 60px; }
  .ring-inner b { font-size: 16px; }
  .level-card h2 { font-size: 19px; }
  .level-card .lc-sub { font-size: 11px; }
  .metric-grid { gap: 9px; }
  .metric { padding: 13px; border-radius: 13px; }
  .metric b { font-size: 19px; }
  .metric .m-icon { width: 29px; height: 29px; font-size: 15px; margin-bottom: 7px; }
  .metric span { font-size: 10.5px; }
  .metric .m-foot { font-size: 10px; }

  .continue-card { padding: 14px; gap: 12px; }
  .continue-card .cn-icon { width: 44px; height: 44px; font-size: 21px; border-radius: 12px; }
  .continue-card .cn-body h3 { font-size: 13.5px; }
  .continue-card .btn { padding: 8px 13px; font-size: 12px; }

  .course-grid { grid-template-columns: 1fr; gap: 12px; }
  .course-card .cc-cover { height: 96px; }

  .course-layout { gap: 14px; padding-top: 14px; }
  .player-head { padding: 15px 17px; }
  .player-head h2 { font-size: 15.5px; min-width: 0; }
  .player-head .ph-step { display: none; }
  .player-body { padding: 20px 17px 22px; min-height: 380px; }
  .slide-title { font-size: 20px; }
  .slide-lead { font-size: 13px; }
  .slide-bullets li { font-size: 12.5px; padding: 11px 12px; }
  .player-foot { flex-wrap: wrap; }
  .player-foot .pf-hint { display: none; }
  .player-foot .btn { width: 100%; }
  .player-foot .btn:last-child { margin-left: 0; }
  .option { padding: 12px 13px; font-size: 12.5px; }
  .quiz h3 { font-size: 15px; }

  .assess-card { padding: 20px; border-radius: 18px; }
  .assess-opt { padding: 12px; }
  .path-aside { gap: 10px; }
  .timeline { padding-left: 28px; }
  .timeline::before { left: 9px; }
  .timeline-dot { left: -28px; width: 20px; height: 20px; font-size: 9px; top: 18px; }
  .stage-card { padding: 14px; }
  .stage-card .sc-top h3 { font-size: 14px; }

  .dist-hero { padding: 20px; border-radius: 18px; }
  .dh-top .dh-code { margin-left: 0; width: 100%; justify-content: center; }
  .dh-grid { gap: 9px; margin-top: 16px; }
  .dh-metric { padding: 11px 13px; border-radius: 12px; }
  .dh-metric b { font-size: 19px; }
  .dh-metric span { font-size: 10px; }
  .dh-actions .btn { flex: 1; }

  .team-tree { padding: 14px; gap: 9px; }
  .tree-row { padding: 10px 12px; gap: 8px; }
  .tree-row b { font-size: 12.5px; }
  .tree-row .tr-amt { font-size: 11.5px; }

  .growth-card { padding: 20px; }
  .badge-grid { gap: 9px; }
  .badge-card { padding: 15px 10px; }
  .badge-icon { width: 46px; height: 46px; font-size: 21px; }
  .badge-card h4 { font-size: 12px; }
  .badge-card p { font-size: 10px; min-height: 30px; }

  .stat-cards { gap: 9px; }
  .stat-card { padding: 13px; }
  .stat-card b { font-size: 19px; }
  .profile-hero { padding: 18px; border-radius: 18px; }
  .profile-hero h1 { font-size: 20px; }

  .modal { border-radius: 18px; max-height: 92vh; }
  .modal-head { padding: 16px 18px 10px; }
  .modal-body { padding: 0 18px 16px; }
  .modal-foot { padding: 12px 18px 16px; }
  .toast-wrap { bottom: calc(76px + env(safe-area-inset-bottom)); }

  .footer-inner { gap: 22px; }
  .footer-links { gap: 28px; }
  .site-footer { padding: 26px 0 20px; }

  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid #eef0f7; padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
  }
  .bn-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 4px; color: #94a3b8; font-size: 10px; font-weight: 500; position: relative; }
  .bn-item i { font-size: 21px; line-height: 1; }
  .bn-item.active { color: var(--brand); font-weight: 700; }
  .bn-item.active::before { content: ''; position: absolute; top: 0; width: 22px; height: 3px; border-radius: 0 0 4px 4px; background: var(--brand); }
  .bn-item .bn-dot { position: absolute; top: 5px; right: 50%; transform: translateX(18px); min-width: 15px; height: 15px; background: var(--red); color: #fff; border-radius: 999px; font-size: 9px; display: grid; place-items: center; padding: 0 3px; }
}
