/* 引流站样式：手机优先，暗色。不引任何外部资源（CF 后面首屏越少请求越好） */
:root {
  --bg: #0d0d12;
  --surface: #17171f;
  --surface-2: #1f1f2a;
  --line: #2a2a38;
  --text: #f2f2f7;
  --muted: #9a9aad;
  --brand: #ff4d7d;
  --brand-2: #8b5cf6;
  --ok: #34d399;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
/* display:block 会把 hidden 顶掉，补一条 */
[hidden] { display: none !important; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

header.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(13, 13, 18, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo { font-weight: 800; letter-spacing: .5px; }
.logo span { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 14px; font-size: 13px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
h1 { font-size: 22px; margin: 18px 0 6px; }
h2 { font-size: 17px; margin: 22px 0 10px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.tile { position: relative; border-radius: 12px; overflow: hidden; background: var(--surface-2); aspect-ratio: 2/3; cursor: pointer; border: 2px solid transparent; }
.tile.active { border-color: var(--brand); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .name { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 6px; font-size: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.tile .lock { position: absolute; top: 6px; right: 6px; font-size: 11px; padding: 2px 7px; border-radius: 999px;
  background: rgba(0,0,0,.6); color: #ffd36e; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; background: rgba(17,17,24,.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.tabbar a { flex: 1; text-align: center; padding: 10px 0 14px; font-size: 11px; color: var(--muted); }
.tabbar a.on { color: var(--text); }
.tabbar .ic { font-size: 19px; display: block; line-height: 1.3; }

.drop { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 26px 16px; text-align: center; background: var(--surface); }
.drop.has { padding: 8px; border-style: solid; }
.drop img { border-radius: 10px; margin: 0 auto; max-height: 300px; width: auto; }

.mask { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 480px; background: var(--surface); border-radius: 18px 18px 0 0; padding: 20px 18px 28px; }
@media (min-width: 560px) { .mask { align-items: center; } .sheet { border-radius: 18px; } }
.sheet h3 { margin: 0 0 6px; font-size: 18px; }
input[type=text], input[type=password] {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font: inherit; margin-top: 8px;
}
.row { display: flex; gap: 10px; align-items: center; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: 12px; color: var(--muted); }
.ok { color: var(--ok); }
.warn { color: #ffd36e; }
.err { color: #ff6b6b; }
.spin { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%); z-index: 60;
  background: rgba(0,0,0,.86); padding: 10px 16px; border-radius: 999px; font-size: 14px; }

/* ─────────────────────────────────────────────────────────────
   2026-10-15 小智：「前端设计很丑」。原来整站是一套手机版式直接拉到桌面上 ——
   720px 窄栏摆在 1280 屏中间、两边大片空黑，手机底栏在桌面也浮着。
   这一段只做「加法」：上面那套手机优先的基础样式一行没动（换装/表情包/我的三页照旧），
   这里补桌面断点和一层质感。
   ───────────────────────────────────────────────────────────── */

/* 背景加一层很淡的光晕，纯黑太平 */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: 60vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 18% 0%, rgba(255, 77, 125, .13), transparent 70%),
    radial-gradient(50% 45% at 85% 5%, rgba(139, 92, 246, .13), transparent 70%);
}

/* 顶栏：桌面显示导航，手机只留 logo + 右侧状态（底栏已经有导航了） */
.topnav { display: none; }
.topnav a { padding: 6px 12px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.topnav a:hover { color: var(--text); background: var(--surface-2); }
.topnav a.on { color: var(--text); background: var(--surface-2); }

/* 区块标题：小标签 + 大标题 + 说明，拉开呼吸 */
.sec { margin: 40px 0 0; }
.sec > .kicker { font-size: 12px; letter-spacing: 2px; color: var(--brand); font-weight: 700; }
.sec > h2 { font-size: 20px; margin: 6px 0 4px; }

/* 首屏 */
.hero { padding: 26px 0 6px; }
.hero h1 { font-size: clamp(26px, 7vw, 40px); line-height: 1.22; margin: 10px 0 10px; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 15px; color: var(--muted); margin: 0 0 18px; max-width: 46ch; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .trust { display: flex; gap: 10px 18px; flex-wrap: wrap; margin-top: 20px; font-size: 13px; color: var(--muted); }
.hero .trust b { color: var(--text); font-weight: 600; }

/* 演示卡：首屏右边那块 */
.demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; }
.demo-card img { border-radius: 12px; width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--surface-2); }
/* 桌面上这张竖图别顶太高，不然首屏左边文字被衬得很空 */
@media (min-width: 900px) {
  .demo-card { max-width: 380px; margin-left: auto; }
  .demo-card img { aspect-ratio: 4/5; max-height: 400px; }
}
.demo-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.demo-chips .btn.sm { padding: 6px 12px; font-size: 12.5px; }

/* 卡片悬停：图片轻微放大 + 卡片浮起 */
.tile { transition: transform .18s ease, border-color .18s ease; }
.tile img { transition: transform .35s ease; }
@media (hover: hover) {
  .tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
  .tile:hover img { transform: scale(1.05); }
}
.tile .name { font-weight: 600; letter-spacing: .2px; }
.tile .lock { background: rgba(0,0,0,.72); border: 1px solid rgba(255,211,110,.35); font-weight: 600; }

@media (min-width: 900px) {
  /* 桌面不需要手机底栏：顶栏有导航了 */
  body { padding-bottom: 40px; }
  .tabbar { display: none; }
  .topnav { display: flex; align-items: center; gap: 4px; margin-left: 18px; }

  header.top { padding: 14px 28px; }
  .logo { font-size: 17px; }

  /* 首页用宽栏；换装/表情包/我的那种表单页还是窄栏，宽了反而难用 */
  .wrap.home { max-width: 1140px; padding: 0 28px; }

  .hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 40px; align-items: center; padding: 56px 0 18px; }
  .hero .lead { font-size: 16.5px; }
  .sec { margin: 56px 0 0; }
  .sec > h2 { font-size: 24px; }
  .wrap.home .grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
}
@media (min-width: 1240px) {
  .wrap.home .grid { grid-template-columns: repeat(6, 1fr); }
}

/* 上传框（10-15 小智：桌面看着「怪」）：原来边框 #2a2a38、底色 #17171f，和页面底色几乎一样，
   在手机上框小、文字撑满还看得出来，桌面上就是一大片空黑里飘着几行字，不像能点的东西。
   加亮边框 + 稍亮的底 + 悬停反馈，并给个最小高度，让它一眼就是个「投放区」。 */
.drop {
  border-width: 2px;
  border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
@media (hover: hover) {
  .drop:hover { border-color: var(--brand); background: linear-gradient(180deg, rgba(255,77,125,.10), rgba(255,77,125,.03)); }
}
.drop.has { min-height: 0; display: block; background: var(--surface); border-color: var(--line); }
/* 没图时给一个「去换装生成一张」的出口（小智 10-15：if no image have a button to redirect them） */
.drop-cta { margin-top: 12px; }
