/* ============================================================
   艺术老师排课 · 全局样式
   ============================================================ */
:root {
  --primary: #5b6bff;
  --primary-2: #8a5cf6;
  --primary-dark: #4353e8;
  --accent: #e8b45a;
  --accent-2: #f3cf8a;
  --bg: #f3f5fb;
  --card: #ffffff;
  --ink: #1f2437;
  --ink-2: #5f6680;
  --ink-3: #9aa1ba;
  --line: #e8eaf3;
  --line-2: #f1f3f9;
  --side: #161a2b;
  --side-2: rgba(255, 255, 255, .05);
  --side-ink: #a7aec6;
  --green: #21a06a;
  --green-bg: #e5f6ee;
  --blue: #3d85f5;
  --blue-bg: #e8f1fe;
  --violet: #7c5cf0;
  --violet-bg: #efeaff;
  --gold: #c9962f;
  --gold-bg: #faf1e2;
  --red: #e8505f;
  --red-bg: #fdecef;
  --gray: #9aa1ad;
  --gray-bg: #eef0f4;
  --shadow-xs: 0 1px 3px rgba(22, 26, 43, .05);
  --shadow-sm: 0 4px 16px rgba(22, 26, 43, .06);
  --shadow: 0 10px 30px rgba(22, 26, 43, .08);
  --shadow-lg: 0 24px 64px rgba(22, 26, 43, .16);
  --radius: 16px;
  --radius-sm: 10px;
  --ring: 0 0 0 4px rgba(91, 107, 255, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
a { color: var(--primary); text-decoration: none; }
::selection { background: rgba(91, 107, 255, .2); }

/* 精致滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccd1e0; border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #b3bad0; background-clip: content-box; border: 3px solid transparent; }

/* ============ 登录页 ============ */
.auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  background:
    radial-gradient(1000px 560px at 10% -10%, rgba(138, 92, 246, .42), transparent 62%),
    radial-gradient(860px 540px at 96% 112%, rgba(91, 107, 255, .34), transparent 60%),
    radial-gradient(600px 300px at 82% 4%, rgba(232, 180, 90, .10), transparent 60%),
    linear-gradient(150deg, #171b2d 0%, #202440 54%, #141827 100%);
}
.auth-shell {
  width: 940px; max-width: 100%;
  display: grid; grid-template-columns: 1.08fr 1fr;
  background: #fff; border-radius: 28px; overflow: hidden;
  box-shadow: 0 48px 110px rgba(4, 7, 20, .55), 0 0 0 1px rgba(255, 255, 255, .06);
}
.auth-left {
  position: relative;
  padding: 56px 48px;
  color: #fff;
  background:
    radial-gradient(560px 320px at 18% -4%, rgba(138, 92, 246, .28), transparent 60%),
    radial-gradient(420px 260px at 100% 100%, rgba(91, 107, 255, .22), transparent 55%),
    linear-gradient(168deg, #1f2440 0%, #171b2e 100%);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.auth-left::after {
  content: ""; position: absolute; right: -70px; bottom: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
}
.auth-left::before {
  content: ""; position: absolute; right: -30px; bottom: -30px;
  width: 140px; height: 140px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .06);
}
.auth-logo { margin-bottom: 30px; position: relative; z-index: 1; }
.art-logo {
  position: relative; width: 92px; height: 92px; border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ff9a6b 0%, #ff6b9d 48%, #8a5cf6 100%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.art-logo::after {
  content: ""; position: absolute; inset: 0; border-radius: 24px;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
}
.art-logo-ico { font-size: 46px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .28)); position: relative; z-index: 1; }

.auth-title { font-size: 35px; font-weight: 800; letter-spacing: 4px; position: relative; z-index: 1; }
.auth-slogan { margin-top: 10px; color: #a9b0c9; font-size: 15px; letter-spacing: 1px; position: relative; z-index: 1; }
.auth-features { list-style: none; margin-top: 38px; display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 1; }
.auth-features li { display: flex; align-items: center; gap: 13px; color: #c7cddf; font-size: 14px; letter-spacing: .3px; }
.fdot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(232, 180, 90, .16);
}

.auth-right { padding: 48px 46px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-tabs {
  display: flex; background: #f0f2f8; border-radius: 13px; padding: 4px; margin-bottom: 24px;
}
.auth-tab { flex: 1; padding: 10px 0; border-radius: 10px; color: var(--ink-2); font-weight: 600; transition: .2s; }
.auth-tab.active { background: #fff; color: var(--ink); box-shadow: 0 3px 12px rgba(22, 26, 43, .1); }

.role-picker { display: flex; gap: 12px; margin-bottom: 24px; }
.role-opt { flex: 1; }
.role-opt span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 0; border: 1.5px solid var(--line); border-radius: 13px;
  cursor: pointer; font-weight: 600; color: var(--ink-2); transition: .18s; font-size: 14px;
  background: #fafbfe;
}
.role-opt span:hover { border-color: #cfd4ee; }
.role-opt input { display: none; }
.role-opt input:checked + span {
  border-color: var(--primary); color: var(--primary);
  background: linear-gradient(180deg, #f3f5ff, #eef0ff);
  box-shadow: 0 6px 18px rgba(91, 107, 255, .16);
}

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line);
  border-radius: 12px; background: #fafbfd; transition: .18s; outline: none;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #d6dbea; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); background: #fff; box-shadow: var(--ring);
}
.field textarea { resize: vertical; min-height: 64px; }
.auth-error { color: var(--red); font-size: 13px; min-height: 20px; margin-bottom: 8px; }
.auth-hint { margin-top: 16px; text-align: center; color: var(--ink-3); font-size: 13px; }
.auth-hint a { cursor: pointer; font-weight: 600; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: 11px; font-weight: 600; font-size: 14px;
  transition: .18s; border: 1.5px solid transparent; white-space: nowrap; position: relative;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; box-shadow: 0 8px 22px rgba(91, 107, 255, .32);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(91, 107, 255, .42); filter: brightness(1.04); }
.btn-primary:active { transform: translateY(0); filter: brightness(.97); }
.btn-block { width: 100%; padding: 12px; font-size: 15px; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: #fbfbff; }
.btn-danger { background: var(--red-bg); color: var(--red); }
.btn-danger:hover { background: #fbdadd; }
.btn-sm { padding: 6px 13px; font-size: 13px; border-radius: 8px; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-xs); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 6px 16px rgba(91, 107, 255, .14); }

/* ============ 主应用布局 ============ */
.app { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: 238px; flex: none; display: flex; flex-direction: column;
  background:
    radial-gradient(300px 200px at 0% 0%, rgba(138, 92, 246, .14), transparent 70%),
    linear-gradient(180deg, #1b1f31 0%, #141825 100%);
  color: var(--side-ink); padding: 24px 16px 18px;
  box-shadow: 1px 0 0 rgba(0, 0, 0, .1);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px 24px; }
.brand-mark {
  width: 42px; height: 42px; flex: none; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; font-size: 21px; color: #1b1f2e;
  background: linear-gradient(135deg, #ffffff, #dfe3f6);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .32), inset 0 1px 0 #fff;
}
.brand-name { color: #fff; font-weight: 700; font-size: 16px; letter-spacing: 1px; }
.brand-sub { color: #69708c; font-size: 11px; letter-spacing: .5px; }

.nav { flex: 1; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-radius: 11px; color: #a6adc6; font-weight: 500; transition: .18s; text-align: left;
  position: relative;
}
.nav-item .ico { width: 20px; text-align: center; font-size: 16px; }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.active {
  background: linear-gradient(135deg, rgba(91, 107, 255, .32), rgba(138, 92, 246, .24));
  color: #fff; box-shadow: inset 0 0 0 1px rgba(130, 140, 255, .28);
}
.nav-item.active::before {
  content: ""; position: absolute; left: -16px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 10px rgba(122, 132, 255, .7);
}

.sidebar-user {
  display: flex; align-items: center; gap: 10px; padding: 14px 10px 2px;
  border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 12px;
}
.avatar {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #e0b877);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}
.user-meta { flex: 1; min-width: 0; }
.user-name { color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { color: #7b829a; font-size: 12px; }
.logout { color: #7b829a; font-size: 16px; padding: 7px; border-radius: 9px; transition: .18s; }
.logout:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.topbar {
  height: 68px; flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 0 30px; background: rgba(255, 255, 255, .72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar h2 { font-size: 19px; font-weight: 700; letter-spacing: .3px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.content { flex: 1; overflow-y: auto; padding: 28px 30px 44px; }

/* ============ 通用卡片 ============ */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px;
  border: 1px solid var(--line-2);
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.card-title { font-size: 16px; font-weight: 700; }
.card-sub { color: var(--ink-3); font-size: 13px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }

/* ============ 统计卡片 ============ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.stats-5 { grid-template-columns: repeat(5, 1fr); }
.stat-card {
  position: relative; overflow: hidden; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px; transition: .22s; border: 1px solid var(--line-2);
}
.stat-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, .5) 100%); opacity: 0;
  transition: .3s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-card:hover::after { opacity: .35; }
.stat-card .label { color: var(--ink-2); font-size: 13px; font-weight: 500; }
.stat-card .value { font-size: 31px; font-weight: 800; margin-top: 9px; letter-spacing: -.5px; }
.stat-card .value small { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.stat-card .trend { margin-top: 9px; font-size: 12px; color: var(--ink-3); }
.stat-icon {
  position: absolute; right: 18px; top: 18px; width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.stat-icon.violet { background: linear-gradient(135deg, #ecebff, #ddd7ff); color: var(--violet); }
.stat-icon.gold { background: linear-gradient(135deg, #fbf2e0, #f6e3bd); color: var(--gold); }
.stat-icon.green { background: linear-gradient(135deg, #e2f5ec, #cdeee0); color: var(--green); }
.stat-icon.blue { background: linear-gradient(135deg, #e4f0fe, #d0e5fd); color: var(--blue); }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; padding: 12px 14px; font-size: 12px; font-weight: 600; color: var(--ink-3);
  letter-spacing: .5px; border-bottom: 1px solid var(--line); background: #fafbfe;
}
th:first-child { border-top-left-radius: var(--radius-sm); }
th:last-child { border-top-right-radius: var(--radius-sm); }
td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: .12s; }
tbody tr:hover { background: #f7f9ff; }
.t-actions { display: flex; gap: 6px; }

/* ============ 状态徽章 ============ */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px;
  border-radius: 999px; font-size: 12px; font-weight: 600;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 2px rgba(0,0,0,.04); }
.badge-booked { background: var(--blue-bg); color: var(--blue); }
.badge-completed { background: var(--green-bg); color: var(--green); }
.badge-cancelled { background: var(--gray-bg); color: var(--gray); }
.badge-open { background: var(--green-bg); color: var(--green); }
.badge-bookedby { background: var(--violet-bg); color: var(--violet); }

/* ============ 日历周视图 ============ */
.cal-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cal-nav { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 11px; box-shadow: var(--shadow-sm); padding: 4px; }
.cal-nav button { width: 32px; height: 32px; border-radius: 8px; font-size: 15px; color: var(--ink-2); transition: .15s; }
.cal-nav button:hover { background: #f0f2f8; color: var(--ink); }
.cal-week-label { font-weight: 700; font-size: 15px; min-width: 150px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.cal-day {
  background: #f8f9fd; border-radius: 14px; padding: 12px; min-height: 320px;
  display: flex; flex-direction: column; border: 1px solid transparent; transition: .18s;
}
.cal-day:hover { background: #f5f7ff; }
.cal-day.today { background: linear-gradient(180deg, #f1f3ff, #eef0ff); box-shadow: inset 0 0 0 1.5px var(--primary); }
.cal-day-head { text-align: center; margin-bottom: 10px; }
.cal-dow { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.cal-date { font-size: 20px; font-weight: 800; }
.cal-date.today-num {
  width: 34px; height: 34px; margin: 4px auto 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border-radius: 10px;
  box-shadow: 0 4px 12px rgba(91, 107, 255, .35);
}
.cal-lessons { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.lesson {
  padding: 8px 11px; border-radius: 10px; cursor: pointer; transition: .16s; font-size: 12.5px;
  border-left: 3px solid; line-height: 1.45; box-shadow: var(--shadow-xs);
}
.lesson:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(22, 26, 43, .14); }
.lesson .l-time { font-weight: 700; font-size: 12px; }
.lesson .l-name { opacity: .92; }
.lesson.booked { background: var(--blue-bg); border-color: var(--blue); color: #2a5bb5; }
.lesson.completed { background: var(--green-bg); border-color: var(--green); color: #1f7a4c; }
.lesson.cancelled { background: var(--gray-bg); border-color: var(--gray); color: #7b808a; text-decoration: line-through; }
.cal-empty { color: var(--ink-3); font-size: 12px; text-align: center; margin-top: 20px; }
.cal-add { margin-top: 10px; width: 100%; padding: 8px; border: 1.5px dashed #d8dcec; border-radius: 9px; color: var(--ink-3); font-size: 13px; transition: .15s; }
.cal-add:hover { border-color: var(--primary); color: var(--primary); background: #fff; }

/* ============ 空档 / 预约 ============ */
.slot-list { display: flex; flex-direction: column; gap: 10px; }
.slot-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 14px; transition: .16s; background: #fff;
}
.slot-item:hover { border-color: #c9cfe8; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.slot-date { flex: none; text-align: center; min-width: 62px; }
.slot-date .d { font-size: 22px; font-weight: 800; }
.slot-date .m { font-size: 12px; color: var(--ink-3); }
.slot-info { flex: 1; }
.slot-info .t { font-weight: 700; font-size: 15px; }
.slot-info .n { color: var(--ink-2); font-size: 13px; }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 18, 30, .52); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 24px;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 480px; max-width: 100%; max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  animation: pop .22s cubic-bezier(.22, 1, .36, 1);
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 17px; font-weight: 700; }
.modal-close { font-size: 22px; color: var(--ink-3); width: 32px; height: 32px; border-radius: 8px; transition: .15s; }
.modal-close:hover { background: #f0f2f8; color: var(--ink); }
.modal-body { padding: 22px 24px 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* ============ toast ============ */
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  background: #1e2233; color: #fff; padding: 12px 22px; border-radius: 12px;
  box-shadow: var(--shadow-lg); z-index: 200; font-size: 14px; animation: slideDown .25s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translate(-50%, -16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.toast.error { background: var(--red); }

/* ============ 空状态 ============ */
.empty { text-align: center; padding: 48px 20px; color: var(--ink-3); }
.empty .e-ico { font-size: 42px; margin-bottom: 10px; }
.empty p { font-size: 14px; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .stats-grid, .stats-5 { grid-template-columns: repeat(2, 1fr); }
  .sidebar { width: 76px; padding: 18px 10px; }
  .brand-text, .nav-item span:not(.ico), .user-meta { display: none; }
  .nav-item { justify-content: center; }
  .nav-item.active::before { display: none; }
  .sidebar-user { justify-content: center; }
  .cal-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ 手机版模式（可手动切换 / 自动适配） ============ */
body.mobile .sidebar { width: 64px; padding: 16px 8px; }
body.mobile .brand { justify-content: center; padding: 4px 0 18px; }
body.mobile .brand-text, body.mobile .nav-item span:not(.ico), body.mobile .user-meta { display: none; }
body.mobile .nav-item { justify-content: center; padding: 12px; }
body.mobile .nav-item.active::before { display: none; }
body.mobile .sidebar-user { justify-content: center; padding: 12px 0; }
body.mobile .topbar { padding: 0 14px; }
body.mobile .content { padding: 16px 14px 32px; }
body.mobile .stats-grid, body.mobile .stats-5 { grid-template-columns: 1fr; gap: 10px; }
body.mobile .cal-grid { grid-template-columns: 1fr; gap: 10px; }
body.mobile .cal-day { min-height: auto; }
body.mobile .form-row { grid-template-columns: 1fr; }
body.mobile .ops-grid { grid-template-columns: 1fr; }
body.mobile .auth-shell { grid-template-columns: 1fr; }

/* ============ 运营中心 / 趋势图 ============ */
.ops-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.trend-chart { display: flex; align-items: flex-end; gap: 12px; height: 160px; padding: 12px 6px 0; }
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.trend-bar {
  width: 100%; max-width: 42px; border-radius: 8px 8px 4px 4px; position: relative; transition: .3s;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
}
.trend-bar:hover { filter: brightness(1.08); }
.trend-bar span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--ink-2); }
.trend-label { font-size: 11px; color: var(--ink-3); }

/* ============ 顶部广播条 ============ */
.broadcast-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 34px; z-index: 300;
  background: linear-gradient(90deg, #2b3366, #4a5bd7 60%, #7c5cf0);
  color: #fff; display: flex; align-items: center; gap: 10px; padding: 0 16px; font-size: 13px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}
.broadcast-ico { flex: none; font-size: 14px; }
.broadcast-scroll { flex: 1; overflow: hidden; white-space: nowrap; }
.broadcast-scroll span { display: inline-block; padding-left: 100%; animation: marquee 22s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
body.has-broadcast .app { margin-top: 34px; height: calc(100vh - 34px); }
body.has-broadcast .auth-wrap { min-height: calc(100vh - 34px); margin-top: 34px; }

/* ============ 广告弹窗 ============ */
.ad-popup {
  position: fixed; inset: 0; background: rgba(15, 17, 28, .62); backdrop-filter: blur(4px);
  z-index: 400; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.ad-popup-inner { position: relative; }
.ad-popup-inner img { display: block; max-width: min(88vw, 560px); max-height: 76vh; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.ad-close {
  position: absolute; top: -14px; right: -14px; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: var(--ink); font-size: 18px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.ad-close:hover { background: #f0f2f8; }
.ad-caption { text-align: center; color: #fff; margin-top: 12px; font-size: 14px; }

/* ============ 排课快捷操作 ============ */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.chip {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: #f7f8fc; color: var(--ink-2); font-size: 12.5px; cursor: pointer;
  transition: .15s; white-space: nowrap; user-select: none;
}
.chip:hover { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(91, 107, 255, .28); }
.chip:active { transform: scale(.95); }

/* 学员长期备注展示框 */
.stu-note-box {
  margin: -6px 0 16px; background: linear-gradient(180deg, #f7f8fd, #f3f5fb); border: 1px solid var(--line);
  border-radius: 13px; padding: 12px 14px;
}
.stu-note-t { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 5px; }
.stu-note-c { font-size: 13.5px; color: var(--ink); line-height: 1.65; white-space: pre-wrap; word-break: break-word; }

/* 学生表格备注单元格 */
.stu-note-cell { cursor: pointer; color: var(--ink-2); max-width: 200px; }
.stu-note-cell:hover { color: var(--primary); }

/* ============ 作者信息 ============ */
.auth-author {
  margin-top: 44px; padding: 14px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  display: flex; align-items: center; gap: 12px; position: relative; z-index: 1;
  backdrop-filter: blur(4px);
}
.auth-author-ico {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: linear-gradient(135deg, #4d9fff, #3d7df5);
  box-shadow: 0 6px 14px rgba(61, 125, 245, .35);
}
.auth-author-meta { min-width: 0; }
.auth-author-label { font-size: 11px; color: #8a91ac; letter-spacing: .5px; }
.auth-author-qq { color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .5px; display: inline-block; margin-top: 1px; transition: .15s; }
.auth-author-qq:hover { color: #6fb0ff; }

.sidebar-footer { padding: 12px 8px 2px; }
.author-chip {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 12px; border-radius: 10px; font-size: 12px; color: #8b92aa;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07);
  transition: .18s; white-space: nowrap; overflow: hidden;
}
.author-chip:hover { color: #fff; background: rgba(61, 125, 245, .16); border-color: rgba(77, 159, 255, .35); }
.author-chip-ico { font-size: 14px; flex: none; }

@media (max-width: 900px) { .author-chip .txt { display: none; } }
body.mobile .author-chip .txt { display: none; }

/* ============ 顶栏：广场入口 / 退出登录 / 返回首页 ============ */
.brand { cursor: pointer; }
.btn-forum {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
  background: linear-gradient(135deg, #ff6b9d, #8a5cf6); color: #fff;
  box-shadow: 0 6px 16px rgba(138, 92, 246, .35); transition: .18s; white-space: nowrap;
}
.btn-forum:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(138, 92, 246, .45); filter: brightness(1.04); }
.btn-forum:active { transform: translateY(0); }
.topbar-date { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
body.mobile .topbar-date { display: none; }
body.mobile .btn-forum { padding: 7px 13px; font-size: 12.5px; }
body.mobile #top-logout { padding: 6px 10px; }

/* ============ 侧边栏退出登录按钮 ============ */
.sidebar-logout {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: 12px 8px 0; padding: 10px 12px; border-radius: 10px;
  color: #a6adc6; font-size: 13px; font-weight: 600; transition: .18s;
  border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03);
}
.sidebar-logout:hover { color: #fff; background: rgba(232, 80, 95, .16); border-color: rgba(232, 80, 95, .38); }
.sidebar-logout .sl-ico { font-size: 15px; }
@media (max-width: 900px) { .sidebar-logout .sl-txt { display: none; } }
body.mobile .sidebar-logout .sl-txt { display: none; }

/* ============ 手机版排版精修（清晰一目了然） ============ */
body.mobile .topbar { height: 56px; padding: 0 12px; gap: 8px; }
body.mobile .topbar h2 { font-size: 16px; white-space: nowrap; letter-spacing: 0; }
body.mobile .topbar .btn { padding: 6px 10px; font-size: 12px; }
body.mobile .btn-forum { padding: 7px 12px; font-size: 12.5px; }
body.mobile .content { padding: 14px 12px 30px; }
body.mobile .card { padding: 16px 14px; border-radius: 14px; margin-bottom: 14px; }
body.mobile .card-head { margin-bottom: 12px; }
body.mobile .card-title { font-size: 15px; }
body.mobile .stat-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
body.mobile .stat-icon { position: static; width: 46px; height: 46px; flex: none; font-size: 21px; border-radius: 13px; }
body.mobile .stat-body { flex: 1; min-width: 0; }
body.mobile .stat-card .label { font-size: 13px; }
body.mobile .stat-card .value { font-size: 27px; margin-top: 1px; }
body.mobile .stat-card .value small { font-size: 14px; }
body.mobile .stat-card .trend { font-size: 12px; margin-top: 1px; }
body.mobile table th, body.mobile table td { padding: 10px 10px; font-size: 13px; }
body.mobile .modal { width: 94%; }

/* ============ 退出登录按钮（红色醒目） ============ */
.btn-logout {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 13px;
  color: var(--red); background: var(--red-bg); transition: .18s; white-space: nowrap;
  border: 1px solid rgba(232, 80, 95, .25);
}
.btn-logout:hover { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(232, 80, 95, .35); }
.sidebar-logout { color: #ff97a2; border-color: rgba(232, 80, 95, .3); background: rgba(232, 80, 95, .12); }
.sidebar-logout:hover { color: #fff; background: rgba(232, 80, 95, .5); border-color: rgba(255, 120, 130, .6); }
body.mobile .btn-logout { padding: 6px 10px; font-size: 12px; }

/* ============ 广场大厅（朋友圈风格） ============ */
.moment-card { padding: 18px 20px; }
.moment-row { display: flex; gap: 12px; align-items: flex-start; }
.moment-avatar { width: 44px; height: 44px; flex: none; border-radius: 10px; overflow: hidden; }
.moment-main { flex: 1; min-width: 0; }
.moment-name { color: #576b95; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.moment-text { margin: 6px 0 10px; white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.68; color: var(--ink); }
.moment-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.moment-time { color: var(--ink-3); font-size: 12px; }
.moment-acts { display: flex; gap: 6px; }
.moment-act {
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: #f5f6fa; color: var(--ink-2); transition: .15s;
}
.moment-act:hover { background: var(--primary); color: #fff; }
.moment-act.danger { color: var(--red); }
.moment-act.danger:hover { background: var(--red); color: #fff; }
.moment-comments {
  margin-top: 10px; background: #f5f6fa; border-radius: 10px; padding: 10px 13px;
  display: flex; flex-direction: column; gap: 7px;
}
.mc-line { font-size: 13.5px; line-height: 1.6; word-break: break-word; }
.mc-name { color: #576b95; font-weight: 600; }
.mc-text { color: var(--ink); }

/* 发帖区（朋友圈式） */
.mc-row { display: flex; gap: 12px; align-items: flex-start; }
.mc-avatar { width: 44px; height: 44px; flex: none; border-radius: 10px; overflow: hidden; }
.mc-main { flex: 1; min-width: 0; }
.mc-main textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fafbfd; transition: .18s; outline: none; resize: vertical; font-size: 14.5px;
}
.mc-main textarea:focus { border-color: var(--primary); background: #fff; box-shadow: var(--ring); }
.mc-bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.mc-emoji { font-size: 21px; padding: 4px 9px; border-radius: 9px; transition: .15s; line-height: 1.2; }
.mc-emoji:hover { background: #f0f2f8; transform: scale(1.08); }

/* 表情面板 */
.emoji-panel {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px;
  margin-top: 8px; padding: 10px; background: #f7f8fc; border: 1px solid var(--line);
  border-radius: 12px; max-height: 168px; overflow-y: auto;
}
.emoji-item { font-size: 20px; padding: 4px 2px; border-radius: 8px; transition: .12s; line-height: 1.35; }
.emoji-item:hover { background: #fff; transform: scale(1.18); }

/* 手机版适配 */
body.mobile .moment-card { padding: 14px; }
body.mobile .moment-avatar, body.mobile .mc-avatar { width: 38px; height: 38px; }
body.mobile .moment-text { font-size: 14.5px; }
body.mobile .emoji-panel { grid-template-columns: repeat(7, 1fr); }

/* ============ 头像更换入口（醒目） ============ */
.avatar-wrap { position: relative; flex: none; cursor: pointer; }
.avatar-cam {
  position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px;
  border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35); border: 2px solid #232741; z-index: 2;
}
.avatar-change {
  margin-top: 5px; font-size: 11.5px; color: #6fb0ff; font-weight: 600;
  cursor: pointer; padding: 0; text-align: left; letter-spacing: .3px;
}
.avatar-change:hover { color: #9cc7ff; text-decoration: underline; }
body.mobile .avatar-wrap, body.mobile .avatar-cam { display: block; }

/* ============ 广场大厅 · 方案4 活力彩色风 ============ */
.composer-grad {
  background: linear-gradient(135deg, #ff6b9d, #8a5cf6);
  border: none; border-radius: 18px; padding: 16px;
  box-shadow: 0 8px 22px rgba(138, 92, 246, .28);
}
.composer-grad .mc-avatar { border: 2px solid rgba(255, 255, 255, .6); }
.composer-grad .mc-main textarea { background: rgba(255, 255, 255, .95); border: none; }
.composer-grad .mc-emoji { color: #fff; font-size: 15px; font-weight: 600; }
.composer-grad .mc-emoji:hover { background: rgba(255, 255, 255, .18); transform: none; }
.mc-pub {
  background: #fff; color: #8a5cf6; border: none; border-radius: 20px;
  padding: 7px 22px; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .12); transition: .18s;
}
.mc-pub:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(0, 0, 0, .18); }

/* 帖子卡片：彩色左边框 */
.moment-card { border-left: 4px solid var(--accent); border-radius: 16px; padding: 16px; }
.bd-gold { border-left-color: #e8b45a; }
.bd-blue { border-left-color: #5b6bff; }
.bd-violet { border-left-color: #8a5cf6; }
.moment-avatar { border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .12); }
.moment-name { color: var(--ink); font-weight: 800; }

/* 气泡式评论 */
.moment-comments { background: transparent; padding: 0; margin-top: 8px; }
.mc-bub {
  background: #f0f2f8; border-radius: 12px; border-top-left-radius: 4px;
  padding: 7px 12px; font-size: 13.5px; line-height: 1.55; margin-top: 6px;
  word-break: break-word;
}
.mc-bub .mc-name { color: #8a5cf6; font-weight: 700; }

/* ============ 手机版表格卡片化（消除横向拖动） ============ */
@media (max-width: 900px) {
  .table-wrap { overflow: visible; }
  .table-wrap table, .table-wrap thead, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; }
  .table-wrap thead { display: none; }
  .table-wrap tbody tr {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow-xs);
  }
  .table-wrap tbody tr:hover { background: #fff; }
  .table-wrap td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 7px 0; border-bottom: 1px dashed var(--line-2); font-size: 13.5px; text-align: right;
  }
  .table-wrap tr td:last-child { border-bottom: none; }
  .table-wrap td::before { content: attr(data-label); color: var(--ink-3); font-size: 12px; font-weight: 600; flex: none; text-align: left; }
  .table-wrap td[colspan]::before { display: none; }
  .table-wrap td[colspan] { justify-content: center; text-align: center; }
  .table-wrap td:not([data-label]) { justify-content: flex-end; }
}

/* ============ 手机版登录页 · 方案1 沉浸渐变白卡片 ============ */
body.mobile .auth-wrap {
  padding: 0; align-items: stretch;
  background: linear-gradient(160deg, #5b6bff, #8a5cf6 55%, #ff6b9d);
}
body.mobile .auth-shell {
  width: 100%; max-width: 100%; grid-template-columns: 1fr;
  border-radius: 0; background: transparent; box-shadow: none;
  display: flex; flex-direction: column;
}
body.mobile .auth-left {
  display: flex; background: transparent; padding: 42px 30px 30px;
  text-align: center; align-items: center; justify-content: center; overflow: visible;
}
body.mobile .auth-left::before, body.mobile .auth-left::after { display: none; }
body.mobile .auth-logo { margin-bottom: 14px; }
body.mobile .art-logo { width: 84px; height: 84px; border-radius: 22px; }
body.mobile .art-logo-ico { font-size: 42px; }
body.mobile .auth-title { font-size: 26px; letter-spacing: 2px; }
body.mobile .auth-slogan { font-size: 13.5px; margin-top: 8px; }
body.mobile .auth-features { display: none; }
body.mobile .auth-author { margin-top: 22px; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); }
body.mobile .auth-author-label { color: rgba(255, 255, 255, .75); }
body.mobile .auth-author-qq { color: #fff; }
body.mobile .auth-right {
  background: #fff; border-radius: 26px 26px 0 0;
  padding: 24px 22px 28px; flex: 1; justify-content: flex-start;
}

/* ============ 手机版主页面 · 方案3 沉浸渐变 + 底部Tab ============ */
body.mobile .app { flex-direction: column; }
body.mobile .sidebar { display: none; }
body.mobile .main { background: transparent; }
body.mobile .topbar {
  height: auto; padding: 18px 16px 46px;
  background: linear-gradient(135deg, #5b6bff, #8a5cf6 60%, #ff6b9d);
  border-bottom: none; align-items: center;
}
body.mobile .topbar-hero { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.hero-av { width: 46px; height: 46px; border-radius: 50%; flex: none; border: 2px solid rgba(255,255,255,.6); background: rgba(255,255,255,.25); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 18px; }
.hero-greet { font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.hero-name { font-size: 17px; font-weight: 800; color: #fff; }
body.mobile #page-title { display: none; }
body.mobile .btn-forum { display: none; }
body.mobile .topbar-date { display: none; }
body.mobile .btn-logout { background: rgba(255, 255, 255, .22); color: #fff; border-color: transparent; }
body.mobile .content { margin-top: -30px; padding: 0 14px 92px; background: transparent; }

/* 底部 Tab 导航 */
.tabbar { display: none; }
body.mobile .tabbar {
  display: flex; position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid #eef0f6; padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px rgba(30, 40, 80, .06); z-index: 50;
}
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #9aa1ba; font-size: 11px; padding: 4px 0; }
.tab-item .ti { font-size: 20px; }
.tab-item.active { color: #5b6bff; font-weight: 700; }
.tab-item.active .ti { transform: scale(1.12); }

/* ============ 登录页 · 方案7 上下分屏 ============ */
/* 桌面版 */
.auth-left {
  background:
    radial-gradient(500px 300px at 15% -5%, rgba(138, 92, 246, .16), transparent 60%),
    linear-gradient(165deg, #232741 0%, #1b1f30 100%);
  padding: 54px 46px;
}
.auth-brand-row { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; position: relative; z-index: 1; }
.art-logo { width: 60px; height: 60px; border-radius: 18px; }
.art-logo-ico { font-size: 30px; }
.auth-title { font-size: 21px; letter-spacing: 1px; }
.auth-suben { font-size: 11.5px; color: #8a91ac; letter-spacing: 2px; margin-top: 3px; }
.auth-headline { font-size: 26px; font-weight: 800; line-height: 1.45; letter-spacing: 1px; position: relative; z-index: 1; }
.auth-features { margin-top: 28px; gap: 15px; }
.auth-logo { display: none; }
.auth-slogan { display: none; }

/* 手机版（上下分屏：上半深色品牌区 + 下半白色表单） */
body.mobile .auth-wrap { padding: 0; align-items: stretch; background: #1b1f30; }
body.mobile .auth-shell {
  width: 100%; max-width: 100%; grid-template-columns: 1fr;
  border-radius: 0; background: transparent; box-shadow: none;
  display: flex; flex-direction: column;
}
body.mobile .auth-left {
  display: flex; align-items: flex-start; justify-content: flex-start;
  background: linear-gradient(165deg, #232741, #1b1f30);
  padding: 42px 30px 34px; text-align: left; overflow: visible;
}
body.mobile .auth-left::before, body.mobile .auth-left::after { display: none; }
body.mobile .auth-brand-row { margin-bottom: 22px; }
body.mobile .auth-headline { font-size: 23px; }
body.mobile .auth-features { display: flex; margin-top: 22px; }
body.mobile .auth-author { margin-top: 24px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
body.mobile .auth-author-label { color: rgba(255, 255, 255, .6); }
body.mobile .auth-author-qq { color: #fff; }
body.mobile .auth-right {
  background: #fff; border-radius: 26px 26px 0 0;
  padding: 24px 22px 28px; flex: 1; justify-content: flex-start;
}

/* ============ 登录页 · 方案A 整体深色一体（一屏不滑动） ============ */
body.mobile .auth-wrap {
  padding: 0; align-items: stretch; overflow: hidden;
  min-height: 100vh; height: 100vh;
  background:
    radial-gradient(600px 400px at 15% -5%, rgba(138, 92, 246, .25), transparent 60%),
    linear-gradient(165deg, #232741, #171b2e);
}
body.mobile .auth-shell {
  width: 100%; max-width: 100%; grid-template-columns: 1fr;
  border-radius: 0; background: transparent; box-shadow: none;
  display: flex; flex-direction: column; height: 100%;
}
body.mobile .auth-left {
  display: flex; align-items: flex-start; justify-content: flex-start;
  background: transparent; padding: 38px 28px 0; text-align: left; overflow: visible;
}
body.mobile .auth-left::before, body.mobile .auth-left::after { display: none; }
body.mobile .auth-brand-row { margin-bottom: 18px; }
body.mobile .art-logo { width: 52px; height: 52px; border-radius: 16px; }
body.mobile .art-logo-ico { font-size: 26px; }
body.mobile .auth-title { font-size: 19px; }
body.mobile .auth-suben { font-size: 10px; letter-spacing: 2px; }
body.mobile .auth-headline { font-size: 21px; line-height: 1.4; }
body.mobile .auth-features { display: flex; margin-top: 14px; gap: 9px; }
body.mobile .auth-features li { font-size: 12.5px; }
body.mobile .auth-author { margin-top: 16px; padding: 9px 13px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
body.mobile .auth-author-label { color: rgba(255, 255, 255, .6); }
body.mobile .auth-author-qq { color: #fff; }
body.mobile .auth-right {
  background: transparent; border-radius: 0;
  padding: 14px 28px 20px; flex: 1; justify-content: flex-start;
}
body.mobile .auth-tabs { background: rgba(255, 255, 255, .1); border-radius: 12px; margin-bottom: 16px; }
body.mobile .auth-tab { color: #a9b0c9; }
body.mobile .auth-tab.active { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: none; }
body.mobile .role-picker { margin-bottom: 16px; }
body.mobile .role-opt span { border-color: rgba(255, 255, 255, .15); color: #a9b0c9; background: rgba(255, 255, 255, .05); }
body.mobile .role-opt input:checked + span { border-color: #8a5cf6; color: #fff; background: rgba(138, 92, 246, .25); box-shadow: none; }
body.mobile .field { margin-bottom: 13px; }
body.mobile .field label { color: #a9b0c9; }
body.mobile .field input {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
}
body.mobile .field input::placeholder { color: #8a91ac; }
body.mobile .field input:focus { border-color: #8a5cf6; background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 3px rgba(138, 92, 246, .18); }
body.mobile .auth-hint { color: #8a91ac; }
body.mobile .auth-hint a { color: #9cc7ff; }

/* ============ 登录页 · 方案1 沉浸渐变白卡片（最终版） ============ */
/* 桌面版恢复 */
.auth-logo { display: block; margin-bottom: 30px; position: relative; z-index: 1; }
.auth-slogan { display: block; margin-top: 10px; color: #aeb4c9; font-size: 15px; letter-spacing: 1px; }
.auth-suben, .auth-headline, .auth-brand-row, .auth-brand-text { display: none; }
.art-logo { width: 92px; height: 92px; border-radius: 24px; }
.art-logo-ico { font-size: 46px; }
.auth-title { font-size: 34px; letter-spacing: 4px; }

/* 手机版：渐变顶部 + 白卡片浮起 */
body.mobile .auth-wrap {
  padding: 0; align-items: stretch;
  background: linear-gradient(160deg, #5b6bff, #8a5cf6 55%, #ff6b9d);
  min-height: 100vh; height: 100vh; overflow: hidden;
}
body.mobile .auth-shell {
  width: 100%; max-width: 100%; grid-template-columns: 1fr;
  border-radius: 0; background: transparent; box-shadow: none;
  display: flex; flex-direction: column; height: 100%;
}
body.mobile .auth-left {
  display: flex; background: transparent; padding: 46px 30px 26px;
  text-align: center; align-items: center; justify-content: center; overflow: visible;
}
body.mobile .auth-left::before, body.mobile .auth-left::after { display: none; }
body.mobile .auth-logo { display: block; margin-bottom: 14px; }
body.mobile .art-logo { width: 82px; height: 82px; border-radius: 23px; }
body.mobile .art-logo-ico { font-size: 40px; }
body.mobile .auth-title { font-size: 25px; letter-spacing: 2px; }
body.mobile .auth-slogan { display: block; font-size: 13px; margin-top: 7px; color: rgba(255, 255, 255, .9); letter-spacing: .5px; }
body.mobile .auth-features { display: none; }
body.mobile .auth-author { margin-top: 18px; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); }
body.mobile .auth-author-label { color: rgba(255, 255, 255, .75); }
body.mobile .auth-author-qq { color: #fff; }
body.mobile .auth-right {
  background: #fff; border-radius: 26px 26px 0 0;
  padding: 24px 24px 26px; flex: 1; justify-content: flex-start;
}
/* 表单元素恢复浅色（覆盖方案A的深色表单） */
body.mobile .auth-tabs { background: #f0f2f8; margin-bottom: 20px; }
body.mobile .auth-tab { color: #5f6680; }
body.mobile .auth-tab.active { background: #fff; color: #1f2437; box-shadow: 0 3px 10px rgba(22, 26, 43, .1); }
body.mobile .role-picker { margin-bottom: 20px; }
body.mobile .role-opt span { border-color: #e8eaf3; color: #5f6680; background: #fafbfe; }
body.mobile .role-opt input:checked + span { border-color: #5b6bff; color: #5b6bff; background: #f3f5ff; box-shadow: 0 6px 18px rgba(91, 107, 255, .16); }
body.mobile .field { margin-bottom: 15px; }
body.mobile .field label { color: #5f6680; }
body.mobile .field input {
  background: #fafbfd; border: 1.5px solid #e8eaf3; color: #1f2437;
}
body.mobile .field input::placeholder { color: #9aa1ba; }
body.mobile .field input:focus { border-color: #5b6bff; background: #fff; box-shadow: 0 0 0 4px rgba(91, 107, 255, .12); }
body.mobile .auth-hint { color: #9aa1ba; }
body.mobile .auth-hint a { color: #5b6bff; }

/* ============ 修复：内容浮起过多被顶栏渐变遮挡 ============ */
body.mobile .content {
  margin-top: -14px;
  padding: 0 14px 92px;
  background: transparent;
  position: relative;
  z-index: 1;
}

/* ============ 登录页 · 方案7品牌页 + 底部上滑弹窗（最终版） ============ */
/* 品牌页：单列深色品牌展示（桌面 + 手机统一居中，用 #auth-view 前缀覆盖旧规则） */
#auth-view .auth-shell {
  grid-template-columns: 1fr;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  width: 100%;
}
#auth-view .auth-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  padding: 56px 32px;
  min-height: 100vh;
  box-sizing: border-box;
  overflow: visible;
}
#auth-view .auth-left::before,
#auth-view .auth-left::after { display: none; }
#auth-view .auth-brand-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
  width: 100%;
}
#auth-view .auth-brand-text { text-align: center; }
#auth-view .art-logo { width: 88px; height: 88px; border-radius: 26px; margin-bottom: 20px; }
#auth-view .art-logo-ico { font-size: 44px; }
#auth-view .auth-title { font-size: 27px; letter-spacing: 2px; }
#auth-view .auth-suben { font-size: 11px; letter-spacing: 3px; margin-top: 8px; }
#auth-view .auth-headline { font-size: 23px; font-weight: 800; line-height: 1.5; margin-top: 24px; letter-spacing: 1px; }
#auth-view .auth-features { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 13px; }
#auth-view .auth-features li { display: flex; align-items: center; justify-content: center; gap: 11px; color: #c7cddf; font-size: 13.5px; }
#auth-view .auth-author { margin-top: 30px; }
#auth-view .auth-actions {
  display: flex; flex-direction: column; gap: 13px;
  width: 100%; max-width: 360px; margin-top: 42px;
}
#auth-view .auth-btn-primary,
#auth-view .auth-btn-ghost {
  width: 100%; padding: 15px; border-radius: 14px;
  font-size: 16px; font-weight: 700; cursor: pointer; transition: .18s;
  letter-spacing: 3px; box-sizing: border-box;
}
#auth-view .auth-btn-primary {
  border: none; background: linear-gradient(135deg, #5b6bff, #8a5cf6);
  color: #fff; box-shadow: 0 10px 26px rgba(91, 107, 255, .35);
}
#auth-view .auth-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(91, 107, 255, .45); }
#auth-view .auth-btn-ghost {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .25);
}
#auth-view .auth-btn-ghost:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); }

/* 手机端：品牌页微调（内容更紧凑） */
@media (max-width: 900px) {
  #auth-view .auth-left { padding: 44px 28px; justify-content: flex-start; padding-top: 64px; }
  #auth-view .auth-actions { margin-top: auto; padding-bottom: 20px; }
}

/* 底部上滑弹窗（白卡） */
.modal-mask.sheet-mask { align-items: flex-end; padding: 0; }
.modal.sheet {
  width: 100%; max-width: 100%;
  border-radius: 26px 26px 0 0;
  margin: 0;
  max-height: 86vh;
  animation: sheetUp .28s cubic-bezier(.22, 1, .36, 1);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal.sheet .modal-head { padding: 20px 24px 16px; border-bottom: none; }
.modal.sheet .modal-head h3 { font-size: 18px; }
.modal.sheet .modal-body { padding: 4px 24px calc(26px + env(safe-area-inset-bottom)); }

/* ============ 手机版问候区头像（可点击换头像 + 相机角标） ============ */
.hero-av { position: relative; overflow: visible !important; }
.hero-av img { border-radius: 50%; }
.hero-av::after {
  content: "📷";
  position: absolute; right: -4px; bottom: -4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, #5b6bff, #8a5cf6);
  font-size: 11px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3); border: 2px solid #fff;
  line-height: 1;
}
