/* ============================================================
   智慧校园网络 ainet · net.css v3.1
   设计基准：校趣多网厅风格
   青绿主色 #01bc8f + 琥珀金渐变仅用于小徽标
   浅蓝灰底 #F5F8FD + 白色圆角卡片 + 柔投影
   移动端优先 · 三端共用
   ============================================================ */
:root {
  --bg: #eef3fb;
  --bg-2: #f7fafd;
  --card: #ffffff;
  --ink: #1b2436;
  --txt: #3d475c;
  --muted: #98a2b8;
  --line: #e7ecf5;
  --line-soft: #f1f4fa;

  --amber-a: #ffd96f;
  --amber-b: #feae5b;
  --amber-grad: linear-gradient(100deg, #ffd96f 0%, #feae5b 100%);
  --amber-ink: #6b4307;
  --amber-deep: #8a5200;
  --amber-bg: #fff6e6;

  --teal: #01bc8f; --teal-2: #00a97f; --teal-bg: #e6f9f2;
  --teal-grad: linear-gradient(135deg, #01c896 0%, #009d74 100%);
  --teal-soft: linear-gradient(135deg, #e9fbf4 0%, #dcf6ec 100%);
  --blue: #2b7fff; --blue-bg: #eaf3ff;
  --red: #ff4d5e;  --red-bg: #ffeef0;
  --orange: #f08a1d; --orange-bg: #fff4e3;
  --purple: #7c5cff; --purple-bg: #f1edff;
  --grey: #98a1b3; --grey-bg: #f1f3f8;

  --r: 16px; --rl: 20px; --rx: 26px;
  --sh-1: 0 1px 2px rgba(20,30,60,.03), 0 8px 24px -8px rgba(20,30,60,.10);
  --sh-2: 0 2px 4px rgba(20,30,60,.04), 0 18px 44px -14px rgba(20,30,60,.18);
  --sh-teal: 0 10px 30px -8px rgba(1,188,143,.5);
  --shadow-1: var(--sh-1);
  --shadow-2: var(--sh-2);
  --cm: #d0342c; --cu: #e60012; --ct: #1e6fff;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14.5px; line-height: 1.65; color: var(--txt);
  min-height: 100vh;
  background:
    radial-gradient(1200px 520px at 50% -180px, rgba(1,188,143,.10), transparent 70%),
    radial-gradient(900px 420px at 100% 8%, rgba(43,127,255,.06), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 260px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--blue); text-decoration: none; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 18px; height: 18px; flex: none; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }
.dim { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- 按钮 ---------- */
.btn-pri, .btn-hero, .btn-login {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; cursor: pointer; border-radius: 14px; font-weight: 700;
  background: var(--teal-grad); color: #fff;
  padding: 12px 24px; font-size: 14.5px; letter-spacing: .3px;
  box-shadow: var(--sh-teal);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, filter .2s;
}
.btn-pri:hover, .btn-hero:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -8px rgba(1,188,143,.55); filter: saturate(1.06) brightness(1.02); }
.btn-pri:active, .btn-hero:active { transform: translateY(0) scale(.97); box-shadow: var(--sh-teal); }
.btn-hero { padding: 14px 34px; font-size: 16px; border-radius: 16px; }
.btn-hero.dark { background: #232b45; color: #fff; box-shadow: 0 10px 26px rgba(35,43,69,.35); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 11px; }
.btn-xs { border: 1px solid var(--line); background: #fff; color: var(--txt); border-radius: 10px;
  padding: 5px 12px; font-size: 12.5px; cursor: pointer; font-weight: 600; transition: all .18s; }
.btn-xs:hover { border-color: var(--teal); color: var(--teal); box-shadow: 0 4px 12px -4px rgba(1,188,143,.4); }
.btn-xs.danger { color: var(--red); }
.btn-xs.danger:hover { border-color: var(--red); background: var(--red-bg); box-shadow: none; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px solid var(--teal); background: #fff; color: var(--teal);
  border-radius: 12px; padding: 10px 20px; font-weight: 700; cursor: pointer; transition: all .18s; }
.btn-ghost:hover { background: var(--teal); color: #fff; }
.w100 { width: 100%; }
.inline { display: inline-flex; }

/* ---------- 徽章 / 提示 ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700;
  border-radius: 999px; padding: 2px 10px; background: var(--blue-bg); color: var(--blue); white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--teal-bg); color: var(--teal); }
.badge.warn { background: var(--orange-bg); color: var(--orange); }
.badge.bad { background: var(--red-bg); color: var(--red); }
.badge.mut { background: var(--grey-bg); color: var(--grey); }
.badge.plain::before { display: none; }

.flash { border-radius: 12px; padding: 11px 15px; margin-bottom: 14px; font-size: 14px;
  display: flex; align-items: center; gap: 8px; }
.flash::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.flash.ok { background: var(--teal-bg); color: var(--teal); }
.flash.err { background: var(--red-bg); color: var(--red); }

/* ---------- 卡片 / 行 ---------- */
.panel { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--rl);
  box-shadow: var(--sh-1); padding: 20px; margin-bottom: 16px; }
.panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  border-bottom: 1px solid var(--line-soft); padding-bottom: 12px; margin-bottom: 14px; font-weight: 800; font-size: 15.5px; color: var(--ink); letter-spacing: .2px; }
.panel-h span { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.page-h { padding: 4px 2px 16px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.page-h b { font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: .3px; }
.page-h b::before { content: ""; display: inline-block; width: 5px; height: 17px; border-radius: 3px;
  background: var(--teal-grad); vertical-align: -2px; margin-right: 9px; }
.page-h span { color: var(--muted); font-size: 13px; }

/* ---------- 子导航（分组视图切换） ---------- */
.subnav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; padding: 4px; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: #fff; color: var(--txt); border: 1px solid var(--line); transition: all .2s ease;
  box-shadow: 0 2px 8px -4px rgba(20,30,60,.12); }
.subnav a.on { background: var(--teal-grad); color: #fff; border-color: transparent; box-shadow: var(--sh-teal); }
.subnav a:hover:not(.on) { border-color: var(--teal); color: var(--teal); }

.row { display: flex; align-items: center; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; transition: background .18s; }
.row:last-child { border-bottom: 0; }
.row-main { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 3px; }
.row-main b { font-size: 14.5px; color: var(--ink); font-weight: 700; }
.row-main .dim { font-size: 12.5px; }
.row-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.row-side b { font-size: 15px; color: var(--teal); font-weight: 800; font-variant-numeric: tabular-nums; }
.reply { display: block; margin-top: 6px; font-size: 12.5px; color: var(--blue); background: var(--blue-bg);
  border-radius: 10px; padding: 8px 11px; white-space: pre-wrap; }
.empty { text-align: center; color: var(--muted); padding: 26px 8px; font-size: 13.5px; }
.empty::before { content: "◌"; display: block; font-size: 26px; margin-bottom: 4px; opacity: .6; }

/* ---------- 表单 ---------- */
.frm { display: grid; gap: 11px; }
.frm-grid { grid-template-columns: 1fr 1fr; }
.frm label { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.frm input, .frm select, .frm textarea, .searchbar input, .searchbar select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 11px; padding: 10px 13px;
  background: #fff; outline: 0; transition: border-color .18s, box-shadow .18s; }
.frm input:focus, .frm select:focus, .frm textarea:focus, .searchbar input:focus, .searchbar select:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(1,188,143,.16); }
.frm textarea { min-height: 88px; resize: vertical; }
.frm .chk { display: flex; align-items: center; gap: 7px; font-size: 13.5px; }
.frm .chk input { width: auto; accent-color: var(--teal); }
.frm-inline { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.frm-inline select, .frm-inline input { flex: 1; min-width: 140px; width: auto; }
.searchbar { display: flex; gap: 8px; }
.searchbar input { flex: 1; }

.pager { display: flex; gap: 6px; justify-content: center; padding: 14px 0 2px; flex-wrap: wrap; }
.pg { min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; border: 1px solid var(--line); font-size: 13px; color: var(--txt); background: #fff; font-weight: 600; }
.pg.on { background: var(--teal); color: #fff; border-color: transparent; font-weight: 800; }
.pg-dot { color: var(--muted); align-self: center; }

/* ---------- 顶栏（简洁头部） ---------- */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 52px; padding: 0 16px; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft); }
.tb-brand { display: flex; align-items: center; gap: 9px; flex: none; }
.tb-logo { width: 32px; height: 32px; border-radius: 10px; object-fit: cover; display: inline-block;
  box-shadow: 0 3px 10px rgba(35,43,69,.16); }
.tb-brand b { font-weight: 800; font-size: 15px; white-space: nowrap; color: var(--ink); }
.tb-brand em { font-style: normal; font-size: 11px; background: var(--teal-bg); color: var(--teal);
  border-radius: 999px; padding: 2px 9px; font-weight: 700; white-space: nowrap; }
.tb-r { display: flex; align-items: center; gap: 8px; flex: none; }
.tb-uname { font-size: 13px; font-weight: 700; max-width: 90px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.tb-out { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 9px;
  padding: 5px 12px; font-size: 12.5px; cursor: pointer; transition: all .15s; }
.tb-out:hover { color: var(--red); border-color: var(--red); }

/* ---------- 底部 Tab Bar ---------- */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: stretch;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(231,236,245,.9); box-shadow: 0 -8px 30px -10px rgba(20,30,60,.14);
  max-width: 540px; margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom); }
.tabbar .tab { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 10px 2px 11px; color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none;
  transition: color .22s ease, transform .22s cubic-bezier(.34,1.56,.64,1); }
.tabbar .tab svg { width: 23px; height: 23px; transition: transform .28s cubic-bezier(.34,1.56,.64,1); }
.tabbar .tab.on { color: var(--teal); }
.tabbar .tab.on svg { transform: translateY(-1px) scale(1.08); }
.tabbar .tab.on::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--teal-grad);
  box-shadow: 0 2px 8px rgba(1,188,143,.5); }
.tabbar .tab:active { transform: scale(.9); }

.frame-body .page { max-width: 540px; margin: 0 auto; padding: 16px 15px 92px; }
.foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 20px 12px 80px; }

/* ---------- 学生端 · 状态主卡 ---------- */
.hero { position: relative; overflow: hidden; border-radius: 20px; padding: 20px 18px;
  background: var(--card); color: var(--ink);
  box-shadow: 0 4px 32px rgba(121,133,143,.1); margin-bottom: 14px; }
.hero-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--teal-bg);
  color: var(--teal); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; }
.hero-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 3px rgba(1,188,143,.22); }
.hero-chip.off { color: var(--orange); background: var(--orange-bg); }
.hero-chip.off .dot { background: var(--orange); box-shadow: 0 0 0 3px rgba(240,138,29,.2); }
.hero-hi { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-left: auto; }
.hero-name { font-size: 20px; font-weight: 800; margin-top: 14px; color: var(--ink); }
.hero-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.hero-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; font-size: 12.5px; font-weight: 600; }
.hero-meta .pill { background: var(--teal-bg); color: var(--teal); border-radius: 999px; padding: 3px 11px; font-weight: 700; }
.hero-meta .pill.expire { background: var(--orange-bg); color: var(--orange); }
.hero-bar { margin-top: 14px; height: 8px; border-radius: 99px;
  background: var(--line); overflow: hidden; }
.hero-bar i { display: block; height: 100%; border-radius: 99px;
  background: var(--teal-grad); background: linear-gradient(90deg, #01bc8f, #13D7A4); }
.hero-bar-cap { display: flex; justify-content: space-between;
  font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.hero-cta { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.hero .btn-hero { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(1,188,143,.28); }
.hero .btn-hero.plain { background: #fff; color: var(--teal); border: 1.5px solid var(--teal); box-shadow: none; }
.hero.warn .hero-chip { color: var(--orange); background: var(--orange-bg); }
.hero.warn .hero-chip .dot { background: var(--orange); }
.hero-tag { display: inline-flex; align-items: center; gap: 5px;
  background: var(--amber-grad); color: #fff; border-radius: 8px;
  padding: 3px 10px; font-size: 12px; font-weight: 700; }

/* ---------- 顶部问候 ---------- */
.greet { margin-bottom: 14px; }
.greet b { font-size: 20px; font-weight: 800; color: var(--ink); }
.greet span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- 快捷操作 ---------- */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.qa { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r);
  box-shadow: var(--shadow-1); padding: 13px 6px; text-align: center; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 7px; transition: transform .18s, box-shadow .18s; }
.qa:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.qa-ico { width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.qa-ico svg { width: 20px; height: 20px; }
.qa-ico.a { background: var(--teal-bg); color: var(--teal); }
.qa-ico.t { background: var(--teal-bg); color: var(--teal); }
.qa-ico.b { background: var(--blue-bg); color: var(--blue); }
.qa-ico.p { background: var(--purple-bg); color: var(--purple); }
.qa-ico.o { background: var(--orange-bg); color: var(--orange); }
.qa-ico.r { background: var(--red-bg); color: var(--red); }
.qa span { font-size: 12px; font-weight: 700; }

/* ---------- 统计卡 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r);
  box-shadow: var(--shadow-1); padding: 14px 10px; text-align: center; position: relative; overflow: hidden; }
.stat b { display: block; font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.stat b i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.stat span { font-size: 12px; color: var(--muted); }
.stat::after { content: ""; position: absolute; right: -14px; top: -14px; width: 46px; height: 46px;
  border-radius: 50%; background: var(--teal-bg); opacity: .7; }

/* ---------- 流量图 ---------- */
.tchart { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding: 6px 2px 0; }
.tcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.tbar { width: 100%; max-width: 30px; border-radius: 7px 7px 3px 3px; background: #dfe6f3;
  min-height: 5px; position: relative; transition: height .4s ease; }
.tbar.hot { background: var(--teal); box-shadow: 0 4px 12px rgba(1,188,143,.35); }
.tcol span { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.tval { font-size: 10px; color: var(--muted); }
.tcol .tval.hot { color: var(--teal); font-weight: 800; }

/* ---------- 公告 ---------- */
.notice { display: flex; align-items: baseline; gap: 10px; padding: 10px 2px; border-bottom: 1px dashed var(--line-soft); flex-wrap: wrap; }
.notice:last-child { border-bottom: 0; }
.notice b { font-size: 14px; flex: none; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.notice b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber-b); flex: none; }
.notice .dim { flex: 1; min-width: 120px; font-size: 13px; }
.notice time { font-size: 12px; color: var(--muted); flex: none; }

/* ---------- 套餐 ---------- */
.optabs { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding-bottom: 12px; }
.optabs::-webkit-scrollbar { display: none; }
.optab { flex: none; border: 1.5px solid var(--line); background: #fff; color: var(--txt);
  border-radius: 999px; padding: 7px 17px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .16s; }
.optab:hover { border-color: var(--teal); color: var(--teal); }
.optab.on { background: #232b45; border-color: #232b45; color: #fff; box-shadow: 0 5px 14px rgba(35,43,69,.25); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.plan-card { background: var(--card); border: 1.5px solid var(--line-soft); border-radius: var(--rl); padding: 0;
  display: flex; flex-direction: column; box-shadow: var(--shadow-1);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease, border-color .2s;
  position: relative; overflow: hidden; }
.plan-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #01d39f, #00a37a 55%, #4a6cf0); opacity: .9; }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(1,188,143,.35); }
.plan-card.on { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(1,188,143,.13), var(--shadow-2); }
.plan-card.on::after { content: "当前套餐"; position: absolute; top: 15px; right: 14px;
  background: var(--teal); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .3px;
  border-radius: 999px; padding: 3px 10px; box-shadow: 0 3px 8px rgba(1,188,143,.35); }
.pc-in { padding: 18px 16px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-carrier { font-size: 10.5px; font-weight: 800; letter-spacing: .6px; border-radius: 999px;
  padding: 3px 10px; }
.plan-carrier.c-中国移动 { background: rgba(208,52,44,.10); color: var(--cm); }
.plan-carrier.c-中国联通 { background: rgba(230,0,18,.10); color: var(--cu); }
.plan-carrier.c-中国电信 { background: rgba(30,111,255,.10); color: var(--ct); }
.pc-price { text-align: right; line-height: 1.1; }
.pc-price b { display: block; font-size: 21px; font-weight: 900; color: var(--teal); letter-spacing: -.3px; }
.pc-price span { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.plan-name { font-size: 15.5px; font-weight: 800; color: var(--ink); }
.plan-speed { display: flex; align-items: baseline; gap: 4px; padding: 2px 0 1px; }
.plan-speed b { font-size: 38px; font-weight: 900; line-height: 1; letter-spacing: -.8px;
  background: linear-gradient(120deg, #01d39f 8%, #00a37a 62%, #12b3d6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.plan-speed i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.plan-meta { display: flex; flex-direction: column; gap: 6px; margin-top: 1px; }
.pc-chip { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--txt);
  background: var(--teal-bg); border: 1px solid rgba(1,188,143,.13); border-radius: 10px; padding: 5.5px 10px; }
.pc-chip svg { width: 13px; height: 13px; color: var(--teal); flex-shrink: 0; }
.pc-chip em { font-style: normal; font-size: 10.5px; color: var(--muted); margin-left: auto; }
.plan-desc { font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line-soft);
  padding-top: 8px; margin-top: 2px; }
.plan-card .btn-pri { margin-top: 10px; }
.pay-hint { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 8px; }

/* ---------- 支付页 ---------- */
.pay-panel { padding: 0; overflow: hidden; }
.pay-order { text-align: center; padding: 26px 18px 20px; background: var(--teal-bg); color: var(--teal);
  display: grid; gap: 4px; justify-items: center; position: relative; overflow: hidden; }
.pay-order::before { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.2); top: -70px; right: -40px; }
.pay-amt { position: relative; font-weight: 900; }
.pay-amt i { font-style: normal; font-size: 17px; margin-right: 3px; }
.pay-amt b { font-size: 44px; letter-spacing: -1px; }
.pay-order .dim { color: var(--muted); font-size: 13px; font-weight: 600; }
.pay-order .mono { color: var(--muted); font-size: 11.5px; opacity: .8; }
.pay-body { padding: 18px 16px; }
.pay-opt { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--txt);
  border: 1.5px solid var(--line); border-radius: 13px; padding: 13px 15px; margin-bottom: 10px;
  cursor: pointer; transition: all .16s; }
.pay-opt:hover { border-color: var(--teal); }
.pay-opt:has(input:checked) { border-color: var(--teal); background: var(--teal-bg); }
.pay-opt input { accent-color: var(--teal); width: 16px; height: 16px; }
.pay-ico { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 900; flex: none; }
.pay-ico.wx { background: #16b364; }
.pay-ico.ali { background: var(--blue); }
.pay-ico.card { background: var(--amber-grad); color: var(--amber-ink); }

/* ---------- 设备 ---------- */
.dev-ico { width: 42px; height: 42px; border-radius: 13px; background: var(--blue-bg); color: var(--blue);
  display: flex; align-items: center; justify-content: center; flex: none; }
.dev-ico.off { background: var(--grey-bg); color: var(--grey); }
.dot-on, .dot-off { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; }
.dot-on::before, .dot-off::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.dot-on { color: var(--teal); }
.dot-on::before { background: var(--teal); box-shadow: 0 0 0 3px rgba(1,188,143,.18); }
.dot-off { color: var(--grey); }
.dot-off::before { background: #c4cbd9; }

/* ---------- 个人资料 ---------- */
.info-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 2px; border-bottom: 1px dashed var(--line-soft); }
.info-row:last-child { border-bottom: 0; }
.info-row span { color: var(--muted); font-size: 13px; flex: none; }
.info-row b { color: var(--ink); font-size: 14px; font-weight: 700; text-align: right; }
.avatar { width: 52px; height: 52px; border-radius: 16px; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 21px; font-weight: 900; flex: none;
  box-shadow: 0 6px 16px rgba(1,188,143,.35); }

/* ---------- 消息页 ---------- */
.msg-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--bg); }
.msg-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: 22px; box-shadow: var(--shadow-2);
  padding: 38px 30px; max-width: 400px; width: 100%; text-align: center; }
.msg-ico { width: 62px; height: 62px; margin: 0 auto 15px; border-radius: 19px; background: var(--teal-bg);
  color: var(--teal); display: flex; align-items: center; justify-content: center; }
.msg-ico svg { width: 30px; height: 30px; }
.msg-card h2 { font-size: 20px; color: var(--ink); margin-bottom: 7px; }
.msg-card p { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }

/* ---------- 登录页（对齐 aicard/student 参考风格 · 点阵底 + 居中卡片） ---------- */
.auth-body { position: relative; display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 100vh; min-height: 100dvh; padding: 40px 16px; color: var(--txt);
  background:
    radial-gradient(circle, #eef2ff 1.3px, transparent 1.3px) 0 0 / 20px 20px,
    linear-gradient(180deg, #fafcff 0%, #f0f4ff 100%);
  background-attachment: fixed; overflow: hidden; }
.auth-wrap { position: relative; z-index: 1; width: min(430px, 100%);
  display: flex; flex-direction: column; align-items: center;
  animation: authIn .5s cubic-bezier(.22,.68,.36,1) both; }
@keyframes authIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.auth-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 6px; }
.auth-brand img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: #fff;
  border: 3px solid #fff; box-shadow: 0 5px 16px rgba(59,91,219,.32); }
.auth-brand b { font-size: 27px; font-weight: 900; color: var(--ink); letter-spacing: 1.5px; }
.auth-tag { font-style: normal; font-size: 12px; color: #fff; padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(135deg, #ff8f5e, #f4364e); font-weight: 800; letter-spacing: .8px;
  box-shadow: 0 3px 10px rgba(244,54,78,.30); }
.auth-headline { font-size: 26px; font-weight: 800; color: var(--ink); margin: 20px 0 4px; letter-spacing: .5px; text-align: center; }
.auth-sub { color: #7b8494; font-size: 13px; margin-bottom: 22px; letter-spacing: .3px; text-align: center; }
.auth-card { width: 100%; background: #fff; border-radius: 22px;
  box-shadow: 0 14px 36px rgba(30,50,120,.14), 0 3px 10px rgba(30,50,120,.07);
  padding: 24px 26px 26px; }
.auth-tabs { display: flex; gap: 3px; background: #f1f5fc; border-radius: 14px; padding: 4px; margin-bottom: 20px; }
.auth-tab { flex: 1; text-align: center; padding: 10px 0; color: #9ba1cf; cursor: pointer;
  font-size: 14px; font-weight: 700; border: 0; background: transparent; border-radius: 10px;
  transition: color .2s, background .2s, box-shadow .2s; white-space: nowrap; }
.auth-tab.on { color: #fff; background: linear-gradient(135deg, #4f6ef7, #3b5bdb);
  box-shadow: 0 4px 12px rgba(59,91,219,.32); }
.auth-mode { display: none; background: transparent; border: 0; padding: 0; margin: 0; }
.auth-mode.on { display: block; }
.auth-field { display: block; margin-bottom: 16px; }
.auth-field b { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.auth-field input, .auth-field select {
  width: 100%; border: 1.5px solid #cfd9f2; border-radius: 10px; padding: 12px 14px;
  font-size: 14px; background: #fff; outline: none; color: var(--ink);
  transition: border-color .18s, box-shadow .18s; }
.auth-field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ba1cf' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 16px; }
.auth-field input::placeholder { color: #a9b4d4; }
.auth-field input:focus, .auth-field select:focus {
  border-color: #6d86f5; box-shadow: 0 0 0 3px rgba(59,91,219,.10); }
.sms-row { display: flex; gap: 8px; align-items: stretch; margin-top: 0; }
.sms-row input { flex: 1; min-width: 0; }
.btn-sms { flex-shrink: 0; white-space: nowrap; border: 0; background: rgba(59,91,219,.10); color: #3b5bdb;
  border-radius: 10px; padding: 0 16px; font-size: 12.5px; font-weight: 800; cursor: pointer;
  transition: opacity .18s; }
.btn-sms:hover { opacity: .85; }
.btn-sms:disabled { color: #8599a6; background: #f1f5fc; cursor: default; }
.btn-login { width: 100%; border: 0; border-radius: 14px; padding: 14px 0; color: #fff;
  font-size: 16.5px; font-weight: 800; letter-spacing: 8px; text-indent: 8px;
  background: linear-gradient(135deg, #4f6ef7, #3b5bdb);
  box-shadow: 0 8px 22px rgba(59,91,219,.32); margin-top: 8px; cursor: pointer;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, opacity .2s; }
.btn-login:hover { opacity: .93; box-shadow: 0 12px 30px rgba(59,91,219,.42); }
.btn-login:active { transform: scale(.97); }
a.btn-login { display: block; text-align: center; text-decoration: none; }
.auth-err { background: #fdecea; color: #b03024; border-radius: 10px;
  padding: 11px 14px; margin-bottom: 16px; font-size: 12.5px; font-weight: 700;
  border: 1px solid #f7cdc8; }
.auth-foot { text-align: center; color: #8599a6; font-size: 12px; margin-top: 22px; line-height: 1.9; letter-spacing: .3px; }
.auth-mode .minor { text-align: right; font-size: 12.5px; margin: -4px 0 12px; }
.auth-mode .minor a { color: #3b5bdb; text-decoration: none; font-weight: 700; }

/* ---------- 门户首页 ---------- */
.portal-top { position: sticky; top: 0; z-index: 40; background: rgba(244,247,252,.86);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(233,237,245,.9); }
.pt-in { max-width: 1120px; margin: 0 auto; height: 62px; padding: 0 20px;
  display: flex; align-items: center; gap: 18px; }
.pt-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.pt-logo { width: 38px; height: 38px; border-radius: 12px; object-fit: cover;
  box-shadow: 0 4px 12px rgba(35,43,69,.18); }
.pt-brand b { font-size: 15.5px; font-weight: 800; }
.pt-brand i { font-style: normal; font-size: 11px; background: var(--teal-bg); color: var(--teal);
  border-radius: 999px; padding: 2px 9px; font-weight: 700; }
.pt-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.pt-nav a { color: var(--txt); font-size: 13.5px; font-weight: 600; padding: 8px 13px; border-radius: 10px; }
.pt-nav a:hover { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.pt-login { background: var(--teal); color: #fff !important; font-weight: 800;
  box-shadow: 0 6px 16px rgba(1,188,143,.35); }
.pt-hero { max-width: 1120px; margin: 0 auto; padding: 72px 20px 40px; display: grid;
  grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.pt-hero-l h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 900; line-height: 1.3;
  color: var(--ink); letter-spacing: 1px; }
.pt-hero-l h1 em { font-style: normal; background: linear-gradient(100deg, #01bc8f, #13D7A4);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.pt-hero-l p { color: var(--muted); font-size: 15px; margin: 18px 0 26px; line-height: 2; max-width: 520px; }
.pt-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.pt-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.pt-tag { font-size: 12px; font-weight: 700; background: #fff; border: 1px solid var(--line);
  color: var(--txt); border-radius: 999px; padding: 5px 14px; }
.pt-visual { position: relative; display: flex; justify-content: center; }
.pv-card { width: min(340px, 100%); border-radius: 24px; padding: 24px 22px; position: relative; z-index: 2;
  background: var(--teal); color: #fff; box-shadow: 0 30px 60px rgba(1,188,143,.4); }
.pv-card::before { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%;
  background: rgba(255,255,255,.22); top: -60px; right: -50px; }
.pv-row { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.pv-chip { background: rgba(255,255,255,.8); color: var(--teal); border-radius: 999px;
  padding: 3px 11px; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.pv-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.pv-time { margin-left: auto; font-size: 11px; font-weight: 700; opacity: .8; }
.pv-name { position: relative; z-index: 1; font-size: 20px; font-weight: 900; margin-top: 14px; }
.pv-sub { position: relative; z-index: 1; font-size: 12.5px; font-weight: 600; opacity: .85; }
.pv-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.pv-stat { background: rgba(1,188,143,.1); border-radius: 12px; padding: 9px 6px; text-align: center; }
.pv-stat b { display: block; font-size: 15.5px; font-weight: 900; }
.pv-stat span { font-size: 10.5px; font-weight: 700; opacity: .75; }
.pv-float { position: absolute; z-index: 3; background: #fff; border: 1px solid var(--line-soft);
  border-radius: 14px; box-shadow: var(--shadow-2); padding: 10px 14px; display: flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; color: var(--ink); animation: pvFloat 5s ease-in-out infinite; }
.pv-float .fi { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.pv-float small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.pv-float.f1 { top: 8%; left: -4%; }
.pv-float.f1 .fi { background: var(--teal-bg); color: var(--teal); }
.pv-float.f2 { bottom: 10%; right: -6%; animation-delay: 1.2s; }
.pv-float.f2 .fi { background: var(--blue-bg); color: var(--blue); }
.pv-float.f3 { bottom: -7%; left: 6%; animation-delay: 2.2s; }
.pv-float.f3 .fi { background: var(--purple-bg); color: var(--purple); }
@keyframes pvFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.pt-stats { max-width: 1120px; margin: 0 auto; padding: 10px 20px 0; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pt-stat { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--rl);
  box-shadow: var(--shadow-1); padding: 18px 12px; text-align: center; }
.pt-stat b { display: block; font-size: 26px; font-weight: 900; color: var(--ink); }
.pt-stat b i { font-style: normal; font-size: 13px; color: var(--teal); margin-left: 2px; }
.pt-stat span { font-size: 12.5px; color: var(--muted); }
.pt-sec { max-width: 1120px; margin: 0 auto; padding: 56px 20px 0; }
.pt-sec-h { text-align: center; margin-bottom: 30px; }
.pt-sec-h em { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: 3px;
  color: var(--teal); background: var(--teal-bg); border-radius: 999px; padding: 4px 15px; }
.pt-sec-h h2 { font-size: 27px; font-weight: 900; color: var(--ink); margin-top: 12px; letter-spacing: 1px; }
.pt-sec-h p { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.pt-ports { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pt-port { background: #fff; border: 1px solid var(--line-soft); border-radius: 20px; padding: 26px 22px;
  box-shadow: var(--shadow-1); color: inherit; display: block; transition: transform .22s, box-shadow .22s; position: relative; overflow: hidden; }
.pt-port:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.pt-port::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px;
  border-radius: 50%; background: var(--teal-bg); opacity: .55; }
.pt-port .pico { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 14px; position: relative; z-index: 1; }
.pt-port .pico svg { width: 25px; height: 25px; }
.pt-port .pico.b { background: var(--blue-bg); color: var(--blue); }
.pt-port .pico.g { background: var(--teal-bg); color: var(--teal); }
.pt-port .pico.o { background: var(--teal-bg); color: var(--teal); }
.pt-port b { display: block; font-size: 17px; font-weight: 800; color: var(--ink); position: relative; z-index: 1; }
.pt-port span { display: block; font-size: 13px; color: var(--muted); line-height: 1.9; margin-top: 6px; position: relative; z-index: 1; }
.pt-port .go { position: absolute; right: 18px; bottom: 16px; font-size: 12px; font-weight: 800; color: var(--teal); }
.pt-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pt-feat { background: #fff; border: 1px solid var(--line-soft); border-radius: 18px; padding: 22px 20px;
  box-shadow: var(--shadow-1); }
.pt-feat .fi { width: 42px; height: 42px; border-radius: 13px; background: var(--blue-bg); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.pt-feat .fi svg { width: 21px; height: 21px; }
.pt-feat b { display: block; font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 5px; }
.pt-feat span { font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.pt-cops { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pt-cop { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 30px;
  font-size: 17px; font-weight: 900; letter-spacing: 2px; box-shadow: var(--shadow-1); }
.pt-cop.cm { color: var(--cm); border-color: rgba(208,52,44,.25); }
.pt-cop.cu { color: var(--cu); border-color: rgba(230,0,18,.25); }
.pt-cop.ct { color: var(--ct); border-color: rgba(30,111,255,.25); }
.pt-foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 60px 16px 34px; line-height: 2; }
.pt-foot b { color: var(--ink); }

/* ---------- 运营端统计卡 ---------- */
.opstats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 16px; }
.opstat { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r);
  box-shadow: var(--shadow-1); padding: 14px 12px; display: flex; align-items: center; gap: 11px; }
.opstat .oi { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; flex: none; }
.opstat .oi svg { width: 19px; height: 19px; }
.opstat b { display: block; font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.opstat span { font-size: 11.5px; color: var(--muted); }

/* ---------- 校趣多风格 · 校园网页 ---------- */
.net-head { display: flex; align-items: center; gap: 13px; padding: 4px 2px 16px; }
.net-head .nh-avatar { width: 46px; height: 46px; border-radius: 15px; flex: none; display: flex;
  align-items: center; justify-content: center; color: #fff; font-size: 19px; font-weight: 800;
  background: var(--teal-grad); box-shadow: var(--sh-teal); }
.net-head .nh-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.net-head .nh-main b { font-size: 16.5px; color: var(--ink); font-weight: 800; letter-spacing: .2px; }
.net-head .nh-main span { font-size: 12.5px; color: var(--muted); }

/* 主卡：渐变底 + 圆环 */
/* ---------- 圆环基础 ---------- */
.ring { position: relative; width: 200px; height: 200px; flex: none; }
.ring svg { position: relative; z-index: 1; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring .r-bg { fill: none; stroke: rgba(1,188,143,.13); stroke-width: 12; }
.ring .r-fg { fill: none; stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(.22,1,.36,1); }
.ring-in { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; }
.ring-in .lbl { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; letter-spacing: .5px; }
.ring-in .num { font-size: 56px; font-weight: 800; line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -1.5px; }
.ring-in .unit { font-size: 14px; color: var(--teal); margin-top: 5px; font-weight: 700; }

/* ---------- 校园网页 · 状态主卡（浅底 + 圆环焦点） ---------- */
.net-hero { position: relative; overflow: hidden; background: var(--card); border-radius: var(--rx);
  border: 1px solid var(--line-soft); box-shadow: var(--sh-2); padding: 18px; margin-bottom: 16px; }
.net-hero::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(1,188,143,.13), transparent 68%); top: -170px; right: -110px;
  pointer-events: none; }
.net-hero::after { content: ""; position: absolute; width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43,127,255,.07), transparent 70%); bottom: -130px; left: -80px;
  pointer-events: none; }
.net-hero > * { position: relative; z-index: 1; }
.net-hero.off { background: linear-gradient(140deg, #3d475c 0%, #2b3348 100%);
  box-shadow: 0 22px 48px -18px rgba(43,51,72,.5); }
.net-hero.off .nh-empty { color: #fff; }
.net-hero.off .nh-empty span { color: rgba(255,255,255,.72); }
.net-hero.off .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); }
.net-hero.off .btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }

.nh-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.nh-plan { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.nh-plan b { font-size: 16.5px; font-weight: 800; color: var(--ink); letter-spacing: .2px; line-height: 1.2; }
.nh-car { align-self: flex-start; font-size: 11.5px; font-weight: 700; color: var(--teal);
  background: var(--teal-bg); border-radius: 999px; padding: 3px 10px; }
.nh-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700;
  color: var(--teal); background: var(--teal-bg); border-radius: 999px; padding: 5px 12px; flex: none; }
.nh-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

.nh-mid { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: center;
  background: linear-gradient(160deg, #f6fbf9 0%, #f2f7fd 100%); border-radius: 20px; padding: 14px; }
.ring.lite { width: 130px; height: 130px; }
.ring.lite .r-bg { stroke: rgba(1,188,143,.13); stroke-width: 13; }
.ring.lite .r-fg { stroke: url(#ringGrad); stroke-width: 13;
  filter: drop-shadow(0 2px 6px rgba(1,188,143,.35)); }
.ring.lite .ring-in .lbl { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.ring.lite .ring-in .num { font-size: 42px; color: var(--ink); font-weight: 800; letter-spacing: -1.5px;
  text-shadow: none; }
.ring.lite .ring-in .unit { font-size: 12px; color: var(--teal); font-weight: 700; margin-top: 3px; }
.nh-info { min-width: 0; }
.nh-lbl { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.nh-date { font-size: 19px; font-weight: 800; color: var(--ink); margin-top: 4px; letter-spacing: .3px;
  font-variant-numeric: tabular-nums; }
.nh-bar { height: 7px; border-radius: 99px; background: rgba(1,188,143,.13); margin-top: 11px; overflow: hidden; }
.nh-bar i { display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #01c896, #12d9a5);
  box-shadow: 0 0 8px rgba(1,188,143,.45);
  transition: width 1s cubic-bezier(.22,1,.36,1); }
.nh-bar-cap { display: flex; justify-content: space-between; margin-top: 7px;
  font-size: 11px; color: var(--muted); font-weight: 600; }

.nh-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 13px; }
.nh-chip { background: linear-gradient(180deg, #fbfdfe 0%, #f5f8fc 100%); border: 1px solid var(--line-soft);
  border-radius: 13px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.nh-ci { width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: var(--teal-soft); color: #01a97c; margin-bottom: 2px; }
.nh-ci svg { width: 15px; height: 15px; }
.nh-chip i { font-style: normal; font-size: 10.5px; color: var(--muted); }
.nh-chip b { font-size: 14px; color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }

.nh-act { display: flex; gap: 10px; margin-top: 14px; }
.nh-act .btn-pri, .nh-act .btn-ghost { flex: 1; text-align: center; padding: 12px 0; border-radius: 13px; }

.nh-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 4px; }
.nh-eico { width: 58px; height: 58px; border-radius: 19px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22); color: #fff; margin-bottom: 13px; }
.nh-eico svg { width: 29px; height: 29px; }
.nh-empty b { font-size: 17px; font-weight: 800; }
.nh-empty span { font-size: 12.5px; line-height: 1.7; margin-top: 6px; max-width: 84%; display: block; }

.svc-title { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 800;
  color: var(--ink); margin: 4px 2px 14px; letter-spacing: .2px; }
.svc-title::before { content: ""; width: 4px; height: 15px; border-radius: 3px; background: var(--teal-grad); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.svc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 11px; text-decoration: none;
  color: var(--ink); background: var(--card); border-radius: var(--rl); padding: 20px 6px 16px;
  border: 1px solid var(--line-soft); box-shadow: var(--sh-1);
  transition: transform .24s cubic-bezier(.34,1.56,.64,1), box-shadow .24s ease; }
.svc:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.svc:active { transform: translateY(-1px) scale(.97); }
.svc .si { width: 50px; height: 50px; border-radius: 16px; display: flex; align-items: center;
  justify-content: center; transition: transform .24s cubic-bezier(.34,1.56,.64,1); }
.svc:hover .si { transform: scale(1.08); }
.svc .si svg { width: 25px; height: 25px; }
.svc > span:last-child { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.3; color: var(--txt); }
.si.a { background: linear-gradient(135deg, #e6f9f2, #cdf2e2); color: #01a97c; }
.si.b { background: linear-gradient(135deg, #eef2ff, #dde6ff); color: #5b6cf0; }
.si.c { background: linear-gradient(135deg, #fff5e6, #ffe7c9); color: #ef8a15; }
.si.d { background: linear-gradient(135deg, #fdeef0, #fbdce0); color: #e0524e; }
.si.e { background: linear-gradient(135deg, #eaf6ff, #d4e9ff); color: #2f8fe0; }
.si.f { background: linear-gradient(135deg, #f2eefd, #e5dbfb); color: #7b5cf0; }

/* ---------- 首页 · 问候 ---------- */
.home-greet { position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: 2px 4px 16px; }
.home-greet .hg-main b { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: .3px; }
.home-greet .hg-main span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.hg-bell { position: relative; width: 42px; height: 42px; border-radius: 14px; flex: none; display: flex;
  align-items: center; justify-content: center; background: #fff; color: var(--muted);
  border: 1px solid var(--line-soft); box-shadow: var(--sh-1); transition: transform .2s, color .2s; }
.hg-bell svg { width: 20px; height: 20px; }
.hg-bell:active { transform: scale(.9); }
.hg-dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); border: 2px solid #fff; }

/* ---------- 首页 · 套餐主卡 ---------- */
.home-hero { position: relative; overflow: hidden; background: var(--card); border-radius: var(--rx);
  border: 1px solid var(--line-soft); box-shadow: var(--sh-2); padding: 18px; margin-bottom: 16px;
  display: grid; grid-template-columns: 122px 1fr; gap: 18px; align-items: center; }
.home-hero::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(1,188,143,.13), transparent 68%); top: -170px; right: -110px;
  pointer-events: none; }
.home-hero::after { content: ""; position: absolute; width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43,127,255,.07), transparent 70%); bottom: -130px; left: -80px;
  pointer-events: none; }
.home-hero > * { position: relative; z-index: 1; }
.home-hero.off { background: linear-gradient(140deg, #3d475c 0%, #2b3348 100%);
  border-color: transparent; grid-template-columns: 1fr; }
.home-hero.off::before, .home-hero.off::after { display: none; }
.home-hero.off .hh-empty, .home-hero.off .hh-empty b, .home-hero.off .hh-empty p,
.home-hero.off .hh-btn { color: #fff; }
.home-hero.off .hh-empty p { color: rgba(255,255,255,.72); }
.hh-ring { display: flex; justify-content: center; }
.ring.sm { width: 122px; height: 122px; }
.ring.sm .r-bg { stroke: rgba(1,188,143,.13); stroke-width: 13; }
.ring.sm .r-fg { stroke: var(--teal); stroke-width: 13; stroke-linecap: round;
  transition: stroke-dashoffset 1.15s cubic-bezier(.34,1.56,.64,1); }
.ring.sm .ring-in .num { font-size: 38px; color: var(--ink); font-weight: 800; letter-spacing: -1px;
  font-variant-numeric: tabular-nums; }
.ring.sm .ring-in .unit { font-size: 11.5px; color: var(--teal); font-weight: 700; margin-top: 3px; }
.hh-body { min-width: 0; }
.hh-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hh-top b { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: .2px; }
.hh-status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; background: var(--teal-bg); color: var(--teal);
  border: 1px solid rgba(1,188,143,.18); }
.hh-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  animation: ain-breathe 2.4s ease-in-out infinite; }
.home-hero p { font-size: 12.5px; margin-top: 7px; color: var(--muted); line-height: 1.5; }
.hh-chips { display: flex; gap: 16px; margin-top: 13px; }
.hh-chips span { display: flex; flex-direction: column; gap: 3px; font-size: 15px; font-weight: 800;
  color: var(--ink); font-variant-numeric: tabular-nums; }
.hh-chips i { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.hh-act { grid-column: 1 / -1; display: flex; gap: 10px; margin-top: 4px; }
.hh-btn { flex: 1; text-align: center; text-decoration: none; padding: 12px 0; border-radius: 13px;
  background: var(--teal); color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 20px -8px rgba(1,188,143,.5);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s; }
.hh-btn:hover { box-shadow: 0 12px 28px -8px rgba(1,188,143,.6); }
.hh-btn.plain { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.hh-btn:active { transform: scale(.97); }
.home-hero.off .hh-act { margin-top: 16px; }
.home-hero.off .hh-btn { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); box-shadow: none; }
.home-hero.off .hh-btn.plain { background: transparent; }
.hh-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 0; }
.hh-eico { width: 58px; height: 58px; border-radius: 19px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2); margin-bottom: 12px; color: #fff; }
.hh-eico svg { width: 29px; height: 29px; }
.hh-empty b { font-size: 16.5px; font-weight: 800; }
.hh-empty p { font-size: 12.5px; line-height: 1.7; margin-top: 6px; max-width: 86%; }

/* ---------- 首页 · 快捷入口 ---------- */
.home-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.hq { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px;
  background: var(--card); border-radius: var(--r); padding: 15px 4px 13px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line-soft); box-shadow: var(--sh-1);
  transition: transform .24s cubic-bezier(.34,1.56,.64,1), box-shadow .24s ease; }
.hq:active { transform: scale(.94); }
.hq:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.hq-i { width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--teal-soft); color: #01a97c; transition: transform .24s cubic-bezier(.34,1.56,.64,1); }
.hq:hover .hq-i { transform: scale(1.1) rotate(-4deg); }
.hq-i svg { width: 21px; height: 21px; }
.hq-i.o { background: linear-gradient(135deg, #fff5e6, #ffe7c9); color: #ef8a15; }
.hq-i.b { background: linear-gradient(135deg, #eef2ff, #dde6ff); color: #5b6cf0; }
.hq-i.r { background: linear-gradient(135deg, #fdeef0, #fbdce0); color: #e0524e; }
.hq > span:last-child { font-size: 11.5px; font-weight: 600; color: var(--txt); white-space: nowrap; }

/* ---------- 校趣多风格 · 我的页 ---------- */
.my-head { position: relative; overflow: hidden; display: flex; align-items: center; gap: 15px;
  border-radius: var(--rl);
  background: linear-gradient(120deg, #ffffff 0%, #f3fbf8 46%, #eef5fd 100%);
  padding: 22px 20px; box-shadow: var(--sh-1); margin-bottom: 16px; border: 1px solid var(--line-soft); }
.my-head::before { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(1,188,143,.10), transparent 70%); top: -70px; right: -50px; }
.my-avatar { position: relative; width: 60px; height: 60px; border-radius: 20px; flex: none; display: flex; align-items: center;
  justify-content: center; font-size: 25px; font-weight: 800; color: #fff;
  background: var(--teal-grad); box-shadow: var(--sh-teal); }
.my-head .mh-main { position: relative; flex: 1; min-width: 0; }
.my-head .mh-main b { font-size: 19px; color: var(--ink); font-weight: 800; letter-spacing: .3px; }
.my-head .mh-main span { font-size: 12.5px; color: var(--muted); display: block; margin-top: 4px; }
.my-list { background: var(--card); border-radius: var(--rl); overflow: hidden;
  box-shadow: var(--sh-1); margin-bottom: 16px; border: 1px solid var(--line-soft); }
.my-item { position: relative; display: flex; align-items: center; gap: 13px; padding: 13px 16px; text-decoration: none;
  color: var(--ink); border-bottom: 1px solid var(--line-soft); transition: background .18s; }
.my-item:last-child { border-bottom: 0; }
.my-item:hover { background: #fafcfe; }
.my-item .mi-ico { width: 34px; height: 34px; border-radius: 11px; flex: none; display: flex;
  align-items: center; justify-content: center; background: var(--teal-soft); color: #01a97c; }
.my-item .mi-ico svg { width: 18px; height: 18px; }
.my-item .mi-label { flex: 1; font-size: 14px; font-weight: 600; }
.my-item .mi-val { font-size: 12.5px; color: var(--muted); max-width: 130px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.my-item .mi-arrow { color: #c8cfdb; flex: none; font-size: 18px; }
.my-out { width: 100%; border: 1.5px solid #f6dadc; background: #fff; color: var(--red);
  border-radius: 15px; padding: 15px 0; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .18s, transform .18s; }
.my-out:hover { background: var(--red-bg); }
.my-out:active { transform: scale(.98); }

/* ---------- 动效层 · 让页面丝滑 ---------- */
@keyframes ain-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ain-up-sm { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ain-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ain-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes ain-slide-r { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes ain-shine { to { transform: translateX(120%); } }
@keyframes ain-ring-in { from { stroke-dashoffset: var(--circ, 552); opacity: .35; } }
@keyframes ain-breathe { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: .7; } }

/* 页面进入：直接子块顺序淡入上移（stagger 由 nth-child 控制） */
.frame-body .page > *, .auth-wrap > * { animation: ain-up .5s cubic-bezier(.22,1,.36,1) both; }
.frame-body .page > *:nth-child(1), .auth-wrap > *:nth-child(1) { animation-delay: .03s; }
.frame-body .page > *:nth-child(2), .auth-wrap > *:nth-child(2) { animation-delay: .09s; }
.frame-body .page > *:nth-child(3), .auth-wrap > *:nth-child(3) { animation-delay: .15s; }
.frame-body .page > *:nth-child(4) { animation-delay: .21s; }
.frame-body .page > *:nth-child(5) { animation-delay: .27s; }
.frame-body .page > *:nth-child(n+6) { animation-delay: .33s; }

/* 网格类：子项各自弹入，错峰更精致 */
.svc-grid > *, .quick > *, .stats > *, .plan-grid > *, .my-list > *, .home-quick > * {
  animation: ain-pop .5s cubic-bezier(.34,1.45,.5,1) both; }
.svc-grid > *:nth-child(1), .quick > *:nth-child(1), .stats > *:nth-child(1), .my-list > *:nth-child(1), .home-quick > *:nth-child(1) { animation-delay: .22s; }
.svc-grid > *:nth-child(2), .quick > *:nth-child(2), .stats > *:nth-child(2), .my-list > *:nth-child(2), .home-quick > *:nth-child(2) { animation-delay: .28s; }
.svc-grid > *:nth-child(3), .quick > *:nth-child(3), .stats > *:nth-child(3), .my-list > *:nth-child(3), .home-quick > *:nth-child(3) { animation-delay: .34s; }
.svc-grid > *:nth-child(4), .quick > *:nth-child(4), .stats > *:nth-child(4), .my-list > *:nth-child(4), .home-quick > *:nth-child(4) { animation-delay: .40s; }
.svc-grid > *:nth-child(5), .quick > *:nth-child(5), .stats > *:nth-child(5), .my-list > *:nth-child(5) { animation-delay: .46s; }
.svc-grid > *:nth-child(6), .quick > *:nth-child(6), .stats > *:nth-child(6), .my-list > *:nth-child(6) { animation-delay: .52s; }

/* 进度环：加载时从空画到当前值，配合 --circ 由 PHP 注入 */
.ring .r-fg { animation: ain-ring-in 1.15s cubic-bezier(.22,1,.36,1) both .25s;
  transform-origin: 50% 50%; }

/* 状态圆点呼吸 */
.dot, .hb-tag i, .hero-chip .dot, .hh-status i, .hg-dot { animation: ain-breathe 2.6s ease-in-out infinite; }

/* 光泽扫过：给渐变主卡/按钮增加流光质感（子元素实现，兼容已占用 ::before/::after 的容器） */
.shine { position: relative; overflow: hidden; }
.shine-i { position: absolute; top: 0; bottom: 0; left: 0; width: 46%; pointer-events: none; z-index: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.20) 50%, transparent 100%);
  transform: translateX(-130%); }
.shine:hover .shine-i, .shine.play .shine-i { animation: ain-shine 1.1s ease both; }
.shine > .ring-wrap, .shine > .ring-none, .shine > .hb-tag, .shine > h2, .shine > p,
.shine > .mh-main, .shine > .my-avatar,
.shine > .plan-box-top, .shine > .plan-box-meta, .shine > .plan-box-act,
.shine > .hh-ring, .shine > .hh-body, .shine > .hh-act, .shine > .hh-empty { position: relative; z-index: 1; }

/* 卡片按下回弹（触屏手感） */
.home-card, .svc, .qa, .my-item, .plan-card, .tb-item, .home-banner { transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s ease; }
.home-card:active, .svc:active, .qa:active, .my-item:active, .plan-card:active { transform: scale(.965); transition-duration: .08s; }

/* 列表项进入：从左侧轻推 */
.my-list > .my-item { animation-name: ain-slide-r; animation-duration: .42s; }
.notice { animation: ain-fade .5s ease both .3s; }

/* 页面级淡入，避免切 tab 时整屏硬切 */
.frame-body, .auth-body, body.pt-body { animation: ain-fade .34s ease both; }

/* 悬浮提示/浮层淡入 */
.flash { animation: ain-slide-r .42s cubic-bezier(.22,1,.36,1) both; }

@media (prefers-reduced-motion: reduce) {
  .frame-body .page > *, .auth-wrap > *, .svc-grid > *, .quick > *, .stats > *, .plan-grid > *, .my-list > *, .home-quick > *, .ring .r-fg, .dot, .hb-tag i, .hero-chip .dot, .hh-status i { animation: none !important; }
}


@media (max-width: 1080px) {
  .pt-hero { grid-template-columns: 1fr; gap: 48px; padding-top: 48px; text-align: center; }
  .pt-hero-l p { margin-left: auto; margin-right: auto; }
  .pt-cta, .pt-tags { justify-content: center; }
  .pv-float.f1 { left: 0; } .pv-float.f2 { right: 0; }
  .opstats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .pt-ports, .pt-feats { grid-template-columns: 1fr; }
  .pt-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .topbar { height: 52px; padding: 0 12px; gap: 8px; }
  .tb-brand b, .tb-brand em { display: none; }
  .tb-uname { max-width: 60px; }
  .tb-nav { justify-content: flex-start; }
  .frame-body .page { padding: 13px 11px 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat b { font-size: 19px; }
  .quick { grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .qa-ico { width: 36px; height: 36px; border-radius: 11px; }
  .qa span { font-size: 11px; }
  .panel { padding: 14px; border-radius: 15px; }
  .frm-grid { grid-template-columns: 1fr; }
  .frm-inline select, .frm-inline input { min-width: 100%; }
  .plan-grid { grid-template-columns: 1fr; }
  .row { gap: 8px; }
  .row-side { width: 100%; justify-content: flex-start; }
  .auth-card { padding: 24px 18px; }
  .hero { padding: 20px 17px; border-radius: 19px; }
  .hero-name { font-size: 20px; }
  .opstats { grid-template-columns: 1fr 1fr; }
  .pt-in { padding: 0 14px; height: 56px; }
  .pt-nav a:not(.pt-login) { display: none; }
  .pt-hero { padding: 36px 14px 28px; }
  .pv-float { display: none; }
  .pay-amt b { font-size: 38px; }
  .svc-grid { gap: 10px; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .btn-hero { padding: 12px 24px; font-size: 14px; }
  .plan-speed { font-size: 23px; }
  .quick { grid-template-columns: repeat(4, 1fr); }
  .svc-grid { gap: 8px; }
  .svc { padding: 14px 4px 12px; border-radius: 14px; }
  .svc .si { width: 42px; height: 42px; }
  .svc span { font-size: 11.5px; }
}
@media (hover: none) {
  .qa:hover, .plan-card:hover, .pt-port:hover, .tb-item:hover { transform: none; }
  .btn-pri, .btn-hero, .btn-login, .tb-item { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@supports (padding: env(safe-area-inset-bottom)) {
  .foot, .pt-foot { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
}
