@charset "UTF-8";

/* ============================================================
 *  ICQ · Design Tokens
 *  ⚠️ 所有颜色对都通过 <html data-theme="dark|light"> 切换
 *  ⚠️ 不使用 color-mix()，保证旧浏览器兼容
 * ========================================================== */

:root,
html[data-theme="dark"] {
  color-scheme: dark;

  /* 基础 */
  --bg-page:        #070b17;
  --bg-solid:       #0a1020;
  --bg-topbar:      rgba(7, 11, 23, .72);
  --bg-footer:      rgba(7, 11, 23, .60);

  /* 玻璃层 */
  --glass-bg:       rgba(255, 255, 255, .045);
  --glass-bg-2:     rgba(255, 255, 255, .075);
  --glass-bg-3:     rgba(255, 255, 255, .11);
  --glass-hi:       rgba(255, 255, 255, .10);   /* 顶部高光 */
  --glass-hi-2:     rgba(255, 255, 255, 0);

  /* 边框 */
  --border:         rgba(255, 255, 255, .09);
  --border-2:       rgba(255, 255, 255, .17);
  --border-3:       rgba(255, 255, 255, .28);

  /* 文本 */
  --text:           #eaf0ff;
  --text-2:         #9aa9c9;
  --text-3:         #66759a;

  /* 品牌 */
  --brand:          #3b82f6;
  --brand-2:        #6366f1;
  --brand-3:        #22d3ee;
  --danger:         #fb7185;
  --success:        #34d399;
  --warn:           #fbbf24;

  /* 语义层（覆盖层、遮罩、弹窗底） */
  --overlay:        rgba(3, 7, 18, .78);
  --modal-body-bg:  rgba(0, 0, 0, .18);
  --toast-bg:       rgba(22, 28, 48, .92);
  --code-bg:        rgba(255, 255, 255, .07);
  --code-border:    rgba(255, 255, 255, .10);

  /* 阴影 */
  --shadow:         0 24px 62px -30px rgba(0, 0, 0, .90);
  --shadow-sm:      0 10px 30px -18px rgba(0, 0, 0, .75);
  --shadow-soft:    0 4px 14px -8px rgba(0, 0, 0, .55);

  /* 焦点 */
  --ring:           0 0 0 3px rgba(59, 130, 246, .22);

  /* 圆角与动画 */
  --r-lg: 22px;
  --r-md: 15px;
  --r-sm: 11px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* 极光 */
  --aurora-o:       .55;
  --aurora-blur:    110px;
}

html[data-theme="light"] {
  color-scheme: light;

  --bg-page:        #eef2fb;
  --bg-solid:       #f7faff;
  --bg-topbar:      rgba(244, 248, 255, .78);
  --bg-footer:      rgba(244, 248, 255, .68);

  --glass-bg:       rgba(255, 255, 255, .70);
  --glass-bg-2:     rgba(255, 255, 255, .85);
  --glass-bg-3:     rgba(255, 255, 255, .96);
  --glass-hi:       rgba(255, 255, 255, .95);
  --glass-hi-2:     rgba(255, 255, 255, 0);

  --border:         rgba(20, 40, 80, .10);
  --border-2:       rgba(20, 40, 80, .18);
  --border-3:       rgba(20, 40, 80, .28);

  --text:           #0c1730;
  --text-2:         #46567a;
  --text-3:         #7c8bab;

  --brand:          #2563eb;
  --brand-2:        #4f46e5;
  --brand-3:        #0891b2;
  --danger:         #e11d48;
  --success:        #059669;
  --warn:           #d97706;

  --overlay:        rgba(15, 30, 60, .42);
  --modal-body-bg:  rgba(20, 40, 80, .04);
  --toast-bg:       rgba(255, 255, 255, .96);
  --code-bg:        rgba(20, 40, 80, .06);
  --code-border:    rgba(20, 40, 80, .10);

  --shadow:         0 22px 48px -28px rgba(30, 60, 120, .35);
  --shadow-sm:      0 10px 26px -18px rgba(30, 60, 120, .28);
  --shadow-soft:    0 3px 12px -6px rgba(30, 60, 120, .20);

  --ring:           0 0 0 3px rgba(37, 99, 235, .20);

  --aurora-o:       .40;
  --aurora-blur:    120px;
}

/* ============================================================
 *  基础
 * ========================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg-page);
  transition: background-color .35s var(--ease);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: transparent;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: color .35s var(--ease);
  font-size: 14px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.hidden { display: none !important; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  padding: 1px 6px;
  border-radius: 6px;
  word-break: break-all;
  color: var(--text);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(59,130,246,.5); background-clip: content-box; }

/* ============================================================
 *  极光背景
 * ========================================================== */
.aurora {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  transition: opacity .4s var(--ease);
}
.aurora i {
  position: absolute; display: block;
  border-radius: 50%;
  filter: blur(var(--aurora-blur));
  opacity: var(--aurora-o);
  will-change: transform;
}
.a1 {
  width: 640px; height: 640px; top: -260px; left: -180px;
  background: radial-gradient(circle, rgba(59,130,246,.55), transparent 68%);
  animation: fl1 24s ease-in-out infinite;
}
.a2 {
  width: 560px; height: 560px; top: 8%; right: -220px;
  background: radial-gradient(circle, rgba(99,102,241,.48), transparent 68%);
  animation: fl2 28s ease-in-out infinite;
}
.a3 {
  width: 620px; height: 620px; bottom: -280px; left: 28%;
  background: radial-gradient(circle, rgba(34,211,238,.32), transparent 68%);
  animation: fl3 32s ease-in-out infinite;
}
html[data-theme="light"] .a1 { background: radial-gradient(circle, rgba(59,130,246,.42), transparent 68%); }
html[data-theme="light"] .a2 { background: radial-gradient(circle, rgba(129,140,248,.38), transparent 68%); }
html[data-theme="light"] .a3 { background: radial-gradient(circle, rgba(34,211,238,.30), transparent 68%); }

@keyframes fl1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(90px,70px) scale(1.12)} }
@keyframes fl2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-70px,90px) scale(1.08)} }
@keyframes fl3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(60px,-80px) scale(1.15)} }

.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="light"] .grain { opacity: .015; }

/* ============================================================
 *  玻璃卡片
 * ========================================================== */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(26px) saturate(165%);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  transition: background-color .35s var(--ease),
              border-color .35s var(--ease),
              box-shadow .35s var(--ease),
              transform .35s var(--ease);
}
.glass::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(160deg, var(--glass-hi) 0%, var(--glass-hi-2) 45%);
  opacity: .9;
}
html[data-theme="light"] .glass { border-color: var(--border); }
html[data-theme="light"] .glass::before { opacity: 1; }

/* ============================================================
 *  顶栏
 * ========================================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 20px;
  background: var(--bg-topbar);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.topbar-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 55%, #22d3ee 130%);
  box-shadow: 0 10px 26px -10px rgba(59,130,246,.65),
              inset 0 1px 0 rgba(255,255,255,.45);
  flex: none;
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-txt { line-height: 1.25; }
.brand-name { font-size: 15.5px; font-weight: 700; letter-spacing: .3px; }
.brand-sub { font-size: 11.5px; color: var(--text-3); letter-spacing: .2px; }

.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 图标按钮 */
.icon-btn {
  position: relative; width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--glass-bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  transition: background-color .25s var(--ease),
              color .25s var(--ease),
              border-color .25s var(--ease),
              transform .25s var(--ease),
              box-shadow .25s var(--ease);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover {
  color: var(--text);
  background: var(--glass-bg-3);
  border-color: var(--border-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.icon-btn:active { transform: translateY(0) scale(.96); }

/* 明暗切换图标（用 opacity / transform 精准控制） */
.ico-sun, .ico-moon {
  position: absolute;
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
html[data-theme="dark"] .ico-sun  { opacity: 0; transform: rotate(-90deg) scale(.4); }
html[data-theme="dark"] .ico-moon { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="light"] .ico-sun  { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="light"] .ico-moon { opacity: 0; transform: rotate(90deg) scale(.4); }

/* 用户胶囊 */
.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: var(--glass-bg-2);
  border: 1px solid var(--border);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.user-avatar {
  width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.user-name {
  font-size: 13px; color: var(--text-2);
  max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 积分胶囊 */
.points-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(251,191,36,.18), rgba(245,158,11,.08));
  border: 1px solid rgba(251,191,36,.36);
  color: #f59e0b;
  font-size: 13px; font-weight: 700;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.points-chip svg { width: 15px; height: 15px; }
.points-chip:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -10px rgba(251,191,36,.55); }
html[data-theme="light"] .points-chip {
  background: linear-gradient(135deg, rgba(217,119,6,.14), rgba(217,119,6,.06));
  border-color: rgba(217,119,6,.32);
  color: #b45309;
}

/* ============================================================
 *  按钮
 * ========================================================== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600; letter-spacing: .2px;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease),
              box-shadow .25s var(--ease),
              background-color .25s var(--ease),
              border-color .25s var(--ease),
              color .25s var(--ease);
  overflow: hidden;
  user-select: none;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; border-radius: 10px; }
.btn-block { width: 100%; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  box-shadow: 0 14px 30px -14px rgba(59,130,246,.75),
              inset 0 1px 0 rgba(255,255,255,.30);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, #60a5fa, #818cf8);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(59,130,246,.85); }
.btn-primary:hover:not(:disabled)::after { opacity: 1; }
.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-ghost {
  color: var(--text-2);
  background: var(--glass-bg-2);
  border-color: var(--border);
}
.btn-ghost:hover:not(:disabled) {
  color: var(--text);
  background: var(--glass-bg-3);
  border-color: var(--border-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn-buy {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  box-shadow: 0 14px 30px -14px rgba(245,158,11,.75),
              inset 0 1px 0 rgba(255,255,255,.30);
  margin-top: 14px;
}
.btn-buy svg { width: 17px; height: 17px; }
.btn-buy:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(245,158,11,.85); }

/* 载入动画 */
.spinner {
  display: none; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.32); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.spinner-lg {
  width: 26px; height: 26px; border-width: 3px;
  border-color: var(--border-2); border-top-color: var(--brand);
  display: block;
}
.btn.is-loading .spinner { display: block; }
.btn.is-loading .btn-label { opacity: .75; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
 *  页面容器
 * ========================================================== */
.page {
  position: relative; z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* ============================================================
 *  登录 / 注册
 * ========================================================== */
.auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  max-width: 1000px;
  margin: 32px auto 0;
  animation: rise .65s var(--ease) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.auth-card { padding: 34px 32px 30px; }
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-title { margin: 0 0 8px; font-size: 24px; font-weight: 700; letter-spacing: .3px; }
.auth-sub { margin: 0; font-size: 13px; color: var(--text-3); }
.grad-text {
  background: linear-gradient(120deg, #3b82f6, #6366f1 45%, #22d3ee);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
html[data-theme="light"] .grad-text {
  background: linear-gradient(120deg, #2563eb, #4f46e5 45%, #0891b2);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tabs {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--glass-bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px;
  margin-bottom: 24px;
}
.tab {
  position: relative; z-index: 2;
  padding: 9px 0; border: 0; background: transparent;
  color: var(--text-3);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  border-radius: 11px;
  transition: color .28s var(--ease);
}
.tab.is-active { color: #fff; }
html[data-theme="light"] .tab.is-active { color: #fff; }
.tab-indicator {
  position: absolute; z-index: 1;
  top: 4px; left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 11px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  box-shadow: 0 8px 22px -10px rgba(59,130,246,.75);
  transition: transform .4s var(--ease);
}
.tabs[data-active="register"] .tab-indicator { transform: translateX(100%); }

/* 表单 */
.form { display: flex; flex-direction: column; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span {
  font-size: 12.5px; font-weight: 600;
  color: var(--text-2); letter-spacing: .25px;
}
.field .opt { font-style: normal; font-weight: 400; color: var(--text-3); font-size: 11.5px; }
.field input {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--r-md);
  background: var(--glass-bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  transition: background-color .25s var(--ease),
              border-color .25s var(--ease),
              box-shadow .25s var(--ease);
}
.field input::placeholder { color: var(--text-3); }
.field input:hover { border-color: var(--border-2); }
.field input:focus {
  border-color: var(--brand);
  background: var(--glass-bg-3);
  box-shadow: var(--ring);
}
html[data-theme="light"] .field input:focus {
  border-color: var(--brand);
  background: #fff;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.auth-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { padding: 22px 22px 20px; }
.side-card h3 { margin: 0 0 7px; font-size: 14.5px; font-weight: 700; }
.side-card p  { margin: 0; font-size: 12.8px; color: var(--text-2); line-height: 1.75; }
.side-ico {
  width: 38px; height: 38px; margin-bottom: 13px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #3b82f6;
  background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(99,102,241,.10));
  border: 1px solid rgba(59,130,246,.22);
}
html[data-theme="light"] .side-ico {
  color: #2563eb;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(79,70,229,.06));
  border-color: rgba(37,99,235,.20);
}
.side-ico svg { width: 19px; height: 19px; }

/* ============================================================
 *  仪表盘
 * ========================================================== */
.dash { display: flex; flex-direction: column; gap: 20px; animation: rise .6s var(--ease) both; }

.notice-bar {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 18px;
  font-size: 13px; color: var(--text-2);
}
.notice-bar svg { width: 17px; height: 17px; color: #f59e0b; flex: none; }

.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat {
  display: flex; align-items: center; gap: 15px;
  padding: 20px 22px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-ico {
  width: 46px; height: 46px; flex: none;
  border-radius: 14px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
}
.stat-ico svg { width: 21px; height: 21px; }
.stat-ico-blue   { color:#3b82f6; background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(59,130,246,.04)); border-color: rgba(59,130,246,.26); }
.stat-ico-violet { color:#8b5cf6; background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(139,92,246,.04)); border-color: rgba(139,92,246,.26); }
.stat-ico-cyan   { color:#06b6d4; background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(34,211,238,.04)); border-color: rgba(34,211,238,.26); }
html[data-theme="light"] .stat-ico-blue   { color:#2563eb; background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(37,99,235,.03)); }
html[data-theme="light"] .stat-ico-violet { color:#7c3aed; background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(124,58,237,.03)); }
html[data-theme="light"] .stat-ico-cyan   { color:#0891b2; background: linear-gradient(135deg, rgba(8,145,178,.12), rgba(8,145,178,.03)); }
.stat-body { min-width: 0; }
.stat-label { font-size: 12px; color: var(--text-3); letter-spacing: .3px; }
.stat-value { font-size: 22px; font-weight: 700; letter-spacing: .4px; line-height: 1.25; }
.stat-quota { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

/* 快捷入口 */
.quick-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 14px; }
.quick-item {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--glass-bg-2);
  border: 1px solid var(--border);
  transition: background-color .3s var(--ease),
              border-color .3s var(--ease),
              transform .3s var(--ease),
              box-shadow .3s var(--ease);
}
.quick-item:hover {
  background: var(--glass-bg-3);
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.quick-ico {
  width: 40px; height: 40px; flex: none;
  border-radius: 13px;
  display: grid; place-items: center;
}
.quick-ico svg { width: 20px; height: 20px; }
.quick-ico-amber  { color:#d97706; background: linear-gradient(135deg, rgba(251,191,36,.18), rgba(245,158,11,.05)); border: 1px solid rgba(251,191,36,.28); }
.quick-ico-blue   { color:#2563eb; background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(59,130,246,.04)); border: 1px solid rgba(59,130,246,.26); }
.quick-ico-violet { color:#7c3aed; background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(139,92,246,.04)); border: 1px solid rgba(139,92,246,.26); }
html[data-theme="dark"] .quick-ico-amber  { color:#fbbf24; }
html[data-theme="dark"] .quick-ico-blue   { color:#60a5fa; }
html[data-theme="dark"] .quick-ico-violet { color:#a78bfa; }
.quick-body { flex: 1; min-width: 0; }
.quick-title { font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.quick-sub { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-arrow { color: var(--text-3); font-size: 14px; font-weight: 700; flex: none; transition: color .3s var(--ease), transform .3s var(--ease); }
.quick-item:hover .quick-arrow { color: var(--brand); transform: translateX(3px); }

/* ============================================================
 *  会员中心
 * ========================================================== */
.member-banner {
  padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.mb-left { display: flex; align-items: center; gap: 15px; min-width: 0; }
.mb-avatar {
  width: 58px; height: 58px; flex: none;
  border-radius: 18px;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg,#3b82f6,#6366f1 55%,#22d3ee);
  box-shadow: 0 14px 30px -14px rgba(59,130,246,.75),
              inset 0 1px 0 rgba(255,255,255,.4);
}
.mb-info { min-width: 0; }
.mb-name { font-size: 18px; font-weight: 700; letter-spacing: .3px; margin-bottom: 5px; }
.mb-sub { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; }
.mb-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

.mb-right { display: flex; gap: 22px; flex-wrap: wrap; }
.mb-stat { min-width: 88px; }
.mb-stat-label { font-size: 11.5px; color: var(--text-3); margin-bottom: 3px; letter-spacing: .3px; }
.mb-stat-value {
  font-size: 22px; font-weight: 800; letter-spacing: .5px;
  background: linear-gradient(120deg,#3b82f6,#6366f1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mb-stat-value em { font-style: normal; font-size: 13px; opacity: .75; }
html[data-theme="light"] .mb-stat-value {
  background: linear-gradient(120deg,#2563eb,#4f46e5);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 签到卡 */
.checkin-card { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.ci-head { display: flex; align-items: center; gap: 15px; }
.ci-ico {
  width: 52px; height: 52px; flex: none;
  border-radius: 16px;
  display: grid; place-items: center;
  color: #d97706;
  background: linear-gradient(135deg, rgba(251,191,36,.20), rgba(245,158,11,.06));
  border: 1px solid rgba(251,191,36,.28);
  box-shadow: 0 12px 28px -16px rgba(251,191,36,.65);
}
html[data-theme="dark"] .ci-ico { color: #fbbf24; }
.ci-ico svg { width: 25px; height: 25px; }
.ci-title-wrap { min-width: 0; }
.ci-title { font-size: 17px; font-weight: 700; letter-spacing: .3px; margin-bottom: 3px; }
.ci-sub { font-size: 12.5px; color: var(--text-3); }
.ci-sub b { color: #d97706; font-weight: 700; }
html[data-theme="dark"] .ci-sub b { color: #fbbf24; }

.ci-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.ci-box {
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--glass-bg-2);
  border: 1px solid var(--border);
}
.ci-box-hl {
  background: linear-gradient(135deg, rgba(251,191,36,.14), rgba(245,158,11,.04));
  border-color: rgba(251,191,36,.30);
}
.ci-box-label { font-size: 11.5px; color: var(--text-3); margin-bottom: 4px; }
.ci-box-value { font-size: 18px; font-weight: 800; letter-spacing: .3px; }
.ci-box-hl .ci-box-value { color: #d97706; }
html[data-theme="dark"] .ci-box-hl .ci-box-value { color: #fbbf24; }

/* 兑换卡 */
.redeem-card { padding: 24px; display: flex; flex-direction: column; }
.rd-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
}
.rd-head h3 { margin: 0 0 3px; font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.rd-head-sub { font-size: 12.5px; color: var(--text-3); }
.rd-mini-tabs {
  display: flex; gap: 4px; padding: 3px;
  background: var(--glass-bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.rd-tab {
  padding: 8px 16px; border: 0; background: transparent; border-radius: 9px;
  color: var(--text-3); font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.rd-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg,#3b82f6,#6366f1);
  box-shadow: 0 8px 18px -9px rgba(59,130,246,.75);
}

.rd-pane { flex: 1; }
.level-list { display: flex; flex-direction: column; gap: 10px; }
.level-empty { text-align: center; padding: 32px 16px; color: var(--text-3); font-size: 12.5px; }

.level-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--glass-bg-2);
  border: 1px solid var(--border);
  transition: background-color .3s var(--ease),
              border-color .3s var(--ease),
              transform .3s var(--ease),
              box-shadow .3s var(--ease);
}
.level-item:hover { background: var(--glass-bg-3); border-color: var(--border-2); transform: translateX(3px); box-shadow: var(--shadow-soft); }
.level-item.is-current {
  border-color: rgba(52,211,153,.45);
  background: linear-gradient(135deg, rgba(52,211,153,.10), rgba(52,211,153,.02));
}
html[data-theme="light"] .level-item.is-current {
  border-color: rgba(5,150,105,.45);
  background: linear-gradient(135deg, rgba(5,150,105,.08), rgba(5,150,105,.02));
}

.lv-badge {
  width: 46px; height: 46px; flex: none;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 17px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg,#3b82f6,#6366f1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.level-item:nth-child(2) .lv-badge { background: linear-gradient(135deg,#8b5cf6,#a855f7); }
.level-item:nth-child(3) .lv-badge { background: linear-gradient(135deg,#f59e0b,#f97316); }
.level-item:nth-child(4) .lv-badge { background: linear-gradient(135deg,#ef4444,#f43f5e); }

.lv-info { flex: 1; min-width: 0; }
.lv-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lv-name .cur-tag {
  font-size: 10.5px; font-weight: 700; color: #059669;
  padding: 1px 8px; border-radius: 99px;
  background: rgba(5,150,105,.15); border: 1px solid rgba(5,150,105,.30);
}
html[data-theme="dark"] .lv-name .cur-tag { color: #34d399; }
.lv-meta { font-size: 11.5px; color: var(--text-3); display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.lv-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

.lv-price {
  font-size: 13px; font-weight: 800; color: #d97706;
  white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
}
html[data-theme="dark"] .lv-price { color: #fbbf24; }
.lv-price svg { width: 14px; height: 14px; }

.lv-btn {
  padding: 8px 16px; border-radius: 10px; border: 1px solid transparent;
  font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
  background: linear-gradient(135deg,#3b82f6,#6366f1); color: #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.lv-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(59,130,246,.75); }
.lv-btn:disabled { opacity: .5; cursor: not-allowed; background: var(--glass-bg-3); color: var(--text-3); }

.card-form { display: flex; flex-direction: column; gap: 14px; }
.card-form .field input {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 1.5px; text-transform: uppercase;
  font-size: 15px; text-align: center;
}
.card-tip { font-size: 11.8px; color: var(--text-3); margin-top: 12px; line-height: 1.75; }
.buy-desc { font-size: 11.8px; color: var(--text-3); margin-top: 9px; text-align: center; line-height: 1.7; }

/* 积分明细 */
.log-card { padding: 22px; }
.log-list { display: flex; flex-direction: column; gap: 8px; max-height: 480px; overflow-y: auto; }
.log-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-radius: 12px;
  background: var(--glass-bg-2);
  border: 1px solid var(--border);
  transition: background-color .25s var(--ease);
}
.log-item:hover { background: var(--glass-bg-3); }
.log-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.log-ico {
  width: 32px; height: 32px; flex: none;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
}
.log-ico.plus  { color: #059669; background: rgba(5,150,105,.14); }
.log-ico.minus { color: #e11d48; background: rgba(225,29,72,.12); }
html[data-theme="dark"] .log-ico.plus  { color: #34d399; }
html[data-theme="dark"] .log-ico.minus { color: #fb7185; }
.log-body { min-width: 0; }
.log-reason { font-size: 12.8px; font-weight: 600; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-time { font-size: 11px; color: var(--text-3); }
.log-right { display: flex; align-items: center; gap: 12px; flex: none; }
.log-delta { font-size: 14px; font-weight: 800; }
.log-delta.plus  { color: #059669; }
.log-delta.minus { color: #e11d48; }
html[data-theme="dark"] .log-delta.plus  { color: #34d399; }
html[data-theme="dark"] .log-delta.minus { color: #fb7185; }
.log-balance { font-size: 11px; color: var(--text-3); text-align: right; }
.log-balance b { color: var(--text); font-weight: 700; }

/* ============================================================
 *  上传
 * ========================================================== */
.upload-card { padding: 20px; }
.dropzone {
  position: relative;
  border-radius: var(--r-lg);
  border: 1.5px dashed var(--border-2);
  background: var(--glass-bg-2);
  padding: 46px 24px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  outline: none;
  transition: border-color .3s var(--ease),
              background-color .3s var(--ease),
              transform .3s var(--ease),
              box-shadow .3s var(--ease);
}
.dropzone:hover, .dropzone:focus-visible {
  border-color: var(--brand);
  background: var(--glass-bg-3);
}
.dropzone.is-over {
  border-color: var(--brand);
  background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(99,102,241,.08));
  transform: scale(1.006);
  box-shadow: 0 0 0 4px rgba(59,130,246,.12), 0 26px 50px -26px rgba(59,130,246,.55);
}
.dz-glow {
  position: absolute; inset: -50%;
  background: radial-gradient(circle at 50% 50%, rgba(59,130,246,.20), transparent 55%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.dropzone.is-over .dz-glow { opacity: 1; animation: pulseGlow 2s ease-in-out infinite; }
@keyframes pulseGlow { 0%,100%{transform:scale(1);opacity:.8} 50%{transform:scale(1.12);opacity:1} }

.dz-inner { position: relative; z-index: 1; pointer-events: none; }
.dz-icon {
  width: 60px; height: 60px; margin: 0 auto 16px;
  border-radius: 19px;
  display: grid; place-items: center;
  color: #3b82f6;
  background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(99,102,241,.10));
  border: 1px solid rgba(59,130,246,.26);
  box-shadow: 0 14px 34px -18px rgba(59,130,246,.70);
  transition: transform .4s var(--ease);
}
html[data-theme="dark"] .dz-icon { color: #60a5fa; }
.dropzone.is-over .dz-icon { transform: translateY(-4px) scale(1.07); }
.dz-icon svg { width: 27px; height: 27px; }
.dz-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.dz-link { color: #3b82f6; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(59,130,246,.4); }
html[data-theme="dark"] .dz-link { color: #60a5fa; }
.dz-hint { font-size: 12.3px; color: var(--text-3); }

.queue { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.queue:empty { display: none; }
.q-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  background: var(--glass-bg-2);
  border: 1px solid var(--border);
  animation: rise .35s var(--ease) both;
}
.q-name { flex: 1; min-width: 0; font-size: 12.8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-bar { width: 130px; height: 5px; flex: none; border-radius: 99px; background: var(--glass-bg-3); overflow: hidden; }
.q-bar i { display: block; height: 100%; width: 0%; border-radius: 99px;
           background: linear-gradient(90deg, #3b82f6, #22d3ee);
           transition: width .25s var(--ease); }
.q-status { font-size: 11.5px; color: var(--text-3); min-width: 44px; text-align: right; flex: none; }
.q-item.is-done  .q-status { color: var(--success); }
.q-item.is-error .q-status { color: var(--danger); }
.q-item.is-error .q-bar i { background: var(--danger); }

/* ============================================================
 *  文件列表
 * ========================================================== */
.list-card { padding: 22px; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.list-title { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 9px; letter-spacing: .3px; }
.list-count {
  font-size: 11.5px; font-weight: 600; color: var(--text-3);
  background: var(--glass-bg-2); border: 1px solid var(--border);
  padding: 2px 9px; border-radius: 99px;
}
.list-tools { display: flex; align-items: center; gap: 9px; }

.search-box { position: relative; display: flex; align-items: center; }
.search-box svg { position: absolute; left: 12px; width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
.search-box input {
  width: 210px;
  padding: 9px 13px 9px 34px;
  border-radius: 12px;
  background: var(--glass-bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12.8px;
  outline: none;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.search-box input::placeholder { color: var(--text-3); }
.search-box input:focus { border-color: var(--brand); box-shadow: var(--ring); }

.file-list { display: flex; flex-direction: column; gap: 9px; }
.file-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: var(--glass-bg-2);
  border: 1px solid var(--border);
  transition: background-color .3s var(--ease),
              border-color .3s var(--ease),
              transform .3s var(--ease),
              box-shadow .3s var(--ease);
  animation: rise .38s var(--ease) both;
}
.file-item:hover {
  background: var(--glass-bg-3);
  border-color: var(--border-2);
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}
.file-item.is-removing { opacity: 0; transform: translateX(-24px) scale(.97); }

.file-thumb {
  width: 46px; height: 46px; flex: none;
  border-radius: 13px;
  overflow: hidden;
  display: grid; place-items: center;
  position: relative;
  background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(99,102,241,.08));
  border: 1px solid var(--border);
  color: #3b82f6;
}
html[data-theme="dark"] .file-thumb { color: #60a5fa; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-thumb svg { width: 20px; height: 20px; }
.file-ext {
  font-size: 9.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  padding: 2px 5px; border-radius: 5px;
  background: var(--glass-bg-3); color: inherit;
}
.file-thumb.has-img .file-ext { display: none; }

.file-meta { flex: 1; min-width: 0; }
.file-name { font-size: 13.4px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 3px; }
.file-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-3); }
.file-sub i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

.file-acts { display: flex; align-items: center; gap: 5px; flex: none; }
.act {
  width: 33px; height: 33px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: color .25s var(--ease), background-color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.act svg { width: 16px; height: 16px; }
.act:hover {
  color: var(--brand);
  background: rgba(59,130,246,.10);
  border-color: rgba(59,130,246,.24);
  transform: translateY(-1px);
}
html[data-theme="dark"] .act:hover { color: #60a5fa; }
.act-danger:hover {
  color: var(--danger);
  background: rgba(251,113,133,.10);
  border-color: rgba(251,113,133,.26);
}
.act:active { transform: scale(.93); }

.list-loading { display: grid; place-items: center; padding: 44px 0; }
.empty { text-align: center; padding: 56px 20px 44px; }
.empty-ico {
  width: 66px; height: 66px; margin: 0 auto 16px;
  border-radius: 21px;
  display: grid; place-items: center;
  color: var(--text-3);
  background: var(--glass-bg-2);
  border: 1px solid var(--border);
}
.empty-ico svg { width: 28px; height: 28px; }
.empty-title { font-size: 14.5px; font-weight: 600; margin-bottom: 6px; }
.empty-sub { font-size: 12.5px; color: var(--text-3); }
.load-more-wrap { display: grid; place-items: center; margin-top: 18px; }

/* ============================================================
 *  Toast
 * ========================================================== */
.toasts {
  position: fixed; top: 78px; right: 22px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 40px));
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 17px;
  border-radius: var(--r-md);
  background: var(--toast-bg);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow);
  font-size: 13px; font-weight: 500;
  color: var(--text);
  opacity: 0;
  transform: translateX(28px) scale(.96);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: auto;
  word-break: break-word;
}
.toast.show { opacity: 1; transform: translateX(0) scale(1); }
.toast-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #3b82f6; box-shadow: 0 0 10px currentColor;
}
.toast-success .toast-dot { background: var(--success); }
.toast-error   .toast-dot { background: var(--danger); }
.toast-warn    .toast-dot { background: var(--warn); }

/* ============================================================
 *  预览弹窗
 * ========================================================== */
.modal {
  position: fixed; inset: 0; z-index: 300;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  animation: fadeIn .3s var(--ease) both;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.modal-panel {
  position: relative;
  width: min(1000px, 100%);
  max-height: calc(100vh - 60px);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: popIn .38s var(--ease) both;
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(22px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  flex: none;
}
.modal-title {
  font-size: 13.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0;
}
.modal-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.modal-body {
  padding: 20px;
  overflow: auto;
  display: grid; place-items: center;
  min-height: 180px;
  background: var(--modal-body-bg);
}
.modal-body img, .modal-body video {
  max-width: 100%; max-height: calc(100vh - 220px);
  border-radius: var(--r-md);
  box-shadow: 0 20px 50px -22px rgba(0,0,0,.65);
  display: block;
}
.modal-nopreview { text-align: center; color: var(--text-3); padding: 36px 20px; font-size: 13px; }

/* ============================================================
 *  页脚
 * ========================================================== */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  background: var(--bg-footer);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 34px 20px 40px;
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 30px;
}
.footer-brand {
  font-size: 15px; font-weight: 700; margin-bottom: 6px;
  background: linear-gradient(120deg,#3b82f6,#6366f1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .footer-brand {
  background: linear-gradient(120deg,#2563eb,#4f46e5);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-col p { margin: 0; font-size: 12px; color: var(--text-3); }
.footer-title { font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-bottom: 10px; letter-spacing: .3px; }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-col li { font-size: 12px; color: var(--text-3); line-height: 1.8; padding-left: 15px; position: relative; }
.footer-col li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--border-2); }

/* ============================================================
 *  安装页
 * ========================================================== */
.center-wrap {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 40px 20px;
}
.install-card { width: min(580px, 100%); padding: 34px 32px 30px; }
.install-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.install-title { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.install-desc { margin: 0 0 22px; font-size: 13px; color: var(--text-2); line-height: 1.8; }
.install-tip { margin: 18px 0 0; font-size: 11.8px; color: var(--text-3); line-height: 1.85; }
.install-divider {
  font-size: 12.5px; font-weight: 700; color: var(--text-3);
  letter-spacing: .8px; text-transform: uppercase;
  padding-top: 8px; margin-top: 4px;
  border-top: 1px dashed var(--border);
}
.alert { padding: 14px 17px; border-radius: var(--r-md); font-size: 13px; line-height: 1.85; margin-bottom: 20px; }
.alert-ok  { background: rgba(5,150,105,.10); border: 1px solid rgba(5,150,105,.28); color: #047857; }
.alert-err { background: rgba(225,29,72,.08); border: 1px solid rgba(225,29,72,.26); color: #be123c; }
html[data-theme="dark"] .alert-ok  { background: rgba(52,211,153,.10); border-color: rgba(52,211,153,.28); color: #6ee7b7; }
html[data-theme="dark"] .alert-err { background: rgba(251,113,133,.10); border-color: rgba(251,113,133,.28); color: #fda4af; }

.empty-tip { text-align: center; padding: 32px 16px; color: var(--text-3); font-size: 12.5px; }

/* ============================================================
 *  响应式
 * ========================================================== */
@media (max-width: 1080px) {
  .ci-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-bar { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .auth-wrap { grid-template-columns: 1fr; max-width: 520px; }
  .auth-side { flex-direction: row; flex-wrap: wrap; }
  .auth-side .side-card { flex: 1 1 220px; }
}
@media (max-width: 760px) {
  .page { padding: 22px 14px 50px; }
  .topbar { padding: 11px 14px; }
  .brand-sub { display: none; }
  .brand-mark { width: 35px; height: 35px; border-radius: 11px; }
  .user-name { display: none; }
  .user-chip { padding: 4px; }
  .user-chip .user-avatar { width: 29px; height: 29px; }
  .points-chip { padding: 5px 10px; font-size: 12px; }

  .stat-grid { grid-template-columns: 1fr; gap: 11px; }
  .stat { padding: 16px 18px; }
  .stat-value { font-size: 19px; }

  .upload-card, .list-card, .auth-card, .checkin-card, .redeem-card, .log-card { padding: 17px; }

  .member-banner { padding: 18px; }
  .mb-avatar { width: 48px; height: 48px; border-radius: 15px; font-size: 19px; }
  .mb-name { font-size: 16px; }
  .mb-right { gap: 14px; }
  .mb-stat { min-width: 72px; }
  .mb-stat-value { font-size: 18px; }

  .ci-grid { grid-template-columns: 1fr 1fr; }

  .dropzone { padding: 34px 16px; }
  .dz-icon { width: 52px; height: 52px; border-radius: 16px; }
  .dz-title { font-size: 14px; }

  .list-head { flex-direction: column; align-items: stretch; }
  .list-tools { justify-content: space-between; }
  .search-box { flex: 1; }
  .search-box input { width: 100%; }

  .file-item { padding: 11px 12px; gap: 11px; }
  .file-thumb { width: 40px; height: 40px; border-radius: 11px; }
  .file-acts { gap: 2px; }
  .act { width: 31px; height: 31px; }
  .file-sub { gap: 6px; font-size: 11px; }

  .q-bar { width: 76px; }

  .footer-inner { grid-template-columns: 1fr; gap: 20px; padding: 26px 16px 34px; }

  .toasts { top: auto; bottom: 18px; right: 14px; left: 14px; max-width: none; }
  .toast { transform: translateY(22px) scale(.96); }
  .toast.show { transform: translateY(0) scale(1); }

  .modal { padding: 0; }
  .modal-panel { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .modal-body img, .modal-body video { max-height: calc(100vh - 180px); }
  .modal-head { flex-wrap: wrap; }

  .level-item { padding: 12px; gap: 10px; flex-wrap: wrap; }
  .lv-badge { width: 38px; height: 38px; border-radius: 12px; font-size: 14px; }
  .level-item .lv-btn { width: 100%; order: 5; margin-top: 4px; }

  .rd-head { flex-direction: column; align-items: stretch; }
  .rd-mini-tabs { width: 100%; justify-content: space-between; }
  .rd-tab { flex: 1; text-align: center; }
}
@media (max-width: 420px) {
  .grid-2 { grid-template-columns: 1fr; }
  .file-name { font-size: 12.8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
