/* ============================================================
 * Link3 Clone · Design System
 * ============================================================ */
:root {
  --ink: #14121f;
  --ink-2: #34314a;
  --muted: #74718a;
  --faint: #a7a4b8;
  --line: rgba(20, 18, 31, .09);
  --line-2: rgba(20, 18, 31, .14);
  --paper: #fbfaf7;
  --paper-2: #f4f2ec;
  --white: #fff;
  --violet: #7c3aed;
  --violet-2: #a855f7;
  --violet-deep: #5b21b6;
  --violet-soft: #efe8ff;
  --cyan: #22d3ee;
  --lime: #d9f99d;
  --danger: #e5484d;
  --ok: #16a34a;
  --shadow-s: 0 2px 8px rgba(25, 20, 40, .06);
  --shadow-m: 0 12px 32px -12px rgba(30, 22, 60, .18);
  --shadow-l: 0 40px 80px -40px rgba(35, 20, 80, .35);
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "JetBrains Mono", monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
::selection { background: #ded1ff; color: #2a1160; }

/* ---------- boot ---------- */
.boot {
  position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; background: var(--paper); z-index: 9999;
}
.boot-logo {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--violet-2), var(--violet-deep)); color: #fff;
  font-weight: 800; font-size: 22px; letter-spacing: -.5px; box-shadow: 0 18px 30px -16px rgba(124, 58, 237, .6);
  animation: bootPulse 1.6s var(--ease) infinite;
}
.boot-bar { width: 120px; height: 3px; border-radius: 3px; background: #eae7f4; overflow: hidden; }
.boot-bar i { display: block; width: 40%; height: 100%; background: var(--violet); border-radius: 3px; animation: bootBar 1.2s ease-in-out infinite; }
.boot p { color: var(--faint); font-size: 13px; letter-spacing: .5px; }
@keyframes bootPulse { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-4px) } }
@keyframes bootBar { 0% { transform: translateX(-100%) } 100% { transform: translateX(350%) } }

/* ---------- 基础组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; letter-spacing: .1px; transition: all .22s var(--ease);
  white-space: nowrap; background: transparent; color: var(--ink);
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--violet) 0%, #8b5cf6 45%, #6d28d9 100%);
  color: #fff; box-shadow: 0 12px 26px -12px rgba(109, 40, 217, .65);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 32px -14px rgba(109, 40, 217, .7); }
.btn-primary:active { transform: translateY(0); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #221f33; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--line-2); background: #faf9fd; }
.btn-soft { background: var(--violet-soft); color: var(--violet-deep); }
.btn-soft:hover { background: #e6dbff; }
.btn-danger { background: #fff0f0; color: var(--danger); border-color: #ffdada; }
.btn-danger:hover { background: #ffe5e5; }
.btn-block { width: 100%; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; border-radius: 14px; }

.l3-icon-btn {
  width: 34px; height: 34px; border: 0; background: transparent; border-radius: 10px; color: var(--muted);
  display: inline-grid; place-items: center; transition: all .18s;
}
.l3-icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.l3-mini-btn {
  height: 26px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line); background: #fff;
  font-size: 12px; color: var(--muted);
}
.l3-mini-btn:hover { color: var(--violet); border-color: #d8c8ff; }

.l3-icon { display: block; }
.l3-icon-img { display: block; object-fit: contain; }

.l3-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.l3-field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.l3-field label b { color: var(--violet); font-weight: 600; }
.l3-field input, .l3-field textarea, .l3-field select {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 11px 13px; font-size: 14px; color: var(--ink); transition: border .18s, box-shadow .18s;
  outline: none;
}
.l3-field input:focus, .l3-field textarea:focus, .l3-field select:focus {
  border-color: #c4a9ff; box-shadow: 0 0 0 3px rgba(124, 58, 237, .1);
}
.l3-field textarea { resize: vertical; min-height: 88px; }
.l3-field small { color: var(--faint); font-size: 12px; }
.l3-field .field-row { display: flex; gap: 10px; }

.l3-switch { width: 42px; height: 24px; border-radius: 99px; border: 0; background: #dcd9e6; position: relative; transition: background .2s; flex: none; }
.l3-switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: all .2s var(--ease); }
.l3-switch.on { background: var(--violet); }
.l3-switch.on i { left: 21px; }

.l3-empty { padding: 46px 20px; text-align: center; color: var(--faint); font-size: 13px; }
.l3-empty-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--paper-2); color: var(--faint); display: grid; place-items: center; margin: 0 auto 12px; }
.l3-empty p { margin: 0 0 12px; }

.l3-load { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--faint); font-size: 13px; }
.l3-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #e4dff2; border-top-color: var(--violet); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

.l3-qr canvas, .l3-qr img { border-radius: 8px; }

/* toast */
.toasts { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 10000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: inline-flex; align-items: center; gap: 9px; max-width: 86vw; padding: 10px 16px;
  background: rgba(20, 18, 31, .9); color: #fff; border-radius: 99px; font-size: 13px;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.4); backdrop-filter: blur(10px);
  animation: toastIn .28s var(--ease);
}
.toast::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.toast.error::before { background: #ff7a7a; }
.toast.info::before { background: var(--cyan); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px) } }

/* modal */
.l3-modal-mask {
  position: fixed; inset: 0; z-index: 9000; background: rgba(18, 14, 30, .45);
  backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px;
}
.l3-modal {
  width: 100%; background: #fff; border-radius: 20px; max-height: 88vh; overflow: auto;
  box-shadow: 0 40px 100px -30px rgba(20, 10, 50, .5); animation: modalIn .3s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98) } }
.modal-enter-active, .modal-leave-active { transition: opacity .2s; }
.modal-enter-from, .modal-leave-to { opacity: 0; }
.l3-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 6px; }
.l3-modal-head h3 { margin: 0; font-size: 17px; letter-spacing: -.2px; }
.l3-modal-body { padding: 18px 22px 22px; }
.l3-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 22px; }

/* ---------- 通用布局 ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.page { padding: 30px 0 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h2 { margin: 0; font-size: 26px; letter-spacing: -.6px; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.cards { display: grid; gap: 14px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px;
  box-shadow: var(--shadow-s);
}
.card-title { font-size: 15px; font-weight: 650; margin: 0 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- 顶部公告 ---------- */
.announce {
  background: #171326; color: rgba(255,255,255,.8); font-size: 12px; letter-spacing: .2px;
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 16px;
  position: relative; z-index: 20;
}
.announce b { color: #fff; font-weight: 600; }
.announce a { color: #cbb7ff; }
.announce-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: rgba(255,255,255,.5); font-size: 15px; }

/* ---------- 导航 ---------- */
.nav-shell { position: sticky; top: 14px; z-index: 100; padding: 0 20px; }
.nav {
  max-width: 1180px; margin: 0 auto; height: 66px; padding: 0 12px 0 24px; border-radius: 999px;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(20, 18, 31, .06); box-shadow: 0 12px 40px -24px rgba(30, 20, 60, .35);
  display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.5px; }
.brandmark {
  width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(145deg, #9f6bff, #6d28d9);
  color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; letter-spacing: .5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 16px -8px rgba(109,40,217,.7);
}
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 13.5px; color: var(--ink-2); }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--violet); transition: right .25s var(--ease); }
.nav-links a:hover::after { right: 0; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }

/* ---------- Landing Hero ---------- */
.landing { background: var(--paper); position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0 0 auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(168, 85, 247, .16), transparent 60%),
    radial-gradient(700px 480px at 12% 8%, rgba(34, 211, 238, .12), transparent 60%),
    radial-gradient(600px 400px at 48% 42%, rgba(124, 58, 237, .08), transparent 70%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(20,18,31,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(20,18,31,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 76px 0 70px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border-radius: 99px;
  background: rgba(255,255,255,.75); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2);
  backdrop-filter: blur(8px); margin-bottom: 26px;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 3px rgba(124,58,237,.15); }
.h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.06; letter-spacing: -2.6px; margin: 0 0 22px; font-weight: 800; }
.h1 em { font-style: normal; position: relative; white-space: nowrap; }
.h1 em::after {
  content: ''; position: absolute; left: 2%; right: 0; bottom: 6%; height: 32%;
  background: linear-gradient(90deg, rgba(168,85,247,.35), rgba(124,58,237,.18));
  border-radius: 6px; z-index: -1; transform: skewX(-6deg);
}
.hero p.lead { color: var(--muted); font-size: 16px; line-height: 1.75; max-width: 480px; margin: 0 0 28px; }
.claim-row { display: flex; align-items: stretch; gap: 10px; max-width: 520px; flex-wrap: wrap; }
.claim {
  flex: 1; min-width: 260px; height: 56px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  display: flex; align-items: center; padding: 0 6px 0 16px; box-shadow: 0 12px 28px -20px rgba(20,10,60,.35);
  transition: box-shadow .2s, border .2s;
}
.claim:focus-within { border-color: #cdb5ff; box-shadow: 0 0 0 3px rgba(124,58,237,.1), 0 12px 28px -20px rgba(20,10,60,.35); }
.claim span { font-size: 13px; color: var(--faint); white-space: nowrap; }
.claim input { flex: 1; min-width: 0; border: 0; outline: none; padding: 0 6px; font-size: 15px; color: var(--ink); background: transparent; }
.claim .claim-go { width: 44px; height: 44px; border-radius: 10px; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; }
.claim .claim-go:hover { background: var(--violet-deep); }
.claim-btn { height: 56px; padding: 0 28px; border-radius: 14px; font-size: 15px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 12.5px; color: var(--faint); }
.hero-note b { color: var(--ink-2); font-weight: 600; }
.hero-stats { display: flex; gap: 34px; margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); max-width: 520px; }
.hero-stats div strong { display: block; font-size: 24px; letter-spacing: -.8px; font-weight: 750; }
.hero-stats div span { font-size: 12px; color: var(--faint); }

/* hero visual */
.hero-visual { position: relative; height: 610px; }
.hero-visual::before {
  content: ''; position: absolute; inset: 8% 4% 8% 10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,.22), transparent 62%); filter: blur(10px);
}
.phone {
  position: absolute; width: 292px; height: 596px; border-radius: 42px; background: #0f0c1a;
  padding: 9px; box-shadow: 0 60px 100px -40px rgba(30, 10, 70, .55), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.phone::after { content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 80px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.18); z-index: 3; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: linear-gradient(160deg, #2a1150, #0a1d33); }
.phone .screen .veil { position: absolute; inset: 0; background: rgba(10, 6, 20, .2); }
.phone-main { left: 50%; top: 0; transform: translateX(-50%) rotate(-2deg); z-index: 3; }
.phone-left { left: -6%; top: 56px; transform: rotate(-9deg) scale(.86); z-index: 1; opacity: .9; }
.phone-right { right: -8%; top: 92px; transform: rotate(9deg) scale(.82); z-index: 2; opacity: .92; }

.mini-profile { position: absolute; inset: 0; padding: 52px 20px 24px; display: flex; flex-direction: column; align-items: center; color: #fff; }
.mini-avatar { width: 78px; height: 78px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,.45); background: linear-gradient(135deg,#c084fc,#7c3aed); display: grid; place-items: center; font-weight: 700; font-size: 24px; }
.mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mini-name { font-weight: 700; font-size: 15px; margin-top: 10px; letter-spacing: .2px; }
.mini-bio { font-size: 10.5px; color: rgba(255,255,255,.62); text-align: center; margin-top: 4px; line-height: 1.6; }
.mini-chip { margin-top: 10px; font-size: 10px; color: rgba(255,255,255,.72); padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); }
.mini-blocks { width: 100%; margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.mini-btn { height: 44px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); display: flex; align-items: center; gap: 9px; padding: 0 8px 0 8px; font-size: 11px; color: #fff; }
.mini-btn i { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-style: normal; font-size: 12px; }
.mini-btn b { font-weight: 500; flex: 1; text-align: center; padding-right: 20px; }
.mini-img { height: 108px; border-radius: 14px; overflow: hidden; }
.mini-img img { width: 100%; height: 100%; object-fit: cover; }
.mini-socials { display: flex; gap: 7px; margin-top: 14px; }
.mini-socials i { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.2); }

/* floating brand bubbles */
.float-bubble {
  position: absolute; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: 0 14px 30px -12px rgba(20, 10, 50, .35); z-index: 6;
  animation: floaty 5s ease-in-out infinite;
}
.float-bubble img { width: 24px; height: 24px; }
.float-bubble.tint { background: var(--c, #7c3aed); }
.float-bubble.tint img { filter: brightness(0) invert(1); }
@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-9px) } }
.b1 { left: 2%; top: 26%; animation-delay: -.6s; }
.b2 { right: 6%; top: 18%; animation-delay: -1.8s; }
.b3 { right: -2%; top: 56%; animation-delay: -2.4s; }
.b4 { left: 8%; bottom: 14%; animation-delay: -3.1s; }
.b5 { right: 16%; bottom: 8%; animation-delay: -4s; }

.hero-tag {
  position: absolute; z-index: 5; background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-m);
  font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 9px;
}
.hero-tag strong { font-size: 16px; color: var(--ink); letter-spacing: -.3px; }
.hero-tag i { width: 30px; height: 30px; border-radius: 9px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; }
.tag-1 { left: -4%; bottom: 4%; }
.tag-2 { right: 0; top: 4%; }

/* logos */
.case-wall { padding: 40px 0 20px; position: relative; }
.case-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.case-head h2 { font-size: 34px; letter-spacing: -1.4px; margin: 0; }
.case-head p { color: var(--faint); font-size: 13px; margin: 0; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marq 38s linear infinite; }
.marquee-track.rev { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%) } }
.case-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 12px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-s); min-width: 196px; transition: transform .25s var(--ease), box-shadow .25s;
}
.case-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.case-ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; flex: none; }
.case-meta strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.case-meta span { font-size: 11px; color: var(--faint); }

/* feature */
.feature { padding: 92px 0; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.feature-copy h2 { font-size: clamp(32px, 3.6vw, 46px); letter-spacing: -1.8px; line-height: 1.15; margin: 0 0 18px; font-weight: 750; }
.feature-copy p { color: var(--muted); font-size: 15px; line-height: 1.85; margin: 0 0 26px; max-width: 400px; }
.feature-copy ul { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 14px; }
.feature-copy li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.feature-copy li i { width: 22px; height: 22px; border-radius: 50%; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; flex: none; margin-top: 1px; }
.feature-copy li b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 1px; }
.feature-copy li span { color: var(--faint); font-size: 12.5px; }
.feature-art { position: relative; min-height: 420px; display: grid; place-items: center; }
.art-tint { position: absolute; inset: 6% 8%; border-radius: 40px; background: radial-gradient(circle at 30% 20%, rgba(168,85,247,.22), transparent 60%), radial-gradient(circle at 70% 80%, rgba(34,211,238,.16), transparent 60%); filter: blur(6px); }

.editor-mock { position: relative; width: min(470px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-l); padding: 18px; transform: rotate(-1.5deg); }
.em-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.em-dots { display: flex; gap: 6px; }
.em-dots i { width: 9px; height: 9px; border-radius: 50%; background: #e7e4ef; }
.em-dots i:first-child { background: #ffb3c1; }
.em-dots i:nth-child(2) { background: #ffe08a; }
.em-dots i:nth-child(3) { background: #b6e7c9; }
.em-title { font-size: 12px; color: var(--faint); margin-left: auto; }
.em-row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 9px; background: #fcfbff; }
.em-row.dragging { transform: scale(1.02); box-shadow: var(--shadow-m); border-color: #d8c8ff; }
.em-grip { color: #c8c4d6; }
.em-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.em-txt { flex: 1; font-size: 12.5px; }
.em-txt span { display: block; color: var(--faint); font-size: 10.5px; }
.em-badge { font-size: 10px; padding: 2px 7px; border-radius: 99px; background: var(--violet-soft); color: var(--violet-deep); }
.em-add { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border: 1px dashed #d9d3e8; border-radius: 12px; color: var(--faint); font-size: 12px; background: #fff; }
.em-side { position: absolute; right: -34px; top: 64px; width: 150px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-m); padding: 10px; }
.em-side div { display: flex; align-items: center; gap: 8px; font-size: 11px; padding: 7px 8px; border-radius: 8px; color: var(--muted); }
.em-side div.on { background: var(--violet-soft); color: var(--violet-deep); font-weight: 600; }
.em-side i { width: 18px; height: 18px; border-radius: 6px; background: var(--paper-2); }

.share-mock { position: relative; width: 340px; }
.share-mock .phone { position: relative; inset: auto; width: 300px; height: 560px; margin: 0 auto; }
.share-phone-screen { position: absolute; inset: 0; border-radius: 34px; overflow: hidden; background: linear-gradient(155deg,#f6d365,#fda085); }
.share-phone-inner { padding: 54px 18px; color: #3a2a1e; }
.share-phone-inner .mini-avatar { border-color: rgba(255,255,255,.7); background: #3a2a1e; margin: 0 auto; }
.share-phone-inner .mini-name { color: #3a2a1e; text-align: center; }
.share-phone-inner .mini-bio { color: rgba(58,42,30,.6); }
.share-phone-inner .mini-btn { background: rgba(255,255,255,.82); border-color: rgba(255,255,255,.9); color: #3a2a1e; }
.share-phone-inner .mini-btn i { background: rgba(58,42,30,.1); }
.art-bubbles { position: absolute; inset: 0; pointer-events: none; }

.blocks-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bs-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; transition: transform .25s var(--ease), box-shadow .25s; }
.bs-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.bs-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; margin-bottom: 12px; }
.bs-card b { font-size: 13px; display: block; }
.bs-card span { font-size: 11px; color: var(--faint); }

.analytics-mock { position: relative; width: min(430px, 100%); }
.an-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-l); padding: 22px; }
.an-head { display: flex; justify-content: space-between; align-items: center; }
.an-total { font-size: 30px; font-weight: 750; letter-spacing: -1px; }
.an-total span { font-size: 12px; color: var(--ok); margin-left: 6px; font-weight: 600; }
.an-chart { height: 130px; margin: 18px 0 6px; display: flex; align-items: flex-end; gap: 9px; }
.an-chart i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #a855f7, #ede9fe); position: relative; transition: height .7s var(--ease); }
.an-chart i::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.4), transparent 50%); }
.an-legend { display: flex; gap: 16px; font-size: 11px; color: var(--faint); }
.an-legend b { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.an-legend i { width: 7px; height: 7px; border-radius: 50%; }
.an-float { position: absolute; right: -22px; top: -22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-m); padding: 12px 16px; font-size: 11px; color: var(--faint); animation: floaty 4.5s ease-in-out infinite; }
.an-float b { display: block; font-size: 22px; color: var(--ink); letter-spacing: -.5px; }
.an-float2 { position: absolute; left: -30px; bottom: -22px; background: #171326; color: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-m); font-size: 11px; animation: floaty 5.5s ease-in-out infinite; }
.an-float2 b { display: block; font-size: 20px; letter-spacing: -.4px; }

/* templates strip */
.tpl-section { padding: 70px 0 40px; }
.tpl-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tpl-card-l { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; }
.tpl-card-l:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.tpl-prev { height: 150px; padding: 16px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.tpl-prev .tp-ava { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.4); margin: 4px auto 2px; }
.tpl-prev .tp-line { height: 5px; border-radius: 99px; background: rgba(255,255,255,.3); margin: 0 auto; }
.tpl-prev .tp-btn { height: 16px; border-radius: 99px; background: rgba(255,255,255,.24); margin-top: 5px; }
.tpl-card-l .tp-name { padding: 10px 14px; font-size: 12.5px; display: flex; justify-content: space-between; }
.tpl-card-l .tp-name span { color: var(--faint); font-size: 10.5px; }

/* nfc dark band */
.nfc-band { margin: 60px 0; border-radius: 30px; background: #14121f; color: #fff; padding: 56px; position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.nfc-band::before { content: ''; position: absolute; inset: -40% -20% auto; height: 500px; background: radial-gradient(circle at 70% 40%, rgba(124,58,237,.55), transparent 55%); }
.nfc-band h2 { font-size: 38px; letter-spacing: -1.4px; line-height: 1.15; margin: 0 0 14px; position: relative; }
.nfc-band p { color: rgba(255,255,255,.62); font-size: 14px; max-width: 430px; position: relative; }
.nfc-visual { position: relative; display: grid; place-items: center; height: 240px; }
.nfc-chip { width: 150px; height: 150px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.25); display: grid; place-items: center; position: relative; }
.nfc-chip::before, .nfc-chip::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); inset: -26px; animation: nfcPulse 3s ease-out infinite; }
.nfc-chip::after { animation-delay: 1.4s; }
.nfc-chip span { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(140deg,#a855f7,#6d28d9); display: grid; place-items: center; font-weight: 800; font-size: 15px; box-shadow: 0 0 40px rgba(168,85,247,.5); }
@keyframes nfcPulse { 0% { transform: scale(.9); opacity: .7 } 100% { transform: scale(1.5); opacity: 0 } }

/* quote */
.quote { max-width: 880px; margin: 30px auto 10px; text-align: center; padding: 30px 20px; position: relative; }
.quote-mark { font-family: Georgia, serif; font-size: 90px; line-height: .6; color: var(--violet); opacity: .25; }
.quote p { font-size: 19px; line-height: 2; color: var(--ink-2); letter-spacing: .2px; margin: 10px 0 20px; }
.quote .q-author { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.quote .q-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }

/* CTA */
.cta-band { text-align: center; padding: 88px 0 96px; }
.cta-band .cta-logo { width: 62px; height: 62px; border-radius: 20px; margin: 0 auto 22px; background: linear-gradient(145deg,#a855f7,#6d28d9); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; box-shadow: 0 24px 40px -18px rgba(109,40,217,.55); }
.cta-band h2 { font-size: clamp(30px,4vw,50px); letter-spacing: -2px; line-height: 1.12; margin: 0 0 14px; }
.cta-band p { color: var(--muted); margin: 0 0 28px; }
.cta-band .btn { margin: 0 5px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 46px 0 34px; background: #faf9f5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer p { color: var(--faint); font-size: 12.5px; line-height: 1.8; max-width: 300px; }
.footer h4 { font-size: 13px; margin: 0 0 14px; }
.footer a { display: block; color: var(--muted); font-size: 12.5px; padding: 5px 0; transition: color .2s; }
.footer a:hover { color: var(--violet); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 11.5px; flex-wrap: wrap; }

/* ---------- App shell ---------- */
.app-shell { min-height: 100vh; display: flex; background: #f7f6fa; }
.side {
  width: 232px; flex: none; background: #fff; border-right: 1px solid var(--line);
  padding: 22px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.side-logo { display: flex; align-items: center; gap: 9px; padding: 2px 8px 20px; font-weight: 800; font-size: 18px; letter-spacing: -.4px; }
.side-label { font-size: 10.5px; color: var(--faint); letter-spacing: .8px; padding: 14px 12px 8px; text-transform: uppercase; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-item {
  display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 12px; border-radius: 10px;
  color: var(--muted); font-size: 13.5px; border: 0; background: transparent; text-align: left; width: 100%;
  transition: all .18s;
}
.side-item:hover { background: #f6f4fb; color: var(--ink); }
.side-item.on { background: var(--violet-soft); color: var(--violet-deep); font-weight: 600; }
.side-item .dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.side-user { display: flex; align-items: center; gap: 9px; padding: 8px 10px; margin-bottom: 6px; }
.side-user img, .side-user .ava { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--violet-soft); color: var(--violet-deep); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.side-user strong { display: block; font-size: 12.5px; line-height: 1.3; }
.side-user span { font-size: 10.5px; color: var(--faint); }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-top {
  height: 64px; flex: none; background: rgba(255,255,255,.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 26px; position: sticky; top: 0; z-index: 50;
}
.app-top h1 { font-size: 17px; margin: 0; letter-spacing: -.3px; }
.app-top p { font-size: 12px; color: var(--faint); margin: 1px 0 0; }
.app-top .top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.app-content { padding: 26px; }

/* editor */
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 392px; gap: 22px; align-items: start; }
.editor-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-s); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font-size: 15px; }
.panel-head span { font-size: 12px; color: var(--faint); }
.panel-body { padding: 20px; }
.block-list { display: flex; flex-direction: column; gap: 8px; }
.block-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line);
  background: #fdfcff; border-radius: 12px; transition: all .18s; position: relative;
}
.block-item:hover { border-color: #d9cef2; background: #fff; box-shadow: 0 6px 16px -10px rgba(50,30,100,.18); }
.block-item.dragover { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,58,237,.08); }
.block-item .grip { color: #c8c3d6; cursor: grab; flex: none; }
.block-item .b-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; }
.block-item .b-meta { flex: 1; min-width: 0; }
.block-item .b-meta b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-item .b-meta span { font-size: 11px; color: var(--faint); }
.block-tools { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.block-item:hover .block-tools { opacity: 1; }
.block-tools button { width: 28px; height: 28px; border: 0; background: transparent; border-radius: 6px; color: var(--faint); display: grid; place-items: center; }
.block-tools button:hover { background: var(--paper-2); color: var(--ink); }
.add-block { margin-top: 14px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.add-type { height: 64px; border: 1px dashed #ded8ec; border-radius: 10px; background: #fff; color: var(--muted); font-size: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; transition: all .18s; }
.add-type:hover { border-color: var(--violet); color: var(--violet); background: #fbf8ff; }
.add-type .at-ic { width: 26px; height: 26px; border-radius: 7px; background: var(--paper-2); display: grid; place-items: center; color: var(--violet); }

.preview-rail { position: sticky; top: 84px; }
.phone-frame { width: 392px; padding: 12px; background: #0e0b16; border-radius: 44px; box-shadow: 0 40px 70px -40px rgba(30,10,70,.5), inset 0 0 0 1px rgba(255,255,255,.07); position: relative; margin: 0 auto; }
.phone-frame::before { content: ''; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 88px; height: 6px; background: rgba(255,255,255,.14); border-radius: 99px; z-index: 3; }
.phone-screen { width: 368px; height: 680px; border-radius: 33px; overflow: hidden; overflow-y: auto; scrollbar-width: none; background: #120d20; }
.phone-screen::-webkit-scrollbar { display: none; }
.phone-screen .pv-page { min-height: 100%; }
.preview-bar { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; font-size: 12px; color: var(--faint); }
.preview-bar a { color: var(--violet); font-weight: 600; }

/* settings forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.avatar-row .ava-lg { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--violet-soft); color: var(--violet-deep); display: grid; place-items: center; font-size: 24px; font-weight: 700; }
.avatar-row .l3-up-btn { width: auto; }

/* tabs */
.tabs { display: flex; gap: 4px; background: var(--paper-2); padding: 4px; border-radius: 11px; }
.tabs button { height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; font-size: 12.5px; color: var(--muted); }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-s); font-weight: 600; }

/* theme editor */
.theme-group { margin-bottom: 26px; }
.theme-group h4 { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.theme-group h4 span { font-size: 10.5px; color: var(--faint); font-weight: 400; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 32px; height: 32px; border-radius: 9px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 2px var(--violet); }
.tpl-grid-sm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tpl-mini { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; background: #fff; }
.tpl-mini.on { border-color: var(--violet); box-shadow: 0 0 0 2px rgba(124,58,237,.12); }
.tpl-mini .thumb { height: 74px; display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.tpl-mini .thumb i { height: 4px; border-radius: 99px; background: rgba(255,255,255,.35); }
.tpl-mini .thumb i:first-child { width: 18px; height: 18px; border-radius: 50%; margin: 0 auto 2px; }
.tpl-mini .thumb i:nth-child(2) { width: 46%; margin: 0 auto; }
.tpl-mini .thumb i:nth-child(3) { width: 80%; margin: 5px auto 0; background: rgba(255,255,255,.22); height: 10px; }
.tpl-mini .thumb i:nth-child(4) { width: 80%; margin: 0 auto; background: rgba(255,255,255,.22); height: 10px; }
.tpl-mini b { display: block; font-size: 11px; text-align: center; padding: 6px 2px; font-weight: 500; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type=range] { flex: 1; accent-color: var(--violet); }
.range-row span { font-size: 12px; color: var(--faint); min-width: 54px; text-align: right; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; color: var(--muted); }
.seg button.on { border-color: #cbb2ff; background: var(--violet-soft); color: var(--violet-deep); font-weight: 600; }

/* social editor */
.social-rows { display: flex; flex-direction: column; gap: 7px; }
.social-row { display: flex; align-items: center; gap: 9px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.social-row .s-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; }
.social-row b { width: 84px; font-size: 12px; font-weight: 500; }
.social-row input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 7px; height: 32px; padding: 0 9px; font-size: 12px; outline: none; }

/* stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stat label { font-size: 11.5px; color: var(--faint); display: flex; align-items: center; gap: 6px; }
.stat strong { display: block; font-size: 28px; letter-spacing: -1px; margin-top: 8px; font-weight: 750; }
.stat small { font-size: 11px; color: var(--ok); }
.chart-box { height: 260px; padding: 6px; }

/* tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 500; color: var(--faint); font-size: 11.5px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid #f1eff5; color: var(--ink-2); }
.table tr:last-child td { border-bottom: 0; }
.table .mono { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11px; background: var(--paper-2); color: var(--muted); }
.pill.ok { background: #e9f9ef; color: #137a3d; }
.pill.warn { background: #fff6e5; color: #a15c00; }
.pill.bad { background: #ffecec; color: #b42323; }
.pill.violet { background: var(--violet-soft); color: var(--violet-deep); }

/* auth */
.auth-wrap { min-height: calc(100vh - 34px); display: grid; grid-template-columns: 1.05fr .95fr; background: var(--paper); }
.auth-side { background: #14121f; color: #fff; padding: 96px 54px 46px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 68% 18%, rgba(124,58,237,.62), transparent 58%), radial-gradient(circle at 12% 78%, rgba(34,211,238,.22), transparent 55%), radial-gradient(circle at 92% 92%, rgba(236,72,153,.16), transparent 50%); }
.auth-side::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: -220px; height: 420px; background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,.28), transparent 70%); pointer-events: none; }
.auth-side .as-top, .auth-side .as-quote { position: relative; }
.auth-side .brand { color: #fff; }
.auth-side h2 { font-size: 44px; line-height: 1.15; letter-spacing: -1.8px; margin: 60px 0 14px; }
.auth-side p { color: rgba(255,255,255,.6); max-width: 380px; font-size: 14px; }
.auth-side .as-quote { border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px; color: rgba(255,255,255,.5); font-size: 12.5px; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 390px; }
.auth-card h2 { font-size: 26px; letter-spacing: -.6px; margin: 0 0 6px; }
.auth-card > p { color: var(--faint); font-size: 12.5px; margin: 0 0 26px; }
.auth-tabs { display: flex; gap: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.auth-tabs button { border: 0; background: transparent; padding: 0 0 10px; font-size: 14px; color: var(--muted); position: relative; }
.auth-tabs button.on { color: var(--ink); font-weight: 600; }
.auth-tabs button.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--violet); }
.auth-form .l3-field input { height: 46px; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-btn { width: 116px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; color: var(--ink-2); }
.code-btn:disabled { color: var(--faint); }
.auth-check { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--faint); margin: 4px 0 18px; }
.auth-check input { margin-top: 2px; accent-color: var(--violet); }
.auth-check a { color: var(--violet); }
.auth-extra { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); margin-top: 16px; }
.auth-extra a { color: var(--violet); }
.auth-note { margin-top: 28px; padding: 12px 14px; border-radius: 10px; background: #f6f2ff; font-size: 11.5px; color: #6b4ca8; line-height: 1.7; }
.auth-back { position: absolute; left: 26px; top: 24px; }
.auth-mobile-side { display: none; }

/* commerce */
.balance-hero { background: #14121f; color: #fff; border-radius: 18px; padding: 26px 28px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; position: relative; overflow: hidden; }
.balance-hero::after { content: ''; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(168,85,247,.45), transparent 60%); }
.balance-hero .bh-main { position: relative; }
.balance-hero small { color: rgba(255,255,255,.5); font-size: 11.5px; }
.balance-hero strong { display: block; font-size: 38px; letter-spacing: -1.4px; font-weight: 750; }
.balance-hero .bh-actions { margin-left: auto; display: flex; gap: 10px; position: relative; }
.bh-mini { display: flex; gap: 28px; font-size: 11.5px; color: rgba(255,255,255,.55); }
.bh-mini b { display: block; color: #fff; font-size: 15px; font-weight: 600; margin-top: 3px; }

.vip-card { border-radius: 18px; padding: 24px; color: #fff; background: linear-gradient(140deg, #241046, #4c1d95 55%, #7c3aed); position: relative; overflow: hidden; }
.vip-card::after { content: ''; position: absolute; right: -30px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.vip-card h3 { margin: 0; font-size: 20px; letter-spacing: -.4px; }
.vip-card p { color: rgba(255,255,255,.6); font-size: 12px; margin: 6px 0 18px; }
.vip-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.16); font-size: 11px; }
.order-plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan { border: 1px solid var(--line); border-radius: 13px; padding: 16px; background: #fff; cursor: pointer; transition: all .2s; position: relative; }
.plan:hover { border-color: #cbb2ff; }
.plan.on { border-color: var(--violet); background: #faf7ff; box-shadow: 0 0 0 3px rgba(124,58,237,.07); }
.plan b { font-size: 14px; display: block; }
.plan strong { display: block; font-size: 24px; letter-spacing: -.7px; margin: 8px 0 2px; }
.plan span { font-size: 11px; color: var(--faint); }
.plan em { position: absolute; top: -1px; right: -1px; background: var(--violet); color: #fff; font-style: normal; font-size: 10px; padding: 3px 8px; border-radius: 0 12px 0 10px; }
.plan .discount { font-size: 11px; color: var(--violet); margin-left: 4px; }

/* favorites / search cards */
.profile-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pcard { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform .25s var(--ease), box-shadow .25s; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.pcard-cover { height: 92px; position: relative; display: flex; align-items: flex-end; padding: 12px; }
.pcard-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(10,6,20,.35)); }
.pcard-ava { position: relative; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; background: #fff; display: grid; place-items: center; font-weight: 700; color: var(--violet-deep); }
.pcard-body { padding: 12px 14px 14px; }
.pcard-body b { font-size: 13.5px; display: block; }
.pcard-body span { font-size: 11px; color: var(--faint); display: block; margin-top: 3px; min-height: 16px; }
.pcard-body small { font-size: 10.5px; color: var(--faint); display: flex; gap: 10px; margin-top: 8px; }

/* admin */
.admin-side { background: #14121f; color: #fff; }
.admin-side .side-item { color: rgba(255,255,255,.62); }
.admin-side .side-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-side .side-item.on { background: rgba(168,85,247,.18); color: #d8b4fe; }
.admin-side .side-logo { color: #fff; }
.admin-side .side-label { color: rgba(255,255,255,.3); }
.admin-top { background: rgba(20,18,31,.9); color: #fff; border-color: rgba(255,255,255,.08); }
.admin-top h1 { color: #fff; }
.admin-top p { color: rgba(255,255,255,.4); }

/* misc */
.divider-h { height: 1px; background: var(--line); margin: 20px 0; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muted { color: var(--faint); }
.mt-8 { margin-top: 8px; } .mt-14 { margin-top: 14px; } .mt-20 { margin-top: 20px; } .mb-0 { margin-bottom: 0; }
.grow { flex: 1; }
.hint { font-size: 11.5px; color: var(--faint); line-height: 1.7; }
.notice { padding: 12px 14px; border-radius: 10px; background: #fff8e8; color: #8a5a00; font-size: 12.5px; line-height: 1.7; }
.notice.danger { background: #fff0f0; color: #a12a2a; }
.section-title { font-size: 12px; color: var(--faint); margin: 26px 0 12px; letter-spacing: .4px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-visual { height: 540px; margin-top: 10px; }
  .phone { width: 260px; height: 530px; }
  .tpl-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 900px) {
  .editor-grid { grid-template-columns: 1fr; }
  .preview-rail { order: -1; position: static; }
  .phone-frame { width: 340px; }
  .phone-screen { width: 316px; height: 600px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-art { order: -1; min-height: 360px; }
  .nfc-band { grid-template-columns: 1fr; padding: 36px; }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-cards { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-mobile-side { display: block; padding: 24px; text-align: center; }
  .blocks-showcase { grid-template-columns: repeat(2, 1fr); }
  .order-plan { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .announce { height: auto; min-height: 34px; padding: 7px 40px 7px 12px; font-size: 11px; line-height: 1.55; flex-wrap: wrap; text-align: center; }
  .wrap { padding: 0 18px; }
  .nav-shell { padding: 0 12px; top: 8px; }
  .nav { height: 58px; padding: 0 10px 0 16px; gap: 12px; }
  .brand { font-size: 17px; }
  .nav-actions .btn { height: 36px; padding: 0 14px; font-size: 12.5px; }
  .hero { padding: 38px 18px 30px; }
  .h1 { font-size: clamp(30px, 8.6vw, 40px); letter-spacing: -1.2px; }
  .h1 em { white-space: normal; }
  .claim-row { max-width: 100%; }
  .claim { min-width: 0; }
  .claim-btn { width: 100%; }
  .claim-btn { width: 100%; }
  .hero-stats { gap: 22px; }
  .hero-visual { height: 480px; transform: scale(.92); transform-origin: top center; }
  .phone-left, .phone-right { display: none; }
  .phone-main { transform: translateX(-50%) rotate(0); }
  .hero-tag { display: none; }
  .case-head h2 { font-size: 26px; }
  .feature { padding: 56px 0; }
  .feature-copy h2 { font-size: 30px; letter-spacing: -1px; }
  .tpl-grid { gap: 10px; }
  .nfc-band { border-radius: 22px; padding: 28px 22px; }
  .nfc-band h2 { font-size: 27px; letter-spacing: -.8px; }
  .quote p { font-size: 15px; line-height: 1.9; }
  .cta-band { padding: 56px 0 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .app-shell { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; padding: 10px 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-logo { padding: 0 12px 0 4px; }
  .side-label, .side-foot { display: none; }
  .side-nav { flex-direction: row; gap: 4px; }
  .side-item { width: auto; height: 36px; padding: 0 10px; font-size: 12.5px; white-space: nowrap; }
  .side-item .dot { display: none; }
  .app-content { padding: 16px; }
  .app-top { height: auto; min-height: 54px; padding: 8px 12px; flex-wrap: wrap; gap: 8px; }
  .app-top .crumb { display: none; }
  .app-top > div { width: 100%; overflow-x: auto; justify-content: flex-end; gap: 6px; padding-bottom: 2px; }
  .app-top .btn { flex: none; }
  .panel-head { flex-wrap: wrap; gap: 10px; }
  .panel-head > div { min-width: 0; }
  .app-main { width: 100%; max-width: 100vw; overflow-x: hidden; }
  .side { max-width: 100vw; }
  .editor-panel .panel-body { padding: 16px; }
  .phone-frame { width: 100%; max-width: 340px; }
  .phone-screen { width: 100%; height: 560px; }
  .add-block { grid-template-columns: repeat(4, 1fr); }
  .profile-cards { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .auth-main { padding: 26px 20px; }
  .code-btn { width: 104px; }
  .balance-hero { padding: 20px; }
  .balance-hero .bh-actions { margin-left: 0; }
}
