/* ============================================================
   设计系统：动态极光 + 玻璃拟态 + 流光品牌字 + 长条卡片辉光
   ============================================================ */
:root {
  --bg: #f5f5f7;
  --bg-top: #fcfcfe;
  --grid: rgba(24, 24, 27, 0.05);
  --surface: #ffffff;
  --text: #18181b;
  --muted: #71717a;
  --border: rgba(24, 24, 27, 0.08);
  --border-strong: rgba(24, 24, 27, 0.14);
  --fav-bg: rgba(24, 24, 27, 0.05);
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.05);
  --shadow-md: 0 16px 40px -12px rgba(24, 24, 27, 0.22);
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.10);
  --danger: #e11d48;
  --ok: #16a34a;
  --radius: 18px;
  --radius-sm: 13px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="dark"] {
  --bg: #07070a;
  --bg-top: #0e0e16;
  --grid: rgba(255, 255, 255, 0.055);
  --surface: #141418;
  --text: #fafafa;
  --muted: #9b9ba3;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --fav-bg: rgba(255, 255, 255, 0.07);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 22px 50px -14px rgba(0, 0, 0, 0.7);
  --accent: #818cf8;
  --accent-soft: rgba(129, 140, 248, 0.16);
  --danger: #fb7185;
  --ok: #4ade80;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
  /* 移动端：去掉点击高亮蓝框、禁止系统字体自动放大 */
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ---------- 炫酷背景：渐变底 + 漂移光斑 + 网格纹理（非纯色） ---------- */
.bg-aurora {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120vw 90vw at 50% -22%,
      color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg-top), var(--bg));
}
.bg-aurora span {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .42;
  animation: drift 28s ease-in-out infinite;
  will-change: transform;
}
.bg-aurora span:nth-child(1) {
  width: 46vw; height: 46vw; top: -16%; left: -10%;
  background: radial-gradient(circle at 50% 50%, #6366f1, transparent 70%);
}
.bg-aurora span:nth-child(2) {
  width: 42vw; height: 42vw; top: 18%; right: -14%;
  background: radial-gradient(circle at 50% 50%, #22d3ee, transparent 70%);
  animation-delay: -9s;
}
.bg-aurora span:nth-child(3) {
  width: 52vw; height: 52vw; bottom: -24%; left: 16%;
  background: radial-gradient(circle at 50% 50%, #a855f7, transparent 70%);
  animation-delay: -18s;
}
[data-theme="dark"] .bg-aurora span { opacity: .52; }
/* 细网格 + 径向遮罩，增强科技感 */
.bg-aurora::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(85vw 75vh at 50% 28%, #000 0%, transparent 80%);
          mask-image: radial-gradient(85vw 75vh at 50% 28%, #000 0%, transparent 80%);
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(7%, 10%) scale(1.15); }
  66%      { transform: translate(-6%, -8%) scale(.9); }
}

::selection { background: var(--accent-soft); }
a { color: inherit; text-decoration: none; }

/* ---------- 顶栏（只保留主题切换 + 后台入口，悬浮右上角） ---------- */
.topbar {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top));
  right: calc(18px + env(safe-area-inset-right));
  z-index: 30;
  display: flex; align-items: center; gap: 10px;
}
.corner, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--muted); cursor: pointer;
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: all .2s var(--ease);
}
.corner:hover, .icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }

/* ---------- 舞台：内容整体水平居中 + 顶部对齐 ---------- */
.stage {
  min-height: 100vh;
  min-height: 100dvh; /* 移动端地址栏收放时不跳动 */
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 0;
  padding: calc(88px + env(safe-area-inset-top)) 20px calc(64px + env(safe-area-inset-bottom));
}

/* ---------- 头部品牌 ---------- */
.intro { text-align: center; margin-bottom: 36px; animation: fadeUp .6s var(--ease) both; }
.logo { display: inline-flex; }
.logo img {
  width: 56px; height: 56px; border-radius: 16px; object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px -10px rgba(24, 24, 27, .35);
}
[data-theme="dark"] .logo img { box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .7); }
.wordmark {
  margin-top: 14px; font-size: clamp(26px, 5.2vw, 38px); font-weight: 800; letter-spacing: .04em;
  color: var(--text);
}
.tagline { margin-top: 8px; color: var(--muted); font-size: 15px; letter-spacing: .01em; }

/* ---------- 公告栏 ---------- */
.notice {
  width: 100%; max-width: 900px;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 12px 12px 14px; margin-bottom: 20px;
  /* 微透明玻璃 */
  background: color-mix(in srgb, var(--surface) 52%, transparent);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-sm);
  animation: fadeUp .6s var(--ease) both;
}
.notice-tag {
  flex: 0 0 auto; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #fff;
  padding: 3px 9px; border-radius: 7px; line-height: 1.5; margin-top: 1px;
  background: var(--accent);
}
/* 公告内容完整展示，不滚动、自动换行 */
.notice-body { flex: 1; min-width: 0; }
.notice-text { font-size: 14px; color: var(--text); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.notice-close {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--muted); cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.notice-close:hover { background: var(--fav-bg); color: var(--text); }

/* ---------- 单列长条卡片 ---------- */
.links {
  width: 100%; max-width: 900px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}

.bar {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px;
  min-height: 78px; padding: 16px 22px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  animation: fadeUp .55s var(--ease) both;
}
/* 左侧细条：默认中性，hover 变强调色 */
.bar::before {
  content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 3px;
  border-radius: 3px; background: var(--border-strong);
  transition: background .3s var(--ease);
}
.bar:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  box-shadow:
    0 20px 42px -18px rgba(24, 24, 27, .26),
    0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
}
[data-theme="dark"] .bar:hover {
  box-shadow:
    0 20px 42px -18px rgba(0, 0, 0, .7),
    0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent);
}
.bar:hover::before { background: var(--accent); }

.meta { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; flex: 1; }
.title { font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desc { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }

.go { position: relative; z-index: 1; flex: 0 0 auto; color: var(--muted); transition: transform .3s var(--ease), color .3s var(--ease); }
.bar:hover .go { transform: translate(2px, -2px); color: var(--accent); }

.empty { text-align: center; color: var(--muted); padding: 48px 0; font-size: 15px; }
.foot {
  text-align: center; color: var(--muted); font-size: 13px;
  padding: 0 16px calc(36px + env(safe-area-inset-bottom));
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  padding: 9px 15px; border-radius: 11px; cursor: pointer; font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit;
  transition: all .2s var(--ease);
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }
.btn.danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--fav-bg); }

/* ============================================================
   管理后台
   ============================================================ */
.admin-topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 24px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
}
.admin-topbar .brand { font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--text); }
.admin-main { max-width: 960px; margin: 32px auto; padding: 0 24px; }

.login-box {
  max-width: 360px; margin: 90px auto;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-md); text-align: center;
}
.login-box h2 { font-weight: 700; letter-spacing: -.01em; }
.login-box p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.login-box input {
  width: 100%; padding: 12px 14px; margin: 16px 0;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg); color: var(--text); font-size: 15px; outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.login-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.login-box .btn { width: 100%; }

.panel {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.admin-list { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: 12px; transition: border-color .2s var(--ease);
}
.row:hover { border-color: var(--border-strong); }
.row .grow { flex: 1; min-width: 0; }
.row .sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swatch { width: 16px; height: 16px; border-radius: 5px; flex: 0 0 16px; }
.err { color: var(--danger); font-size: 13px; margin-top: 8px; min-height: 18px; }
.ok { color: var(--ok); font-size: 13px; margin-top: 8px; min-height: 18px; }

.check-line {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; color: var(--muted); cursor: pointer; user-select: none;
}
.check-line input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(7, 7, 10, .5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px;
  animation: fadeIn .2s var(--ease);
}
.modal-box {
  width: min(480px, 100%);
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .45);
  animation: popIn .25s var(--ease);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border); font-weight: 600;
}
.modal-body { padding: 20px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 11px;
  background: var(--bg); color: var(--text); font-size: 14px; outline: none; font-family: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- 后台：访问统计 ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat {
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.stat-num { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.sub-head { font-size: 13px; font-weight: 600; color: var(--muted); margin: 20px 0 10px; }
.ip { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
.ip-count { font-size: 13px; color: var(--muted); flex: 0 0 auto; }
.row.clickable { cursor: pointer; }
.row.clickable:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.row .chev { flex: 0 0 auto; color: var(--muted); transition: transform .2s var(--ease), color .2s var(--ease); }
.row.clickable:hover .chev { transform: translateX(2px); color: var(--accent); }

/* 访客详情 */
.detail { display: flex; flex-direction: column; }
.detail-row { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: none; }
.detail-row.col { flex-direction: column; align-items: stretch; gap: 6px; }
.detail-row .k { flex: 0 0 84px; color: var(--muted); font-size: 13px; }
.detail-row .v { flex: 1; min-width: 0; font-size: 14px; word-break: break-word; }
.detail-row .v.on { color: var(--ok); font-weight: 600; }
.detail-row .v.ua {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.6; color: var(--muted);
  background: var(--fav-bg); padding: 8px 10px; border-radius: 8px;
}

/* ---------- 后台：安全防护 ---------- */
.head-actions { display: flex; gap: 10px; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-form input {
  flex: 1; min-width: 180px; padding: 11px 13px; border: 1px solid var(--border);
  border-radius: 11px; background: var(--bg); color: var(--text);
  font-size: 14px; outline: none; font-family: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.inline-form select {
  padding: 11px 13px; border: 1px solid var(--border); border-radius: 11px;
  background: var(--bg); color: var(--text); font-size: 14px; outline: none; font-family: inherit;
}
.inline-form input:focus, .inline-form select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.tag-pill {
  flex: 0 0 auto; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 7px;
  color: var(--accent); background: var(--accent-soft); white-space: nowrap;
}
.tag-pill.danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 13%, transparent); }
.tag-pill.warn { color: var(--muted); background: var(--fav-bg); }
.log-path {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; word-break: break-all;
}

/* ============================================================
   响应式：桌面 → 平板 → 手机
   ============================================================ */

/* 平板：保持两列，仅收紧页面留白 */
@media (max-width: 860px) {
  .stage {
    padding: calc(82px + env(safe-area-inset-top)) 20px calc(56px + env(safe-area-inset-bottom));
  }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-main { margin: 24px auto; padding: 0 18px; }
}

/* 手机 */
@media (max-width: 600px) {
  .stage {
    padding: calc(74px + env(safe-area-inset-top)) 16px calc(46px + env(safe-area-inset-bottom));
  }
  .intro { margin-bottom: 26px; }
  .logo img { width: 48px; height: 48px; border-radius: 14px; }
  .wordmark { margin-top: 11px; }
  .tagline { font-size: 14px; }

  /* 手机同样保留左右两列：收紧间距与内边距，保证标题不被挤没 */
  .links { gap: 11px; }
  .bar { min-height: 66px; padding: 12px 13px; gap: 9px; }
  .title { font-size: 14.5px; }
  .desc { font-size: 11.5px; }
  .go svg { width: 16px; height: 16px; }
  .notice { margin-bottom: 18px; padding: 11px 10px 11px 12px; }
  .notice-text { font-size: 13.5px; }
  .foot { font-size: 12.5px; padding-bottom: calc(26px + env(safe-area-inset-bottom)); }

  /* 触控目标放大（建议 ≥ 44px） */
  .corner, .icon-btn { width: 42px; height: 42px; border-radius: 13px; }
  .notice-close { width: 32px; height: 32px; }

  /* iOS 聚焦输入框不再自动缩放：字号 ≥ 16px */
  .login-box input,
  .field input, .field select, .field textarea,
  .inline-form input, .inline-form select { font-size: 16px; }

  /* 后台 */
  .admin-topbar { padding: 11px 14px; gap: 10px; }
  .admin-topbar .brand {
    font-size: 15.5px; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .admin-topbar .actions { flex: 0 0 auto; }
  .admin-main { margin: 16px auto; padding: 0 14px; }
  .panel { padding: 16px; margin-bottom: 16px; border-radius: 16px; }
  .panel-head { gap: 10px; flex-wrap: wrap; }
  .panel-head h3 { font-size: 15.5px; }
  .panel-head .btn { padding: 8px 12px; font-size: 13px; }
  .head-actions { flex-wrap: wrap; }
  .login-box { margin: 44px auto; padding: 24px 20px; }

  .inline-form { flex-direction: column; align-items: stretch; }
  .inline-form input, .inline-form select, .inline-form .btn { width: 100%; }

  .row { padding: 11px 12px; gap: 10px; }
  .detail-row .k { flex: 0 0 72px; }

  /* 统计卡收成两列后收紧内边距，中文标签不再被挤成竖排 */
  .stat { padding: 13px 14px; }
  .stat-num { font-size: 22px; }
  .stat-label { font-size: 12px; line-height: 1.35; }
  .sub-head { margin: 16px 0 9px; }

  /* 弹窗在手机上从顶部展开、内容可滚动 */
  .modal { padding: 12px; align-items: flex-start; overflow-y: auto; }
  .modal-box { max-height: calc(100dvh - 24px); overflow-y: auto; }
  .modal-head { padding: 15px 16px; }
  .modal-body { padding: 16px; }
  .modal-actions .btn { flex: 1; }
}

/* 小屏手机（iPhone SE 等） */
@media (max-width: 380px) {
  .stage { padding-left: 13px; padding-right: 13px; }
  .links { gap: 9px; }
  .bar { min-height: 62px; padding: 11px 11px; gap: 8px; }
  .title { font-size: 13.5px; }
  .desc { font-size: 11px; }
  .go svg { width: 15px; height: 15px; }
  .panel { padding: 14px; }
  .admin-main { padding: 0 12px; }
}

/* 手机横屏等矮视口：收紧上下留白，避免首屏只剩头部 */
@media (max-height: 520px) and (orientation: landscape) {
  .stage {
    padding-top: calc(62px + env(safe-area-inset-top));
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
  }
  .intro { margin-bottom: 18px; }
  .logo img { width: 44px; height: 44px; }
  .wordmark { margin-top: 8px; font-size: 24px; }
  .tagline { display: none; }
}

/* ============================================================
   触屏设备：取消「粘滞 hover」，改用按压反馈
   （手机上点完卡片后 hover 态会一直留着，导致卡片持续浮起）
   ============================================================ */
@media (hover: none) {
  .bar:hover { transform: none; border-color: var(--border); box-shadow: var(--shadow-sm); }
  .bar:hover::before { background: var(--border-strong); }
  .bar:hover .go { transform: none; color: var(--muted); }
  .corner:hover, .icon-btn:hover { transform: none; color: var(--muted); border-color: var(--border); }
  .btn.primary:hover { transform: none; }
  .row.clickable:hover { background: transparent; border-color: var(--border); }
  .row.clickable:hover .chev { transform: none; color: var(--muted); }
}

/* 触屏（含平板）：放大触控目标，手指更容易点中 */
@media (hover: none) and (pointer: coarse) {
  .corner, .icon-btn { width: 42px; height: 42px; border-radius: 13px; }
  .notice-close { width: 32px; height: 32px; }
}

/* 按压反馈（鼠标 / 触屏通用） */
.bar:active { transform: scale(.99); }
.icon-btn:active, .corner:active { transform: scale(.94); }
.btn:active { transform: scale(.98); }
.row.clickable:active { background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* 列表项在窄屏允许换行，避免长 IP / 长路径把布局撑破 */
@media (max-width: 600px) {
  .row { flex-wrap: wrap; }
  .row .sub { white-space: normal; word-break: break-word; }
}

/* 尊重系统「减弱动效」偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .bg-aurora span { animation: none; }
}
