/* SSSHK 進入狀態控制台 — 手机优先 · 功能优先
   移动端为基础布局，>=720px 桌面衍生为五列；平涂状态色，无渐变无阴影 */

:root {
  --bg: #07080d;
  --ink: #f2f3f5;
  --ink-2: rgba(242, 243, 245, 0.68);
  --ink-3: rgba(242, 243, 245, 0.45);
  --red: #cf222e;
  --red-text: #ff7b72;
  --green: #238636;
  --green-text: #3fb950;
  --radius: 6px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC",
    "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- 主面板（手机优先：单列满宽） ---------- */

.panel {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding: 40px 16px 32px;
}

.head { margin-bottom: 28px; }

.title {
  margin: 0;
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.sub {
  margin: 12px 0 0;
  font-size: 16px;
  color: var(--ink-2);
  max-width: 34em;
}

/* ---------- 按钮网格：手机单列满宽 ---------- */

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.slot {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toggle {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-family: inherit;
  font-size: clamp(1.35rem, 5.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.18s var(--ease), transform 0.1s var(--ease);
}

.toggle[data-state="on"] { background: var(--green); }

.toggle:active { transform: scale(0.97); }

.toggle:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.status {
  margin: 0;
  min-height: 1.5em;
  font-size: 16px;
  font-weight: 600;
  color: var(--red-text);
  transition: color 0.18s var(--ease);
}

.slot[data-state="on"] .status { color: var(--green-text); }

.hint {
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- 页脚：一行小字，无装饰 ---------- */

.foot {
  padding: 20px 16px 28px;
  text-align: center;
}
.foot p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- 入场：一次轻升起（尊重减少动态） ---------- */

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

.head { animation: rise 0.5s var(--ease) both; }
.slot { animation: rise 0.5s var(--ease) both; }
.slot:nth-child(1) { animation-delay: 0.06s; }
.slot:nth-child(2) { animation-delay: 0.12s; }
.slot:nth-child(3) { animation-delay: 0.18s; }
.slot:nth-child(4) { animation-delay: 0.24s; }
.slot:nth-child(5) { animation-delay: 0.3s; }
.foot { animation: rise 0.5s var(--ease) 0.38s both; }

/* ---------- 桌面衍生：五列 ---------- */

@media (min-width: 720px) {
  .panel { padding: 72px 32px 48px; }
  .title { font-size: clamp(3rem, 6vw, 4.2rem); }
  .head { margin-bottom: 40px; }
  .grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
  .toggle { min-height: 76px; font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .head, .slot, .foot { animation: none; }
  .toggle, .status { transition: none; }
  .toggle:active { transform: none; }
}
