﻿@charset "utf-8";
:root {
  --bg: #08080a;
  --bg-2: #0f0f13;
  --card: #15151b;
  --card-2: #1b1b23;
  --line: rgba(255, 255, 255, .09);
  --ink: #f5f5f7;
  --muted: #9a9aa5;
  --accent: #ff6a1a;
  --accent-2: #ffb020;
  --ok: #34d399;
  --err: #f87171;
  --radius: 18px;
  --font: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* 背景光晕 */
.glow {
  position: fixed; inset: -20% -10% auto -10%; height: 70vh; z-index: 0;
  background:
    radial-gradient(45% 55% at 20% 10%, rgba(255, 106, 26, .25), transparent 70%),
    radial-gradient(40% 50% at 85% 0%, rgba(255, 176, 32, .18), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.grid-lines {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 35%, transparent 100%);
}

.wrap { position: relative; z-index: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 0 20px; }

/* 顶部 */
.top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 720px; margin: 0 auto; padding: 18px 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .5px; }
.badge-mg {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a0d00; font-size: 13px; font-weight: 800; letter-spacing: .5px;
}
.top-link {
  font-size: 13px; color: var(--muted); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px; transition: .2s;
}
.top-link:hover { color: var(--ink); border-color: rgba(255, 255, 255, .3); }

/* Hero */
.hero { position: relative; z-index: 1; text-align: center; padding: 26px 0 8px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--accent-2); letter-spacing: 1.2px;
  border: 1px solid rgba(255, 176, 32, .3); background: rgba(255, 176, 32, .08);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
h1 {
  font-size: clamp(26px, 7.4vw, 40px); line-height: 1.24; letter-spacing: -.5px;
  font-weight: 800;
}
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { margin-top: 14px; color: var(--muted); font-size: 14.5px; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 6px; }
.chip {
  font-size: 13px; color: #e7e7ec; background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
}

/* CTA */
.cta-wrap { margin: 30px 0 10px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 38px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 17px; font-weight: 700; color: #1a0d00;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 40px -18px rgba(255, 106, 26, .85);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -18px rgba(255, 106, 26, .95); }
.cta:active { transform: translateY(0) scale(.99); }
.cta svg { width: 20px; height: 20px; }
.cta::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 26%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent);
  transform: skewX(-18deg); animation: sheen 3.2s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.hint { font-size: 12.5px; color: var(--muted); }

/* 权益 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 34px 0 10px; }
.feature {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px; text-align: center;
}
.feature b { display: block; font-size: 14px; margin-bottom: 3px; }
.feature span { font-size: 11.5px; color: var(--muted); }

/* 已通过 */
.passed-tip {
  margin: 18px auto 0; max-width: 420px;
  font-size: 13px; color: var(--ok);
  background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .25);
  border-radius: 12px; padding: 10px 14px;
}

/* 页脚 */
.foot { position: relative; z-index: 1; text-align: center; color: #6f6f7a; font-size: 12px; padding: 40px 20px 34px; }
.foot p + p { margin-top: 6px; }

/* ============ 验证弹层 ============ */
.modal {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(4, 4, 6, .78); backdrop-filter: blur(6px);
}
.modal[hidden] { display: none; }
.modal-card {
  width: 100%; max-width: 360px; padding: 30px 24px 24px; text-align: center;
  background: linear-gradient(180deg, #17171e, #101015);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
  animation: pop .25s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.ring { display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.spinner {
  width: 54px; height: 54px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .12);
  border-top-color: var(--accent);
  animation: spin .9s linear infinite;
}
.spinner.ok { border-color: rgba(52, 211, 153, .3); border-top-color: var(--ok); animation: none; }
.spinner.err { border-color: rgba(248, 113, 113, .3); border-top-color: var(--err); animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal h3 { font-size: 17px; margin-bottom: 6px; }
.modal p { font-size: 13px; color: var(--muted); min-height: 20px; }
.bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); margin: 18px 0 6px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s; }
.ghost {
  margin-top: 16px; padding: 10px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink); font-family: inherit; font-size: 14px;
}
.ghost:hover { border-color: rgba(255, 255, 255, .3); }
.turnstile-box { margin: 16px auto 4px; display: flex; justify-content: center; }

/* ============ 群二维码页 ============ */
.group-page { display: flex; flex-direction: column; align-items: center; padding-top: 10px; }
.group-card {
  width: 100%; max-width: 400px; margin-top: 14px; padding: 22px;
  background: linear-gradient(180deg, #17171e, #101015);
  border: 1px solid var(--line); border-radius: var(--radius); text-align: center;
}
.group-card h2 { font-size: 19px; margin-bottom: 6px; }
.group-card .tips { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.qr-frame {
  display: inline-block; padding: 10px; border-radius: 14px; background: #fff;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
}
.qr-frame img { width: 260px; max-width: 72vw; height: auto; border-radius: 8px; }
.valid-tip { margin-top: 14px; font-size: 12px; color: #8b8b96; }
.contact-link {
  display: inline-block; margin-top: 14px; font-size: 13px; color: var(--accent-2);
  border-bottom: 1px dashed rgba(255, 176, 32, .4); padding-bottom: 2px;
}
.back { margin-top: 22px; font-size: 13px; color: var(--muted); }

/* ============ 后台（浅色） ============ */
.admin-body { background: #f4f4f6; color: #14141a; min-height: 100dvh; }
.admin-wrap { max-width: 720px; margin: 0 auto; padding: 26px 18px 60px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.admin-head h1 { font-size: 20px; }
.admin-card {
  background: #fff; border: 1px solid #e6e6ea; border-radius: 14px;
  padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.admin-card h2 { font-size: 15px; margin-bottom: 12px; }
.admin-card .tip { font-size: 12.5px; color: #6f6f7a; margin-top: 8px; }
label { display: block; font-size: 13px; color: #5c5c66; margin: 12px 0 6px; }
input[type=text], input[type=password], input[type=file], input[type=date] {
  width: 100%; padding: 10px 12px; border: 1px solid #dcdee4; border-radius: 9px;
  background: #fafafb; font-family: inherit; font-size: 14px; color: #14141a;
}
input:focus { outline: none; border-color: #14141a; box-shadow: 0 0 0 3px rgba(0, 0, 0, .07); }
.btn-dark {
  display: inline-block; padding: 10px 20px; border: 0; border-radius: 9px; cursor: pointer;
  background: #14141a; color: #fff; font-family: inherit; font-size: 14px; font-weight: 600;
}
.btn-dark:hover { background: #2a2a33; }
.btn-ghost {
  display: inline-block; padding: 9px 16px; border-radius: 9px; cursor: pointer;
  border: 1px solid #dcdee4; background: #fff; color: #14141a; font-family: inherit; font-size: 13px;
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { background: #fafafb; border: 1px solid #ececf0; border-radius: 10px; padding: 12px 10px; text-align: center; }
.stat b { display: block; font-size: 20px; }
.stat span { font-size: 11.5px; color: #6f6f7a; }
.flash { padding: 10px 14px; border-radius: 9px; font-size: 13px; margin-bottom: 12px; }
.flash.ok { background: #e9f9f1; color: #12724f; border: 1px solid #b7ecd6; }
.flash.error { background: #fdecec; color: #9d1c1c; border: 1px solid #f5c2c2; }
.qr-preview { width: 120px; border: 1px solid #e6e6ea; border-radius: 8px; margin-top: 10px; }

/* ---------- 后台：二维码管理 ---------- */
.qr-manage { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.qr-thumb {
  width: 132px; height: 132px; flex: 0 0 auto; overflow: hidden;
  border: 1px solid #e6e6ea; border-radius: 12px; background: #fafafb;
  display: flex; align-items: center; justify-content: center;
}
.qr-thumb img { width: 100%; height: 100%; object-fit: contain; }
.qr-meta { display: grid; gap: 8px; font-size: 13px; color: #5c5c66; }
.qr-meta > div { display: flex; align-items: center; gap: 8px; }
.qr-meta span { width: 76px; color: #8a8a94; }
.qr-meta b { color: #14141a; font-weight: 600; }
.badge { padding: 2px 9px; border-radius: 999px; background: #eef7f1; color: #12724f; font-size: 12px; }
.badge.warn { background: #fff4e5; color: #a35c00; }
.drop {
  margin-top: 16px; padding: 24px 16px; text-align: center; cursor: pointer;
  border: 1.5px dashed #d6d8de; border-radius: 12px; transition: border-color .18s, background .18s;
}
.drop:hover, .drop.drag { border-color: #14141a; background: #fafafb; }
.drop b { display: block; font-size: 14px; margin-bottom: 4px; }
.drop span { font-size: 12px; color: #8a8a94; }
.history { margin-top: 18px; }
.history h3 { font-size: 13px; color: #5c5c66; margin-bottom: 8px; font-weight: 600; }
.history-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.history-item { flex: 0 0 auto; text-align: center; font-size: 11px; color: #8a8a94; }
.history-item img {
  width: 74px; height: 74px; object-fit: contain; display: block; margin: 0 auto 4px;
  border: 1px solid #e6e6ea; border-radius: 8px; background: #fff;
}
.history-item .btn-ghost { padding: 3px 10px; font-size: 11.5px; }
.fallback { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #e6e6ea; }
.fallback summary { cursor: pointer; font-size: 13px; color: #5c5c66; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  padding: 10px 20px; border-radius: 999px; background: #14141a; color: #fff;
  font-size: 13px; z-index: 99; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
}
@media (max-width: 560px) {
  .qr-manage { flex-direction: column; align-items: flex-start; }
  .qr-thumb { width: 108px; height: 108px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
/* 错误页 */
.error-page { min-height: 70dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.error-page b { font-size: 46px; letter-spacing: 2px; color: var(--accent); }
.error-page a { margin-top: 12px; color: var(--accent-2); }

@media (max-width: 420px) {
  .features { grid-template-columns: 1fr 1fr; }
  .qr-frame img { width: 220px; }
  .cta { font-size: 16px; padding: 15px 30px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cta::after { animation: none; }
  .modal-card { animation: none; }
}


