:root {
  --bg: #070807;
  --panel: #101210;
  --panel2: #161a16;
  --line: #232823;
  --text: #e8ece8;
  --muted: #8b958b;
  --green: #3ddc84;
  --green2: #22c55e;
  --green-dim: rgba(61, 220, 132, .14);
  --red: #ef4444;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(61,220,132,.12), transparent 55%),
    radial-gradient(800px 480px at 100% 0%, rgba(34,197,94,.08), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: "PingFang SC","Microsoft YaHei",ui-sans-serif,system-ui,sans-serif;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(61,220,132,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,220,132,.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 90% 50% at 50% 0%, #000 30%, transparent 100%);
}
.wrap { position: relative; z-index: 1; }
.grad {
  background: linear-gradient(135deg, #86efac 0%, #3ddc84 45%, #16a34a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 0; cursor: pointer; text-decoration: none; font-weight: 700;
  border-radius: .7rem; transition: transform .15s, filter .15s, box-shadow .15s;
}
.btn-g {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #052e16;
  box-shadow: 0 10px 28px -12px rgba(34,197,94,.7);
}
.btn-g:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-g:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--green); color: #fff; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .22rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 600;
  background: var(--green-dim); color: #86efac; border: 1px solid rgba(61,220,132,.28);
}
.dot {
  width: .45rem; height: .45rem; border-radius: 99px; background: var(--green);
  box-shadow: 0 0 0 0 rgba(61,220,132,.55); animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61,220,132,.55); }
  70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); }
}
.panel {
  background: linear-gradient(180deg, rgba(22,26,22,.92), rgba(16,18,16,.92));
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.7);
}
.panel-g { position: relative; }
.panel-g::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: linear-gradient(135deg, rgba(61,220,132,.55), rgba(22,163,74,.15), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: rgba(7,8,7,.72); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar.scrolled { border-bottom-color: rgba(61,220,132,.25); }
.logo-mark {
  width: 2.1rem; height: 2.1rem; border-radius: .55rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #052e16; font-weight: 900; font-size: 1rem;
  box-shadow: 0 0 18px -4px rgba(34,197,94,.8);
}
.nav a {
  color: #b7c0b7; text-decoration: none; font-size: .875rem; padding: .35rem .7rem; border-radius: .5rem;
}
.nav a:hover, .nav a.active { color: #fff; background: rgba(61,220,132,.12); }
.field {
  width: 100%; box-sizing: border-box;
  padding: .9rem 1rem; border-radius: .8rem;
  background: #0b0d0b; border: 1px solid #2a312a; color: var(--text);
  font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em;
}
.field:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(61,220,132,.15); }
.msg { padding: .75rem 1rem; border-radius: .7rem; font-size: .875rem; }
.msg-ok { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); color: #86efac; }
.msg-err { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.msg-warn { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.28); color: #fde68a; }
.cell {
  background: #0c0f0c; border: 1px solid var(--line); border-radius: .7rem; padding: .75rem;
}
.cell .lbl { font-size: .72rem; color: var(--muted); }
.cell .val { margin-top: .25rem; color: #fff; word-break: break-all; }
.shot { width: 100%; height: auto; display: block; border-radius: .75rem; }
.shot-wrap { position: relative; overflow: hidden; border-radius: .75rem; cursor: pointer; }
.shot-wrap .zoom {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35); opacity: 0; transition: opacity .2s; color: #fff; font-weight: 700; font-size: .85rem;
}
.shot-wrap:hover .zoom { opacity: 1; }
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--green);
}
.kicker::before, .kicker::after {
  content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--green));
}
.kicker::after { background: linear-gradient(90deg, var(--green), transparent); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
footer.site {
  border-top: 1px solid var(--line); padding: 2.2rem 1.5rem; text-align: center; color: var(--muted); font-size: .75rem;
}
#img-modal { display: none; }
#img-modal.open { display: flex; }
details.faq summary { list-style: none; cursor: pointer; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq[open] .faq-arrow { transform: rotate(180deg); }
.faq-arrow { transition: transform .2s; }
.mod-card:hover { border-color: rgba(61,220,132,.4); transform: translateY(-3px); }
.mod-card { transition: transform .2s, border-color .2s; }
