/* =========================================================
   创智学堂 · Apple-inspired visual layer
   Loaded after style.css; business logic is untouched.
   ========================================================= */

:root {
  --primary: #0071e3;
  --primary-dark: #0066cc;
  --success: #248a3d;
  --danger: #d70015;
  --warning: #b25000;
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --border: rgba(0, 0, 0, .09);
  --radius: 20px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .035), 0 8px 24px rgba(0, 0, 0, .045);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .04), 0 18px 48px rgba(0, 0, 0, .08);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, .16);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: radial-gradient(1200px 500px at 50% -260px, rgba(0, 113, 227, .10), transparent 68%), var(--bg);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(0, 113, 227, .18); }
a { color: var(--primary); transition: color .2s var(--ease), opacity .2s var(--ease); }
img { display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.03em; }
button, input, select, textarea { font-family: var(--font-sans); }
code { padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .055); font-size: .92em; }
.container { max-width: 1180px; padding-inline: 24px; }
.main-container { min-height: calc(100vh - 220px); padding-top: 30px; padding-bottom: 72px; animation: page-in .55s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Navigation ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 251, 253, .78);
  border-bottom: 1px solid rgba(0, 0, 0, .065);
  box-shadow: none;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.topbar.scrolled { background: rgba(251, 251, 253, .92); box-shadow: 0 1px 18px rgba(0, 0, 0, .055); }
.topbar-inner { height: 56px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--text); font-size: 17px; font-weight: 650; letter-spacing: -.035em; }
.brand:hover { color: var(--text); opacity: .78; }
.brand-logo { width: 30px; height: 30px; display: grid; place-items: center; overflow: hidden; border-radius: 9px; background: linear-gradient(145deg, #2589f6 0%, #0071e3 52%, #0058ce 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 5px 14px rgba(0,113,227,.22); }
.brand-logo svg { width: 19px; height: 19px; }
.brand-name { white-space: nowrap; }
.main-nav { gap: 2px; align-items: center; }
.main-nav a { padding: 8px 13px; border-radius: 999px; color: #424245; font-size: 13px; font-weight: 500; letter-spacing: -.01em; }
.main-nav a:hover { color: var(--text); background: rgba(0,0,0,.045); }
.main-nav a.active { color: var(--text); background: rgba(0,0,0,.065); }
.nav-right { gap: 8px; }
.points-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 5px 10px; border: 1px solid rgba(0,0,0,.065); border-radius: 999px; background: rgba(255,255,255,.68); color: #424245; font-size: 12px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.points-chip strong { color: var(--text); font-weight: 650; }
.chip-label { color: var(--muted); }
.user-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 3px 9px 3px 4px; border-radius: 999px; color: var(--text); font-size: 13px; font-weight: 550; cursor: pointer; }
.user-chip:hover { background: rgba(0,0,0,.045); color: var(--text); }
.user-avatar { width: 27px; height: 27px; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; border-radius: 50%; background: linear-gradient(145deg, #e8f1ff, #d6e8ff); color: #0066cc; font-size: 12px; font-weight: 700; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chevron { width: 6px; height: 6px; margin: -3px 2px 0 1px; border-right: 1.5px solid #86868b; border-bottom: 1.5px solid #86868b; transform: rotate(45deg); }
.dropdown-menu { top: calc(100% + 10px); min-width: 190px; padding: 7px; border: 1px solid rgba(0,0,0,.075); border-radius: 16px; background: rgba(255,255,255,.88); box-shadow: 0 18px 55px rgba(0,0,0,.14); -webkit-backdrop-filter: saturate(170%) blur(22px); backdrop-filter: saturate(170%) blur(22px); animation: menu-in .18s var(--ease) both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-5px) scale(.985); } to { opacity: 1; transform: none; } }
.dropdown-menu a { padding: 9px 11px; border-radius: 9px; color: #424245; font-size: 13px; }
.dropdown-menu a:hover { background: rgba(0,0,0,.045); color: var(--text); }
.dropdown-menu a:last-child { margin-top: 5px; border-top: 1px solid var(--border); color: var(--danger); }
.nav-toggle { width: 36px; height: 36px; display: none; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(0,0,0,.05); color: var(--text); font-size: 18px; cursor: pointer; }
.nav-toggle:active { transform: scale(.94); }

/* ---------- Buttons ---------- */
.btn { min-height: 40px; padding: 9px 19px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 550; letter-spacing: -.012em; transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.975); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.04), 0 7px 18px rgba(0,113,227,.18); }
.btn-primary:hover { background: #0077ed; color: #fff; box-shadow: 0 8px 22px rgba(0,113,227,.23); }
.btn-outline { border-color: rgba(0,113,227,.32); background: rgba(255,255,255,.64); color: var(--primary); }
.btn-outline:hover { border-color: rgba(0,113,227,.5); background: rgba(0,113,227,.06); color: var(--primary); }
.btn-success { background: #34c759; color: #fff; box-shadow: 0 6px 16px rgba(52,199,89,.17); }
.btn-success:hover { background: #2fb652; color: #fff; }
.btn-danger { border-color: rgba(215,0,21,.14); background: rgba(255,59,48,.075); color: var(--danger); }
.btn-danger:hover { background: rgba(255,59,48,.12); color: var(--danger); }
.btn-warning { border-color: rgba(255,149,0,.18); background: rgba(255,149,0,.08); color: var(--warning); }
.btn-warning:hover { background: rgba(255,149,0,.13); color: var(--warning); }
.btn-sm { min-height: 32px; padding: 6px 13px; font-size: 12px; }
.btn-block { display: flex; justify-content: center; align-items: center; width: 100%; }
.btn-light { background: #fff; color: #1d1d1f; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.btn-light:hover { background: #f5f5f7; color: #1d1d1f; }
.btn-ghost { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-ghost:hover { background: rgba(255,255,255,.17); color: #fff; }
.btn[disabled] { opacity: .48; cursor: not-allowed; transform: none; }
.btn-arrow { display: inline-block; margin-left: 6px; transition: transform .2s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
/* ---------- Typography & utility ---------- */
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }
.break { white-space: normal; }
.section-title { margin: 44px 0 18px; color: var(--text); font-family: var(--font-display); font-size: 27px; font-weight: 680; letter-spacing: -.045em; line-height: 1.15; }
.section-title > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.section-title .small { color: var(--primary); font-size: 13px; font-weight: 500; letter-spacing: -.01em; }
.section-title .small:hover { color: var(--primary-dark); }

/* ---------- Alerts ---------- */
.alert { margin-bottom: 18px; padding: 13px 44px 13px 15px; border: 1px solid transparent; border-radius: 14px; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.035); }
.alert-success { border-color: rgba(36,138,61,.14); background: rgba(52,199,89,.09); color: #1f6f34; }
.alert-danger { border-color: rgba(215,0,21,.13); background: rgba(255,59,48,.075); color: #a50012; }
.alert-warning { border-color: rgba(178,80,0,.14); background: rgba(255,149,0,.085); color: #8d4000; }
.alert-info { border-color: rgba(0,113,227,.13); background: rgba(0,113,227,.07); color: #0058b0; }
.alert .close { top: 10px; right: 13px; width: 24px; height: 24px; border-radius: 50%; line-height: 1; opacity: .6; }
.alert .close:hover { background: rgba(0,0,0,.05); opacity: 1; }

/* ---------- Forms ---------- */
label { margin-bottom: 15px; color: #3a3a3c; font-size: 13px; font-weight: 550; }
label span { margin-bottom: 7px; color: #3a3a3c; }
input, select, textarea { min-height: 44px; padding: 10px 13px; border: 1px solid #d2d2d7; border-radius: 11px; background: rgba(255,255,255,.9); color: var(--text); font-size: 14px; box-shadow: inset 0 1px 1px rgba(0,0,0,.015); transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease); }
input::placeholder, textarea::placeholder { color: #a1a1a6; }
input:hover, select:hover, textarea:hover { border-color: #b8b8bd; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3.5px rgba(0,113,227,.14); }
input[type="checkbox"], input[type="radio"] { min-height: 0; accent-color: var(--primary); }
textarea { min-height: 116px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236e6e73' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
input[disabled], select[disabled], textarea[disabled] { background: #f5f5f7; color: #86868b; cursor: not-allowed; }
.form-row, .form-row-3 { gap: 14px; }
fieldset { margin-bottom: 18px; padding: 22px; border: 1px solid rgba(0,0,0,.06); border-radius: 18px; background: rgba(255,255,255,.72); }
legend { padding: 0 8px; color: var(--text); font-family: var(--font-display); font-size: 16px; font-weight: 650; letter-spacing: -.025em; }

/* ---------- Cards ---------- */
.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { overflow: hidden; border: 1px solid rgba(0,0,0,.055); border-radius: 22px; background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); color: var(--text); transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease); }
.card:hover { color: var(--text); transform: translateY(-4px); border-color: rgba(0,0,0,.075); box-shadow: var(--shadow-md); }
.card-cover { aspect-ratio: 16 / 10; background: radial-gradient(90% 110% at 15% 5%, rgba(255,255,255,.22), transparent 40%), linear-gradient(145deg, #2c2c2e, #101012); font-size: 36px; }
.card-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.17)); }
.card-cover img { transition: transform .65s var(--ease); }
.card:hover .card-cover img { transform: scale(1.035); }
.play-glyph { position: absolute; z-index: 2; left: 14px; bottom: 13px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(20,20,22,.38); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.play-glyph svg { width: 12px; height: 12px; margin-left: 2px; }
.card-body { gap: 8px; padding: 16px 17px 17px; }
.card-eyebrow { color: var(--primary); font-size: 11px; font-weight: 650; letter-spacing: .01em; text-transform: uppercase; }
.card-title { min-height: 44px; color: var(--text); font-size: 16px; font-weight: 620; letter-spacing: -.022em; line-height: 1.38; }
.card-meta { color: var(--muted); font-size: 11.5px; gap: 10px; }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.badge { padding: 4px 9px; border: 1px solid transparent; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: -.005em; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.badge-primary { border-color: rgba(0,113,227,.1); background: rgba(0,113,227,.09); color: #0066cc; }
.badge-success { border-color: rgba(36,138,61,.1); background: rgba(52,199,89,.1); color: #1f7a36; }
.badge-danger { border-color: rgba(215,0,21,.1); background: rgba(255,59,48,.09); color: #b00013; }
.badge-warning { border-color: rgba(178,80,0,.1); background: rgba(255,149,0,.11); color: #8b4302; }
.badge-muted { border-color: rgba(0,0,0,.05); background: rgba(0,0,0,.055); color: #6e6e73; }

/* ---------- Search & category capsules ---------- */
.search-bar { align-items: center; gap: 10px; margin-bottom: 20px; padding: 7px; border: 1px solid rgba(0,0,0,.06); border-radius: 17px; background: rgba(255,255,255,.82); box-shadow: var(--shadow-sm); }
.search-bar input { flex: 1; min-height: 42px; border: 0; background: transparent; box-shadow: none; }
.search-bar input:focus { background: transparent; box-shadow: none; }
.search-bar .btn { flex-shrink: 0; }
.search-bar select { width: auto; min-width: 130px; border-color: transparent; background-color: rgba(0,0,0,.035); box-shadow: none; }
.category-pills { gap: 9px; margin-bottom: 8px; }
.category-pills a { padding: 8px 15px; border: 1px solid rgba(0,0,0,.075); background: rgba(255,255,255,.76); color: #424245; font-size: 13px; font-weight: 500; transition: .2s var(--ease); }
.category-pills a:hover { border-color: rgba(0,0,0,.12); background: #fff; color: var(--text); transform: translateY(-1px); }
.category-pills a.active { border-color: var(--text); background: var(--text); color: #fff; box-shadow: 0 5px 14px rgba(0,0,0,.12); }
.category-groups { padding: 13px 18px; border: 1px solid rgba(0,0,0,.055); border-radius: 20px; background: rgba(255,255,255,.72); box-shadow: var(--shadow-sm); }
.category-groups .cat-group { gap: 8px 12px; padding: 11px 0; border-top: 1px solid rgba(0,0,0,.055); }
.category-groups .cat-group:first-of-type { border-top: 0; }
.category-groups .cat-parent { padding: 5px 0; border: 0; background: transparent; color: var(--text); font-weight: 620; }
.category-groups .cat-parent:hover { background: transparent; color: var(--primary); transform: none; }
.category-groups .cat-parent.active { padding: 5px 12px; border: 0; background: var(--text); color: #fff; }
.category-groups .cat-child { padding: 5px 11px; border-color: transparent; background: rgba(0,0,0,.045); color: #515154; font-size: 12px; }
.category-groups .cat-child:hover { background: rgba(0,0,0,.07); color: var(--text); }
.category-groups .cat-child.active { background: var(--primary); color: #fff; }
.category-groups .cat-all { align-self: flex-start; margin-bottom: 2px; }
/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); align-items: center; min-height: 520px; overflow: hidden; padding: 64px 62px; border-radius: 34px; background: radial-gradient(80% 100% at 80% 0%, rgba(0,113,227,.38), transparent 54%), radial-gradient(70% 90% at 10% 100%, rgba(109,76,255,.18), transparent 56%), linear-gradient(135deg, #111113 0%, #050506 72%); color: #f5f5f7; box-shadow: 0 30px 100px rgba(0,0,0,.17); }
.hero::before { content: ""; position: absolute; z-index: -1; inset: -30% -10% auto auto; width: 620px; height: 620px; border-radius: 50%; background: conic-gradient(from 210deg, rgba(0,113,227,.55), rgba(139,92,246,.28), rgba(42,219,255,.2), rgba(0,113,227,.55)); filter: blur(95px); opacity: .58; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 78%); }
.hero-copy { position: relative; z-index: 2; max-width: 600px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 6px 11px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.76); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hero-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #64d2ff; box-shadow: 0 0 10px rgba(100,210,255,.8); }
.hero h1 { margin: 0; color: #f5f5f7; font-size: clamp(42px, 4.7vw, 64px); font-weight: 680; letter-spacing: -.06em; line-height: 1.03; }
.hero h1 .gradient-text { background: linear-gradient(90deg, #8bd7ff 0%, #5e9dff 55%, #b19cff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 510px; margin-top: 22px; color: rgba(245,245,247,.68); font-size: 17px; line-height: 1.68; letter-spacing: -.018em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.hero-actions .btn { min-height: 44px; padding-inline: 22px; }
.hero-proof { display: flex; align-items: center; gap: 10px; margin-top: 30px; color: rgba(255,255,255,.48); font-size: 12px; }
.hero-avatars { display: flex; }
.hero-avatars span { width: 25px; height: 25px; display: grid; place-items: center; margin-left: -6px; border: 2px solid #111113; border-radius: 50%; background: linear-gradient(145deg, #7dbbff, #3c83e8); color: #fff; font-size: 9px; font-weight: 700; }
.hero-avatars span:first-child { margin-left: 0; background: linear-gradient(145deg, #ffb48a, #e68053); }
.hero-avatars span:last-child { background: linear-gradient(145deg, #c8a8ff, #865ee8); }
.hero-visual { position: relative; z-index: 1; display: flex; justify-content: flex-end; align-items: center; min-height: 390px; }
.showcase-window { position: relative; width: min(100%, 390px); padding: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 27px; background: linear-gradient(150deg, rgba(255,255,255,.13), rgba(255,255,255,.055)); box-shadow: 0 38px 90px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.19); -webkit-backdrop-filter: blur(30px) saturate(140%); backdrop-filter: blur(30px) saturate(140%); transform: perspective(1100px) rotateY(-7deg) rotateX(3deg); animation: showcase-float 7s ease-in-out infinite; }
@keyframes showcase-float { 0%,100% { transform: perspective(1100px) rotateY(-7deg) rotateX(3deg) translateY(0); } 50% { transform: perspective(1100px) rotateY(-5deg) rotateX(2deg) translateY(-9px); } }
.showcase-toolbar { display: flex; align-items: center; gap: 5px; padding: 1px 2px 15px; }
.showcase-toolbar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.24); }
.showcase-toolbar span { margin-left: auto; color: rgba(255,255,255,.4); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.showcase-main { position: relative; min-height: 230px; overflow: hidden; padding: 22px; border-radius: 20px; background: linear-gradient(145deg, rgba(0,113,227,.9), rgba(63,52,183,.88)); }
.showcase-main::after { content: ""; position: absolute; width: 180px; height: 180px; right: -55px; bottom: -75px; border-radius: 50%; background: rgba(255,255,255,.12); filter: blur(4px); }
.showcase-kicker { color: rgba(255,255,255,.67); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.showcase-title { max-width: 220px; margin-top: 10px; color: #fff; font-family: var(--font-display); font-size: 25px; font-weight: 650; letter-spacing: -.045em; line-height: 1.15; }
.showcase-sub { margin-top: 7px; color: rgba(255,255,255,.62); font-size: 11px; }
.showcase-progress { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 21px; }
.showcase-progress-row { display: flex; justify-content: space-between; color: rgba(255,255,255,.72); font-size: 10px; }
.showcase-progress-track { height: 4px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.22); }
.showcase-progress-track span { display: block; width: 68%; height: 100%; border-radius: inherit; background: #fff; box-shadow: 0 0 15px rgba(255,255,255,.55); }
.showcase-lesson { display: flex; align-items: center; gap: 11px; margin-top: 11px; padding: 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.075); }
.showcase-lesson-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.13); color: #fff; }
.showcase-lesson strong { display: block; color: #fff; font-size: 11px; font-weight: 580; }
.showcase-lesson small { display: block; margin-top: 2px; color: rgba(255,255,255,.45); font-size: 9px; }
.showcase-lesson .mini-btn { margin-left: auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9); color: #1d1d1f; font-size: 12px; }
.floating-panel { position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 15px; background: rgba(29,29,31,.68); color: rgba(255,255,255,.8); font-size: 10px; box-shadow: 0 18px 42px rgba(0,0,0,.32); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.floating-panel-top { top: 34px; left: -16px; animation: floating-panel 6s ease-in-out infinite; }
.floating-panel-bottom { right: 6px; bottom: 15px; animation: floating-panel 7s ease-in-out infinite reverse; }
@keyframes floating-panel { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.floating-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: rgba(0,113,227,.22); color: #64b5ff; }
.floating-panel strong { color: #fff; font-weight: 600; }

.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0 2px; }
.feature-item { display: flex; align-items: flex-start; gap: 13px; padding: 20px; border: 1px solid rgba(0,0,0,.05); border-radius: 20px; background: rgba(255,255,255,.66); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.feature-icon { width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0; border-radius: 12px; background: rgba(0,113,227,.08); color: var(--primary); }
.feature-icon svg { width: 18px; height: 18px; }
.feature-item strong { display: block; color: var(--text); font-size: 13px; font-weight: 620; letter-spacing: -.015em; }
.feature-item p { margin-top: 3px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }

/* ---------- Auth ---------- */
.page-auth { background: radial-gradient(900px 500px at 50% -160px, rgba(0,113,227,.13), transparent 65%), radial-gradient(700px 360px at 85% 20%, rgba(175,82,222,.08), transparent 65%), #f5f5f7; }
.page-auth .main-container { min-height: calc(100vh - 150px); padding-top: 55px; }
.auth-box { position: relative; width: min(100%, 430px); max-width: none; margin: 0 auto; overflow: hidden; padding: 38px; border: 1px solid rgba(0,0,0,.06); border-radius: 28px; background: rgba(255,255,255,.84); box-shadow: 0 30px 80px rgba(0,0,0,.09), inset 0 1px 0 rgba(255,255,255,.9); -webkit-backdrop-filter: blur(28px) saturate(130%); backdrop-filter: blur(28px) saturate(130%); }
.auth-box::before { content: ""; position: absolute; top: -110px; right: -95px; width: 230px; height: 230px; border-radius: 50%; background: linear-gradient(135deg, rgba(0,113,227,.17), rgba(175,82,222,.09)); filter: blur(3px); pointer-events: none; }
.auth-box h2 { position: relative; margin-bottom: 7px; text-align: left; font-size: 30px; font-weight: 680; letter-spacing: -.045em; line-height: 1.16; }
.auth-kicker { position: relative; margin-bottom: 10px; color: var(--primary); font-size: 11px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.auth-subtitle { position: relative; margin-bottom: 25px; color: var(--muted); font-size: 13px; }
.auth-box form { position: relative; }
.auth-box .btn-block { min-height: 46px; margin-top: 4px; }
.auth-box > p { position: relative; font-size: 12px; }
.auth-box > p a { font-weight: 550; }
/* ---------- Video detail ---------- */
.video-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; }
.player { border-radius: 24px; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.video-info { margin-top: 20px; padding: 25px 26px; border: 1px solid rgba(0,0,0,.055); border-radius: 22px; background: rgba(255,255,255,.8); box-shadow: var(--shadow-sm); }
.video-info h1 { margin-bottom: 9px; font-size: 26px; font-weight: 670; letter-spacing: -.04em; line-height: 1.25; }
.info-meta { gap: 8px 15px; color: var(--muted); font-size: 12px; }
.desc { color: #515154; font-size: 13.5px; line-height: 1.75; }
.side-card { padding: 20px; border: 1px solid rgba(0,0,0,.055); border-radius: 20px; background: rgba(255,255,255,.8); box-shadow: var(--shadow-sm); }
.side-card h3 { margin-bottom: 13px; font-size: 15px; font-weight: 630; letter-spacing: -.025em; }
.comment-item { gap: 11px; padding: 14px 0; border-bottom-color: rgba(0,0,0,.06); }
.avatar { width: 38px; height: 38px; background: linear-gradient(145deg, #e8f1ff, #d7e9ff); color: #0066cc; font-size: 13px; }
.comment-head { font-size: 11.5px; }
.comment-content { margin-top: 5px; color: #3a3a3c; font-size: 13px; line-height: 1.65; }
.link-del { color: var(--danger); text-decoration: none; }
.link-del:hover { text-decoration: underline; }

/* ---------- Progress ---------- */
.progress { height: 5px; background: rgba(0,0,0,.075); }
.progress .bar, .upload-progress .bar { background: linear-gradient(90deg, #0a84ff, #5ac8fa); }
.progress-wrap { gap: 9px; color: var(--muted); font-size: 11px; }
.upload-progress { height: 6px; background: rgba(0,0,0,.07); }

/* ---------- Stats ---------- */
.stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat-card { padding: 20px; border: 1px solid rgba(0,0,0,.055); border-radius: 20px; background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(250,250,252,.82)); box-shadow: var(--shadow-sm); }
.stat-card .num { color: var(--text); font-family: var(--font-display); font-size: 29px; font-weight: 680; letter-spacing: -.05em; line-height: 1.15; }
.stat-card .lab { margin-top: 6px; color: var(--muted); font-size: 11.5px; }
a.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
a.stat-card:hover .lab { color: var(--primary); }

/* ---------- Tables & pagination ---------- */
.table-wrap { border: 1px solid rgba(0,0,0,.055); border-radius: 19px; background: rgba(255,255,255,.86); box-shadow: var(--shadow-sm); }
table { font-size: 13px; }
th, td { padding: 13px 16px; border-bottom-color: rgba(0,0,0,.055); }
th { background: rgba(248,248,250,.8); color: #6e6e73; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
td { color: #3a3a3c; }
tr:hover td { background: rgba(0,113,227,.022); }
tr:last-child td { border-bottom: 0; }
.pagination { gap: 7px; margin-top: 26px; }
.pagination a, .pagination span { min-width: 35px; padding: 7px 11px; border: 1px solid rgba(0,0,0,.07); border-radius: 10px; background: rgba(255,255,255,.8); color: #515154; font-size: 12px; text-align: center; }
.pagination a:hover { border-color: rgba(0,113,227,.3); background: #fff; color: var(--primary); }
.pagination .current { border-color: var(--text); background: var(--text); color: #fff; box-shadow: 0 5px 12px rgba(0,0,0,.1); }

/* ---------- Tabs ---------- */
.tabs { gap: 2px; padding: 4px; border: 1px solid rgba(0,0,0,.05); border-radius: 14px; background: rgba(0,0,0,.045); box-shadow: none; }
.tabs .tab { padding: 8px 17px; border-radius: 10px; color: #515154; font-size: 13px; font-weight: 550; }
.tabs .tab:hover { background: rgba(255,255,255,.5); color: var(--text); }
.tabs .tab.active { background: #fff; color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.09); }
.tabs .tab.active:hover { background: #fff; color: var(--text); }

/* ---------- Upload, modal, goods ---------- */
.drop-zone { padding: 28px 18px; border: 1.5px dashed #c7c7cc; border-radius: 18px; background: rgba(248,248,250,.75); }
.drop-zone:hover, .drop-zone.over { border-color: var(--primary); background: rgba(0,113,227,.045); }
.drop-zone strong { margin-bottom: 5px; font-size: 14px; }
.modal-mask { background: rgba(0,0,0,.34); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.modal-box { max-width: 480px; padding: 26px; border: 1px solid rgba(255,255,255,.8); border-radius: 24px; background: rgba(255,255,255,.9); box-shadow: var(--shadow-lg); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); }
.modal-box h3 { font-size: 19px; }
.goods-detail { grid-template-columns: 390px 1fr; gap: 28px; padding: 28px; border: 1px solid rgba(0,0,0,.055); border-radius: 26px; background: rgba(255,255,255,.82); box-shadow: var(--shadow-md); }
.goods-detail-cover { border-radius: 20px; background: linear-gradient(145deg, #f1f2f6, #e8ebf2); }
.goods-detail-info h1 { font-size: 29px; font-weight: 680; }
.goods-points { color: var(--warning); font-family: var(--font-display); font-size: 28px; letter-spacing: -.04em; }
.goods-meta { color: var(--muted); font-size: 12px; }
.buy-box { padding: 19px; border: 1px solid rgba(0,0,0,.055); border-radius: 16px; background: rgba(248,248,250,.8); }

/* ---------- Wallet / recharge ---------- */
.balance-hero, .recharge-hero { padding: 28px; border: 1px solid rgba(0,113,227,.09); border-radius: 24px; background: radial-gradient(500px 180px at 95% 0%, rgba(100,210,255,.18), transparent 65%), linear-gradient(145deg, rgba(239,247,255,.92), rgba(248,250,255,.8)); box-shadow: var(--shadow-sm); }
.balance-amount, .recharge-balance { color: var(--text); font-family: var(--font-display); font-size: 39px; font-weight: 700; letter-spacing: -.055em; }
.recharge-form { padding: 24px; border: 1px solid rgba(0,0,0,.055); border-radius: 22px; background: rgba(255,255,255,.82); box-shadow: var(--shadow-sm); }
.amount-grid { gap: 10px; }
.amount-option .amount-value { height: 64px; border-color: rgba(0,0,0,.08); border-radius: 14px; background: rgba(255,255,255,.84); font-family: var(--font-display); font-size: 20px; font-weight: 650; }
.amount-option input:checked + .amount-value { border-color: var(--primary); background: rgba(0,113,227,.06); color: var(--primary); box-shadow: 0 0 0 3px rgba(0,113,227,.11); }
.custom-amount-box { border-radius: 14px; background: rgba(248,248,250,.85); }
.recharge-tip { border-color: rgba(178,80,0,.13); border-radius: 13px; background: rgba(255,149,0,.075); color: #8d4000; }
.pay-tip { border: 1px solid rgba(178,80,0,.12); border-radius: 11px; background: rgba(255,149,0,.075); color: #8d4000; font-size: 12px; }

/* ---------- Mobile drawer / bottom navigation ---------- */
.mobile-menu.open { border-top: 1px solid rgba(0,0,0,.05); background: rgba(251,251,253,.96); box-shadow: 0 25px 60px rgba(0,0,0,.13); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); }
.mm-user { background: rgba(255,255,255,.55); border-bottom-color: rgba(0,0,0,.06); }
.mm-wallet { color: var(--text); }
.mm-wallet-recharge { color: var(--primary); }
.mm-links a { border-radius: 12px; font-size: 14px; }
.mm-links a:active { background: rgba(0,0,0,.05); }
.bottom-nav { border-top: 1px solid rgba(0,0,0,.07); background: rgba(251,251,253,.88); box-shadow: 0 -12px 35px rgba(0,0,0,.055); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.bottom-nav a { gap: 3px; padding: 7px 0 8px; color: #86868b; font-size: 10px; font-weight: 500; }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav .bn-icon { font-size: 20px; filter: grayscale(.2); }

/* ---------- Admin ---------- */
.admin-wrap { min-height: 100vh; background: #f5f5f7; }
.admin-sidebar { position: sticky; top: 0; width: 248px; height: 100vh; overflow-y: auto; border-right: 1px solid rgba(0,0,0,.06); background: rgba(251,251,253,.82); color: #515154; -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); }
.admin-brand { padding: 24px 22px 19px; border-bottom: 0; color: var(--text); font-family: var(--font-display); font-size: 17px; font-weight: 680; letter-spacing: -.035em; }
.admin-sidebar nav { gap: 3px; padding: 6px 12px 14px; }
.admin-sidebar nav a, .admin-sidebar > a { padding: 9px 12px; border-radius: 10px; color: #515154; font-size: 12.5px; font-weight: 500; }
.admin-sidebar nav a:hover { background: rgba(0,0,0,.045); color: var(--text); }
.admin-sidebar nav a.active { background: #e8e8ed; color: var(--text); font-weight: 620; box-shadow: inset 0 0 0 1px rgba(0,0,0,.025); }
.admin-sidebar > a { margin: 3px 12px; color: #86868b; }
.admin-sidebar > a:hover { background: rgba(0,0,0,.04); color: var(--text); }
.admin-main { padding: 30px 30px 56px; background: transparent; }
.admin-top { margin-bottom: 24px; color: var(--text); font-family: var(--font-display); font-size: 29px; font-weight: 680; letter-spacing: -.045em; }
.admin-content { max-width: 1380px; }
.admin-content .section-title { margin-top: 34px; font-size: 23px; }
.admin-content fieldset { background: rgba(255,255,255,.72); }
.admin-content .side-card { background: rgba(255,255,255,.82); }

/* ---------- Install ---------- */
.install-body { min-height: 100vh; padding: 40px 20px; background: radial-gradient(900px 520px at 15% 0%, rgba(0,113,227,.16), transparent 64%), radial-gradient(800px 500px at 100% 85%, rgba(175,82,222,.1), transparent 64%), #f5f5f7; }
.install-box { max-width: 570px; padding: 34px; border: 1px solid rgba(0,0,0,.06); border-radius: 28px; background: rgba(255,255,255,.88); box-shadow: var(--shadow-lg); -webkit-backdrop-filter: blur(25px); backdrop-filter: blur(25px); }
.install-box h1 { margin-bottom: 24px; font-size: 27px; font-weight: 680; letter-spacing: -.045em; }

/* ---------- Empty, footer, misc ---------- */
.empty { padding: 60px 24px; border: 1px solid rgba(0,0,0,.05); border-radius: 22px; background: rgba(255,255,255,.55); color: var(--muted); text-align: center; }
.footer { margin-top: 42px; border-top: 1px solid rgba(0,0,0,.06); background: rgba(251,251,253,.72); }
.footer .container { padding: 22px 24px; color: #86868b; font-size: 11.5px; text-align: center; }
.quick-actions { gap: 10px; margin-bottom: 22px; }
.nav-preview { border-color: rgba(0,0,0,.07); border-radius: 14px; }
.nav-row input { min-width: 0; }
/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .container { padding-inline: 20px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr) 340px; padding: 50px 42px; }
  .hero h1 { font-size: 48px; }
  .showcase-window { transform: scale(.92) perspective(1100px) rotateY(-6deg); }
  .main-nav a { padding-inline: 10px; }
  .points-chip .chip-label { display: none; }
}
@media (max-width: 960px) {
  .nav-right .points-chip:first-of-type { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 52px 42px; }
  .hero-copy { max-width: 640px; }
  .hero-visual { justify-content: flex-start; min-height: 360px; margin-top: 30px; }
  .showcase-window { width: min(100%, 430px); }
  .feature-strip { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-layout { grid-template-columns: 1fr; }
  .admin-sidebar { width: 230px; }
  .admin-main { padding: 24px 20px 48px; }
}
@media (max-width: 760px) {
  .container { padding-inline: 16px; }
  .main-container { padding-top: 20px; padding-bottom: 56px; }
  .topbar-inner { height: 54px; gap: 10px; }
  .brand { font-size: 16px; }
  .brand-logo { width: 28px; height: 28px; border-radius: 8px; }
  .main-nav, .main-nav.open { display: none; }
  .nav-right { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .mobile-recharge-btn { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; padding: 6px 13px; font-size: 12px; }
  .mobile-recharge-btn + .nav-toggle { margin-left: 0; }
  .hero { padding: 38px 25px 30px; border-radius: 27px; }
  .hero h1 { font-size: clamp(38px, 11vw, 49px); }
  .hero p { margin-top: 18px; font-size: 15px; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .btn { flex: 1 1 145px; }
  .hero-proof { margin-top: 24px; }
  .hero-visual { min-height: 330px; margin-top: 25px; }
  .showcase-window { width: 100%; transform: none; animation: none; }
  .floating-panel-top { left: 8px; top: 12px; }
  .floating-panel-bottom { right: 8px; bottom: 5px; }
  .feature-strip { margin-top: 16px; }
  .section-title { margin-top: 34px; font-size: 24px; }
  .grid { gap: 13px; }
  .card { border-radius: 18px; }
  .card-body { padding: 13px 13px 14px; }
  .card-title { min-height: 39px; font-size: 14px; }
  .card-meta { font-size: 10.5px; }
  .play-glyph { width: 30px; height: 30px; }
  .search-bar { flex-wrap: wrap; padding: 6px; border-radius: 15px; }
  .search-bar input { flex-basis: calc(100% - 90px); }
  .search-bar select { flex: 1; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 0; }
  .auth-box { padding: 30px 24px; border-radius: 24px; }
  .auth-box h2 { font-size: 27px; }
  .balance-hero, .recharge-hero { padding: 22px; border-radius: 21px; }
  .balance-amount, .recharge-balance { font-size: 32px; }
  .video-info { padding: 20px; }
  .video-info h1 { font-size: 22px; }
  .goods-detail { padding: 19px; border-radius: 22px; }
  .goods-detail-info h1 { font-size: 24px; }
  .admin-sidebar { position: fixed; left: -248px; top: 0; bottom: 0; width: 248px; z-index: 200; box-shadow: 20px 0 50px rgba(0,0,0,.12); transition: left .25s var(--ease); }
  .admin-sidebar.open { left: 0; }
  .admin-main { padding: 18px 14px 44px; }
  .admin-top { margin-bottom: 18px; font-size: 25px; }
  body.has-bottom { padding-bottom: 64px; }
  .footer { padding-bottom: 64px; }
  .footer .container { padding-inline: 16px; }
}
@media (max-width: 480px) {
  .hero { padding-inline: 21px; }
  .hero-actions .btn { flex-basis: 100%; }
  .hero-visual { min-height: 300px; }
  .showcase-window { padding: 13px; border-radius: 22px; }
  .showcase-main { min-height: 205px; padding: 18px; }
  .showcase-title { font-size: 22px; }
  .showcase-progress { left: 18px; right: 18px; bottom: 17px; }
  .showcase-lesson { padding: 9px; }
  .floating-panel-top { display: none; }
  .floating-panel-bottom { font-size: 9px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 16px; border-radius: 17px; }
  .stat-card .num { font-size: 25px; }
  .section-title { align-items: flex-end; }
  .section-title .small { text-align: right; }
  .search-bar input { flex-basis: 100%; }
  .search-bar .btn { flex: 1; }
  .search-bar select { flex-basis: 100%; }
  .amount-grid { grid-template-columns: 1fr 1fr; }
  .goods-detail { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Header refinements */
.admin-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.admin-brand:hover { color: var(--text); }
.admin-brand .brand-logo { width: 30px; height: 30px; }
.admin-top { display: flex; align-items: center; gap: 10px; }
.admin-top .nav-toggle { flex-shrink: 0; }.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
@media (max-width: 640px) { .footer-inner { flex-direction: column; gap: 4px; } }
/* QA refinements */
.category-pills.category-groups {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 10px;
  padding: 12px 16px;
}
.category-pills.category-groups .cat-group {
  display: inline-flex;
  flex: 0 0 auto;
  width: auto;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  border: 0;
}
.category-pills.category-groups .cat-children {
  display: inline-flex;
  flex: 0 0 auto;
  width: auto;
  align-items: center;
  gap: 6px;
  padding: 0;
}
.category-pills.category-groups .cat-all { margin-bottom: 0; }
.admin-sidebar > .admin-brand { display: flex; align-items: center; gap: 10px; }
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(34px, 9.5vw, 40px); letter-spacing: -.065em; }
}
/* Final responsive and utility polish */
@media (max-width: 760px) {
  .mobile-menu.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 54px);
    overflow-y: auto;
    z-index: 80;
  }
}
.error-state {
  max-width: 560px;
  margin: 72px auto;
  padding: 54px 28px;
  border: 1px solid rgba(0, 0, 0, .055);
  border-radius: 28px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-md);
  text-align: center;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.error-code {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 28px;
  background: linear-gradient(145deg, #e9f3ff, #f3edff);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.05em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.error-state h1 { font-size: 30px; font-weight: 680; letter-spacing: -.045em; }
.error-state p { margin-top: 8px; color: var(--muted); font-size: 13px; }
/* Presentation details */
.hero::after { -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 78%); }
.card-cover .badge.badge-warning,
.card-cover .badge.badge-danger,
.card-cover .badge.badge-muted {
  border-color: rgba(255,255,255,.2);
  background: rgba(20,20,22,.48);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.16);
}
.page-mall-index .card-cover {
  background: radial-gradient(80% 100% at 20% 0%, #fff, transparent 55%), linear-gradient(145deg, #f5f5f7, #e9e9ed);
  color: #86868b;
}
.page-mall-index .card-cover::after { display: none; }