/* ===== AI 智名片 · 设计系统 ===== */
:root {
  --ink: #0d1524;
  --ink-2: #16233a;
  --ink-3: #22334f;
  --gold: #c8a15a;
  --gold-2: #e2c48c;
  --accent: #1b3358;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #131922;
  --sub: #6d7684;
  --line: #e8ebf1;
  --danger: #c0392b;
  --ok: #1f9d78;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(16, 26, 44, 0.06);
  --shadow-lg: 0 18px 48px rgba(13, 21, 36, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 15px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: 0.2px; }
p { margin: 0; }

.wrap { width: 100%; max-width: 480px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1080px; }
.muted { color: var(--sub); }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; padding: 0 20px; border-radius: 12px; font-size: 15px; font-weight: 600;
  background: #eef1f6; color: var(--ink-2); transition: transform .12s ease, opacity .12s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, #1b3358, #0e1c33); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #241a08; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.btn-line { background: #fff; border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.btn-danger { background: #fdecea; color: var(--danger); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ===== 表单 ===== */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 13px; color: var(--sub); margin-bottom: 6px; font-weight: 500; }
.input, textarea.input, select.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(27, 51, 88, 0.08); }
.input::placeholder { color: #a9b0bb; }
.hint { font-size: 12px; color: var(--sub); margin-top: 6px; line-height: 1.5; }

/* ===== 卡片 / 面板 ===== */
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.panel + .panel { margin-top: 14px; }
.panel-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.panel-desc { font-size: 12.5px; color: var(--sub); margin-bottom: 14px; }

/* ===== 顶部栏 ===== */
.topbar {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.topbar h1 { font-size: 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .5px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ink-2), #0b1526); color: var(--gold-2); font-size: 13px; font-weight: 700;
  border: 1px solid rgba(200,161,90,.5);
}

/* ===== 底部导航 ===== */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.tabbar-inner { display: flex; max-width: 480px; margin: 0 auto; }
.tabbar button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 0; font-size: 11px; color: #98a1af;
}
.tabbar button.active { color: var(--accent); font-weight: 600; }
.tabbar .ico { font-size: 19px; line-height: 1; }

/* ===== Toast / 弹层 ===== */
.toast {
  position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%) translateY(10px);
  background: rgba(17, 24, 39, .92); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 13.5px; z-index: 999; opacity: 0; pointer-events: none; transition: all .22s ease;
  max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.sheet-mask {
  position: fixed; inset: 0; background: rgba(9, 14, 24, .55); z-index: 200;
  display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.sheet-mask.show { opacity: 1; pointer-events: auto; }
.sheet {
  width: 100%; max-width: 520px; background: #fff; border-radius: 22px 22px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); transform: translateY(16px);
  transition: transform .22s ease; max-height: 88vh; overflow: auto;
}
.sheet-mask.show .sheet { transform: translateY(0); }
.sheet-grip { width: 42px; height: 4px; background: #e3e7ee; border-radius: 99px; margin: 0 auto 14px; }
.sheet h3 { font-size: 16px; margin-bottom: 12px; }

/* 居中弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(9, 14, 24, .62); z-index: 210;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-mask.show { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: 20px; padding: 20px; width: 100%; max-width: 420px;
  max-height: 86vh; overflow: auto; box-shadow: var(--shadow-lg);
}

/* ===== 空状态 ===== */
.empty { text-align: center; padding: 40px 16px; color: var(--sub); font-size: 13.5px; }
.empty-icon { font-size: 34px; opacity: .5; margin-bottom: 8px; }

/* ===== 徽标 ===== */
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill-gold { background: rgba(200,161,90,.14); color: #8a6a25; }
.pill-ok { background: rgba(31,157,120,.12); color: #17795c; }
.pill-bad { background: rgba(192,57,43,.1); color: var(--danger); }
.pill-grey { background: #eef1f6; color: var(--sub); }

/* ===== 名片页（公开） ===== */
.card-page { max-width: 560px; margin: 0 auto; background: #fff; min-height: 100vh; padding-bottom: 96px; position: relative; }

.cp-hero { position: relative; padding: 40px 22px 26px; overflow: hidden; }
.cp-hero .bgfx { position: absolute; inset: 0; z-index: 0; }
.cp-hero .inner { position: relative; z-index: 1; }
.cp-avatar {
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover; background: #dde3ec;
  border: 3px solid rgba(255,255,255,.9); box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.cp-name { font-size: 27px; font-weight: 700; letter-spacing: .5px; margin-top: 14px; }
.cp-title { font-size: 14.5px; opacity: .9; margin-top: 4px; letter-spacing: 1px; }
.cp-company { font-size: 13px; opacity: .75; margin-top: 3px; }
.cp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cp-tags span { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); }

.cp-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 16px; margin-top: -18px; position: relative; z-index: 2; }
.cp-quick button {
  background: #fff; border-radius: 14px; padding: 10px 4px; box-shadow: 0 6px 18px rgba(16,26,44,.08);
  display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; color: var(--ink-2); font-weight: 600;
}
.cp-quick .ico { font-size: 19px; }

.cp-section { padding: 4px 16px 0; }
.cp-block { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-top: 12px; }
.cp-block h4 { font-size: 13px; color: var(--gold); letter-spacing: 2px; font-weight: 700; margin-bottom: 10px; }
.cp-block p { font-size: 14.5px; color: #333a45; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.cp-block .clamp { max-height: 5.4em; overflow: hidden; position: relative; }
.cp-block .more { font-size: 12.5px; color: var(--accent); margin-top: 8px; display: inline-block; font-weight: 600; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-chips span { font-size: 12.5px; padding: 5px 12px; border-radius: 999px; background: #f3f5f9; color: #3a4453; }

.cp-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f3f7; }
.cp-row:last-child { border-bottom: none; padding-bottom: 0; }
.cp-row .k { font-size: 12px; color: var(--sub); width: 44px; flex-shrink: 0; }
.cp-row .v { font-size: 14px; flex: 1; word-break: break-all; }
.cp-row .act { font-size: 12px; color: var(--accent); font-weight: 600; flex-shrink: 0; }

.cp-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.cp-tabs::-webkit-scrollbar { display: none; }
.cp-tabs button { flex-shrink: 0; font-size: 12.5px; padding: 6px 13px; border-radius: 999px; background: #f2f4f8; color: #59626f; }
.cp-tabs button.active { background: var(--ink-2); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery .g-item { position: relative; padding-top: 100%; border-radius: 10px; overflow: hidden; background: #eef1f6; }
.gallery .g-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery .g-item .cat { position: absolute; left: 6px; bottom: 6px; font-size: 10px; color: #fff; background: rgba(0,0,0,.45); padding: 1px 6px; border-radius: 4px; }

.vlist { display: flex; flex-direction: column; gap: 10px; }
.vitem { border-radius: 14px; overflow: hidden; background: #0d1421; position: relative; }
.vitem video { width: 100%; display: block; max-height: 420px; background: #000; }
.vitem .vt { position: absolute; left: 10px; top: 10px; font-size: 11px; color: #fff; background: rgba(0,0,0,.5); padding: 2px 8px; border-radius: 6px; pointer-events: none; }

.poster-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.poster-scroll::-webkit-scrollbar { display: none; }
.poster-scroll img { width: 190px; border-radius: 14px; scroll-snap-align: start; box-shadow: 0 8px 20px rgba(15,22,36,.14); }

.cp-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.cp-foot-inner { max-width: 560px; margin: 0 auto; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.cp-foot .btn { flex: 1; }

/* 模板主题 */
.tpl-aurora { background: linear-gradient(150deg, #f7fbff 0%, #e6effc 55%, #dde9fa 100%); color: #12233c; }
.tpl-aurora .bgfx { background: radial-gradient(120% 80% at 85% 0%, rgba(47,107,255,.18), transparent 60%); }
.tpl-aurora .cp-title { color: #3a5f9e; }

.tpl-royal { background: linear-gradient(150deg, #12233c 0%, #1d3a5f 60%, #0e1a2c 100%); color: #fff; }
.tpl-royal .bgfx { background: radial-gradient(90% 70% at 80% 0%, rgba(200,161,90,.28), transparent 62%), radial-gradient(70% 50% at 0% 100%, rgba(200,161,90,.12), transparent 60%); }
.tpl-royal .cp-title { color: var(--gold-2); }

.tpl-wine { background: linear-gradient(150deg, #43101f 0%, #7a2638 55%, #2c0a14 100%); color: #fff8f3; }
.tpl-wine .bgfx { background: radial-gradient(80% 60% at 90% 10%, rgba(232,203,146,.26), transparent 60%); }
.tpl-wine .cp-title { color: #f0d19b; }

.tpl-ink { background: linear-gradient(150deg, #0b0b0d 0%, #1c1c22 70%, #101015 100%); color: #fff; }
.tpl-ink .bgfx { background: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 28px); }
.tpl-ink .cp-title { color: #f3c34f; }

.tpl-mint { background: linear-gradient(150deg, #0f3d31 0%, #1c6a52 60%, #0b2f26 100%); color: #f2fbf6; }
.tpl-mint .bgfx { background: radial-gradient(80% 60% at 15% 0%, rgba(160,230,190,.22), transparent 65%); }
.tpl-mint .cp-title { color: #a9e8c4; }

.tpl-magazine { background: linear-gradient(160deg, #fff 0%, #fdf7f1 60%, #f6ece1 100%); color: #1f1c18; }
.tpl-magazine .bgfx { background: linear-gradient(120deg, transparent 55%, rgba(224,102,58,.10) 55%, rgba(224,102,58,.10) 62%, transparent 62%); }
.tpl-magazine .cp-title { color: #b5472a; }

/* ===== 鉴权页 ===== */
.auth-page { min-height: 100vh; background: linear-gradient(160deg, #0b1526 0%, #12233c 55%, #0a1220 100%); color: #fff; display: flex; flex-direction: column; }
.auth-head { padding: 56px 24px 20px; }
.auth-head .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 1px; }
.auth-head .logo .brand-mark { width: 34px; height: 34px; font-size: 15px; }
.auth-head h2 { font-size: 27px; margin-top: 26px; letter-spacing: 1px; }
.auth-head p { font-size: 13px; color: rgba(255,255,255,.62); margin-top: 8px; }
.auth-body { background: #fff; border-radius: 26px 26px 0 0; margin-top: auto; padding: 24px 20px calc(28px + env(safe-area-inset-bottom)); color: var(--text); flex: 1; }
.auth-tabs { display: flex; background: #f2f4f8; border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.auth-tabs button { flex: 1; height: 38px; border-radius: 9px; font-size: 14px; color: var(--sub); font-weight: 600; }
.auth-tabs button.active { background: #fff; color: var(--ink-2); box-shadow: 0 2px 8px rgba(16,26,44,.08); }

/* ===== 落地页 ===== */
.landing { background: #fff; }
.ld-hero { background: linear-gradient(160deg, #0b1526 0%, #142943 55%, #08101d 100%); color: #fff; padding: 26px 0 40px; position: relative; overflow: hidden; }
.ld-hero::after { content: ''; position: absolute; width: 420px; height: 420px; right: -160px; top: -180px; background: radial-gradient(circle, rgba(200,161,90,.22), transparent 68%); }
.ld-nav { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.ld-hero h1 { font-size: 30px; line-height: 1.35; margin-top: 44px; letter-spacing: 1px; position: relative; z-index: 2; }
.ld-hero h1 em { font-style: normal; color: var(--gold-2); }
.ld-hero .sub { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 14px; line-height: 1.8; position: relative; z-index: 2; }
.ld-hero .cta { display: flex; gap: 10px; margin-top: 24px; position: relative; z-index: 2; }
.ld-feats { padding: 30px 0 10px; }
.ld-feats h2 { font-size: 20px; text-align: center; }
.ld-feats .sub { text-align: center; color: var(--sub); font-size: 13px; margin-top: 6px; }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.feat .ic { font-size: 20px; }
.feat h3 { font-size: 14px; margin-top: 8px; }
.feat p { font-size: 12px; color: var(--sub); margin-top: 4px; line-height: 1.6; }
.ld-plans { padding: 26px 0; }
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; }
.plan.hot { border-color: var(--gold); box-shadow: 0 10px 30px rgba(200,161,90,.16); position: relative; }
.plan.hot::after { content: '推荐'; position: absolute; top: -10px; right: 12px; background: var(--gold); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 99px; }
.plan .n { font-size: 13px; color: var(--sub); }
.plan .p { font-size: 24px; font-weight: 700; margin-top: 6px; }
.plan .p small { font-size: 12px; font-weight: 400; color: var(--sub); }
.plan ul { margin: 10px 0 0; padding-left: 16px; font-size: 12px; color: var(--sub); line-height: 1.9; }
.ld-foot { padding: 24px 0 34px; text-align: center; font-size: 12px; color: #98a1af; border-top: 1px solid var(--line); margin-top: 10px; }

/* ===== 后台 ===== */
.admin-shell { display: flex; min-height: 100vh; }
.admin-side { width: 210px; background: var(--ink); color: #fff; padding: 20px 14px; flex-shrink: 0; }
.admin-side .logo { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 24px; letter-spacing: 1px; }
.admin-side button { display: block; width: 100%; text-align: left; color: rgba(255,255,255,.66); padding: 11px 12px; border-radius: 10px; font-size: 13.5px; margin-bottom: 4px; }
.admin-side button.active { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }
.admin-main { flex: 1; padding: 24px; min-width: 0; }
.admin-main h2 { font-size: 20px; margin-bottom: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: #fff; border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.stat .n { font-size: 26px; font-weight: 700; }
.stat .l { font-size: 12px; color: var(--sub); margin-top: 2px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-size: 13px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { background: #f7f9fc; font-weight: 600; color: var(--sub); font-size: 12px; white-space: nowrap; }
.table tr:last-child td { border-bottom: none; }
.code-text { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .5px; }
@media (max-width: 760px) {
  .admin-side { width: 100%; display: flex; overflow-x: auto; padding: 10px; }
  .admin-side .logo { display: none; }
  .admin-side button { width: auto; white-space: nowrap; margin-bottom: 0; }
  .admin-shell { flex-direction: column; }
}

/* ===== 应用内 ===== */
.app-body { padding-bottom: 84px; }
.sec-title { font-size: 13px; color: var(--sub); font-weight: 600; margin: 20px 0 10px; padding-left: 2px; letter-spacing: .5px; }
.mini-card { border-radius: 20px; padding: 20px; color: #fff; position: relative; overflow: hidden; background: linear-gradient(150deg, #12233c, #0d1a2e); }
.mini-card .bgfx { position: absolute; inset: 0; background: radial-gradient(80% 60% at 90% 0%, rgba(200,161,90,.25), transparent 60%); }
.mini-card .inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.mini-card .av { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.7); background: #24344f; }
.mini-card h3 { font-size: 19px; }
.mini-card p { font-size: 12px; opacity: .72; margin-top: 2px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: #fff; border-radius: 14px; padding: 14px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.tile .ic { font-size: 20px; }
.tile .t { font-size: 14px; font-weight: 600; }
.tile .d { font-size: 11.5px; color: var(--sub); }

.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tpl-item { border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: #fff; cursor: pointer; }
.tpl-item.sel { border-color: var(--gold); box-shadow: 0 6px 18px rgba(200,161,90,.25); }
.tpl-prev { height: 74px; display: flex; align-items: flex-end; padding: 8px; font-size: 11px; color: #fff; position: relative; }
.tpl-item .nm { font-size: 11.5px; text-align: center; padding: 6px 2px; color: var(--sub); }

.uploader { border: 1.5px dashed #cfd6e2; border-radius: 14px; padding: 22px; text-align: center; color: var(--sub); font-size: 13px; background: #fafbfd; }
.uploader:active { background: #f2f5fa; }
.asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.asset { position: relative; border-radius: 10px; overflow: hidden; background: #eef1f6; padding-top: 100%; }
.asset img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.asset .del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; display: grid; place-items: center; }
.asset .cat { position: absolute; bottom: 4px; left: 4px; font-size: 10px; color: #fff; background: rgba(0,0,0,.45); padding: 1px 5px; border-radius: 4px; }

.poster-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.poster-card { border-radius: 12px; overflow: hidden; background: #fff; border: 2px solid var(--line); position: relative; }
.poster-card.sel { border-color: var(--gold); }
.poster-card img { width: 100%; }
.poster-card .ops { display: flex; gap: 6px; padding: 8px; }
.poster-card .ops button { flex: 1; height: 30px; border-radius: 8px; font-size: 12px; background: #f2f4f8; color: var(--ink-2); }
.poster-card .ops button.sel { background: var(--gold); color: #fff; }

.seg { display: flex; background: #eef1f6; border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; height: 36px; border-radius: 9px; font-size: 13.5px; color: var(--sub); font-weight: 600; }
.seg button.active { background: #fff; color: var(--ink-2); box-shadow: 0 2px 8px rgba(16,26,44,.08); }

.crop-stage { position: relative; width: 100%; aspect-ratio: 1/1; background: #11161f; border-radius: 14px; overflow: hidden; touch-action: none; }
.crop-stage canvas { width: 100%; height: 100%; display: block; }
.crop-ring { position: absolute; inset: 8%; border: 2px dashed rgba(255,255,255,.65); border-radius: 50%; pointer-events: none; }
.crop-hint { font-size: 12px; color: var(--sub); text-align: center; margin: 10px 0; }
.range { width: 100%; }

.loading-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin: 0 2px; animation: blink 1.2s infinite; }
.loading-dot:nth-child(2) { animation-delay: .18s; }
.loading-dot:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25 } 40% { opacity: 1 } }

.skeleton { background: linear-gradient(90deg, #eef1f6 25%, #f7f9fc 37%, #eef1f6 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 10px; }
@keyframes sk { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } }

@media (min-width: 720px) {
  .feat-grid { grid-template-columns: repeat(4, 1fr); }
  .ld-hero { padding: 34px 0 56px; }
  .ld-hero h1 { font-size: 40px; }
}