/* === 主题色 === */
:root {
  --bg:           #0d1117;
  --bg-elev:      #161b22;
  --bg-elev-2:    #1c2230;
  --border:       #2a3140;
  --text:         #e6edf3;
  --text-dim:     #8b95a5;
  --text-mute:    #6e7681;
  --primary:      #2563eb;
  --primary-h:    #1d4ed8;
  --primary-soft: rgba(37,99,235,.16);
  --success:      #22c55e;
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --info:         #06b6d4;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 6px 24px rgba(0,0,0,.35);
  --shadow-lg:    0 12px 48px rgba(0,0,0,.55);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:        #f5f7fb;
    --bg-elev:   #ffffff;
    --bg-elev-2: #f1f4f9;
    --border:    #e2e8f0;
    --text:      #1f2733;
    --text-dim:  #5b6675;
    --text-mute: #94a3b8;
    --shadow:    0 6px 24px rgba(15,23,42,.08);
    --shadow-lg: 0 12px 48px rgba(15,23,42,.16);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
}

body {
  /* iOS 安全区 */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

a { color: inherit; }

/* === 顶栏 === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 17, 23, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: light) {
  .topbar { background: rgba(255,255,255,.85); }
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}
.topbar-right { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
/* 登录/用户信息组靠右，公告/刷新组靠左 */
#userInfo, #btnLogin { margin-left: auto; }
/* PC 端：登录按钮与语言切换按钮之间保持 20px 间距 */
#btnLogin { margin-right: 10px; }
.user-info {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: var(--text-dim);
  font-size: 14px;
  padding: 6px 12px;
  background: var(--bg-elev-2);
  border-radius: 999px;
  border: 1px solid var(--border);
}
.user-avatar {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  margin-right: 4px;
  font-size: inherit;
}

/* 右上角语言切换（中 / 英） */
.lang-toggle {
  flex: 0 0 auto;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* 登录后隐藏语言切换按钮 */
body.logged-in .lang-toggle { display: none; }

/* === 容器 === */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

/* === 登录卡 === */
.auth-card {
  max-width: 420px;
  margin: 48px auto 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.auth-tabs .tab {
  flex: 1;
  padding: 16px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.auth-tabs .tab:hover { color: var(--text); }
.auth-tabs .tab.active {
  color: var(--text);
  background: var(--bg-elev-2);
  border-bottom: 2px solid var(--primary);
}
.auth-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* === 表单字段 === */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}
.field-tip {
  font-size: 12px;
  color: var(--text-mute);
}

/* 开关样式：允许游客修改 */
.field-toggle {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.field-toggle .field-label {
  margin: 0;
}
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
}
.switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  transition: background .2s;
}
.switch .slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.switch input:checked + .slider {
  background: var(--primary);
}
.switch input:checked + .slider::before {
  transform: translateX(18px);
}

/* 卡片内小开关（状态项右侧） */
.val-with-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.val-with-toggle .status-text {
  flex: 0 0 auto;
}
.toggle-group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
}
.toggle-label {
  font-size: 11px;
  color: var(--text-mute);
  white-space: nowrap;
}
.toggle-group .switch + .toggle-label {
  margin-left: 8px;
}
.switch.switch-sm {
  width: 34px;
  height: 19px;
  flex: 0 0 auto;
  margin: 0;
}
.switch.switch-sm .slider::before {
  height: 13px;
  width: 13px;
  left: 3px;
  top: 3px;
}
.switch.switch-sm input:checked + .slider::before {
  transform: translateX(15px);
}
input, select, textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
input[type="number"] { padding-right: 8px; }

/* === 按钮 === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .08s, opacity .15s;
  text-decoration: none;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-h); }
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg-elev-2);
  color: var(--text);
}
.btn-danger {
  background: rgba(239,68,68,.12);
  color: var(--danger);
  border-color: rgba(239,68,68,.4);
}
.btn-danger:hover {
  background: rgba(239,68,68,.22);
}
.btn-block { width: 100%; }
.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* === 主面板 === */
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.panel-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

/* === BOSS 卡片网格 === */
.boss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.boss-card {
  position: relative;
  background: linear-gradient(160deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.boss-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,.4);
}
.boss-card.expired {
  border-color: rgba(239,68,68,.6);
  box-shadow: 0 0 0 1px rgba(239,68,68,.4), var(--shadow);
}
.boss-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent 80%);
}
.boss-card.expired::before {
  background: linear-gradient(90deg, var(--danger), transparent 80%);
}

.boss-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}
.boss-name {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}
.boss-name .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}
.boss-card.expired .boss-name .dot {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

/* 游客可修改徽标 */
.guest-editable-tag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(88, 166, 99, 0.15);
  color: #58a663;
  border: 1px solid rgba(88, 166, 99, 0.4);
  white-space: nowrap;
  flex: 0 0 auto;
}
.boss-actions {
  display: flex;
  gap: 6px;
}

.boss-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin-bottom: 12px;
}
.info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.info-item .lbl {
  font-size: 11px;
  color: var(--text-mute);
}
.info-item .val {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

/* 倒计时 */
.countdown-block {
  grid-column: 1 / -1;
  text-align: center;
  padding: 12px 0 8px;
  border-top: 1px dashed var(--border);
  margin-top: 2px;
}
.countdown-label {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 1px;
  margin-bottom: 3px;
}
.countdown {
  font-family: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 32px;
  font-weight: 700;
  color: var(--danger);
  letter-spacing: 1px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(239,68,68,.35);
}
.boss-card.expired .countdown {
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .55; }
}
.countdown-sub {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-mute);
}

.reset-row {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}
.reset-row .btn { width: 75%; }

/* === 空状态 === */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-mute);
}
.empty-emoji { font-size: 48px; margin-bottom: 10px; }

/* === 弹窗 === */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn .18s ease-out;
}
@keyframes modalIn {
  from { transform: translateY(8px) scale(.98); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.modal-close {
  background: transparent;
  border: none;
  color: var(--text-mute);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
}
.modal-close:hover { color: var(--text); }
.modal-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.interval-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
}
/* 快捷时间选择（3/2/1/0.5 小时后刷新） */
.quick-time-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.quick-time-caption {
  font-size: 12px;
  color: var(--text-mute);
  margin-right: 2px;
}
.quick-time-btn {
  padding: 5px 12px;
  font-size: 12px;
  line-height: 1.4;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text-dim);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background .15s, border-color .15s, color .15s, transform .08s;
}
.quick-time-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}
.quick-time-btn:active { transform: translateY(1px); }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.modal-small {
  width: 360px;
  max-width: 92vw;
}
.modal-body {
  padding: 20px;
}
.confirm-message {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}
#confirmModal .modal-actions {
  justify-content: center;
  gap: 40px;
  padding: 0 20px 20px;
}
#confirmModal .btn {
  padding: 11px 18px;
  font-size: 14px;
}
.form-hint {
  margin: 0;
  min-height: 16px;
  font-size: 13px;
  color: var(--danger);
}

/* === toast === */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .25s;
  z-index: 200;
  max-width: calc(100% - 32px);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.error { background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.6); color: var(--danger); }
.toast.success { background: rgba(34,197,94,.18); border-color: rgba(34,197,94,.6); color: var(--success); }

/* === 修改记录表格 === */
.modal-wide { width: min(1400px, 96vw); max-width: 1400px; }
.modal-mid { width: min(720px, 94vw); max-width: 720px; }
#bannedModal .modal-body-scroll { max-height: 60vh; }
.modal-body-scroll {
  max-height: 78vh;
  overflow: auto;
  margin: 0 -18px;
  padding: 0 18px;
}
.changes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.changes-table thead th {
  position: sticky;
  top: 0;
  background: var(--bg-elev-2);
  color: var(--text-mute);
  font-weight: 600;
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  z-index: 1;
}
.changes-table tbody td {
  padding: 7px 6px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: top;
  color: var(--text);
}
.changes-table tbody tr:hover {
  background: rgba(37,99,235,.06);
}
.changes-table .cell-time {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--text-mute);
  white-space: nowrap;
}
.changes-table .cell-boss {
  font-weight: 600;
  color: var(--text);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.changes-table .cell-ip {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--primary);
}
.act-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.act-reset   { background: rgba(37,99,235,.18);  color: #93c5fd; }
.act-kill    { background: rgba(239,68,68,.18);   color: #fca5a5; }
.act-update  { background: rgba(34,197,94,.18);   color: #86efac; }
.act-time    { background: rgba(234,179,8,.18);   color: #fcd34d; }
.act-restore { background: rgba(168,85,247,.18);  color: #d8b4fe; }

/* H5 下修改记录表格横向滚动 */
@media (max-width: 640px) {
  .changes-table { font-size: 11px; min-width: 760px; }
  .changes-table thead th, .changes-table tbody td { padding: 6px 5px; }
}

/* === 修改记录分页控件 === */
.changes-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 6px 4px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}
.changes-pagination .page-info {
  font-size: 12px;
  color: var(--text-mute);
  white-space: nowrap;
}

/* === 公告栏（跑马灯） === */
.announcement-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.announcement-icon {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
}
.announcement-bar {
  position: relative;
  flex: 0 0 auto;
  width: 240px;
  height: 30px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(234,179,8,.12), rgba(34,197,94,.10));
  border: 1px solid rgba(234,179,8,.45);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  padding: 0 10px;
}
.announcement-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text);
  padding-right: 60px;
  animation: marquee 14s linear infinite;
  will-change: transform;
}
@keyframes marquee {
  0%   { transform: translateX(240px); }
  100% { transform: translateX(-100%); }
}

/* === 公告弹窗 textarea === */
.modal-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 96px;
  line-height: 1.55;
  font-family: inherit;
}

/* === 底部访问统计 === */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 18px;
  padding: 10px 14px;
  background: linear-gradient(160deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat-label {
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.stat-value {
  font-family: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
}

/* === 响应式：平板 === */
@media (max-width: 960px) {
  .container { padding: 18px 16px 56px; }
  .topbar-inner { padding: 12px 16px; }
  .boss-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .countdown { font-size: 28px; }
}

/* === 响应式：手机 === */
@media (max-width: 640px) {
  .topbar-inner { padding: 10px 12px; }
  .user-info { font-size: 12px; padding: 4px 8px; }

  /* H5 公告栏：靠左，不占满剩余空间 */
  .announcement-wrap {
    flex: 0 0 auto;
    min-width: 0;
  }
  .announcement-bar {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc((100vw - 180px) * 1.5 * 0.8 - 30px);
  }
  /* 登录时公告栏缩短 1/4，再减少 10px */
  body.logged-in .announcement-bar {
    max-width: calc((100vw - 180px) * 0.75 * 0.75 - 10px);
  }
  /* H5：登录按钮与语言切换按钮间距 15px */
  #btnLogin { margin-right: 5px; }
  #userInfo { margin-right: 5px; }
  /* 登录后：用户名向右移动 5px（右边距从 20 减为 15） */
  body.logged-in #userInfo { margin-right: 15px; }
  /* 登录后：公告按钮向右移动 5px */
  body.logged-in #btnAnnouncement { margin-left: 5px; }
  /* 登录后：退出登录按钮向左移动 20px */
  body.logged-in #btnLogout { margin-left: -20px; }
  @keyframes marquee {
    0%   { transform: translateX(20px); }
    100% { transform: translateX(-100%); }
  }

  /* H5 修改记录窗口宽度恢复为较窄尺寸 */
  .modal-wide { width: 92vw; max-width: 92vw; }

  /* H5 发布公告窗口宽度适配 */
  #announcementModal .modal { width: 100%; max-width: 100%; }

  .auth-card { margin: 18px 10px 0; }
  .auth-form { padding: 14px; }
  .auth-tabs .tab { padding: 10px; font-size: 14px; }

  .container { padding: 10px 8px 70px; }
  .panel-title { font-size: 17px; }
  .panel-head { flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

  .boss-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* 卡片紧凑 */
  .boss-card { padding: 10px 12px; border-radius: 10px; }
  .boss-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;   /* 两列布局，节省高度 */
    gap: 5px 10px;
    margin-bottom: 6px;
  }
  .info-item { gap: 1px; }
  .info-item .lbl { font-size: 10px; }
  .info-item .val { font-size: 12px; }
  /* 刷新间隔、下次刷新向左移动 10px，时间单行显示 */
  .info-interval, .info-next {
    transform: translateX(-10px);
  }
  .info-interval .val, .info-next .val {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 倒计时紧凑 */
  .countdown-block {
    grid-column: 1 / -1;
    padding: 6px 0 3px;
    margin-top: 1px;
  }
  .countdown-label { font-size: 9px; letter-spacing: .5px; margin-bottom: 2px; }
  .countdown { font-size: 24px; text-shadow: 0 0 8px rgba(239,68,68,.3); }
  .countdown-sub { margin-top: 2px; font-size: 10px; }

  /* 卡片头部紧凑 */
  .boss-card-head {
    margin-bottom: 6px;
    padding-bottom: 5px;
  }
  .boss-name { font-size: 14px; gap: 5px; }
  .boss-name .dot { width: 6px; height: 6px; }
  .boss-actions { gap: 4px; }
  .btn-sm { padding: 4px 8px; font-size: 11px; }

  /* 重置按钮行紧凑 */
  .reset-row { margin-top: 6px; display: flex; justify-content: center; }
  .reset-row .btn { padding: 7px 14px; font-size: 12px; width: 75%; }

  .btn { padding: 8px 10px; font-size: 12px; }

  /* 底部统计紧凑 */
  .stats-bar { margin-top: 12px; padding: 8px 10px; gap: 14px; border-radius: 10px; }
  .stat-label { font-size: 9px; }
  .stat-value { font-size: 15px; }
  .stat-divider { height: 18px; }
}

/* === 极小屏 === */
@media (max-width: 380px) {
  .countdown { font-size: 22px; }
  .boss-name { font-size: 14px; }
  .info-item .val { font-size: 11px; }
  .btn { padding: 8px 10px; font-size: 12px; }
}

/* H5/平板：刷新按钮位置由 JS placeRefreshButton 动态设置（inline style），无需 CSS media query */

/* === 动画偏好 === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
