:root {
  --bg: #f6f8fc; --ink: #1c2430; --muted: #64748b;
  --brand: #2563eb; --brand2: #7c3aed; --accent: #f59e0b;
  --card: #ffffff; --radius: 22px; --shadow: 0 14px 40px rgba(30,41,59,.10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "PingFang SC","Microsoft YaHei","Noto Sans SC",system-ui,sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.7; }
a { color: var(--brand); text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

header.site { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px); border-bottom: 1px solid rgba(30,41,59,.08); }
nav { display: flex; align-items: center; justify-content: space-between; height: 64px; flex-wrap: wrap; gap: 8px; }
.logo { font-weight: 800; font-size: 21px; color: var(--ink); }
.logo b { color: var(--brand2); }
.logo span { color: var(--muted); font-weight: 600; font-size: 13px; margin-left: 8px; }
.menu { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.menu a { color: var(--muted); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.menu a:hover, .menu a.on { color: var(--brand2); }

.hero { color: #fff; padding: 84px 0 96px; position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(236,72,153,.5), transparent 60%),
    radial-gradient(900px 480px at -10% 20%, rgba(37,99,235,.5), transparent 60%),
    linear-gradient(135deg, #1e1b4b 0%, #4c1d95 55%, #831843 100%); }
.hero .wrap { text-align: center; }
.hero .badge { display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  font-size: 13px; letter-spacing: 1px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(40px, 8vw, 76px); font-weight: 900; letter-spacing: 2px; line-height: 1.1; }
.hero h1 span { background: linear-gradient(90deg,#fbbf24,#f472b6,#a78bfa);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { max-width: 620px; margin: 18px auto 8px; font-size: 17px; color: rgba(255,255,255,.85); }
.hero .cta { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 11px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn.primary { background: linear-gradient(135deg,#7c3aed,#db2777); color: #fff; box-shadow: 0 10px 26px rgba(124,58,237,.4); }
.btn.blue { background: linear-gradient(135deg,#2563eb,#7c3aed); color: #fff; }
.btn.ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn.line { border: 1.5px solid #ddd6fe; color: #6d28d9; background: #fff; }
.btn.sm { padding: 6px 14px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

section { padding: 56px 0; }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-head .tag { color: var(--brand2); font-weight: 800; letter-spacing: 2px; font-size: 13px; }
.sec-head .tag::before { content: "✨ "; } .sec-head .tag::after { content: " ✨"; }
.sec-head h2 { font-size: 30px; margin-top: 6px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 20px; }
.step { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 24px;
  border-top: 6px solid #ddd6fe; }
.step .ico { font-size: 40px; }
.step h3 { font-size: 17px; margin: 10px 0 6px; }
.step p { color: var(--muted); font-size: 14px; }

.auth-card { max-width: 420px; margin: -60px auto 0; position: relative; z-index: 5;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 36px; }
.auth-card h3 { font-size: 20px; margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.input, textarea, select { width: 100%; padding: 11px 14px; border: 1.5px solid #e2e8f0; border-radius: 12px;
  font-size: 15px; font-family: inherit; background: #fff; }
.input:focus, textarea:focus { outline: none; border-color: var(--brand2); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
textarea { resize: vertical; min-height: 120px; }
.switch { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 8px 0; }
.err { color: #dc2626; font-size: 13.5px; margin-top: 8px; min-height: 20px; }
.ok-msg { color: #059669; }

.page-hero { color: #fff; padding: 46px 0 40px; text-align: center;
  background: linear-gradient(135deg,#1e1b4b,#5b21b6 60%,#9d174d); }
.page-hero h1 { font-size: 30px; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 14px; margin-top: 6px; }

.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; margin-bottom: 22px; }
.panel h3 { font-size: 18px; margin-bottom: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 18px; }
.vcard { border: 1.5px solid #ede9fe; border-radius: 18px; padding: 18px 18px 14px; background: #fdfcff; }
.vcard .name { font-weight: 800; font-size: 16px; }
.vcard .meta { color: var(--muted); font-size: 12.5px; margin: 4px 0 10px; }
.badge-st { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; font-weight: 700; }
.st-ready { background: #d1fae5; color: #059669; }
.st-pending { background: #fef3c7; color: #b45309; }
.st-failed { background: #fee2e2; color: #dc2626; }
.vcard .ops { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { color: var(--muted); text-align: center; padding: 34px 0; }

.rec-wrap { text-align: center; padding: 10px 0; }
.rec-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: #dc2626; margin-right: 8px;
  animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.rec-time { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #f1f5f9; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
audio { width: 100%; height: 38px; }

footer.site { background: #0f172a; color: #94a3b8; padding: 34px 0; font-size: 14px; }
footer.site a { color: #c4b5fd; }

.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: none; z-index: 100; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(92vw, 480px);
  background: #fff; border-radius: 22px; padding: 28px 30px; z-index: 101; display: none; max-height: 88vh; overflow: auto; }
.modal h3 { margin-bottom: 14px; }
.tabs { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.tab { padding: 8px 18px; border-radius: 999px; background: #eef2ff; color: #4f46e5; font-weight: 700; font-size: 14px; cursor: pointer; }
.tab.on { background: linear-gradient(135deg,#7c3aed,#db2777); color: #fff; }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
@media (max-width: 640px) { .hero { padding: 60px 0 70px; } .auth-card { margin-top: -40px; } }