/* ================================================================
   CodeRelay · 飞书应用复刻版 + QQ 官网背景
   主题：浅色 / 深红 #bb1b36 / 琥珀点缀 / 圆角卡片
   ================================================================ */

:root {
  --bg: #fbf9f9;
  --fg: #2b1d1f;
  --card: #ffffff;
  --primary: #bb1b36;
  --primary-soft: rgba(187, 27, 54, 0.10);
  --accent: #f7eeef;
  --muted: #efebec;
  --border: #e9e2e3;
  --muted-text: #8a7b7e;
  --green: hsl(142, 71%, 45%);
  --amber: hsl(38, 92%, 50%);
  --amber-text: hsl(38, 70%, 40%);
  --danger: hsl(0, 72%, 51%);
  --danger-bg: hsl(0, 72%, 97%);
  --qq-blue: #0099ff;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(43, 29, 31, 0.06);
  --shadow-md: 0 4px 14px rgba(43, 29, 31, 0.08);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input { font: inherit; }
svg { display: block; }
.hidden { display: none !important; }
b { color: var(--primary); }

::selection { background: rgba(187, 27, 54, 0.15); }

/* ─────────── QQ 官网背景层 ─────────── */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1100px 560px at 88% -8%, rgba(0, 153, 255, 0.16), transparent 60%),
    radial-gradient(900px 520px at -8% 18%, rgba(0, 153, 255, 0.12), transparent 62%),
    radial-gradient(1000px 640px at 50% 112%, rgba(0, 153, 255, 0.10), transparent 65%),
    linear-gradient(180deg, #eef7ff 0%, #fbf9f9 42%, #ffffff 100%);
}

.bubble {
  position: absolute;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0.25));
  border: 1px solid rgba(0, 153, 255, 0.14);
  box-shadow: inset -6px -8px 16px rgba(0, 153, 255, 0.08);
  animation: bubble-rise linear infinite;
  opacity: 0.9;
}
.bubble::after {
  content: "";
  position: absolute;
  top: 18%; left: 22%;
  width: 26%; height: 26%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}
.bubble:nth-child(1) { left: 4%;  width: 90px;  height: 90px;  animation-duration: 26s; animation-delay: 0s; }
.bubble:nth-child(2) { left: 12%; width: 44px;  height: 44px;  animation-duration: 19s; animation-delay: 3s; }
.bubble:nth-child(3) { left: 22%; width: 120px; height: 120px; animation-duration: 32s; animation-delay: 7s; }
.bubble:nth-child(4) { left: 33%; width: 56px;  height: 56px;  animation-duration: 22s; animation-delay: 11s; }
.bubble:nth-child(5) { left: 46%; width: 34px;  height: 34px;  animation-duration: 17s; animation-delay: 2s; }
.bubble:nth-child(6) { left: 57%; width: 80px;  height: 80px;  animation-duration: 28s; animation-delay: 9s; }
.bubble:nth-child(7) { left: 68%; width: 48px;  height: 48px;  animation-duration: 20s; animation-delay: 14s; }
.bubble:nth-child(8) { left: 79%; width: 110px; height: 110px; animation-duration: 30s; animation-delay: 5s; }
.bubble:nth-child(9) { left: 89%; width: 40px;  height: 40px;  animation-duration: 18s; animation-delay: 12s; }
.bubble:nth-child(10){ left: 95%; width: 70px;  height: 70px;  animation-duration: 24s; animation-delay: 1s; }

@keyframes bubble-rise {
  0%   { transform: translateY(0) translateX(0); }
  25%  { transform: translateY(-28vh) translateX(14px); }
  50%  { transform: translateY(-56vh) translateX(-12px); }
  75%  { transform: translateY(-84vh) translateX(10px); }
  100% { transform: translateY(-112vh) translateX(-6px); }
}

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

/* ─────────── 连接状态圆点（头像右下角） ─────────── */
.avatar-badge-wrap {
  position: relative;
  flex: none;
}
.conn-dot {
  position: absolute;
  right: 6px; bottom: 8px;
  z-index: 3;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #c9c3c4;
  box-shadow: 0 2px 6px rgba(43, 29, 31, 0.3);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
@media (min-width: 768px) { .conn-dot { right: 10px; bottom: 12px; width: 18px; height: 18px; } }
.conn-dot.on {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  animation: dot-pulse 2.2s ease-out infinite;
}
.conn-dot.mid { background: var(--amber); box-shadow: 0 0 0 4px rgba(242, 155, 21, 0.16); }
.conn-dot.off { background: var(--danger); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15); }

@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35); }
  70%  { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.banner-strip {
  position: sticky;
  top: 0;
  z-index: 40;
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
  color: #fff;
  background: linear-gradient(90deg, var(--primary), #d6455f, var(--primary));
}

/* ─────────── 布局容器 ─────────── */
.wrap {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .wrap { padding: 0 32px; } }

/* ─────────── Hero ─────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, hsl(350 30% 94%), hsl(350 15% 98%) 58%, rgba(255, 255, 255, 0));
  margin: 0 calc(-1 * 16px);
  padding: 28px 16px 40px;
}
@media (min-width: 768px) { .hero { margin: 0 calc(-1 * 24px); padding: 40px 24px 56px; } }
@media (min-width: 1024px) { .hero { margin: 0 calc(-1 * 32px); padding: 40px 32px 56px; } }

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: orb-float 6s ease-in-out infinite;
}
.hero-orb.o1 { top: -40px; right: -64px; width: 224px; height: 224px; background: rgba(190, 36, 62, 0.06); }
.hero-orb.o2 { bottom: -48px; left: -80px; width: 256px; height: 256px; background: rgba(190, 36, 62, 0.05); animation-delay: 2s; }
.hero-orb.o3 { top: 33%; right: 25%; width: 128px; height: 128px; background: rgba(190, 36, 62, 0.04); animation-delay: 4s; }

@keyframes orb-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
@media (min-width: 768px) {
  .hero-inner { flex-direction: row; gap: 36px; }
}

.avatar-wrap {
  flex: none;
  width: 160px; height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 10px 24px rgba(43, 29, 31, 0.14);
  background: #fff;
}
@media (min-width: 768px) { .avatar-wrap { width: 208px; height: 208px; } }
.avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
@media (min-width: 768px) {
  .hero-text { align-items: flex-start; text-align: left; }
}

.hero-text h1.site-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  align-self: center;
  line-height: 1.15;
}
.site-title .title-brand {
  font-size: clamp(30px, 8vw, 46px);
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(100deg, #1e90ff, #00c2ff, #4d9fff, #7b61ff, #1e90ff);
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: title-flow 7s linear infinite;
}
.site-title .title-desc {
  font-size: clamp(17px, 4.5vw, 23px);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--fg);
}
@keyframes title-flow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 280% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .site-title .title-brand { animation: none; }
}
.hero-text p {
  font-size: 15px;
  color: var(--muted-text);
  max-width: 28rem;
  line-height: 1.7;
}
@media (min-width: 768px) { .hero-text p { font-size: 17px; } }

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-top: 2px;
}
@media (min-width: 768px) { .badges { justify-content: flex-start; } }
.badge-pill {
  background: var(--accent);
  color: #a3444f;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
}

/* ─────────── 通用卡片 ─────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.block { margin-top: 36px; }
@media (min-width: 768px) { .block { margin-top: 48px; } }

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.head-icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.head-icon svg { width: 20px; height: 20px; }
.head-icon.primary { background: var(--primary-soft); color: var(--primary); }
.head-icon.danger { background: rgba(239, 68, 68, 0.10); color: var(--danger); }
.section-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
@media (min-width: 768px) { .section-head h2 { font-size: 26px; } }
.section-head .right { margin-left: auto; }

.section-plain { margin-bottom: 18px; }
.section-plain h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
@media (min-width: 768px) { .section-plain h2 { font-size: 26px; } }
.section-plain .sub-text { margin-top: 8px; }

.sub-text { font-size: 13.5px; color: var(--muted-text); }
strong, .strong { font-weight: 600; color: var(--fg); }

/* ─────────── 手机号卡片 ─────────── */
.phone-card {
  margin-top: -8px;
  border-top: 4px solid var(--amber);
  box-shadow: var(--shadow-md);
  padding: 20px 20px 22px;
  cursor: pointer;
}
@media (min-width: 768px) { .phone-card { padding: 24px; } }

.badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
}
.mini-badge svg { width: 12px; height: 12px; }
.mini-badge.amber { background: rgba(242, 155, 21, 0.12); color: var(--amber-text); }
.mini-badge.primary { background: var(--primary-soft); color: var(--primary); }

.phone-box {
  background: rgba(247, 238, 239, 0.55);
  border-radius: var(--radius);
  height: 60px;
  padding: 0 14px 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}
.phone-box .plain-btn { min-width: 180px; display: grid; place-items: center; }
#phone-number {
  font-size: clamp(23px, 7vw, 30px);
  font-weight: 700;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}
.phone-box:hover #phone-number { color: var(--primary); }
.phone-box.copied #phone-number { color: var(--green); }

.icon-btn {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: rgba(138, 123, 126, 0.45);
  transition: color 0.2s ease, transform 0.15s ease, background-color 0.2s ease;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--primary); background: var(--primary-soft); }
.icon-btn:active { transform: scale(0.9); }
.icon-btn.done { color: var(--green); }

/* ─────────── 验证码卡片 ─────────── */
.code-card { margin-top: 16px; padding: 20px; }
@media (min-width: 768px) { .code-card { padding: 24px; } }

.code-empty {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
/* 中心闪电符号 + 向外扩散水波纹（绿色） */
.orb {
  position: relative;
  width: 66px; height: 66px;
  margin: 0 auto 4px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 32% 28%, #e9fbee, #d3f6dd);
  display: grid;
  place-items: center;
  color: #16a34a;
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.18);
}
.orb-ico {
  width: 27px; height: 27px;
  filter: drop-shadow(0 2px 8px rgba(34, 197, 94, 0.6));
}
.orb .pulse {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.7);
  opacity: 0;
  animation: orb-pulse 2.6s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}
.orb .pulse.d2 { animation-delay: 1.3s; }
@keyframes orb-pulse {
  0%   { transform: scale(1);    opacity: 0.65; }
  80%  { transform: scale(1.7);  opacity: 0; }
  100% { transform: scale(1.7);  opacity: 0; }
}
.code-empty p { font-size: 14px; color: var(--muted-text); }

/* ─────────── 验证码提示文案 ─────────── */
.code-hint {
  font-size: 13px;
  color: var(--amber-text);
  background: rgba(242, 155, 21, 0.10);
  border: 1px solid rgba(242, 155, 21, 0.22);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
  line-height: 1.6;
}

.code-box {
  background: rgba(187, 27, 54, 0.05);
  border: 1px solid rgba(187, 27, 54, 0.2);
  border-radius: var(--radius);
  padding: 20px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: code-in 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes code-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
}
.ok-circle {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}
.ok-circle svg { width: 20px; height: 20px; }
.ok-circle.small {
  width: 32px; height: 32px;
  background: var(--primary);
  box-shadow: none;
}
.ok-circle.small svg { width: 15px; height: 15px; }

.code-btn { min-width: 0; }
#code-text {
  font-size: clamp(30px, 9vw, 44px);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-indent: 0.25em;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  transition: color 0.2s ease;
}
.code-head.copied #code-text { color: var(--green); }

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted-text);
}
.countdown svg { width: 14px; height: 14px; }
.countdown.warn { color: var(--amber-text); }
.countdown.expired { color: var(--danger); }
.countdown .expired-tag {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 12.5px;
  font-weight: 600;
}

.code-box .divider { height: 1px; background: rgba(187, 27, 54, 0.1); }

.pw-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: code-in 0.3s ease;
}
.pw-icon {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #a3444f;
  display: grid;
  place-items: center;
}
.pw-icon svg { width: 14px; height: 14px; }
.pw-btn { min-width: 0; }
#password-text {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.8px;
}
.pw-row.copied #password-text { color: var(--green); }

/* ─────────── 留言反馈 ─────────── */
.feedback-card { padding: 20px; }
.fb-row { display: flex; gap: 8px; }
.fb-row input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 14px;
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.fb-row input::placeholder { color: var(--muted-text); }
.fb-row input:focus {
  outline: none;
  border-color: rgba(187, 27, 54, 0.4);
  box-shadow: 0 0 0 3px rgba(187, 27, 54, 0.15);
}
.fb-send {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(187, 27, 54, 0.3);
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.fb-send svg { width: 18px; height: 18px; }
.fb-send:hover { background: #d6455f; }
.fb-send:active { transform: scale(0.92); }
.fb-send:disabled { background: rgba(187, 27, 54, 0.4); cursor: not-allowed; box-shadow: none; }
.fb-send.sent { background: var(--green); }

.fb-note { font-size: 14px; padding-left: 10px; }
.fb-note.ok { color: var(--green); margin: 0 0 10px; font-weight: 600; }
.fb-note.err { color: var(--danger); margin-top: 8px; }

.fb-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-left: 10px;
  font-size: 12.5px;
  color: var(--muted-text);
}
.fb-hint svg { flex: none; width: 13px; height: 13px; color: var(--amber); }

.fb-count {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  padding-left: 10px;
  font-size: 12px;
  color: rgba(138, 123, 126, 0.65);
  font-variant-numeric: tabular-nums;
}

/* ─────────── 使用指南 ─────────── */
.steps { position: relative; }
.steps-line {
  position: absolute;
  left: 19px;
  top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
  pointer-events: none;
}
@media (min-width: 768px) { .steps-line { left: 23px; } }

.step-item {
  position: relative;
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
@media (min-width: 768px) { .step-item { gap: 20px; } }
.step-item:last-child { margin-bottom: 0; }

.step-num {
  position: relative;
  z-index: 2;
  flex: none;
  width: 32px; height: 32px;
  margin-top: 14px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(187, 27, 54, 0.25);
}
@media (min-width: 768px) { .step-num { width: 40px; height: 40px; margin-top: 10px; } }

.step-card {
  flex: 1;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 29, 31, 0.06);
}
.step-card.hi {
  border-color: rgba(187, 27, 54, 0.3);
  box-shadow: 0 0 0 1px rgba(187, 27, 54, 0.2);
}
.step-icon {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #a3444f;
  display: grid;
  place-items: center;
}
.step-icon.primary { background: var(--primary-soft); color: var(--primary); }
.step-icon svg { width: 18px; height: 18px; }
.step-card h3 {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.attn {
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
}
.step-card p { margin-top: 6px; font-size: 14px; color: var(--muted-text); line-height: 1.65; }

/* ─────────── 共享原理 ─────────── */
.card.big { padding: 24px; margin-top: 16px; }
.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}
.card-title svg { width: 20px; height: 20px; }
.card-title h3 { font-size: 18px; font-weight: 600; }
.card-para {
  margin-top: 8px;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-text);
}
.card-para b { font-weight: 600; color: var(--fg); }

.abc-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 24px;
}
.abc-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.abc-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}
.abc-circle.s-active { background: var(--green); color: #fff; }
.abc-circle.s-standby { background: var(--amber); color: #fff; }
.abc-circle.s-rest { background: var(--muted); color: var(--muted-text); }
.abc-label, .abc-state { font-size: 12px; color: var(--muted-text); }
.abc-arrow { flex: none; display: flex; align-items: center; padding: 0 10px; margin-top: 22px; }

.cycle-pill {
  margin: 0 auto 20px;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(247, 238, 239, 0.65);
  color: var(--muted-text);
  font-size: 12px;
  border-radius: 999px;
  padding: 6px 16px;
}
.cycle-pill svg { width: 12px; height: 12px; color: var(--green); }

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}
.legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted-text); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.active { background: var(--green); }
.dot.standby { background: var(--amber); }
.dot.rest { background: #c9c3c4; }



.strategy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (min-width: 768px) { .strategy-grid { grid-template-columns: 1fr 1fr; } }
.strategy-item {
  background: hsl(350 15% 98%);
  border: 1px solid rgba(233, 226, 227, 0.6);
  border-radius: var(--radius);
  padding: 20px;
}
.strategy-num {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.strategy-item h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.strategy-item p { font-size: 14px; color: var(--muted-text); line-height: 1.65; }

.result-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(187, 27, 54, 0.05);
  border: 1px solid rgba(187, 27, 54, 0.1);
  border-radius: var(--radius);
  padding: 20px;
}
.result-note p { font-size: 14px; color: var(--muted-text); line-height: 1.65; margin-top: 2px; }

.time-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(247, 238, 239, 0.55);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 20px;
}
.time-note > svg { flex: none; width: 20px; height: 20px; color: var(--primary); margin-top: 3px; }
.time-note p { font-size: 14px; color: var(--muted-text); line-height: 1.65; margin-top: 4px; }

/* ─────────── 共享公约 ─────────── */
.rule-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: hsl(0 60% 42%);
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.rule-head svg { width: 16px; height: 16px; color: var(--danger); }

.rules { display: flex; flex-direction: column; gap: 12px; }
.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-left: 4px solid var(--danger);
  background: var(--danger-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px;
}
.rule-icon {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.rule-icon svg { width: 16px; height: 16px; }
.rule-item h3 {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.forbid {
  background: var(--danger-bg);
  color: hsl(0 60% 42%);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
}
.rule-item p { margin-top: 8px; font-size: 14px; color: var(--muted-text); line-height: 1.65; }

/* ─────────── 页脚 ─────────── */
.footer-line {
  height: 1px;
  width: 100%;
  max-width: 56rem;
  margin: 56px auto 0;
  background: linear-gradient(90deg, transparent, #03a9f4 20%, #03a9f4 80%, transparent);
}

footer {
  max-width: 56rem;
  margin: 0 auto;
  padding: 28px 16px 40px;
  text-align: center;
  font-size: 13px;
  color: var(--muted-text);
}
.icp { color: var(--muted-text); text-decoration: none; }
.icp:hover { color: var(--primary); }
.powered { margin-top: 6px; opacity: 0.75; }

/* ─────────── 入场动效 ─────────── */
.rise { animation: rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.hero-text { animation: rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards; }
.phone-card { animation: rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.18s backwards; }
.code-card { animation: rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.26s backwards; }

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

@media (prefers-reduced-motion: reduce) {
  .rise, .hero-text, .phone-card, .code-card,
  .hero-orb, .conn-dot.on, .orb .pulse { animation: none; }
}
