/* ==========================================================================
   栖栖电竞工作室 · 查挂验证平台
   白天 / 夜晚双主题：主题变量集中在下方，切换 data-theme 即可
   ========================================================================== */

:root {
  --day-image: url("../img/day.webp");
  --night-image: url("../img/night.webp");

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --ok: #10b981;
  --ok-ink: #047857;
  --bad: #f43f5e;
  --bad-ink: #be123c;
  --warn: #f59e0b;
  --warn-ink: #b45309;

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --page-max: 1080px;
  --shell-pad: 18px;
}

/* ------------------------------------------------------------ 白天主题 */
html[data-theme="day"] {
  --ink: #0f2b26;
  --ink-2: #2c514a;
  --ink-3: #5b7d76;
  --line: rgba(15, 43, 38, 0.1);

  --card-bg: rgba(255, 255, 255, 0.74);
  --card-bg-strong: rgba(255, 255, 255, 0.9);
  --card-border: rgba(255, 255, 255, 0.85);
  --card-shadow: 0 18px 44px rgba(12, 62, 54, 0.13), 0 2px 8px rgba(12, 62, 54, 0.06);

  --topbar-bg: rgba(255, 255, 255, 0.72);
  --chip-bg: rgba(255, 255, 255, 0.66);
  --chip-bg-on: #0f766e;
  --chip-ink-on: #f0fdfa;

  --accent: #0e9488;
  --accent-soft: rgba(14, 148, 136, 0.12);
  --accent-grad: linear-gradient(135deg, #34d3c0, #0e9488 55%, #0b7f9e);

  --scrim: linear-gradient(170deg, rgba(246, 255, 250, 0.4) 0%, rgba(232, 248, 240, 0.5) 45%, rgba(240, 250, 255, 0.6) 100%);
  --bg-filter: blur(1.2px) saturate(0.92) brightness(1.03);
  --bg-image: var(--day-image);
  --theme-color: #e9f6ef;
  color-scheme: light;
}

/* ------------------------------------------------------------ 夜晚主题 */
html[data-theme="night"] {
  --ink: #eef2ff;
  --ink-2: #c3caea;
  --ink-3: #98a1c9;
  --line: rgba(190, 205, 255, 0.13);

  --card-bg: rgba(20, 22, 46, 0.6);
  --card-bg-strong: rgba(24, 26, 54, 0.82);
  --card-border: rgba(160, 190, 255, 0.14);
  --card-shadow: 0 20px 50px rgba(2, 4, 18, 0.5), 0 2px 10px rgba(2, 4, 18, 0.3);

  --topbar-bg: rgba(14, 15, 34, 0.62);
  --chip-bg: rgba(255, 255, 255, 0.07);
  --chip-bg-on: #22d3ee;
  --chip-ink-on: #06202a;

  --accent: #5eead4;
  --accent-soft: rgba(94, 234, 212, 0.14);
  --accent-grad: linear-gradient(135deg, #a5f3fc, #22d3ee 50%, #6366f1);

  --scrim: linear-gradient(170deg, rgba(8, 9, 26, 0.62) 0%, rgba(12, 11, 34, 0.72) 50%, rgba(6, 8, 24, 0.78) 100%);
  --bg-filter: blur(1.5px) saturate(1.1) brightness(0.95);
  --bg-image: var(--night-image);
  --theme-color: #0b0c22;
  color-scheme: dark;
}

/* ------------------------------------------------------------ 基础排版 */

* {
  box-sizing: border-box;
}

/* 保证 hidden 属性始终生效（.actionbar 等用了 display:flex 会盖掉默认值） */
[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.6;
  background-color: var(--theme-color);
  overflow-x: hidden;
}

/* 背景图铺满并轻微模糊，让上层玻璃卡片更清晰 */
body::before {
  content: "";
  position: fixed;
  inset: -6%;
  z-index: -2;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: var(--bg-filter);
  transition: opacity 0.4s ease;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--scrim);
  pointer-events: none;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.shell {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
}

.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
}

/* ------------------------------------------------------------ 顶栏 */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(6, 20, 40, 0.28);
  flex: none;
}

.brand__text {
  min-width: 0;
  display: none;
}

.brand__name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__sub {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.topbar__spacer {
  flex: 1;
}

.nav {
  display: flex;
  gap: 2px;
}

.nav a {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--chip-bg);
  text-decoration: none;
}

.nav a.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* 主题切换按钮：图标 + 当前模式 */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--chip-bg);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.15s ease, background 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle:active {
  transform: translateY(0) scale(0.97);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* 显示与当前主题对应的那一个图标 */
html[data-theme="day"] .icon-moon,
html[data-theme="night"] .icon-sun {
  display: none;
}

.theme-toggle__mode {
  min-width: 2.4em;
  text-align: center;
}

/* ------------------------------------------------------------ 首页 */

/* 首页内容还没定，先留白。以后往 <section class="home-blank"> 里加东西 */
.home-blank {
  min-height: 62vh;
}

.hero {
  padding: 40px 0 22px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}

.hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero h1 {
  font-size: clamp(26px, 6.4vw, 42px);
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.12em;
}

.hero__slogan {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: clamp(13px, 3.6vw, 15px);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.stat {
  min-width: 92px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.stat__num {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.stat__label {
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

/* 搜索与筛选 */
.toolbar {
  margin: 28px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search svg {
  position: absolute;
  left: 15px;
  width: 17px;
  height: 17px;
  color: var(--ink-3);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 50px;
  padding: 0 18px 0 42px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--card-bg-strong);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search input::placeholder {
  color: var(--ink-3);
}

.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter {
  flex: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--chip-bg);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, color 0.2s ease;
}

.filter.is-on {
  background: var(--chip-bg-on);
  color: var(--chip-ink-on);
  border-color: transparent;
}

/* ------------------------------------------------------------ 名册卡片 */

.roster {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-bottom: 8px;
}

.member {
  display: block;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.member:hover {
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: 0 22px 52px rgba(8, 30, 50, 0.22);
}

.member__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--accent-grad);
  color: #04202b;
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(10, 60, 80, 0.22);
  user-select: none;
}

.avatar--lg {
  width: 68px;
  height: 68px;
  border-radius: 21px;
  font-size: 27px;
}

/* 自定义头像图片 */
.avatar--img {
  object-fit: cover;
  background: var(--chip-bg);
  border: 1px solid var(--card-border);
  padding: 0;
}

/* 头像渐变变体：按编号哈希分配，保证同一个人颜色稳定 */
.avatar--g1 {
  background: linear-gradient(135deg, #5eead4, #0e9488);
}

.avatar--g2 {
  background: linear-gradient(135deg, #7dd3fc, #0ea5e9);
}

.avatar--g3 {
  background: linear-gradient(135deg, #a5b4fc, #6366f1);
}

.avatar--g4 {
  background: linear-gradient(135deg, #6ee7b7, #10b981);
}

.avatar--g5 {
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
}

.member__id {
  min-width: 0;
  flex: 1;
}

.member__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member__rank {
  margin-top: 3px;
  font-size: 13px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 段位图标（名册卡片里放在「已通过」徽章左边） */
.tier-icon {
  flex: none;
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(6, 30, 40, 0.28));
}

.seq {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* 结果徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid transparent;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.badge--ok {
  color: var(--ok-ink);
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.28);
}

.badge--bad {
  color: var(--bad-ink);
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.28);
}

.badge--warn {
  color: var(--warn-ink);
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.3);
}

html[data-theme="night"] .badge--ok {
  color: #6ee7b7;
}

html[data-theme="night"] .badge--bad {
  color: #fda4af;
}

html[data-theme="night"] .badge--warn {
  color: #fcd34d;
}

.member__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}

.member__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.member__meta b {
  color: var(--ink-2);
  font-weight: 600;
  font-family: var(--mono);
}

/* ------------------------------------------------------------ 详情页 */

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 22px 0 14px;
  padding: 8px 14px 8px 11px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--card-border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.back:hover {
  text-decoration: none;
  color: var(--accent);
}

.back svg {
  width: 15px;
  height: 15px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  flex-wrap: wrap;
}

.profile__main {
  flex: 1;
  min-width: 160px;
}

.profile__name {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: clamp(21px, 5.6vw, 27px);
  font-weight: 800;
}

.profile__rank {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
}

.profile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--card-border);
  font-size: 12.5px;
  color: var(--ink-2);
}

/* 结论印章 */
.profile__verdict {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

/* 详情页的段位图标，比名册里再大一些 */
.tier-mark {
  flex: none;
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(6, 30, 40, 0.3));
}

.seal {
  flex: none;
  display: grid;
  place-items: center;
  gap: 4px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px dashed currentColor;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  animation: seal-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.seal svg {
  width: 26px;
  height: 26px;
}

.seal--ok {
  color: var(--ok-ink);
  background: rgba(16, 185, 129, 0.12);
}

.seal--bad {
  color: var(--bad-ink);
  background: rgba(244, 63, 94, 0.1);
}

.seal--warn {
  color: var(--warn-ink);
  background: rgba(245, 158, 11, 0.12);
}

html[data-theme="night"] .seal--ok {
  color: #6ee7b7;
}

html[data-theme="night"] .seal--bad {
  color: #fda4af;
}

html[data-theme="night"] .seal--warn {
  color: #fcd34d;
}

@keyframes seal-in {
  from {
    opacity: 0;
    transform: scale(0.72) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

/* 窄屏放不下圆形印章，改成整行的结论印证条，读起来更像「盖章」 */
@media (max-width: 559px) {
  /* 窄屏：段位图标和结论条并排占满一行，图标在「已通过」左边 */
  .profile__verdict {
    width: 100%;
    margin-left: 0;
    gap: 12px;
  }

  .profile__verdict .seal {
    flex: 1;
    min-width: 0;
    width: auto;
  }

  .tier-mark {
    width: 46px;
    height: 46px;
  }

  .seal {
    display: flex;
    align-items: center;
    height: 52px;
    flex-direction: row;
    justify-content: center;
    gap: 9px;
    border-radius: 15px;
    font-size: 15px;
    letter-spacing: 0.14em;
  }

  .seal svg {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seal {
    animation: none;
  }
}

.section {
  margin-top: 16px;
  padding: 20px 22px;
}

.section__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.section__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* 资料表 */
.kv {
  margin: 0;
}

.kv__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}

.kv__row:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.kv__key {
  flex: none;
  width: 78px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.kv__val {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  word-break: break-all;
}

.kv__val .mono {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.kv__val--muted {
  color: var(--ink-3);
  font-weight: 500;
}

.copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--chip-bg);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.copy svg {
  width: 13px;
  height: 13px;
}

.copy:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.copy:active {
  transform: scale(0.95);
}

.copy.is-done {
  background: rgba(16, 185, 129, 0.16);
  color: var(--ok-ink);
  border-color: rgba(16, 185, 129, 0.3);
}

html[data-theme="night"] .copy.is-done {
  color: #6ee7b7;
}

/* 结论说明块 */
.verdict {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-left: 3px solid var(--accent);
}

.verdict__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
}

.verdict__icon svg {
  width: 20px;
  height: 20px;
}

.verdict--ok {
  border-left-color: var(--ok);
}

.verdict--ok .verdict__icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--ok-ink);
}

.verdict--bad {
  border-left-color: var(--bad);
}

.verdict--bad .verdict__icon {
  background: rgba(244, 63, 94, 0.14);
  color: var(--bad-ink);
}

.verdict--warn {
  border-left-color: var(--warn);
}

.verdict--warn .verdict__icon {
  background: rgba(245, 158, 11, 0.16);
  color: var(--warn-ink);
}

html[data-theme="night"] .verdict--ok .verdict__icon {
  color: #6ee7b7;
}

html[data-theme="night"] .verdict--bad .verdict__icon {
  color: #fda4af;
}

html[data-theme="night"] .verdict--warn .verdict__icon {
  color: #fcd34d;
}

.verdict__title {
  font-size: 16px;
  font-weight: 800;
}

.verdict__desc {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.notice {
  margin: 18px 0 0;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--chip-bg);
  border: 1px solid var(--card-border);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-3);
}

.notice b {
  color: var(--ink-2);
}

/* 底部操作条（手机端吸底） */
.actionbar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  gap: 10px;
  padding: 12px var(--shell-pad) calc(12px + env(safe-area-inset-bottom, 0px));
  margin-top: 20px;
  background: var(--topbar-bg);
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}

.actionbar__inner {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
}

.btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--chip-bg);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.14s ease, filter 0.18s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  flex: 1.4;
  background: var(--accent-grad);
  color: #04202b;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(10, 80, 90, 0.24);
}

.btn.is-done {
  background: rgba(16, 185, 129, 0.2);
  color: var(--ok-ink);
  border-color: rgba(16, 185, 129, 0.34);
}

/* ------------------------------------------------------------ 状态提示 */

.state {
  padding: 46px 20px;
  text-align: center;
  color: var(--ink-3);
}

.state svg {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  opacity: 0.65;
}

.state__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-2);
}

.state__desc {
  margin-top: 6px;
  font-size: 13px;
}

.skeleton {
  height: 108px;
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, var(--card-bg) 30%, var(--card-bg-strong) 50%, var(--card-bg) 70%);
  background-size: 220% 100%;
  border: 1px solid var(--card-border);
  animation: shimmer 1.3s ease-in-out infinite;
}

@keyframes shimmer {
  from {
    background-position: 130% 0;
  }
  to {
    background-position: -30% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }
}

/* 复制成功提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 60;
  transform: translate(-50%, 20px);
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--chip-bg-on);
  color: var(--chip-ink-on);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------ 页脚 */

.footer {
  margin-top: 40px;
  padding: 26px 0 90px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--ink-2);
}

.footer__brand img {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}

.footer p {
  margin: 4px 0;
}

.footer__ver {
  margin-top: 14px !important;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  opacity: 0.6;
}

/* 备案号：工信部 ICP 和公安联网备案 */
.footer__beian {
  margin-top: 10px !important;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.footer__beian a {
  color: var(--ink-3);
  text-decoration: none;
}

.footer__beian a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ------------------------------------------------------------ 规则页 */

.kefu-card {
  margin: 18px auto 0;
  /* 电脑上把整张卡片收窄并居中，不然卡片会被撑到 1080px 宽、图片显得很大；
     手机上没有影响（560px 比屏幕宽） */
  max-width: 560px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.kefu-card picture {
  display: block;
  width: 100%;
  max-width: 420px;
}

.kefu-card__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 34px rgba(10, 30, 60, 0.18);
}

.kefu-card__tip {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 420px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.kefu-card__tip svg {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--accent);
}

/* 抖音号可以单独复制一份，方便客户直接搜索 */
.kefu-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 16px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--card-border);
  font-size: 14.5px;
}

.kefu-account__label {
  color: var(--ink-3);
  font-size: 13px;
}

.kefu-account__value {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.prose {
  padding: 22px;
}

.prose h2 {
  font-size: 16px;
  margin-top: 22px;
  color: var(--ink);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink-2);
}

.prose li {
  margin: 6px 0;
}

.prose p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

.flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
  counter-reset: step;
}

.flow__item {
  position: relative;
  padding: 14px 16px 14px 52px;
  border-radius: var(--radius-md);
  background: var(--chip-bg);
  border: 1px solid var(--card-border);
  font-size: 13.5px;
  color: var(--ink-2);
  counter-increment: step;
}

.flow__item::before {
  content: counter(step);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-grad);
  color: #04202b;
  font-size: 13px;
  font-weight: 800;
}

.flow__item b {
  color: var(--ink);
}

/* ------------------------------------------------------------ 响应式 */

@media (min-width: 640px) {
  :root {
    --shell-pad: 24px;
  }

  .roster {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 屏幕上放得下时再显示品牌文字 */
@media (min-width: 560px) {
  .brand__text {
    display: block;
  }

  .nav a {
    padding: 7px 14px;
  }
}

/* 导航有 4 项了，窄屏收紧一点，别把顶栏挤爆 */
@media (max-width: 430px) {
  .topbar__inner {
    gap: 8px;
  }

  .nav {
    gap: 0;
  }

  .nav a {
    padding: 7px 8px;
    font-size: 13px;
  }

  .theme-toggle {
    gap: 5px;
    padding: 6px 9px 6px 8px;
    font-size: 12.5px;
  }
}

@media (min-width: 960px) {
  .roster {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: 56px 0 26px;
  }

  .profile {
    padding: 26px 28px;
  }

  .section {
    padding: 24px 28px;
  }
}

/* ------------------------------------------------------------ 打印 */

@media print {
  body::before,
  body::after {
    display: none;
  }

  body {
    background: #fff;
    color: #111;
  }

  .topbar,
  .actionbar,
  .back,
  .copy,
  .toast {
    display: none !important;
  }

  .card {
    background: #fff;
    border: 1px solid #d5dbe0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .avatar {
    background: #e8f5f2;
    color: #0b3b34;
  }

  .footer {
    padding-bottom: 0;
  }
}
