:root {
  --bg: #07110e;
  --bg-soft: #0e1c17;
  --ink: #f4f7f5;
  --muted: #a7b6af;
  --line: rgba(255, 255, 255, 0.1);
  --gold: #d4a45a;
  --gold-deep: #b8843a;
  --panel: #15241e;
  --max: 1120px;
  --display: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: "Outfit", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  line-height: 1.55;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  padding: 22px 0;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.04em;
}
nav {
  display: flex;
  gap: 28px;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
nav a:hover { color: var(--ink); }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 75% 40%, rgba(212, 164, 90, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 45% at 15% 80%, rgba(46, 110, 84, 0.35), transparent 60%),
    linear-gradient(160deg, #050c0a 0%, #0b1713 45%, #102018 100%);
  padding: 110px 0 72px;
}
.hero-glow {
  position: absolute;
  inset: auto -10% -20% 40%;
  height: 60%;
  background: radial-gradient(circle, rgba(212, 164, 90, 0.12), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  animation: drift 12s ease-in-out infinite alternate;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}
.brand-mark {
  margin: 0 0 22px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: 0.06em;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 40px rgba(0, 0, 0, 0.45);
  animation: rise 0.9s ease both;
  opacity: 1;
}
.lead {
  margin: 0 0 34px;
  max-width: 18em;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  animation: rise 0.9s ease 0.08s both;
}
.cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: rise 0.9s ease 0.16s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1a1408;
}
.btn.quiet {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.btn.quiet:hover { border-color: rgba(255, 255, 255, 0.28); }
.btn.wide { width: 100%; }
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  transform: none;
}

.hero-visual {
  animation: rise 1s ease 0.2s both;
}
.panel-frame {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #1a2b24, #101c17);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  transform-origin: left center;
}
.panel-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.panel-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3d4a44;
}
.panel-chrome span:nth-child(1) { background: #e06b5c; }
.panel-chrome span:nth-child(2) { background: #e0b45c; }
.panel-chrome span:nth-child(3) { background: #6bc48a; }
.panel-chrome em {
  margin-left: 10px;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--display);
}
.panel-body {
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 280px;
}
.panel-body aside {
  padding: 18px 12px;
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.82rem;
}
.panel-body aside b {
  color: #fff;
  font-weight: 600;
  background: rgba(212, 164, 90, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
}
.panel-body aside i {
  font-style: normal;
  color: var(--muted);
  padding: 6px 10px;
}
.panel-body .panel-main {
  padding: 18px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.panel-body .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.panel-body s {
  display: block;
  text-decoration: none;
  height: 88px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.band {
  padding: 96px 0;
  background: var(--bg);
}
.band.soft {
  background:
    linear-gradient(180deg, #0a1511 0%, #0d1a15 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.band-lead {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 28em;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 36px;
}
.pillars article {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.pillars h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 600;
}
.pillars p {
  margin: 0;
  color: var(--muted);
}

.downloads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.download-item {
  padding: 28px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 160px;
  justify-content: space-between;
}
.download-item h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}
.download-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tip-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.tip-grid {
  display: flex;
  gap: 24px;
}
.tip-grid figure { margin: 0; text-align: center; }
.tip-grid img {
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.tip-grid figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.foot .wrap {
  display: flex;
  gap: 20px;
  align-items: center;
}
.foot strong {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
}
.foot a {
  color: var(--muted);
  text-decoration: none;
}
.foot a:hover { color: var(--ink); }

.page-plain .top {
  position: relative;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.prose {
  padding: 64px 0 80px;
  max-width: 40em;
}
.prose h1 {
  font-family: var(--display);
  font-size: 2rem;
  margin: 0 0 20px;
}
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2em; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-4%, -3%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark,
  .lead,
  .cta,
  .hero-visual,
  .hero-glow {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .pillars,
  .downloads,
  .tip-block {
    grid-template-columns: 1fr;
  }
  .hero-visual { order: -1; max-width: 420px; }
  .panel-frame { transform: none; }
  .tip-grid { justify-content: flex-start; }
}

@media (max-width: 640px) {
  nav { gap: 16px; }
  .brand-mark { font-size: 2.8rem; }
  .hero { padding-top: 96px; }
  .tip-grid img { width: 140px; height: 140px; }
}
