:root {
  --bg: #f0f4f8;
  --bg-elevated: #ffffff;
  --panel: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.88);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --accent: #059669;
  --accent-bright: #34d399;
  --accent-soft: rgba(5, 150, 105, 0.12);
  --text: #0f172a;
  --muted: #64748b;
  --danger: #dc2626;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "SF Pro Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(180, 230, 210, 0.45) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(191, 219, 254, 0.35) 0%, transparent 45%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

a:hover {
  text-decoration: underline;
}

.site {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

/* —— 顶栏 —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: linear-gradient(145deg, var(--accent-bright), var(--accent));
  box-shadow: 0 4px 18px rgba(5, 150, 105, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.82rem;
}

.site-nav a {
  color: var(--muted);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* —— 主内容 —— */
.site-main {
  padding-top: 1.25rem;
}

.section {
  margin-bottom: 2.5rem;
}

.section-head {
  margin-bottom: 1.25rem;
}

.section-head-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-lead {
  margin: 0;
  max-width: 42rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.section-lead-tight {
  max-width: 36rem;
}

/* —— 关于我们 —— */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr minmax(240px, 280px);
    align-items: start;
  }
}

.about-intro {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.about-text {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
}

.about-text strong {
  color: var(--text);
  font-weight: 600;
}

.info-table {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

.info-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

@media (max-width: 480px) {
  .info-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.info-row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.info-row dd {
  margin: 0;
  color: var(--text);
}

.info-row-full dd {
  line-height: 1.55;
}

/* —— 证照卡片 —— */
.license-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  position: sticky;
  top: 4.5rem;
  box-shadow: var(--shadow-soft);
}

.license-card-title {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.license-figure {
  margin: 0;
}

.license-thumb-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.license-thumb-link:hover {
  border-color: rgba(5, 150, 105, 0.45);
  box-shadow: var(--shadow);
}

.license-thumb {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.license-caption {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

/* —— 得分徽章 —— */
.score-badge {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(5, 150, 105, 0.22);
}

.score-badge-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.score-badge-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  min-width: 2.5ch;
}

/* —— 游戏区 —— */
.game-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1rem 0.85rem;
  box-shadow: var(--shadow);
}

.stage-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #e8eef4;
  border: 1px solid var(--border);
}

#game {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  touch-action: none;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay-hint {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  color: var(--text);
}

.overlay-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  max-width: 18rem;
}

.game-hint {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

/* —— 页脚 —— */
.site-footer {
  margin-top: 0.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-title {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

.footer-list li {
  margin-bottom: 0.35rem;
}

.footer-k {
  display: inline-block;
  min-width: 5.5rem;
  margin-right: 0.35rem;
  color: var(--muted);
  opacity: 0.9;
}

.footer-address {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

.footer-note {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-note strong {
  color: var(--text);
  font-weight: 600;
}

.footer-copy {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}
