/* 页面级：主视觉、今日打卡、打卡中心、排行、约题、赛程、题库、成员、登录 */

/* ---------- 首页主视觉 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(94vh, 900px);
  display: flex;
  align-items: flex-start;
  background: var(--ink-green);
  border-bottom: 2px solid var(--lime);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(rgba(205, 255, 94, 0.16) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.18;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 48%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 48%);
}
.hero::after {
  content: "QINGJIE / 2027";
  position: absolute;
  z-index: 2;
  right: calc(var(--gutter) - 6px);
  top: 120px;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(205, 255, 94, 0.7);
  pointer-events: none;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  perspective: 1200px;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 72%;
  filter: brightness(0.78) saturate(0.88) contrast(1.05);
  transform: scale(1.08)
    translate3d(calc(var(--hx, 0) * -18px), calc(var(--hy, 0) * -10px + var(--sy, 0) * 0.12px), 0)
    rotateX(calc(var(--hy, 0) * 1.8deg))
    rotateY(calc(var(--hx, 0) * -2.2deg));
  transition: transform 700ms var(--ease);
  will-change: transform;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink-green) 0%, rgba(9, 28, 19, 0.95) 30%, rgba(9, 28, 19, 0.64) 54%, rgba(9, 28, 19, 0.12) 78%, rgba(9, 28, 19, 0.02) 100%),
    linear-gradient(0deg, rgba(9, 28, 19, 0.78) 0%, rgba(9, 28, 19, 0.1) 38%, transparent 62%);
}
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 9vh, 112px) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 40px;
  align-items: start;
}
.hero-copy { max-width: 800px; min-width: 0; }
.hero-title {
  position: relative;
  z-index: 1;
  font-size: clamp(64px, 8.4vw, 136px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 800;
  color: var(--cream);
  margin: 18px 0 0;
  white-space: nowrap;
}
/* 视觉错位：主标题后面压一层荧光绿描边，像印歪的海报 */
.hero-title::after {
  content: attr(data-text);
  position: absolute;
  left: 11px;
  top: 10px;
  width: 100%;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(205, 255, 94, 0.9);
  z-index: -1;
  pointer-events: none;
  transform: translate(calc(var(--hx, 0) * 12px), calc(var(--hy, 0) * 9px));
  transition: transform 700ms var(--ease);
}
.hero .eyebrow {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.hero-sub {
  margin-top: 24px;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.65;
  color: rgba(244, 240, 226, 0.8);
  max-width: 30ch;
}
.hero-cta { display: flex; align-items: center; gap: 20px; margin-top: 36px; flex-wrap: wrap; }
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: rgba(244, 240, 226, 0.82);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(244, 240, 226, 0.32);
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.hero-link:hover { color: var(--lime); border-color: var(--lime); }
.hero .btn-primary {
  background: var(--lime);
  color: var(--ink-green);
  border-color: var(--lime);
}
.hero .btn-primary:hover { background: var(--cream); border-color: var(--cream); }

.hero-facts { display: flex; flex-direction: column; gap: 20px; padding-top: 10px; min-width: 0; }
.fact { border-top: 1px solid rgba(205, 255, 94, 0.38); padding-top: 12px; }
.fact-label { font-family: var(--font-mono); font-size: 12px; color: var(--lime); letter-spacing: 0.04em; }
.fact-value {
  font-family: var(--font-mono);
  font-size: clamp(44px, 4vw, 62px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-top: 6px;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.fact-value small { font-family: var(--font-sans); font-size: 15px; font-weight: 400; color: rgba(244, 240, 226, 0.7); margin-left: 6px; letter-spacing: 0; }
.fact-note { font-size: 14px; color: rgba(244, 240, 226, 0.55); margin-top: 4px; }

.hero-facts { text-shadow: 0 1px 14px rgba(9, 28, 19, 0.55); }
.hero-facts .fact-note { color: rgba(244, 240, 226, 0.62); }
.hero-facts .fact-label { color: #e6ffae; }
.hero-facts .fact-note { color: rgba(255, 253, 242, 0.78); }

.hero-word {
  position: absolute;
  left: var(--gutter);
  bottom: 18px;
  z-index: 2;
  font-size: clamp(96px, 15vw, 214px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.07em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(244, 240, 226, 0.52);
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
  transform: translate3d(calc(var(--hx, 0) * 16px), calc(var(--hy, 0) * 9px), 0);
  transition: transform 700ms var(--ease);
  will-change: transform;
  animation: wordIn 1100ms var(--ease) 120ms backwards;
}
@keyframes wordIn {
  from { clip-path: inset(100% 0 0 0); transform: translateY(18px); }
  to { clip-path: inset(0 0 0 0); transform: none; }
}

/* ---------- 首屏下方条 ---------- */

.strip { border-bottom: 1px solid var(--line); background: var(--cream); }
.strip-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.6fr));
  gap: 24px;
  align-items: center;
  padding: 32px 0;
}
.strip-presence { display: flex; flex-direction: column; gap: 12px; }
.presence-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.strip-presence .presence-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.presence-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; color: var(--ink-2); }
.strip-fact { display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line-strong); padding-left: 24px; }
.strip-fact .stat-label { font-size: 14px; color: var(--ink-3); }
.strip-fact .stat-figure { font-size: clamp(42px, 4vw, 58px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }

/* ---------- 首页跑马灯 ---------- */

.ticker {
  border-top: 2px solid var(--ink-green);
  border-bottom: 2px solid var(--ink-green);
  background: var(--lime);
  overflow: hidden;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  padding: 16px 0;
  animation: ticker 34s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  font-size: clamp(22px, 2.4vw, 31px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-green);
  white-space: nowrap;
}
.ticker-track i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-green);
  opacity: 0.55;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- 通用页头：深色海报 + 3D 小景 ---------- */

.section:has(.page-head) { padding-top: 0; }
.page-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: clamp(32px, 4vw, 52px);
  padding: clamp(40px, 5vw, 68px) max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  background: var(--ink-green);
  color: var(--cream);
  border-bottom: 1px solid var(--lime);
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(205, 255, 94, 0.18) 1px, transparent 1px);
  background-size: 7px 7px;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}
.page-head .eyebrow { color: var(--lime); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; }
.page-title {
  position: relative;
  z-index: 1;
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 800;
  color: var(--cream);
  margin-top: 10px;
}
.page-note {
  position: relative;
  z-index: 1;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(244, 240, 226, 0.78);
  max-width: 38ch;
  margin-top: 14px;
}
.page-head .meta { color: rgba(244, 240, 226, 0.6); }
.page-head .section-link { color: var(--lime); border-bottom: 1px solid rgba(205, 255, 94, 0.5); padding-bottom: 4px; }
.page-art {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(205, 255, 94, 0.28);
  background: var(--ink-green-2);
}
.page-art img {
  width: 100%;
  height: clamp(230px, 25vw, 340px);
  object-fit: cover;
  display: block;
  transition: transform 700ms var(--ease);
}
.page-art:hover img { transform: scale(1.035); }

/* ---------- 首页赛季带 ---------- */

/* ---------- 全出血照片带 ---------- */

.photo-band {
  position: relative;
  width: 100vw;
  margin: clamp(48px, 6vw, 88px) calc(50% - 50vw) 0;
  height: clamp(240px, 30vw, 380px);
  overflow: hidden;
  border-top: 2px solid var(--lime);
  background: var(--ink-green);
}
.photo-band img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.92) saturate(0.92); }
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 28, 19, 0.7) 0%, rgba(9, 28, 19, 0.22) 52%, rgba(9, 28, 19, 0.03) 100%);
  pointer-events: none;
}
.photo-band figcaption {
  position: absolute;
  z-index: 1;
  left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  bottom: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.photo-band figcaption span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--lime);
}
.photo-band figcaption strong {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--cream);
}

/* ---------- 首页赛季海报 ---------- */

.season-poster {
  background: var(--ink-green);
  color: var(--cream);
  border-top: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
}
.season-poster .eyebrow { color: var(--lime); font-family: var(--font-mono); letter-spacing: 0.06em; }
.season-poster .season-band { border: 0; padding: clamp(12px, 2vw, 24px) 0; }
.season-poster .season-title { color: var(--cream); }
.season-poster .season-note { color: rgba(244, 240, 226, 0.7); }
.season-poster .season-date { border-color: rgba(205, 255, 94, 0.35); }
.season-poster .season-date span { color: var(--lime); }
.season-poster .season-date strong { color: var(--cream); }
.season-poster .season-date small { color: rgba(244, 240, 226, 0.6); }
.season-poster .season-art { background: var(--ink-green-2); border-color: rgba(205, 255, 94, 0.3); }
.season-poster .btn-primary { background: var(--lime); color: var(--ink-green); border-color: var(--lime); }
.season-poster .btn-primary:hover { background: var(--cream); border-color: var(--cream); }

.season-band {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: clamp(24px, 4vw, 44px) 0;
}
.season-title {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin-top: 10px;
}
.season-note { font-size: 17px; color: var(--ink-2); margin-top: 12px; max-width: 34ch; }
.season-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 26px 0 24px; }
.season-date { border-top: 1px solid var(--line); padding-top: 10px; }
.season-date span { display: block; font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }
.season-date strong { display: block; font-family: var(--font-mono); font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.02em; margin-top: 2px; }
.season-date small { font-family: var(--font-sans); font-size: 14px; font-weight: 400; color: var(--ink-2); margin-left: 4px; }
.season-art {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #f4eee3;
  border: 1px solid var(--line);
}
.season-art img { width: 100%; height: clamp(240px, 28vw, 360px); object-fit: cover; display: block; }

/* ---------- 打卡页窄带 ---------- */

.mini-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  padding-left: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  overflow: hidden;
}
.mini-band-note { font-size: 18px; color: var(--ink-2); margin-top: 6px; }
.mini-band img { width: 100%; height: 136px; object-fit: cover; display: block; }

/* ---------- 入口卡：官方 logo ---------- */

.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.res-grid.quick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.res-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), transform 480ms var(--ease);
}
.res-card:hover { --lift: -3px; border-color: rgba(44, 106, 76, 0.35); box-shadow: 0 22px 34px -30px rgba(28, 40, 30, 0.6); }
.res-logo {
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 14px;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  padding: 10px;
  overflow: hidden;
}
.res-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.res-logo.wide { width: 174px; height: 76px; padding: 6px; background: #fff; }
.res-logo.wide img { width: 100%; height: auto; }
.res-info { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.res-name { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -0.03em; }
.res-desc { display: none; }
.res-host { font-family: var(--font-mono); font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; margin-top: auto; overflow-wrap: anywhere; }
.res-host svg { color: var(--accent); }

.res-grid.quick .res-card { padding: 18px; gap: 14px; }
.res-grid.quick .res-logo { width: 64px; height: 64px; padding: 8px; }
.res-grid.quick .res-logo.wide { width: 128px; height: 56px; }
.res-grid.quick .res-name { font-size: 18px; }
.res-grid.quick .res-desc { display: none; }
.res-grid.quick .res-host { font-size: 12px; }

/* ---------- 主视觉叠加：光照 + 立体字 ---------- */

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(46% 42% at calc(50% + var(--hx, 0) * 26%) calc(46% + var(--hy, 0) * 22%),
    rgba(255, 253, 244, 0.5), rgba(255, 253, 244, 0) 70%);
  mix-blend-mode: soft-light;
}
.hero-word { text-shadow: 1px 1px 0 rgba(44, 106, 76, 0.18), 2px 2px 0 rgba(44, 106, 76, 0.16), 3px 3px 0 rgba(44, 106, 76, 0.14), 4px 4px 0 rgba(44, 106, 76, 0.12), 5px 5px 0 rgba(44, 106, 76, 0.1), 6px 6px 0 rgba(44, 106, 76, 0.08), 14px 16px 30px rgba(20, 34, 24, 0.28); }

/* ---------- 今日打卡卡 ---------- */

.today-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 24px; align-items: start; }
.today-art { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.today-art img { width: 100%; height: 330px; object-fit: cover; object-position: 50% 50%; }
.today-art figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.today-art figcaption span { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }
.today-art figcaption strong { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.checkin-panel { padding: 28px; }
.checkin-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.checkin-date { font-family: var(--font-mono); font-size: 14px; color: var(--ink-3); }
.checkin-title { font-size: clamp(26px, 2.6vw, 32px); font-weight: 500; line-height: 1.25; margin-top: 6px; }
.checkin-form { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.checkin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkin-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; flex-wrap: wrap; }
.checkin-hint { font-size: 14px; color: var(--ink-3); }

.checked-state { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.checked-line { display: flex; align-items: baseline; gap: 12px; }
.checked-line .big { font-family: var(--font-mono); font-size: 44px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--accent-deep); }
.checked-line .txt { font-size: 16px; color: var(--ink-2); }

.guest-panel { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

/* ---------- 打卡中心 ---------- */

.guest-board {
  margin-top: 32px;
  background: var(--ink-green);
  color: var(--cream);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: end;
}
.guest-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; color: var(--lime); }
.guest-title {
  font-size: clamp(36px, 4.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--cream);
  margin: 14px 0 28px;
}
.guest-board .btn-primary { background: var(--lime); color: var(--ink-green); border-color: var(--lime); }
.guest-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; border-top: 1px solid rgba(205, 255, 94, 0.38); padding-top: 22px; }
.guest-steps > div { display: flex; flex-direction: column; gap: 10px; }
.guest-steps b { font-family: var(--font-mono); font-size: clamp(26px, 2.4vw, 36px); font-weight: 500; color: var(--lime); line-height: 1; }
.guest-steps span { font-size: 17px; line-height: 1.35; color: rgba(244, 240, 226, 0.78); }

.me-head {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(44px, 6vw, 76px) max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  background: var(--ink-green);
  color: var(--cream);
  border-bottom: 1px solid var(--lime);
}
.me-head .avatar { background: rgba(244, 240, 226, 0.14); color: var(--cream); }
.me-head .me-title { font-size: clamp(46px, 5.4vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: var(--cream); }
.me-head .me-sub { font-size: 16px; color: rgba(244, 240, 226, 0.68); margin-top: 8px; }
.me-head .chip { border-color: rgba(205, 255, 94, 0.5); color: var(--lime); }
.me-head .btn-secondary { background: transparent; color: var(--cream); border-color: rgba(244, 240, 226, 0.35); }
.me-head .btn-secondary:hover { background: var(--lime); color: var(--ink-green); border-color: var(--lime); }
body[data-page="checkin"] main { padding-top: 0; }
body[data-page="resources"] main { padding-bottom: 0; }

.streak-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.streak-num { font-family: var(--font-mono); font-size: clamp(56px, 6vw, 76px); line-height: 1; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.streak-unit { font-size: 17px; color: var(--ink-2); margin-left: 8px; }
.streak-note { font-size: 15px; color: var(--ink-3); margin-top: 8px; }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stat-row .stat { border-left: 1px solid var(--line); padding-left: 20px; }
.stat-row .stat:first-child { border-left: 0; padding-left: 0; }

.calendar-card { padding: 24px; }
.calendar-card .cal { gap: 6px; }
.calendar-card .cal-cell { height: 72px; aspect-ratio: auto; }
.rec-diff { display: none; }

/* 打卡热力：按 GitHub 贡献图的排法（13 列 × 7 行，五档色阶） */

.heat-card { padding: 24px; }
.heat { position: relative; margin-top: 20px; --cell: 22px; --gap: 5px; }
.heat-months {
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--cell));
  column-gap: var(--gap);
  margin-left: 30px;
  height: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.heat-months span { justify-self: start; white-space: nowrap; }
.heat-body { display: flex; gap: 10px; }
.heat-wdays {
  display: grid;
  grid-template-rows: repeat(7, var(--cell));
  row-gap: var(--gap);
  width: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  align-items: center;
}
.heat-wdays span { line-height: var(--cell); }
.heat-grid {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--cell);
  grid-template-rows: repeat(7, var(--cell));
  gap: var(--gap);
}
.hc { border-radius: 3px; background: var(--raised); transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.hc.lvl1 { background: rgba(44, 106, 76, 0.20); }
.hc.lvl2 { background: rgba(44, 106, 76, 0.40); }
.hc.lvl3 { background: rgba(44, 106, 76, 0.64); }
.hc.lvl4 { background: var(--accent); }
.hc.future { background: transparent; box-shadow: inset 0 0 0 1px rgba(26, 30, 25, 0.05); }
.hc.makeup {
  background: repeating-linear-gradient(45deg, rgba(44, 106, 76, 0.42) 0 2px, rgba(44, 106, 76, 0.10) 2px 4px);
}
.hc.today { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.hc:hover { transform: scale(1.3); box-shadow: 0 5px 12px rgba(26, 30, 25, 0.22); }
.heat-grid.draw .hc { animation: hcIn 520ms var(--ease) backwards; animation-delay: calc(var(--i) * 5ms); }
@keyframes hcIn { from { opacity: 0; transform: scale(0.55); } to { opacity: 1; transform: none; } }

.heat-tip {
  position: absolute;
  transform: translate(-50%, -100%);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms linear;
  z-index: 4;
}
.heat-tip.on { opacity: 1; }

.heat-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.heat-range { margin-top: 6px; font-variant-numeric: tabular-nums; }
.heat-legend { display: flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.heat-legend .hl { display: block; width: 11px; height: 11px; border-radius: 2px; background: var(--raised); }
.heat-legend .hl.l1 { background: rgba(44, 106, 76, 0.20); }
.heat-legend .hl.l2 { background: rgba(44, 106, 76, 0.40); }
.heat-legend .hl.l3 { background: rgba(44, 106, 76, 0.64); }
.heat-legend .hl.l4 { background: var(--accent); }

/* ---------- 排行榜 ---------- */

.seg { display: inline-flex; gap: 2px; background: var(--raised); border-radius: var(--r-sm); padding: 3px; }
.seg button {
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--ink-2);
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(26, 30, 25, 0.05); }
.filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filters .select { width: auto; height: 38px; font-size: 15px; padding-right: 32px; }

.podium-note { font-size: 14px; color: var(--ink-3); }

.team-board { display: flex; flex-direction: column; gap: 16px; }
.team-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.team-row:last-child { border-bottom: 0; }
.team-name { font-size: 16px; }
.team-bar { height: 6px; background: var(--raised); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.team-bar span { display: block; height: 100%; background: var(--line-strong); }
.team-row.top .team-bar span { background: var(--accent); }
.team-score { font-family: var(--font-mono); font-size: 18px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 约题 / 打卡墙 ---------- */

.squad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.squad-card { display: flex; flex-direction: column; gap: 14px; }
.squad-photo { padding: 0; overflow: hidden; position: relative; min-height: 240px; }
.squad-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; }
.squad-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.squad-title { font-size: 19px; font-weight: 500; line-height: 1.4; }
.squad-meta { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--ink-2); }
.squad-meta .m-line { display: flex; align-items: center; gap: 8px; }
.squad-meta svg { color: var(--ink-3); flex: none; }
.squad-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 4px; }
.seats { display: flex; align-items: center; gap: 3px; }
.seat { width: 8px; height: 8px; border-radius: 50%; background: var(--raised); }
.seat.on { background: var(--accent); }
.seats .seat-label { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); margin-left: 6px; }
.full-note { font-size: 14px; color: var(--ink-3); }

.wall { display: flex; flex-direction: column; }
.wall-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.wall-item:first-child { padding-top: 0; }
.wall-item:last-child { border-bottom: 0; }
.wall-head { display: flex; align-items: center; gap: 10px; }
.wall-name { font-size: 16px; font-weight: 500; }
.wall-time { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); margin-left: auto; }
.wall-text { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin: 10px 0 12px; white-space: pre-wrap; word-break: break-word; }
.wall-actions { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--ink-3); }
.wall-action { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); transition: color var(--fast) var(--ease); }
.wall-action:hover { color: var(--accent-deep); }
.wall-action.on { color: var(--accent-deep); }
.wall-comments { margin-top: 12px; padding-left: 14px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.wall-comment { font-size: 14px; color: var(--ink-2); }
.wall-comment b { font-weight: 500; color: var(--ink); }

.composer { display: flex; flex-direction: column; gap: 12px; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- 赛程 ---------- */

.count-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.count-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.count-card .count-label { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }
.count-card .count-num { font-family: var(--font-mono); font-size: clamp(40px, 5vw, 60px); line-height: 1; font-weight: 500; letter-spacing: -0.03em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.count-card .count-num small { font-family: var(--font-sans); font-size: 15px; color: var(--ink-2); margin-left: 6px; letter-spacing: 0; }
.count-card .count-date { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.count-card.hot { background: var(--accent-wash); border-color: rgba(44, 106, 76, 0.2); }
.count-card.hot .count-num { color: var(--accent-deep); }

.rule-table td:first-child { width: 40%; color: var(--ink-2); }
.mini-cal .cal-cell { height: 54px; min-height: 54px; aspect-ratio: auto; }
.mini-cal .cal-cell.mark { background: var(--accent-wash); border-color: rgba(44, 106, 76, 0.24); }
.mini-cal .cal-cell.mark .day { color: var(--accent-deep); font-weight: 500; }
.mini-cal .mark-label { position: absolute; left: 5px; bottom: 3px; font-size: 10px; color: var(--accent-deep); font-family: var(--font-mono); }

.source-list { display: flex; flex-direction: column; gap: 10px; }
.source-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-2);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.source-list a:hover { color: var(--accent-deep); }
.source-list a svg { color: var(--ink-3); }

/* ---------- 题库中转 ---------- */

.route { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.route:last-child { border-bottom: 0; }
.route-no { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); padding-top: 4px; }
.route-title { font-size: 18px; font-weight: 500; }
.route-desc { font-size: 15px; color: var(--ink-2); margin-top: 6px; line-height: 1.65; }
.route-week { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); margin-top: 8px; }

/* ---------- 成员 ---------- */

.dir-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.member-card { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); transition: border-color var(--fast) var(--ease), transform 480ms var(--ease); }
.member-card:hover { --lift: -3px; border-color: rgba(44, 106, 76, 0.3); }
.member-card > .avatar { width: 52px; height: 52px; font-size: 22px; }
.member-card .m-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.member-card .m-sub { font-size: 14px; color: var(--ink-3); margin-top: 3px; }
.member-card .m-tag { margin-left: auto; }
.member-card.me { border-color: var(--accent); background: var(--accent-wash); }

.admin-panel { display: none; }
.admin-panel.open { display: block; }
.admin-lock { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.admin-lock .field { min-width: 240px; flex: 1; }
.import-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }

/* ---------- 登录 ---------- */

.login-page { background: var(--ink-green); color: var(--cream); padding-bottom: clamp(48px, 6vw, 72px); }
.login-page .eyebrow { color: var(--lime); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; }
.login-shell { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(24px, 5vw, 64px); align-items: start; padding: clamp(56px, 8vh, 96px) 0 72px; }
.login-copy .login-title { font-size: clamp(48px, 6vw, 88px); line-height: 1; font-weight: 800; letter-spacing: -0.05em; margin-top: 20px; color: var(--cream); }
.login-copy .login-note { font-size: 19px; color: rgba(244, 240, 226, 0.72); line-height: 1.75; margin-top: 22px; max-width: 30ch; }
.login-card { padding: 28px; background: var(--cream); color: var(--ink); }
.login-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.login-tabs button { font-size: 16px; color: var(--ink-3); padding: 6px 0; border-bottom: 2px solid transparent; }
.login-tabs button[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); font-weight: 700; }
.pick-list { display: flex; flex-direction: column; max-height: 336px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-sm); scrollbar-width: thin; }
.pick-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); text-align: left; width: 100%; transition: background-color var(--fast) var(--ease); }
.pick-row:last-child { border-bottom: 0; }
.pick-row:hover { background: var(--raised); }
.pick-row.on { background: var(--accent-wash); }
.pick-row .grow { flex: 1; min-width: 0; }
.pick-name { font-size: 18px; font-weight: 700; display: block; line-height: 1.3; letter-spacing: -0.02em; }
.pick-sub { font-size: 14px; color: var(--ink-3); display: block; line-height: 1.4; margin-top: 2px; }
.login-foot { font-size: 14px; color: var(--ink-3); line-height: 1.7; margin-top: 16px; }

.login-band {
  position: relative;
  margin: 0;
  height: clamp(220px, 30vw, 340px);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 2px solid rgba(205, 255, 94, 0.45);
}
.login-band img { width: 100%; height: 100%; object-fit: cover; }
.login-band span {
  position: absolute;
  left: clamp(20px, 3vw, 36px);
  bottom: clamp(18px, 3vw, 32px);
  color: #fff;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(16, 28, 18, 0.4);
}

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-facts { flex-direction: row; flex-wrap: wrap; gap: 20px; padding-top: 0; }
  .hero-facts .fact:last-child { display: none; }
  .fact { flex: 1 1 160px; min-width: 0; }
  .hero { min-height: auto; padding-bottom: 200px; }
  .hero-word { bottom: 24px; opacity: 0.9; }
  .dir-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-shell { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .rec-diff { display: none; }
  .strip-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip-presence { grid-column: 1 / -1; }
  .today-grid { grid-template-columns: 1fr; }
  .stat-row { gap: 16px; }
  .squad-grid { grid-template-columns: 1fr; }
  .count-grid { grid-template-columns: 1fr 1fr; }
  .import-grid { grid-template-columns: 1fr; }
  .checkin-split { display: flex; flex-direction: column; gap: 24px; }
  .rank-side { position: static; }
  .wall-side { position: static; }
  .guest-board { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .guest-steps span { font-size: 15px; line-height: 1.35; }
  .checkin-split .stack { display: contents; }
  .checkin-split #streak-card { order: 1; }
  .checkin-split .heat-card { order: 2; }
  .checkin-split #today-card { order: 3; }
  .checkin-split #records-card { order: 4; }
  .checkin-split #badges-card { order: 5; }
}

@media (max-width: 680px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 0; }
  .hero::after { display: none; }
  .hero-media { position: relative; inset: auto; order: 2; height: 300px; margin-top: 24px; }
  .hero-media img { object-position: 50% 68%; }
  .hero-media::after {
    background: linear-gradient(180deg, transparent 0%, transparent 62%, rgba(9, 28, 19, 0.64) 100%);
  }
  .hero-inner { order: 1; display: block; padding: 40px var(--gutter) 12px; }
  .hero-copy { max-width: none; }
  .hero-sub { margin-top: 16px; font-size: 17px; max-width: none; }
  .hero-cta { margin-top: 24px; gap: 16px; }
  .hero-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 16px;
    margin-top: 24px;
    padding-top: 0;
  }
  .hero-facts .fact { padding-top: 10px; }
  .fact-value { font-size: 28px; }
  .fact-note { font-size: 12px; }
  .hero-word { display: none; }
  .strip-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 20px 0; }
  .strip-presence { grid-column: 1 / -1; }
  .strip-presence .presence-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
  .presence-chip { font-size: 13px; min-width: 0; }
  .presence-chip .meta { white-space: nowrap; }
  .strip-fact { border-left: 1px solid var(--line); padding-left: 14px; }  .strip-fact:first-of-type { border-left: 0; padding-left: 0; }
  .strip-fact:last-child { grid-column: auto; }
  .strip-fact .stat-figure { font-size: 30px; }
  .rec-diff { display: inline; }
  .page-head { grid-template-columns: 1fr; gap: 20px; }
  .page-title { font-size: clamp(32px, 9vw, 42px); }
  .page-note { font-size: 17px; }
  .page-art img { height: 210px; }
  .mini-band { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px; }
  .mini-band img { height: 150px; border-radius: 10px; }
  .season-band { grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
  .season-art img { height: 220px; }
  .season-dates { gap: 12px; margin: 20px 0; }
  .season-date strong { font-size: 22px; }
  .res-grid.quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res-card { padding: 16px; gap: 12px; }
  .res-logo { width: 46px; height: 46px; padding: 7px; }
  .res-logo.wide { width: 140px; height: 46px; }
  .res-name { font-size: 17px; }
  .res-desc { font-size: 15px; }
  .count-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .count-card { padding: 14px; }
  .count-card .count-num { font-size: 30px; margin-top: 6px; }
  .count-card .count-date { font-size: 11px; line-height: 1.5; }
  .heat { --cell: 17px; --gap: 4px; margin-top: 16px; }
  .heat-months { margin-left: 24px; font-size: 11px; }
  .heat-wdays { width: 16px; font-size: 11px; }
  .heat-foot { gap: 8px; }
  .heat-card .cal-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .squad-top .tag { flex: none; white-space: nowrap; }
  .squad-foot { flex-wrap: wrap; row-gap: 8px; }
  .squad-foot .foot-host { white-space: nowrap; }
  .squad-foot .foot-act { margin-left: auto; }
  .seats .seat-label { display: none; }
  #records-table .table th:nth-child(3), #records-table .table td:nth-child(3),
  #records-table .table th:nth-child(5), #records-table .table td:nth-child(5) { display: none; }
  #records-table .table td[class*="secondary"] { max-width: none !important; }
  #records-table .table td:first-child { white-space: nowrap; }
  #records-table .table td:first-child .meta { display: none; }
  .checkin-form .form-row { grid-template-columns: 1fr; }
  .streak-panel { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .stat-row .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .stat-row .stat:first-child { border-top: 0; padding-top: 0; }
  .calendar-card .cal-cell { height: 54px; }
  .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dir-grid { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr; }
  .res-grid.quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res-grid.quick .res-card { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
  .res-grid.quick .res-logo,
  .res-grid.quick .res-logo.wide { width: 100%; height: 58px; padding: 6px; }
  .res-grid.quick .res-logo img,
  .res-grid.quick .res-logo.wide img { width: 100% !important; height: 46px !important; object-fit: contain !important; margin: 0 auto; }
  .res-grid.quick .res-name { font-size: 16px; line-height: 1.35; }
  .res-grid.quick .res-host { display: none; }
  .team-row { grid-template-columns: 1fr auto; }
  .team-bar { display: none; }
  .login-card { padding: 22px; }
  .rank-points { font-size: 18px; min-width: 60px; }
}

/* =========================================================
   深度动效与分层：巨字嵌入场景 / 页头聚光 / 序列入场
   最后覆盖，避免改散原有海报规则
   ========================================================= */

/* ---------- 分字入场 ---------- */
.cx-char-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.cx-char {
  display: inline-block;
  will-change: transform;
  animation: cxUp 980ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 44ms + 80ms);
}
@keyframes cxUp {
  from { transform: translateY(112%) rotate(2.4deg); }
  to { transform: translateY(0) rotate(0); }
}
.hero-title::after {
  animation: titleShadow 1200ms cubic-bezier(0.16, 1, 0.3, 1) 420ms both;
  z-index: 0;
}
.hero-title .cx-char-wrap { position: relative; z-index: 1; }
@keyframes titleShadow {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* ---------- 首页主视觉：提亮 + 前景遮挡 ---------- */
.hero { --px: 62%; --py: 40%; }
.hero-media img {
  filter: brightness(1.12) saturate(1.14) contrast(1.02);
}
.hero-media::after {
  background:
    linear-gradient(270deg, rgba(9, 28, 19, 0.42) 0%, rgba(9, 28, 19, 0.16) 22%, rgba(9, 28, 19, 0) 40%),
    linear-gradient(180deg, rgba(9, 28, 19, 0.34) 0%, rgba(9, 28, 19, 0.06) 32%, transparent 52%),
    radial-gradient(60% 78% at 8% 46%, rgba(9, 28, 19, 0.62) 0%, rgba(9, 28, 19, 0.3) 48%, rgba(9, 28, 19, 0) 76%),
    radial-gradient(42% 66% at 92% 28%, rgba(9, 28, 19, 0.62) 0%, rgba(9, 28, 19, 0.24) 54%, rgba(9, 28, 19, 0) 76%),
    linear-gradient(90deg, rgba(9, 28, 19, 0.84) 0%, rgba(9, 28, 19, 0.5) 34%, rgba(9, 28, 19, 0.16) 62%, rgba(9, 28, 19, 0) 88%),
    linear-gradient(0deg, rgba(9, 28, 19, 0.58) 0%, rgba(9, 28, 19, 0.12) 28%, transparent 52%);
}
.hero-copy { text-shadow: 0 2px 26px rgba(9, 28, 19, 0.32); }
.hero-facts { text-shadow: 0 2px 20px rgba(9, 28, 19, 0.72), 0 1px 3px rgba(9, 28, 19, 0.4); }

.hero-light {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(340px 340px at var(--px) var(--py),
    rgba(255, 253, 244, 0.16), rgba(255, 253, 244, 0) 68%);
  mix-blend-mode: screen;
  opacity: 0.58;
}

.hero-word {
  z-index: 2;
  bottom: 2px;
  font-size: clamp(118px, 18vw, 286px);
  -webkit-text-stroke: 3px rgba(244, 240, 226, 0.72);
}
.hero-word { opacity: 0.94; }

/* 与底图同源的再裁一层：只保留底部草坡，用来遮住巨字 */
.hero-fg {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top,
    #000 0%, #000 4%, rgba(0, 0, 0, 0.92) 7%, rgba(0, 0, 0, 0.35) 10%, transparent 14%);
  mask-image: linear-gradient(to top,
    #000 0%, #000 4%, rgba(0, 0, 0, 0.92) 7%, rgba(0, 0, 0, 0.35) 10%, transparent 14%);
}
.hero-fg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 72%;
  filter: brightness(1.12) saturate(1.14) contrast(1.02);
  transform: scale(1.08)
    translate3d(calc(var(--hx, 0) * -18px), calc(var(--hy, 0) * -10px + var(--sy, 0) * 0.12px), 0)
    rotateX(calc(var(--hy, 0) * 1.8deg))
    rotateY(calc(var(--hx, 0) * -2.2deg));
  transition: transform 700ms var(--ease);
  will-change: transform;
}
.hero-inner { z-index: 4; }

/* ---------- 通用页头：巨字 + 聚光 + 图面抠开 ---------- */
.page-head {
  --px: 50%;
  --py: 50%;
  isolation: isolate;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: -18% -12%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(320px 320px at var(--px) var(--py),
    rgba(205, 255, 94, 0.15), rgba(205, 255, 94, 0) 70%);
  mix-blend-mode: screen;
  animation: headGlow 6.5s ease-in-out infinite alternate;
}
@keyframes headGlow {
  from { opacity: 0.62; }
  to { opacity: 1; }
}
.page-head > :not(.page-ghost) { position: relative; z-index: 2; }
.rank-side { position: sticky; top: 86px; align-self: start; }
.wall-side { position: sticky; top: 86px; align-self: start; }
.me-head { position: relative; isolation: isolate; overflow: hidden; }
.me-head > :not(.page-ghost) { position: relative; z-index: 2; }
.me-head .page-ghost { font-size: clamp(96px, 12vw, 210px); top: -0.01em; opacity: 0.82; }
.page-ghost {
  position: absolute;
  z-index: 0;
  left: max(8px, calc((100vw - var(--maxw)) / 2 + var(--gutter) - 0.03em));
  top: 0.03em;
  font-size: clamp(120px, 17vw, 280px);
  line-height: 0.82;
  font-weight: 800;
  letter-spacing: -0.1em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(205, 255, 94, 0.14);
  opacity: 0;
  pointer-events: none;
  user-select: none;
  animation: ghostIn 1100ms cubic-bezier(0.16, 1, 0.3, 1) 260ms both;
}
@keyframes ghostIn {
  from { opacity: 0; translate: -42px 0; }
  to { opacity: 0.9; translate: 0 0; }
}
.page-art {
  animation: none;
}
@keyframes artClip {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
.page-art img {
  animation: artClip 1050ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both,
    artFloat 9s ease-in-out 1.4s infinite alternate;
}
@keyframes artFloat {
  from { translate: 0 0; }
  to { translate: 0 -6px; }
}

/* ---------- 图片随滚动错位 ---------- */
.page-art img,
.season-art img,
.photo-band img,
.login-band img,
.today-art img,
.squad-photo img {
  transform: translate3d(0, var(--py, 0px), 0) scale(1.1);
  transition: transform 120ms linear, filter 420ms var(--ease);
  will-change: transform;
}
.page-art:hover img,
.season-art:hover img,
.today-art:hover img {
  filter: brightness(1.08) saturate(1.06);
}
.photo-band figcaption strong {
  text-shadow: 0 10px 40px rgba(9, 28, 19, 0.5);
}

/* ---------- 序列入场：榜单 / 赛程 / 卡片 ---------- */
.has-fx .reveal {
  transform: translateY(34px) scale(0.994);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.has-fx .reveal.in { transform: none; }

@keyframes itemIn {
  from { opacity: 0; translate: 0 26px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes itemInLeft {
  from { opacity: 0; translate: -18px 0; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.reveal.in .res-card,
.reveal.in .member-card,
.reveal.in .squad-card,
.reveal.in .count-card,
.reveal.in .route,
.reveal.in .wall-item,
.reveal.in .badge-tile {
  animation: itemIn 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 54ms);
}
.reveal.in .rank-row,
.reveal.in .team-row {
  animation: itemInLeft 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 48ms);
}
.reveal.in .rank-bar span,
.reveal.in .team-bar span {
  transform-origin: left center;
  animation: barGrow 1000ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 48ms + 120ms);
}
.reveal.in .tl-item {
  animation: itemInLeft 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.reveal.in .cal-cell.mark {
  animation: markIn 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 10ms);
}
@keyframes markIn {
  from { opacity: 0; transform: scale(0.55); background: var(--accent); }
  to { opacity: 1; transform: scale(1); }
}
.reveal.in .source-list a {
  animation: itemIn 620ms var(--ease) both;
}

/* 当前节点：一圈很轻的呼吸 */
.timeline .tl-item.now .tl-dot {
  box-shadow: 0 0 0 0 rgba(44, 106, 76, 0.28);
  animation: dotBreathe 3.4s ease-out infinite;
}
@keyframes dotBreathe {
  0% { box-shadow: 0 0 0 0 rgba(44, 106, 76, 0.26); }
  70% { box-shadow: 0 0 0 12px rgba(44, 106, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(44, 106, 76, 0); }
}

/* ---------- 卡片磁吸外的第二层反应 ---------- */
.res-card,
.member-card,
.today-art,
.season-art,
.page-art {
  position: relative;
  overflow: hidden;
}
.res-card::after,
.member-card::after,
.today-art::after,
.season-art::after,
.page-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(190px 190px at var(--gx, 50%) var(--gy, 50%),
    rgba(205, 255, 94, 0.16), rgba(205, 255, 94, 0) 72%);
  transition: opacity 380ms var(--ease);
}
.res-card:hover::after,
.member-card:hover::after,
.today-art:hover::after,
.season-art:hover::after,
.page-art:hover::after { opacity: 1; }

.res-logo { transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1), background-color 380ms var(--ease); }
.res-card:hover .res-logo { transform: scale(1.08) rotate(-3deg); }
.res-name { transition: color 320ms var(--ease); }
.res-card:hover .res-name { color: var(--accent-deep); }
.member-card { transition: border-color var(--fast) var(--ease), transform 480ms var(--ease), box-shadow 480ms var(--ease); }
.member-card:hover { transform: translateY(-3px); box-shadow: 0 20px 32px -30px rgba(28, 40, 30, 0.56); }
.member-card > .avatar { transition: transform 480ms cubic-bezier(0.16, 1, 0.3, 1); }
.member-card:hover > .avatar { transform: scale(1.08) rotate(3deg); }

/* 座位逐个亮起 */
.seat.on { animation: seatPop 520ms cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes seatPop {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: scale(1); }
}

/* 表格逐行 */
#records-card .table tbody tr {
  animation: itemIn 520ms var(--ease) both;
}
#records-card .table tbody tr:nth-child(1) { animation-delay: 40ms; }
#records-card .table tbody tr:nth-child(2) { animation-delay: 80ms; }
#records-card .table tbody tr:nth-child(3) { animation-delay: 120ms; }
#records-card .table tbody tr:nth-child(4) { animation-delay: 160ms; }
#records-card .table tbody tr:nth-child(5) { animation-delay: 200ms; }
#records-card .table tbody tr:nth-child(6) { animation-delay: 240ms; }

/* ---------- 登录页 ---------- */
.login-page { position: relative; overflow: hidden; }
.login-page::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(360px 360px at var(--px, 62%) var(--py, 36%),
    rgba(205, 255, 94, 0.12), rgba(205, 255, 94, 0) 70%);
}
.login-page .wrap { position: relative; z-index: 1; }
.login-band span { animation: captionIn 900ms cubic-bezier(0.16, 1, 0.3, 1) 320ms both; }
@keyframes captionIn {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

/* 按钮 / 文字链的磁吸轻移 */
.btn-primary, .btn-secondary, .section-link, .hero-link {
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
}
.section-link { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 手机端：去掉重层，保留分字与列表动效 ---------- */
@media (max-width: 680px) {
  .hero-fg,
  .hero-light,
  .page-ghost { display: none; }
  .page-head::after { inset: 0; }
  .page-art img,
  .season-art img,
  .photo-band img,
  .login-band img,
  .today-art img,
  .squad-photo img { transform: scale(1.04); }
  .hero-media img { filter: brightness(1.08) saturate(1.08) contrast(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .cx-char { animation: none; transform: none; }
  .hero-title::after { animation: none; clip-path: none; }
  .page-head::after { animation: none; }
  .page-ghost, .page-art, .login-band span,
  .reveal.in .res-card, .reveal.in .member-card, .reveal.in .squad-card,
  .reveal.in .count-card, .reveal.in .route, .reveal.in .wall-item,
  .reveal.in .badge-tile, .reveal.in .rank-row, .reveal.in .team-row,
  .reveal.in .tl-item, .reveal.in .cal-cell.mark,
  #records-card .table tbody tr, .seat.on {
    animation: none;
    translate: none;
    opacity: inherit;
  }
  .page-art img, .season-art img, .photo-band img, .login-band img,
  .today-art img, .squad-photo img { transform: none; animation: none; }
  .has-fx .reveal { transform: none; opacity: 1; }
}

/* ============================================================
   更亮的主视觉 + 重力积分块 + 页头数据小部件
   ============================================================ */

.hero-media img,
.hero-fg img { filter: brightness(1.16) saturate(1.12) contrast(1.01); }

.hero-media::after {
  background:
    linear-gradient(270deg, rgba(9, 28, 19, 0.34) 0%, rgba(9, 28, 19, 0.12) 24%, rgba(9, 28, 19, 0) 44%),
    linear-gradient(180deg, rgba(9, 28, 19, 0.26) 0%, rgba(9, 28, 19, 0.04) 30%, transparent 48%),
    radial-gradient(58% 74% at 8% 46%, rgba(9, 28, 19, 0.56) 0%, rgba(9, 28, 19, 0.24) 48%, rgba(9, 28, 19, 0) 76%),
    radial-gradient(40% 60% at 92% 28%, rgba(9, 28, 19, 0.5) 0%, rgba(9, 28, 19, 0.16) 54%, rgba(9, 28, 19, 0) 76%),
    linear-gradient(90deg, rgba(9, 28, 19, 0.82) 0%, rgba(9, 28, 19, 0.54) 34%, rgba(9, 28, 19, 0.15) 64%, rgba(9, 28, 19, 0) 90%),
    linear-gradient(0deg, rgba(9, 28, 19, 0.5) 0%, rgba(9, 28, 19, 0.08) 28%, transparent 52%);
}
.hero-copy { text-shadow: 0 2px 30px rgba(9, 28, 19, 0.4), 0 1px 2px rgba(9, 28, 19, 0.28); }
.hero-light { opacity: 0.68; }

/* 重力积分块：抓一下，会掉、会撞、会弹 */
.hero-toys {
  position: absolute;
  right: clamp(18px, 3.6vw, 54px);
  bottom: clamp(20px, 4.2vh, 48px);
  z-index: 5;
  width: 258px;
  padding: 10px 12px 8px;
  color: var(--cream);
  user-select: none;
  text-shadow: 0 2px 18px rgba(9, 28, 19, 0.5);
  border: 1px solid rgba(205, 255, 94, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(9, 28, 19, 0.6), rgba(9, 28, 19, 0.26) 58%, rgba(9, 28, 19, 0.12));
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  backdrop-filter: blur(8px) saturate(1.1);
  box-shadow: 0 18px 44px -32px rgba(9, 28, 19, 0.9);
}
.toys-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(205, 255, 94, 0.88);
  padding: 0 4px 8px;
}
.toys-head b { color: var(--cream); font-size: 12px; letter-spacing: 0.04em; }
.toys-stage {
  position: relative;
  height: 218px;
  border-bottom: 1px solid rgba(205, 255, 94, 0.46);
}
.toys-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 14px;
  background: linear-gradient(180deg, rgba(205, 255, 94, 0.1), transparent);
  pointer-events: none;
}
.toy {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 6px;
  border: 1px solid rgba(9, 28, 19, 0.2);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink-green);
  background: var(--cream);
  box-shadow: 0 12px 26px -14px rgba(9, 28, 19, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: grab;
  touch-action: none;
  will-change: transform;
  transition: box-shadow 220ms var(--ease), scale 220ms var(--ease);
}
.toy-a { background: var(--lime); border-color: rgba(9, 28, 19, 0.3); }
.toy-b { background: var(--cream); }
.toy-c {
  color: var(--cream);
  background: rgba(9, 28, 19, 0.72);
  border-color: rgba(205, 255, 94, 0.56);
}
.toy.grabbing { cursor: grabbing; scale: 0.96; box-shadow: 0 18px 34px -16px rgba(9, 28, 19, 0.9); }
.toy:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.toys-foot {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(244, 240, 226, 0.55);
  text-align: right;
}

/* 页头图上的数据小部件 */
.art-widget {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  max-width: min(330px, calc(100% - 28px));
  padding: 10px 12px 9px;
  border: 1px solid rgba(205, 255, 94, 0.4);
  border-radius: 10px;
  color: var(--cream);
  background: rgba(9, 28, 19, 0.8);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 16px 32px -24px rgba(0, 0, 0, 0.9);
  text-align: left;
  cursor: pointer;
  transition: transform 420ms var(--ease), border-color 320ms var(--ease), background 320ms var(--ease);
}
.art-widget:hover {
  transform: translateY(-4px);
  border-color: rgba(205, 255, 94, 0.8);
  background: rgba(9, 28, 19, 0.9);
}
.art-widget:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.aw-kicker {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(205, 255, 94, 0.76);
}
.aw-main {
  font-size: 16px;
  line-height: 1.15;
  white-space: nowrap;
  color: var(--cream);
}
.aw-main b {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.05em;
  color: var(--lime);
  margin-right: 2px;
}
.aw-sub {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(244, 240, 226, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aw-bars {
  grid-column: 2;
  grid-row: 2 / 4;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
  padding-top: 4px;
}
.aw-bar {
  width: 6px;
  height: var(--h, 40px);
  border-radius: 2px;
  background: linear-gradient(to top, rgba(205, 255, 94, 0.28), var(--lime));
  transform-origin: bottom center;
  animation: awBar 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--d, 0ms);
}
@keyframes awBar {
  from { transform: scaleY(0.08); opacity: 0.2; }
  to { transform: scaleY(1); opacity: 1; }
}
.aw-seats, .aw-dots {
  grid-column: 2;
  grid-row: 2 / 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
  max-width: 48px;
}
.aw-seat, .aw-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.92;
  animation: awDrop 620ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: var(--d, 0ms);
}
.aw-seat.full { background: rgba(244, 240, 226, 0.18); }
.aw-dots i:nth-child(2n) { background: var(--cream); }
@keyframes awDrop {
  from { transform: translateY(-14px) scale(0.4); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.aw-ring {
  grid-column: 2;
  grid-row: 2 / 4;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: conic-gradient(var(--lime) var(--p, 20%), rgba(244, 240, 226, 0.16) 0);
  -webkit-mask: radial-gradient(circle, transparent 0 63%, #000 65%);
  mask: radial-gradient(circle, transparent 0 63%, #000 65%);
  animation: awRing 900ms var(--ease) both;
}
@keyframes awRing {
  from { opacity: 0; transform: rotate(-36deg) scale(0.8); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}

.ai-focus { outline: 2px solid var(--lime); outline-offset: 5px; }

/* ============================================================
   全站火柴人 + AI 管家
   ============================================================ */

.grav-lab {
  max-width: 720px;
  margin: clamp(26px, 4vw, 42px) auto 0;
  padding: 14px 14px 10px;
  border: 1px solid rgba(205, 255, 94, 0.24);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(9, 28, 19, 0.97), rgba(16, 42, 28, 0.9));
  box-shadow: 0 22px 50px -34px rgba(9, 28, 19, 0.9);
  overflow: hidden;
}
.grav-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px;
}
.grav-head > div { display: flex; flex-direction: column; gap: 3px; }
.grav-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--lime);
  text-transform: uppercase;
}
.grav-title { font-size: 20px; font-weight: 800; color: var(--cream); line-height: 1.1; }
.grav-note { font-size: 10px; color: rgba(244, 240, 226, 0.5); text-align: right; }
.grav-stage {
  position: relative;
  height: 150px;
  margin-top: 10px;
  border-radius: 12px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(205, 255, 94, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(244, 240, 226, 0.035), rgba(244, 240, 226, 0.008));
  overflow: hidden;
  touch-action: none;
}
.grav-stage::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 6px;
  height: 1px;
  background: rgba(205, 255, 94, 0.18);
  box-shadow: 0 5px 16px rgba(205, 255, 94, 0.08);
}
.grav-block {
  position: absolute;
  left: 0; top: 0;
  width: var(--s, 46px);
  height: var(--s, 46px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0;
  border: 1px solid rgba(9, 28, 19, 0.9);
  border-radius: 7px;
  background: var(--cream);
  color: var(--ink-green);
  cursor: grab;
  touch-action: none;
  will-change: transform;
  box-shadow: 0 10px 18px -12px rgba(0, 0, 0, 0.55);
}
.grav-block b { font-size: 19px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.grav-block em {
  font-style: normal;
  font-size: 8px;
  line-height: 1;
  opacity: 0.56;
  transform: scale(0.92);
  white-space: nowrap;
}
.grav-block.lime { background: var(--lime); border-color: rgba(9, 28, 19, 0.8); }
.grav-block.dark { background: var(--ink-green); color: var(--cream); border-color: rgba(205, 255, 94, 0.45); }
.grav-block.grabbing { cursor: grabbing; z-index: 3; }

.qj-stick {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  width: 64px;
  height: 86px;
  cursor: grab;
  touch-action: none;
  will-change: transform;
  filter: drop-shadow(0 10px 12px rgba(9, 28, 19, 0.34));
}
.qj-stick.grabbing { cursor: grabbing; }
.qj-stick:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 10px; }

.qj-stick-say {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 92;
  max-width: 230px;
  padding: 7px 10px 8px;
  border: 1px solid rgba(9, 28, 19, 0.92);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink-green);
  font-size: 12px;
  line-height: 1.45;
  font-family: var(--font-sans);
  box-shadow: 0 10px 24px -14px rgba(9, 28, 19, 0.7);
  transform: translate(-50%, calc(-100% - 4px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease), transform 220ms var(--ease);
}
.qj-stick-say.show { opacity: 1; transform: translate(-50%, calc(-100% - 9px)); }
.qj-stick-say.below.show { transform: translate(-50%, 9px); }
.qj-stick-say::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: var(--cream);
  border-right: 1px solid rgba(9, 28, 19, 0.92);
  border-bottom: 1px solid rgba(9, 28, 19, 0.92);
  transform: rotate(45deg);
}

.qj-stick-tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 93;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 10px 8px;
  border: 1px solid rgba(205, 255, 94, 0.7);
  border-radius: 8px;
  background: rgba(9, 28, 19, 0.92);
  color: var(--cream);
  box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.8);
  transform: translate(-50%, calc(-100% - 8px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease), transform 260ms var(--ease);
}
.qj-stick-tip b { font-size: 12px; color: var(--lime); }
.qj-stick-tip span { font-size: 10px; color: rgba(244, 240, 226, 0.7); }
.qj-stick-tip.show { opacity: 1; transform: translate(-50%, calc(-100% - 13px)); }

.qj-chat {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: 392px;
  height: min(588px, calc(100dvh - 118px));
  border: 1px solid rgba(9, 28, 19, 0.9);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink-green);
  overflow: hidden;
  box-shadow: 0 30px 80px -28px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(205, 255, 94, 0.18);
  transform: translateY(14px) scale(0.975);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease), transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.qj-chat.open { opacity: 1; transform: none; pointer-events: auto; }
.qj-chat[hidden] { display: none !important; }

.qjc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  background: var(--ink-green);
  color: var(--cream);
  border-bottom: 1px solid rgba(205, 255, 94, 0.42);
}
.qjc-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 7px;
  background: var(--lime);
  color: var(--ink-green);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}
.qjc-title { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.qjc-title b { font-size: 15px; line-height: 1.25; letter-spacing: -0.01em; }
.qjc-title span { font-size: 10px; line-height: 1.3; color: rgba(244, 240, 226, 0.55); white-space: nowrap; }
.qjc-model {
  margin-left: auto;
  flex: none;
  padding: 3px 6px;
  border: 1px solid rgba(205, 255, 94, 0.38);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--lime);
  white-space: nowrap;
}
.qjc-model.fallback { color: #ffc46b; border-color: rgba(255, 196, 107, 0.5); }
.qjc-close {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: rgba(244, 240, 226, 0.8);
  font-size: 21px;
  line-height: 1;
}
.qjc-close:hover { background: rgba(244, 240, 226, 0.1); color: var(--lime); }

.qjc-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 13px 8px;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(9, 28, 19, 0.07) 1px, transparent 1px);
  background-size: 8px 8px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.qjc-hello {
  padding: 11px 12px;
  border: 1px solid rgba(9, 28, 19, 0.18);
  border-left: 3px solid var(--lime);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.4);
  margin-bottom: 14px;
}
.qjc-hello p { font-size: 13px; line-height: 1.6; color: var(--ink-green); }
.qjc-glance {
  display: flex;
  gap: 14px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed rgba(9, 28, 19, 0.18);
  font-size: 10px;
  color: rgba(9, 28, 19, 0.56);
  letter-spacing: 0.02em;
}
.qjc-glance b {
  display: block;
  font-size: 17px;
  line-height: 1.1;
  color: var(--ink-green);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.qjc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.qjc-chips button {
  padding: 5px 9px;
  border: 1px solid rgba(9, 28, 19, 0.28);
  border-radius: 999px;
  background: var(--cream);
  font-size: 11px;
  line-height: 1.3;
  color: var(--ink-green);
  transition: background 180ms, color 180ms, border-color 180ms;
}
.qjc-chips button:hover { background: var(--lime); border-color: var(--lime); }

.qjc-msg { display: flex; align-items: flex-end; gap: 7px; margin: 0 0 11px; }
.qjc-msg.me { flex-direction: row-reverse; }
.qjc-who {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.qjc-msg.ai .qjc-who { background: var(--ink-green); color: var(--cream); }
.qjc-msg.me .qjc-who { background: var(--lime); color: var(--ink-green); }
.qjc-msg p {
  max-width: 78%;
  padding: 8px 10px 9px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: left;
}
.qjc-msg.ai p { background: rgba(255, 255, 255, 0.58); border: 1px solid rgba(9, 28, 19, 0.14); }
.qjc-msg.me p { background: var(--ink-green); color: var(--cream); }

.qjc-msg.typing p { display: flex; gap: 4px; align-items: center; min-height: 34px; }
.qjc-msg.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-green);
  animation: qjcDots 900ms ease-in-out infinite;
}
.qjc-msg.typing i:nth-child(2) { animation-delay: 120ms; }
.qjc-msg.typing i:nth-child(3) { animation-delay: 240ms; }
@keyframes qjcDots {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  45% { opacity: 1; transform: translateY(-3px); }
}

.qjc-draw { width: 100%; }
.qjc-draw img { width: 100%; height: auto; max-height: 210px; object-fit: contain; background: #07160f; border-radius: 6px; border: 1px solid rgba(9, 28, 19, 0.2); }
.qjc-draw-cap { display: block; margin-top: 5px; font-family: var(--font-mono); font-size: 8px; color: var(--ink-3); letter-spacing: 0.06em; }
.qjc-draw-load, .qjc-draw-err {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px;
  border: 1px dashed rgba(9, 28, 19, 0.3);
  border-radius: 7px;
  font-size: 12px;
  color: var(--ink-2);
}
.qjc-draw-load i {
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink-green);
  border-right-color: var(--lime);
  border-radius: 50%;
  animation: qjcSpin 700ms linear infinite;
}
@keyframes qjcSpin { to { transform: rotate(360deg); } }
.qjc-draw-err { color: #7c2e1e; border-color: rgba(124, 46, 30, 0.32); }

.qjc-form {
  display: flex;
  gap: 7px;
  padding: 10px 11px;
  border-top: 1px solid rgba(9, 28, 19, 0.18);
  background: var(--cream);
}
.qjc-form input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(9, 28, 19, 0.36);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  color: var(--ink-green);
  outline: none;
}
.qjc-form input:focus { border-color: var(--ink-green); box-shadow: 0 0 0 3px rgba(205, 255, 94, 0.3); }
.qjc-form input::placeholder { color: var(--ink-3); }
.qjc-form button {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--ink-green);
  color: var(--lime);
  font-size: 17px;
  line-height: 1;
  transition: background 180ms, color 180ms;
}
.qjc-form button:hover { background: var(--lime); color: var(--ink-green); }
.qjc-foot {
  padding: 0 12px 7px;
  background: var(--cream);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  color: rgba(9, 28, 19, 0.42);
}

.qj-burst { position: fixed; z-index: 130; width: 0; height: 0; pointer-events: none; }
.qj-burst i {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(205, 255, 94, 0.8);
  animation: qjSpark 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
  transform-origin: 0 0;
}
.qj-burst i:nth-child(1) { --a: 0deg; }
.qj-burst i:nth-child(2) { --a: 36deg; }
.qj-burst i:nth-child(3) { --a: 72deg; }
.qj-burst i:nth-child(4) { --a: 108deg; }
.qj-burst i:nth-child(5) { --a: 144deg; }
.qj-burst i:nth-child(6) { --a: 180deg; }
.qj-burst i:nth-child(7) { --a: 216deg; }
.qj-burst i:nth-child(8) { --a: 252deg; }
.qj-burst i:nth-child(9) { --a: 288deg; }
.qj-burst i:nth-child(10) { --a: 324deg; }
@keyframes qjSpark {
  0% { opacity: 1; transform: rotate(var(--a)) translate(0, 0) scale(0.4); }
  100% { opacity: 0; transform: rotate(var(--a)) translate(52px, 0) scale(0); }
}

#qj-flash {
  position: fixed;
  inset: 0;
  z-index: 125;
  pointer-events: none;
  background: radial-gradient(circle at 50% 38%, rgba(205, 255, 94, 0.5), rgba(244, 240, 226, 0.14) 40%, transparent 72%);
  mix-blend-mode: screen;
  opacity: 0;
}
#qj-flash.go { animation: qjFlash 560ms ease-out both; }
@keyframes qjFlash {
  0% { opacity: 0; }
  22% { opacity: 0.72; }
  100% { opacity: 0; }
}

.nav-hit { animation: navHit 760ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
@keyframes navHit {
  0%, 100% { transform: translate(0, 0); color: inherit; }
  12% { transform: translate(-3px, 1px); color: var(--lime); }
  26% { transform: translate(4px, -2px); color: var(--lime); }
  40% { transform: translate(-3px, 2px); color: var(--cream); }
  56% { transform: translate(2px, -1px); color: var(--lime); }
  72% { transform: translate(-1px, 1px); color: var(--cream); }
}

@media (max-width: 980px) {
  .hero-toys { display: none; }
}

@media (max-width: 680px) {
  .art-widget {
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 7px 9px;
    column-gap: 8px;
  }
  .aw-kicker { font-size: 8px; }
  .aw-main { font-size: 13px; }
  .aw-main b { font-size: 23px; }
  .aw-sub, .aw-bars, .aw-seats, .aw-dots, .aw-ring { display: none; }
  .qj-chat {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    height: min(76dvh, 620px);
    border-radius: 14px;
  }
  .qjc-title span { display: none; }
  .qjc-model { font-size: 7px; padding: 2px 5px; }
  .qjc-foot { display: none; }
  .qj-stick-say { max-width: 190px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .art-widget, .aw-bar, .aw-seat, .aw-dots i, .aw-ring, .toy { transition: none; animation: none; }
  .qj-chat, .qj-stick-say, .qj-stick-tip { transition: none; }
  .qjc-msg.typing i, .qjc-draw-load i { animation: none; }
  #qj-flash.go { animation: none; opacity: 0; }
  .nav-hit { animation: none; }
}

@media print {
  .qj-stick, .qj-chat, .qj-stick-say, .qj-stick-tip, .hero-toys, .art-widget { display: none !important; }
}

