/**
 * qumingguoshi.cn 静态品牌站样式。
 *
 * 取值沿用小程序设计 tokens（apps/miniapp/src/theme/tokens.css）：
 * 深石墨黑 / 金属灰 / 冷白，少量冰蓝点缀；无第三方字体、无 CDN、无图片依赖。
 * 所有资源均本地相对路径引用，因此严格 CSP（style-src 'self'）即可满足。
 */

:root {
  /* surfaces */
  --bg-primary: #08080c;
  --bg-secondary: #0d0d12;
  --surface: #121218;
  --surface-elevated: #17171e;

  /* text */
  --text-primary: #e6e0ee;
  --text-secondary: #c9c4d8;
  --text-muted: #9aa7b8;

  /* accent (ice blue only — no esports red/black theme) */
  --accent: #7dd3fc;
  --accent-soft: rgba(125, 211, 252, 0.12);
  --accent-border: rgba(125, 211, 252, 0.38);

  /* borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --radius-md: 12px;
  --radius-lg: 18px;
  --measure: 68rem;
}

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

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

body {
  margin: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Source Han Sans SC', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-border);
}

a:hover,
a:focus {
  border-bottom-color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  border: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 10px 16px;
  background-color: var(--surface-elevated);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
}

/* ---- header -------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-secondary);
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), #4cc2ef);
}

.brand-name {
  color: var(--text-primary);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

.site-nav a {
  color: var(--text-secondary);
  border-bottom-color: transparent;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--text-primary);
  border-bottom-color: var(--border-strong);
}

/* ---- hero ---------------------------------------------------------------- */

.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(
      120% 100% at 15% 0%,
      rgba(125, 211, 252, 0.1) 0%,
      rgba(8, 8, 12, 0) 58%
    );
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.35;
  font-weight: 600;
}

.hero-lead {
  margin: 0 0 12px;
  max-width: 46rem;
  font-size: 18px;
  color: var(--text-secondary);
}

.hero-note {
  margin: 0 0 28px;
  max-width: 46rem;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 15px;
  background-color: transparent;
}

.btn:hover,
.btn:focus {
  border-color: var(--accent-border);
  color: var(--text-primary);
}

.btn-primary {
  background-color: var(--accent-soft);
  border-color: var(--accent-border);
}

/* ---- sections ------------------------------------------------------------ */

.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section h2 {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 600;
}

.section p {
  margin: 0 0 14px;
  max-width: 52rem;
  color: var(--text-secondary);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.card {
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.muted {
  font-size: 13px;
  color: var(--text-muted);
}

.qr-slot {
  margin: 20px 0;
  padding: 22px;
  max-width: 32rem;
  background-color: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

.qr-hint {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 0;
  max-width: 52rem;
  font-size: 15px;
}

.facts dt {
  color: var(--text-muted);
}

.facts dd {
  margin: 0;
  color: var(--text-secondary);
}

/* ---- legal documents ----------------------------------------------------- */

.legal {
  padding: 48px 0 64px;
}

.legal-head {
  margin-bottom: 8px;
}

.legal h1 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 600;
}

.legal-meta {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.notice {
  margin: 0 0 32px;
  padding: 16px 20px;
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
}

.notice p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.legal-section {
  padding-top: 26px;
}

.legal-section + .legal-section {
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
}

.legal-section h3 {
  margin: 22px 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.legal-section p {
  margin: 0 0 12px;
  max-width: 54rem;
  color: var(--text-secondary);
}

.legal-section ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--text-secondary);
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-note {
  color: var(--text-muted);
  font-size: 14px;
}

.back-row {
  margin: 0 0 24px;
  font-size: 14px;
}

/* ---- footer -------------------------------------------------------------- */

.site-footer {
  padding: 34px 0 44px;
  background-color: var(--bg-secondary);
  font-size: 14px;
}

.footer-brand {
  margin: 0 0 12px;
  color: var(--text-muted);
}

.footer-links {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.footer-links .sep {
  margin: 0 8px;
}

.footer-links a,
.footer-icp a {
  /* Comfortable pointer target for touch (WCAG 2.5.8) without changing copy. */
  display: inline-block;
  padding: 4px 0;
}

.footer-icp {
  margin: 0;
}

.footer-icp a {
  color: var(--text-secondary);
  border-bottom-color: var(--border-strong);
}

/* 公安联网备案预留样式：取得真实编号与图标后再启用，当前页面不渲染该元素。 */
.public-security {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

/* ---- responsive ---------------------------------------------------------- */

@media (max-width: 640px) {
  .wrap {
    padding: 0 18px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .section {
    padding: 40px 0;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .facts dd {
    margin-bottom: 10px;
  }

  .site-header-inner {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .footer-links a,
  .footer-icp a {
    padding: 7px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
