﻿/* ===== 小林同学 · 学生端皮肤 v1（参照首页视觉：雾蓝云纹 / 奶白玻璃 / 墨黑 / 钴蓝） =====
   只覆盖视觉与动效，不改动任何布局结构与业务逻辑。
   主色：雾蓝 #BFDDF0 · 墨黑 #000 · 玻璃蓝 #88A8D9 · 钴蓝 #3080D8 · 奶白 #FBFAF4 */

:root {
  --accent: #3080D8;
  --accent2: #88A8D9;
  --accent-soft: rgba(48, 128, 216, 0.12);
  --ink: #000000;
  --muted: #46617F;
  --bg: #BFDDF0;
  --card: rgba(251, 250, 244, 0.88);
  --rule: rgba(48, 128, 216, 0.16);
  --ok: #1F8A5F;
  --bad: #D64545;
  --warn: #C98A00;
  --radius: 22px;
  --radius-sm: 15px;
  --shadow: 0 10px 26px rgba(38, 96, 160, 0.10);
  --shadow-lg: 0 20px 48px rgba(38, 96, 160, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* 安全区与底部栏高度：这两个变量若缺失，会让依赖 calc(var(--safe-b)) 的
     定位/内边距整条失效（答题卡按钮会掉到屏幕外、文字贴边），这里补齐 */
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tab-h: 62px;
  --glass: rgba(251, 250, 244, 0.72);
  --glass-strong: rgba(251, 250, 244, 0.92);
  --glass-line: rgba(255, 255, 255, 0.72);
  --blue-ink: #12395F;
}

/* ---------- 背景：雾蓝 + 斜向奶白云纹（缓慢流动） + 细网格 ---------- */
html {
  background-color: #BFDDF0;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 42%),
    repeating-linear-gradient(127deg,
      rgba(251, 250, 244, 0) 0px,
      rgba(251, 250, 244, 0) 58px,
      rgba(251, 250, 244, 0.62) 96px,
      rgba(251, 250, 244, 0.62) 132px,
      rgba(251, 250, 244, 0) 178px,
      rgba(251, 250, 244, 0) 240px),
    repeating-linear-gradient(127deg,
      rgba(255, 255, 255, 0) 0px,
      rgba(255, 255, 255, 0) 140px,
      rgba(255, 255, 255, 0.38) 190px,
      rgba(255, 255, 255, 0) 250px),
    radial-gradient(1200px 700px at 8% -10%, rgba(255, 255, 255, 0.55), transparent 62%),
    radial-gradient(900px 600px at 100% 0%, rgba(136, 168, 217, 0.30), transparent 60%);
  background-attachment: fixed;
  background-repeat: repeat;
}
html body {
  background: transparent !important;
  background-image: none !important;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
/* 动态背景画布（复刻首页 WebGL 云纹），失败时退回 html 静态云纹 */
#lk-gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
  pointer-events: none;
}
/* 细网格层 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    repeating-linear-gradient(0deg, rgba(48, 128, 216, 0.055) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(90deg, rgba(48, 128, 216, 0.055) 0 1px, transparent 1px 88px);
  opacity: 0.7;
}
#app, .page, .main-content, .q-wrap, .page-body {
  background: transparent;
}

/* ---------- 开屏加载层（student.html 内联样式覆盖） ---------- */
#lk-loader {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 48%),
    repeating-linear-gradient(127deg,
      rgba(251, 250, 244, 0) 0px,
      rgba(251, 250, 244, 0) 60px,
      rgba(251, 250, 244, 0.62) 100px,
      rgba(251, 250, 244, 0.62) 136px,
      rgba(251, 250, 244, 0) 182px,
      rgba(251, 250, 244, 0) 250px),
    #BFDDF0 !important;
}
#lk-loader .lk-spinner {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(255, 255, 255, 0.72);
  border-top-color: #3080D8;
  border-right-color: #88A8D9;
  border-bottom-color: #4E97E6;
  border-left-color: #BFDDF0;
}
#lk-loader .lk-load-text {
  background: rgba(251, 250, 244, 0.94);
  color: #12395F;
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(38, 96, 160, 0.16);
}

/* ---------- 通用玻璃卡片 ---------- */
.home-main-card, .ch-card, .fun-item, .home-notice-card, .home-progress-card,
.q-card, .lv2-intro, .lv2-overview, .notice-item, .profile-section,
.p-item, .k-box, .reecite-card, .hmc-card {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease);
}
.home-main-card:active, .ch-card:active, .fun-item:active, .home-notice-card:active,
.home-op:active, .p-item:active, .notice-item:active {
  transform: translateY(-2px) scale(0.995);
  box-shadow: var(--shadow-lg);
}

/* ---------- 登录页（登录页样式内联在 student.html，这里提高优先级覆盖） ---------- */
html body .login-mask {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.40), rgba(255, 255, 255, 0) 45%),
    repeating-linear-gradient(127deg,
      rgba(251, 250, 244, 0) 0px, rgba(251, 250, 244, 0) 60px,
      rgba(251, 250, 244, 0.60) 100px, rgba(251, 250, 244, 0.60) 136px,
      rgba(251, 250, 244, 0) 182px, rgba(251, 250, 244, 0) 250px),
    #BFDDF0 !important;
  backdrop-filter: blur(2px);
}
html body .login-card {
  background: var(--glass-strong) !important;
  border: 1px solid var(--glass-line) !important;
  border-radius: 26px !important;
  box-shadow: var(--shadow-lg) !important;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  animation: lkCardIn .6s var(--ease) both;
}
html body .login-card h1 { color: #000 !important; font-weight: 800 !important; }
html body .login-card .sub { color: #46617F !important; }
html body .login-field {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1.5px solid rgba(48, 128, 216, 0.22) !important;
  border-radius: 14px !important;
  color: #000 !important;
  box-shadow: none !important;
  transition: border-color .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease);
}
html body .login-field:focus {
  border-color: #3080D8 !important;
  box-shadow: 0 0 0 4px rgba(48, 128, 216, 0.14) !important;
  background: #fff !important;
}
html body .login-btn {
  background: linear-gradient(135deg, #3080D8, #4E97E6) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .3px;
  box-shadow: 0 8px 20px rgba(48, 128, 216, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), filter .28s var(--ease);
}
html body .login-btn:hover { filter: brightness(1.04); }
html body .login-btn:active {
  transform: translateY(1px) scale(.995) !important;
  box-shadow: 0 4px 12px rgba(48, 128, 216, 0.28) !important;
}
html body .chk-box {
  border: 1.5px solid rgba(48, 128, 216, 0.35) !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: none !important;
}
html body .login-agree input:checked + .chk-box {
  background: #3080D8 !important;
  border-color: #3080D8 !important;
}
html body .login-hint, html body .login-beian, html body .agree-txt { color: #46617F !important; }
html body .lk-g-link, html body .privacy-link { color: #3080D8 !important; font-weight: 700; }

/* 旧版同名规则（登录成功后注入 core.css 时同样生效） */
.login-mask {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.40), rgba(255, 255, 255, 0) 45%),
    repeating-linear-gradient(127deg,
      rgba(251, 250, 244, 0) 0px, rgba(251, 250, 244, 0) 60px,
      rgba(251, 250, 244, 0.60) 100px, rgba(251, 250, 244, 0.60) 136px,
      rgba(251, 250, 244, 0) 182px, rgba(251, 250, 244, 0) 250px),
    #BFDDF0;
  backdrop-filter: blur(2px);
}
.login-card {
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  animation: lkCardIn .6s var(--ease) both;
}
.login-card h1, .login-card h2, .login-card .login-title {
  color: #000;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.login-field input {
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(48, 128, 216, 0.22);
  border-radius: 14px;
  color: #000;
  transition: border-color .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease);
}
.login-field input::placeholder { color: #7C93AC; }
.login-field input:focus {
  border-color: #3080D8;
  box-shadow: 0 0 0 4px rgba(48, 128, 216, 0.14);
  background: #fff;
}
.login-btn, .g-primary, .lk-btn.primary, .btn-primary, .in-btn, .recite-show-btn {
  background: linear-gradient(135deg, #3080D8, #4E97E6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: .3px;
  box-shadow: 0 8px 20px rgba(48, 128, 216, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), filter .28s var(--ease);
}
.login-btn:hover, .g-primary:hover, .lk-btn.primary:hover, .btn-primary:hover {
  filter: brightness(1.04);
  box-shadow: 0 12px 26px rgba(48, 128, 216, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.login-btn:active, .g-primary:active, .lk-btn.primary:active, .btn-primary:active {
  transform: scale(0.975);
}
.login-hint, .login-beian, .agree-txt { color: #46617F; }
.lk-g-link, .privacy-link { color: #3080D8; font-weight: 700; }
.chk-box {
  border: 1.5px solid rgba(48, 128, 216, 0.35);
  border-radius: 6px;
  transition: all .28s var(--ease);
}
.chk-box.on, .chk-box.checked {
  background: #3080D8;
  border-color: #3080D8;
}

/* ---------- 顶部栏 / 侧栏 / 底部导航 ---------- */
/* 这些容器内可能含 fixed/absolute 定位的子元素，不使用 backdrop-filter，避免破坏定位 */
.quiz-topbar, .page-head, .tab-bar, .sidebar {
  background: rgba(251, 250, 244, 0.96);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 22px rgba(38, 96, 160, 0.10);
}
.tab-bar { border-top: 1px solid rgba(255, 255, 255, 0.8); }
.tab-item { color: #58718C; transition: color .28s var(--ease), transform .28s var(--ease); }
.tab-item.on { color: #3080D8; }
.tab-item.on .ti-ico { transform: translateY(-2px); }
.tab-item:active { transform: scale(0.94); }
.sb-nav-item.on {
  background: linear-gradient(120deg, rgba(48, 128, 216, 0.16), rgba(136, 168, 217, 0.12));
  color: #3080D8;
  border: 1px solid rgba(48, 128, 216, 0.28) !important;
}
.sb-nav-item { border: 1px solid transparent; }
.sb-user {
  background: rgba(251, 250, 244, 0.84) !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 18px rgba(38, 96, 160, 0.10);
}
.sb-user-name, .sb-logo .sbl-name { color: #04121F; }
.sb-user-sid, .sb-logo .sbl-sub { color: #46617F; }
.sb-user, .sb-logo { color: #000; }

/* ---------- 首页 ---------- */
.home-hero {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.55), transparent 58%),
    linear-gradient(135deg, #CBDEF2 0%, #A9C6E6 48%, #88A8D9 100%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(38, 96, 160, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background: repeating-linear-gradient(127deg,
    rgba(251, 250, 244, 0) 0 40px,
    rgba(251, 250, 244, 0.40) 78px,
    rgba(251, 250, 244, 0) 138px,
    rgba(251, 250, 244, 0) 190px);
  animation: lkCloudDrift 10s linear infinite;
  pointer-events: none;
}
@keyframes lkCloudDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(22px, -22px, 0); }
}
.home-title, .home-hero .home-title {
  color: #04121F;
  font-weight: 900;
  letter-spacing: -1px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.55);
}
.home-sub, .home-who, .home-hero .home-sub { color: #12395F; }
.home-who b { color: #000; }
.home-sec-head h2 { color: #000; font-weight: 800; letter-spacing: -0.3px; }
.home-sec-head .hsh-badge, .home-sec-head .hsh-tag {
  background: rgba(48, 128, 216, 0.12);
  color: #2A6DB8;
  border-radius: 999px;
}
.home-main-card {
  position: relative;
  overflow: hidden;
  background: rgba(251, 250, 244, 0.93);
}
/* 主功能卡内的文字改为深色，保证在浅色玻璃上的对比度 */
.home-main-card .hmc-title { color: #04121F; font-weight: 800; }
.home-main-card .hmc-sub { color: #2C4A68; }
.home-main-card .hmc-stats b { color: #0A2A45; }
.home-main-card .hmc-stats span { color: #3C5A78; }
.home-main-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(136, 168, 217, 0.35), transparent 68%);
  pointer-events: none;
}
.home-main-card.off { opacity: .55; filter: grayscale(.3); }
/* 章节卡：徽标收紧成胶囊，题量靠右，标题/描述/进度条占满整行 */
.ch-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
}
.ch-card .ch-no {
  justify-self: start;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 3px 10px;
  font-size: 11.5px;
  line-height: 1.45;
  white-space: nowrap;
  background: linear-gradient(135deg, #3080D8, #88A8D9);
  color: #fff;
  border-radius: 9px;
  box-shadow: 0 6px 14px rgba(48, 128, 216, 0.28);
}
.ch-card .ch-count {
  justify-self: end;
  margin-left: 0;
  text-align: right;
  white-space: nowrap;
}
.ch-card .ch-title,
.ch-card .ch-desc,
.ch-card .ch-bar {
  grid-column: 1 / -1;
}
.ch-card .ch-title { color: #000; font-weight: 800; }
.ch-card .ch-desc, .ch-card .ch-count { color: #46617F; }
.ch-card .ch-bar { background: rgba(48, 128, 216, 0.14); border-radius: 999px; }
.ch-card .ch-bar i {
  background: linear-gradient(90deg, #3080D8, #88A8D9);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(48, 128, 216, 0.45);
  transition: width .8s var(--ease);
}
.fun-item .fi-title { color: #000; font-weight: 800; }
.fun-item .fi-desc { color: #46617F; }
.fun-item .fi-arrow { color: #3080D8; }
.home-progress-card .hpc-title { color: #000; font-weight: 800; }
.home-progress-card .hpc-bar { background: rgba(48,128,216,.14); border-radius: 999px; }
.home-progress-card .hpc-bar i {
  background: linear-gradient(90deg, #3080D8, #88A8D9);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(48,128,216,.45);
  transition: width .8s var(--ease);
}
.home-notice-card .ni-title, .notice-item .ni-title { color: #000; font-weight: 700; }
.notice-item .ni-date { color: #6A829B; }
.home-foot, .site-beian { color: #46617F; }

/* ---------- 二级页 ---------- */
.page-title, .lv2-overview .ov-title, .lv2-intro .in-title {
  color: #000; font-weight: 800; letter-spacing: -0.3px;
}
.lv2-intro {
  position: relative;
  overflow: hidden;
}
.lv2-intro::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(136, 168, 217, 0.40), transparent 66%);
  pointer-events: none;
}
.lv2-intro .in-ico {
  background: linear-gradient(135deg, #3080D8, #88A8D9);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(48, 128, 216, 0.28);
}
.lv2-intro .in-desc, .lv2-intro .in-note, .lv2-overview .ov-sub { color: #46617F; }
.lv2-intro .in-meta b { color: #000; }
.lv2-overview .ov-stat .n { color: #3080D8; font-weight: 900; }
.lv2-overview .ov-stat .l { color: #46617F; }
.seg-btn {
  color: #46617F;
  border-radius: 12px;
  transition: all .3s var(--ease);
}
.seg-btn.on {
  background: linear-gradient(135deg, #3080D8, #4E97E6);
  color: #fff;
  box-shadow: 0 6px 16px rgba(48, 128, 216, 0.28);
}

/* ---------- 答题页 ---------- */
.q-card {
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(38, 96, 160, 0.12);
}
.q-num {
  color: #2A6DB8;
  background: rgba(48, 128, 216, 0.10);
  border-radius: 999px;
  font-weight: 800;
}
.q-tag {
  flex: 0 1 auto;
  max-width: 62%;
  padding: 3px 10px;
  background: rgba(136, 168, 217, 0.20);
  color: #2A6DB8;
  border-radius: 999px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.q-report { margin-left: auto; }
.q-src {
  flex: none;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
  color: #2A6DB8;
  background: rgba(48, 128, 216, 0.10);
  border: 1px solid rgba(48, 128, 216, 0.18);
  border-radius: 999px;
  white-space: nowrap;
}
.q-text { color: #000; }
.q-option {
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid rgba(48, 128, 216, 0.16);
  border-radius: 16px;
  color: #10263D;
  transition: transform .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease), box-shadow .28s var(--ease);
}
.q-option .key {
  background: rgba(48, 128, 216, 0.10);
  color: #2A6DB8;
  border-radius: 9px;
  font-weight: 800;
  transition: all .28s var(--ease);
}
.q-option:hover { border-color: rgba(48, 128, 216, 0.42); box-shadow: 0 8px 18px rgba(38, 96, 160, 0.10); }
.q-option:active { transform: scale(0.988); }
.q-option.sel {
  background: rgba(48, 128, 216, 0.10);
  border-color: #3080D8;
  box-shadow: 0 0 0 3px rgba(48, 128, 216, 0.14);
}
.q-option.sel .key { background: #3080D8; color: #fff; }
.q-option.right {
  background: rgba(31, 138, 95, 0.10);
  border-color: #1F8A5F;
  box-shadow: 0 0 0 3px rgba(31, 138, 95, 0.12);
}
.q-option.right .key { background: #1F8A5F; color: #fff; }
.q-option.wrong {
  background: rgba(214, 69, 69, 0.09);
  border-color: #D64545;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.12);
}
.q-option.wrong .key { background: #D64545; color: #fff; }
.q-option.locked { opacity: .72; }
.q-actions .btn {
  border-radius: 14px;
  font-weight: 700;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.q-actions .btn:active { transform: scale(0.975); }
.btn-next {
  background: linear-gradient(135deg, #3080D8, #4E97E6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(48, 128, 216, 0.28);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(48, 128, 216, 0.22);
  color: #12395F;
}
.feedback {
  border-radius: 18px;
  background: rgba(251, 250, 244, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}
.feedback.correct { background: rgba(31, 138, 95, 0.10); border-color: rgba(31, 138, 95, 0.35); }
.feedback.wrong { background: rgba(214, 69, 69, 0.08); border-color: rgba(214, 69, 69, 0.30); }
.feedback .fb-title { font-weight: 800; }
.feedback.correct .fb-title { color: #1F8A5F; }
.feedback.wrong .fb-title { color: #D64545; }
.feedback .fb-ans b { color: #3080D8; }
.analysis, .k-box { background: rgba(251, 250, 244, 0.92); border-radius: 18px; }
.analysis {
  padding: 10px 13px;
  margin-top: 2px;
  line-height: 1.75;
  word-break: break-word;
}
.k-box .ana-label, .analysis .ana-label { color: #2A6DB8; font-weight: 800; }

/* 答题卡抽屉 */
/* 注意：抽屉里有 position:fixed 的「答题卡」按钮，
   容器一旦使用 backdrop-filter 会建立包含块，导致按钮定位错乱跑到屏幕外，
   因此这里用不透明底色代替毛玻璃 */
.sheet-dock {
  background: rgba(251, 250, 244, 0.985);
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 -12px 32px rgba(38, 96, 160, 0.14);
}
.sheet-handle { background: rgba(48, 128, 216, 0.30); border-radius: 999px; }
.sheet-head .sh-title { color: #000; font-weight: 800; }
.sheet-cell {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(48, 128, 216, 0.18);
  border-radius: 12px;
  color: #12395F;
  transition: all .26s var(--ease);
}
.sheet-cell.done { background: rgba(48, 128, 216, 0.14); border-color: rgba(48, 128, 216, 0.45); color: #205FA8; }
.sheet-cell.wrong { background: rgba(214, 69, 69, 0.12); border-color: rgba(214, 69, 69, 0.45); color: #B03636; }
.sheet-cell.cur { border-color: #3080D8; box-shadow: 0 0 0 3px rgba(48, 128, 216, 0.18); }
.sheet-toggle { background: rgba(48, 128, 216, 0.10); color: #205FA8; border-radius: 999px 999px 0 0; }

/* ---------- 个人中心 ---------- */
.profile-head {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(135deg, #CBDEF2, #9BBBDD 55%, #88A8D9);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 14px 34px rgba(38, 96, 160, 0.18);
}
.profile-head::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(127deg,
    rgba(251, 250, 244, 0) 0 42px,
    rgba(251, 250, 244, 0.36) 84px,
    rgba(251, 250, 244, 0) 142px);
  animation: lkCloudDrift 10s linear infinite;
  pointer-events: none;
}
.profile-head .ph-name, .profile-head .ph-avatar { color: #04121F; }
.profile-head .ph-sid, .profile-head .ph-stat span { color: #12395F; }
.profile-head .ph-stat b { color: #000; }
.profile-sec-title h3 { color: #000; font-weight: 800; }
.profile-sec-title .pst-dot { background: #3080D8; }
.p-item .pi-title { color: #000; }
.p-item .pi-desc { color: #46617F; }
.p-item .pi-arrow { color: #88A8D9; }
.pi-logout .pi-title { color: #D64545; }
.profile-foot, .profile-foot .ver { color: #46617F; }

/* ---------- 弹窗 / 提示 / 加载 ---------- */
.lk-mask { background: rgba(16, 42, 68, 0.42); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lk-mask.show .lk-modal { animation: lkModalIn .42s var(--ease) both; }
.lk-modal {
  background: rgba(251, 250, 244, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 0 26px 64px rgba(16, 42, 68, 0.28);
}
.lk-modal h3 { color: #000; font-weight: 800; }
.lk-modal .lk-modal-sub, .lk-modal-body { color: #23405C; }
.lk-btn { border-radius: 13px; font-weight: 700; transition: transform .26s var(--ease), filter .26s var(--ease); }
.lk-btn:active { transform: scale(0.97); }
.lk-btn.ghost { background: rgba(48, 128, 216, 0.10); color: #205FA8; border: 1px solid rgba(48, 128, 216, 0.22); }
.lk-btn.danger { background: rgba(214, 69, 69, 0.10); color: #B03636; border: 1px solid rgba(214, 69, 69, 0.30); }
.lk-toast {
  background: rgba(18, 57, 95, 0.94);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(16, 42, 68, 0.30);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lk-spinner, .lkbl-spin { border-color: rgba(48, 128, 216, 0.22); border-top-color: #3080D8; }
.lk-load-text, .lkbl-text { color: #12395F; }

/* ---------- 收藏 / 错题 / 背题 等模块 ---------- */
.fav-bar { background: rgba(251, 250, 244, 0.9); border-top: 1px solid rgba(255, 255, 255, 0.8); }
.fav-bar .fb-btn { color: #46617F; border-radius: 12px; transition: all .28s var(--ease); }
.fav-bar.on .fb-btn, .fav-bar .fb-btn.on { color: #3080D8; background: rgba(48, 128, 216, 0.10); }
.recite-show-tip, .recite-show-answer-wrap { color: #46617F; }
.qt-item { background: rgba(255, 255, 255, 0.86); border-radius: 14px; border: 1px solid rgba(48, 128, 216, 0.14); }
.qt-item input { color: #000; }

/* ---------- 统一动效 ---------- */
.page { animation: lkPageIn .5s var(--ease) both; }
@keyframes lkPageIn {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes lkCardIn {
  from { opacity: 0; transform: translate3d(0, 22px, 0) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes lkModalIn {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.97); }
  to { opacity: 1; transform: none; }
}
/* 首页卡片依次浮现 */
.home-main-card, .ch-card, .fun-item, .home-notice-card {
  animation: lkCardIn .55s var(--ease) both;
}
.ch-card:nth-child(2) { animation-delay: .04s; }
.ch-card:nth-child(3) { animation-delay: .08s; }
.ch-card:nth-child(4) { animation-delay: .12s; }
.ch-card:nth-child(5) { animation-delay: .16s; }
.ch-card:nth-child(6) { animation-delay: .20s; }
.ch-card:nth-child(7) { animation-delay: .24s; }
.ch-card:nth-child(8) { animation-delay: .28s; }

/* ---------- 新生向导 / 隐私协议 / 启动页 ---------- */
.guide-mask { background: rgba(16, 42, 68, 0.42); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.guide-card {
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  animation: lkModalIn .5s var(--ease) both;
}
.guide-card h3, #guide-title { color: #000; font-weight: 800; }
#guide-text { color: #23405C; }
.guide-dots i { background: rgba(48, 128, 216, 0.22); border-radius: 999px; }
.guide-dots i.on { background: #3080D8; }
.g-ghost {
  background: rgba(48, 128, 216, 0.10);
  color: #205FA8;
  border: 1px solid rgba(48, 128, 216, 0.22);
  border-radius: 13px;
  font-weight: 700;
}
.privacy-mask { background: rgba(16, 42, 68, 0.42); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.privacy-card {
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.privacy-title { color: #000; font-weight: 800; }
.privacy-body { color: #23405C; }
#lk-boot-loading { background: #BFDDF0; }
#lk-boot-loading .lkbl-box {
  background: var(--glass-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

/* 答题卡入口：手机端贴底居中细条，桌面端固定在右下角 */
html body .sheet-toggle {
  background: rgba(251, 250, 244, 0.97);
  color: #205FA8;
  border: 1px solid rgba(48, 128, 216, 0.30);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(38, 96, 160, 0.20);
  font-size: 12.5px;
}
html body .sheet-toggle .st-count {
  background: #3080D8;
  color: #fff;
  border-radius: 999px;
}
@media (max-width: 899px) {
  html body .sheet-toggle {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: calc(2px + var(--safe-b));
    height: 34px;
    padding: 0 16px;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -6px 16px rgba(38, 96, 160, 0.16);
  }
}
@media (min-width: 900px) {
  html body .sheet-toggle {
    left: auto;
    right: 28px;
    transform: none;
    bottom: calc(28px + var(--safe-b));
    height: 40px;
    padding: 0 18px;
    border-radius: 12px;
  }
}

/* 页面底部为 tab 栏留出空间，避免最后一项被遮挡 */
.page-body, .home-scroll {
  padding-bottom: calc(96px + var(--safe-b)) !important;
  box-sizing: border-box;
}
/* 首页 hero 内边距与标题/描述分行，避免文字贴边和粘连 */
.home-hero { padding: 20px 22px !important; }
.home-main-card .hmc-title, .fun-item .fi-title { display: block; margin-bottom: 6px; }
.ch-card .ch-title { display: block; margin-bottom: 4px; }

/* ---------- 细节修正：答题页彩虹条 / 返回键 / 个人中心列表 ---------- */
.q-card::before {
  background: linear-gradient(90deg, #3080D8, #88A8D9, #BFDDF0) !important;
  border-radius: 999px;
}
html body .page-back {
  background: rgba(251, 250, 244, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  color: #12395F !important;
  box-shadow: var(--shadow) !important;
}
.q-actions .btn { border-radius: 14px; border-color: rgba(48, 128, 216, 0.22); }
.seg-btn { border: 1px solid rgba(48, 128, 216, 0.22); }
.seg-btn.on { border-color: transparent; }
.q-actions .btn:not(.btn-next):not(.btn-primary) {
  background: rgba(255, 255, 255, 0.88);
  color: #12395F;
  border: 1px solid rgba(48, 128, 216, 0.26);
  box-shadow: 0 4px 12px rgba(38, 96, 160, 0.10);
}
.profile-list {
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  background: rgba(251, 250, 244, 0.62) !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow) !important;
  overflow: hidden;
}
.p-item { border-bottom: 1px solid rgba(48, 128, 216, 0.12) !important; }
.p-item:last-child { border-bottom: 0 !important; }
.profile-head .ph-avatar {
  border: 2px solid rgba(255, 255, 255, 0.92) !important;
  border-radius: 50% !important;
  background: rgba(251, 250, 244, 0.90) !important;
  box-shadow: 0 10px 24px rgba(38, 96, 160, 0.20) !important;
  overflow: hidden;
}

/* 桌面端：个人中心左侧资料卡不要被拉满整列，四角完整圆角 */
@media (min-width: 900px) {
  .profile-layout { align-items: start; }
  .profile-head {
    align-self: start;
    border-radius: 22px !important;
  }
}

/* 桌面端：没有概览卡的二级页（刷题章节）不要保留空的左列 */
@media (min-width: 1024px) {
  .page-body.lv2-body:not(:has(.lv2-overview)) {
    display: block;
    max-width: 1100px;
    margin: 0 auto;
  }
  .page-body.lv2-body:not(:has(.lv2-overview)) .ch-grid {
    margin-top: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
}

