@font-face {
  font-family: "Noto Sans SC Local";
  src: url("./assets/NotoSansSC-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #101214;
  --surface: #171a1d;
  --surface-2: #1d2226;
  --text: #f5f5f5;
  --muted: rgba(245, 245, 245, 0.68);
  --faint: rgba(245, 245, 245, 0.42);
  --line: rgba(245, 245, 245, 0.1);
  --yellow: #f5c542;
  --yellow-ink: #211901;
  --red: #e5484d;
  --blue: #4da3ff;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(245, 197, 66, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(245, 197, 66, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 78% 8%, rgba(77, 163, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 18% 18%, rgba(245, 197, 66, 0.08), transparent 24rem),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  font-family: "Noto Sans SC Local", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.top-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.top-nav a,
.site-footer a {
  border-bottom: 1px solid transparent;
}

.top-nav a:hover,
.top-nav a[aria-current="page"],
.site-footer a:hover {
  color: var(--text);
  border-color: var(--yellow);
}

main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 26px;
  align-items: stretch;
  padding: 72px 0 48px;
}

.hero-copy {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(245, 197, 66, 0.09), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border-radius: 6px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.35;
}

.lead {
  max-width: 760px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.button.primary {
  color: var(--yellow-ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.status-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(rgba(16, 18, 20, 0.7), rgba(16, 18, 20, 0.94)),
    url("./assets/water.png") center 32px / 190px auto no-repeat,
    var(--surface);
}

.panel-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.panel-line span {
  color: var(--faint);
  font-size: 13px;
}

.panel-line strong {
  color: var(--text);
  font-size: 18px;
}

.section {
  padding: 56px 0;
}

.section-heading {
  margin-bottom: 24px;
}

.section-copy {
  max-width: 680px;
  color: var(--muted);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.faq-card,
.permission-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.faq-card p,
.permission-item p,
.doc-shell p,
.doc-shell li {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.permission-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.permission-item span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--yellow);
  font-weight: 700;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(77, 163, 255, 0.13), rgba(245, 197, 66, 0.045));
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 13px;
}

.doc-page {
  max-width: 920px;
}

.doc-shell {
  margin: 50px 0 54px;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    var(--surface);
}

.doc-header {
  padding-bottom: 28px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.doc-header h1 {
  font-size: clamp(38px, 6vw, 66px);
}

.doc-shell section {
  padding: 18px 0;
}

.doc-shell h2 {
  font-size: 24px;
}

.doc-shell h3 {
  margin-top: 20px;
  color: var(--text);
}

.doc-shell ul,
.doc-shell ol {
  padding-left: 1.3em;
}

.text-link {
  color: var(--yellow);
  border-bottom: 1px solid rgba(245, 197, 66, 0.5);
}

@media (max-width: 860px) {
  .site-header,
  .site-footer,
  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .split-section,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-copy,
  .status-panel {
    min-height: auto;
    padding: 26px;
  }

  .permission-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 24px, var(--max));
  }

  .top-nav {
    gap: 12px;
    font-size: 13px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }
}
