:root {
  --bg0: #0a121c;
  --bg1: #122033;
  --bg2: #1a2a3d;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f3f6fb;
  --muted: #9aabc2;
  --accent: #d2665a;
  --accent-2: #e8c37a;
  --accent-soft: rgba(210, 102, 90, 0.14);
  --maple: #c8513e;
  --danger: #ff6b6b;
  --ok: #3ecf8e;
  --radius: 18px;
  --font: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Syne", "Manrope", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(900px 520px at 10% -8%, rgba(200, 81, 62, 0.18), transparent 55%),
    radial-gradient(720px 480px at 95% 6%, rgba(232, 195, 122, 0.12), transparent 50%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 48%, var(--bg2));
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
}

/* 枫叶氛围：可见但不压文字 */
.maple-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.maple-bg .leaf {
  position: absolute;
  background: center / contain no-repeat url("/assets/img/maple.svg");
  filter: drop-shadow(0 12px 24px rgba(180, 60, 40, 0.25));
  animation: maple-drift 14s ease-in-out infinite;
  opacity: 0.22;
}
.maple-bg .m1 { width: 260px; height: 260px; top: 4%; left: -3%; transform: rotate(-16deg); opacity: 0.28; }
.maple-bg .m2 { width: 180px; height: 180px; top: 12%; right: 2%; transform: rotate(24deg); opacity: 0.24; animation-delay: -3s; }
.maple-bg .m3 { width: 320px; height: 320px; bottom: -4%; right: -6%; transform: rotate(-10deg); opacity: 0.2; animation-delay: -6s; }
.maple-bg .m4 { width: 140px; height: 140px; bottom: 22%; left: 6%; transform: rotate(14deg); opacity: 0.18; animation-delay: -9s; }
.maple-bg .m5 { width: 100px; height: 100px; top: 42%; right: 18%; transform: rotate(-28deg); opacity: 0.16; animation-delay: -5s; }
@keyframes maple-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}

a { color: var(--accent); }
.site {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 48px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  animation: rise 0.7s ease both;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(232, 195, 122, 0.28);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}
.mark img {
  width: 26px;
  height: 26px;
}
.nav-brand strong {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav-links a:hover {
  color: var(--text);
  border-color: var(--line);
  background: var(--panel);
}

.hero {
  display: grid;
  gap: 28px;
  padding: 18px 0 10px;
  animation: rise 0.8s ease 0.05s both;
}
@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
    min-height: 42vh;
    padding: 36px 0 18px;
  }
}

.hero-copy {
  position: relative;
}
.hero-copy .hero-maple {
  position: absolute;
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  right: -8%;
  top: -18%;
  background: center / contain no-repeat url("/assets/img/maple.svg");
  opacity: 0.2;
  filter: drop-shadow(0 20px 40px rgba(200, 81, 62, 0.35));
  pointer-events: none;
  animation: maple-drift 16s ease-in-out infinite;
}
.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #f0a090;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-copy .eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, #e07a68, transparent);
}
.hero-copy h1 {
  margin: 0;
  position: relative;
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.hero-copy .domain {
  margin: 14px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-2);
}
.hero-copy .lead {
  margin: 16px 0 0;
  max-width: 28em;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.cta {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.cta:active { transform: scale(0.98); }
.cta-primary {
  background: linear-gradient(135deg, #e38978, #c8513e);
  color: #fff8f6;
}
.cta-primary:hover { filter: brightness(1.05); }
.cta-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.cta-ghost:hover {
  border-color: rgba(255,255,255,0.28);
  background: var(--panel);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232, 195, 122, 0.22);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(160deg, rgba(200,81,62,0.22), transparent 42%),
    rgba(12, 20, 32, 0.72);
  padding: 20px;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  animation: rise 0.85s ease 0.12s both;
}
.hero-panel::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -24px;
  bottom: -28px;
  background: center / contain no-repeat url("/assets/img/maple.svg");
  opacity: 0.18;
  pointer-events: none;
}
.hero-panel h2 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 650;
}
.hero-panel p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,0.18);
  padding: 12px 10px;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: 2px;
}
.stat span {
  color: var(--muted);
  font-size: 0.75rem;
}

.section {
  margin-top: 28px;
  animation: rise 0.85s ease 0.18s both;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.channel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 16px 18px;
  color: var(--text);
  text-decoration: none;
  border-radius: 16px;
  border: 1px solid rgba(200, 81, 62, 0.32);
  background:
    linear-gradient(120deg, rgba(200, 81, 62, 0.16), rgba(200, 81, 62, 0.04) 42%, rgba(255,255,255,0.03)),
    rgba(8, 16, 28, 0.72);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.channel:first-child {
  min-height: 88px;
  border-color: rgba(200, 81, 62, 0.5);
  background:
    linear-gradient(120deg, rgba(200, 81, 62, 0.28), rgba(232, 195, 122, 0.08) 48%, rgba(255,255,255,0.03)),
    rgba(8, 16, 28, 0.78);
}
.channel:hover,
.channel:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(224, 122, 104, 0.7);
  outline: none;
}
.channel:active { transform: scale(0.985); }
.badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff7f2;
  background: linear-gradient(145deg, #e07a68, #b84436);
}
.channel:first-child .badge {
  width: 52px;
  height: 52px;
  background: linear-gradient(145deg, #ffe08a, #e0b35c);
  color: #3a2a05;
}
.channel strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 700;
}
.channel:first-child strong { font-size: 1.2rem; }
.channel small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}
.channel .go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(200, 81, 62, 0.16);
  border: 1px solid rgba(200, 81, 62, 0.35);
  color: #f0b0a4;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}
.channel:first-child .go {
  background: rgba(232, 195, 122, 0.16);
  border-color: rgba(232, 195, 122, 0.4);
  color: #ffd978;
}

.note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(240, 180, 41, 0.28);
  background: rgba(240, 180, 41, 0.08);
  color: #e7d3a0;
  font-size: 0.86rem;
  line-height: 1.6;
}

.footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.84rem;
}
.footer a {
  color: var(--muted);
  text-decoration: none;
}
.footer a:hover { color: var(--text); }

/* coop page */
.page-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(8, 16, 28, 0.55);
  padding: 22px 18px;
  animation: rise 0.7s ease both;
}
.page-card h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}
.page-card .desc {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}
label {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.86rem;
}
input, textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.22);
  color: var(--text);
  font: inherit;
}
input:focus, textarea:focus {
  outline: none;
  border-color: rgba(200, 81, 62, 0.55);
}
textarea { min-height: 130px; resize: vertical; }
.flash {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.flash.ok { background: rgba(62, 207, 142, 0.12); color: var(--ok); border: 1px solid rgba(62,207,142,0.28); }
.flash.err { background: rgba(255, 107, 107, 0.12); color: #ff9b9b; border: 1px solid rgba(255,107,107,0.28); }

.mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 8, 16, 0.62);
  backdrop-filter: blur(4px);
}
.mask.show { display: flex; }
@media (min-width: 640px) {
  .mask { align-items: center; }
}
.dialog {
  width: 100%;
  max-width: 420px;
  background: #102033;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 18px 16px;
}
.dialog h3 { margin: 0 0 8px; font-family: var(--display); font-size: 1.15rem; }
.dialog p { margin: 0 0 10px; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.dialog ol { margin: 0 0 14px; padding-left: 1.2em; color: var(--text); font-size: 0.92rem; line-height: 1.7; }
.dialog .keys {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  font-weight: 650;
}
.dialog-actions { display: flex; gap: 8px; }
.dialog-actions button {
  flex: 1;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  cursor: pointer;
}
.dialog-actions .ok {
  border: 0;
  background: linear-gradient(135deg, #e38978, #c8513e);
  color: #fff8f6;
  font-weight: 650;
}
.dialog-actions .later {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .site { width: min(100% - 20px, 920px); padding: 14px 0 36px; }
  .nav { margin-bottom: 18px; }
  .nav-links a { padding: 8px 10px; font-size: 0.86rem; }
  .hero { gap: 16px; padding: 8px 0 4px; }
  .hero-panel { order: -1; padding: 14px; }
  .hero-copy h1 { font-size: clamp(2.35rem, 12vw, 3.2rem); }
  .hero-copy .lead { font-size: 0.95rem; margin-top: 12px; }
  .cta-row { margin-top: 18px; }
  .cta { width: 100%; padding: 14px 16px; }
  .stat b { font-size: 1rem; }
  .section { margin-top: 22px; }
  .section-head { align-items: start; flex-direction: column; gap: 4px; }
  .channel {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "badge title"
      "badge go";
    gap: 8px 12px;
    padding: 14px 14px;
    min-height: 0;
  }
  .channel:first-child { min-height: 0; }
  .channel .badge { grid-area: badge; align-self: center; }
  .channel > span:nth-child(2) { grid-area: title; }
  .channel .go {
    grid-area: go;
    justify-self: start;
    min-width: 0;
    margin-top: 2px;
  }
  .footer { margin-top: 28px; flex-direction: column; align-items: center; text-align: center; }
}
