/* ============================================================
   同款侦探社 · Style Sleuth
   深色渐变 / 玻璃拟态 / 细腻排版 / 微动效
   ============================================================ */

:root {
  --bg: #070a12;
  --bg-2: #0d1020;
  --card: rgba(255, 255, 255, .055);
  --card-2: rgba(255, 255, 255, .075);
  --stroke: rgba(255, 255, 255, .09);
  --stroke-strong: rgba(255, 255, 255, .18);
  --text: #eef2ff;
  --muted: #9aa2bb;
  --faint: #6b7391;
  --accent: #8b5cf6;
  --accent-2: #ec4899;
  --accent-3: #f59e0b;
  --good: #34d399;
  --danger: #f87171;
  --grad: linear-gradient(120deg, #a78bfa, #f472b6 55%, #fbbf24);
  --grad-solid: linear-gradient(135deg, #8b5cf6, #ec4899);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 44px -14px rgba(0, 0, 0, .6);
  --shadow-glow: 0 18px 50px -12px rgba(139, 92, 246, .55);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --nav-h: 66px;
  --tab-h: 62px;
  --maxw: 1180px;
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(139, 92, 246, .22), transparent 60%),
    radial-gradient(1000px 620px at -10% 20%, rgba(236, 72, 153, .16), transparent 55%),
    radial-gradient(900px 700px at 50% 110%, rgba(245, 158, 11, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
select, input, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.24); }

/* ---------- 背景光斑 ---------- */
.orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: float 18s ease-in-out infinite; }
.orb-1 { width: 420px; height: 420px; background: #7c3aed; top: -120px; left: -100px; }
.orb-2 { width: 360px; height: 360px; background: #db2777; top: 30%; right: -140px; animation-delay: -6s; }
.orb-3 { width: 300px; height: 300px; background: #d97706; bottom: -120px; left: 30%; animation-delay: -12s; opacity: .32; }
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  33% { transform: translateY(-40px) translateX(30px) scale(1.08); }
  66% { transform: translateY(20px) translateX(-30px) scale(.94); }
}

/* ---------- 布局 ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
main { padding-top: calc(var(--nav-h) + 18px); padding-bottom: 90px; }

/* ---------- 玻璃卡片 ---------- */
.glass {
  background: var(--card);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: var(--radius);
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--stroke);
  background: rgba(7, 10, 18, .6);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  height: var(--nav-h); display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 38px; height: 38px; display: grid; place-items: center;
  font-size: 20px; border-radius: 12px;
  background: var(--grad-solid);
  box-shadow: 0 6px 18px -6px rgba(139, 92, 246, .7);
}
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.brand-tag { font-size: 10px; color: var(--muted); letter-spacing: 2.5px; margin-left: 4px; align-self: flex-end; padding-bottom: 4px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--muted);
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.07); }
.nav-links a.active { color: #fff; background: var(--grad-solid); box-shadow: 0 6px 16px -6px rgba(236,72,153,.6); }
.btn-nav { margin-left: 6px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 10px 20px; font-size: 15px; font-weight: 600;
  color: #fff; background: var(--grad-solid);
  box-shadow: 0 10px 26px -10px rgba(139, 92, 246, .8);
  transition: transform .2s cubic-bezier(.2,.8,.3,1.2), box-shadow .25s, filter .25s, background .25s;
  user-select: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(139, 92, 246, .9); filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad-solid); }
.btn-ghost {
  background: rgba(255,255,255,.06); border-color: var(--stroke-strong);
  box-shadow: none; color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); box-shadow: 0 10px 26px -12px rgba(255,255,255,.25); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- 胶囊筛选 ---------- */
.chip-bar { display: flex; gap: 10px; flex-wrap: nowrap; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; }
.chip-bar::-webkit-scrollbar { display: none; }
.chip-bar.wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  flex: none; border: 1px solid var(--stroke-strong); background: rgba(255,255,255,.04);
  color: var(--muted); padding: 7px 15px; border-radius: 999px; font-size: 13.5px;
  transition: all .25s;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.active {
  color: #fff; border-color: transparent;
  background: var(--grad-solid);
  box-shadow: 0 6px 16px -6px rgba(236,72,153,.65);
}

/* ---------- 页头 ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 8px 0 22px; flex-wrap: wrap; }
.page-head-left { min-width: 0; }
.page-head h2, .section-head h2 { font-size: 24px; font-weight: 800; letter-spacing: .5px; }
.section-sub { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.section { margin-top: 46px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { font-size: 22px; }
.more { border: none; background: none; color: var(--accent-2); font-size: 14px; font-weight: 600; transition: transform .2s; }
.more:hover { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 58px 12px 30px; }
.hero-eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 3px; color: var(--muted);
  border: 1px solid var(--stroke); padding: 6px 16px; border-radius: 999px; margin-bottom: 22px;
  background: rgba(255,255,255,.03);
}
.hero-title { font-size: clamp(38px, 7vw, 62px); font-weight: 900; line-height: 1.14; letter-spacing: 1px; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(236,72,153,.35));
}
.hero-sub { color: var(--muted); font-size: clamp(15px, 2.4vw, 18px); margin-top: 18px; max-width: 560px; margin-inline: auto; }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 10px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.hstat {
  min-width: 138px; padding: 16px 20px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--stroke); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hstat b { display: block; font-size: 26px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hstat span { font-size: 12.5px; color: var(--muted); }

/* ---------- 网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.outfit-grid { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }

/* ---------- 穿搭卡片 ---------- */
.outfit-card {
  overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border: 1px solid var(--stroke); border-radius: var(--radius);
  transition: transform .28s cubic-bezier(.2,.8,.3,1.1), box-shadow .28s, border-color .28s;
  animation: cardIn .5s both;
}
.outfit-card:hover { transform: translateY(-5px); border-color: rgba(139,92,246,.55); box-shadow: var(--shadow-glow); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.outfit-photo {
  position: relative; height: 190px; display: grid; place-items: center; overflow: hidden;
}
.outfit-photo .ph-emoji { font-size: 64px; filter: drop-shadow(0 10px 22px rgba(0,0,0,.35)); transition: transform .4s; }
.outfit-card:hover .ph-emoji { transform: scale(1.12) rotate(-4deg); }
.outfit-photo .ph-celeb {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.38); border: 1px solid rgba(255,255,255,.18); color: #fff;
  padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.outfit-photo .ph-occ {
  position: absolute; right: 12px; top: 12px; font-size: 11.5px; letter-spacing: 1px;
  color: #fff; background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.16);
  padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ph-float {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(120px 90px at 20% 25%, rgba(255,255,255,.5), transparent 70%),
    radial-gradient(140px 100px at 80% 80%, rgba(0,0,0,.35), transparent 70%);
}

.outfit-body { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.outfit-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.outfit-title-row h4 { font-size: 16.5px; font-weight: 700; line-height: 1.4; }
.match-pill {
  flex: none; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  color: #08130e; background: linear-gradient(120deg, #6ee7b7, #34d399);
  box-shadow: 0 4px 14px -4px rgba(52,211,153,.6);
}
.outfit-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.outfit-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-mini { font-size: 11px; color: var(--muted); border: 1px solid var(--stroke); border-radius: 999px; padding: 2px 9px; }

.outfit-items { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.outfit-items li {
  display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 8px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06);
  padding: 7px 9px; border-radius: 11px; font-size: 12.5px;
  transition: background .2s, border-color .2s;
}
.outfit-items li:hover { background: rgba(255,255,255,.07); border-color: var(--stroke-strong); }
.i-type { font-size: 11px; color: var(--accent-2); border: 1px solid rgba(236,72,153,.4); border-radius: 7px; padding: 2px 6px; text-align: center; font-weight: 600; }
.i-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.i-price { color: var(--accent-3); font-weight: 700; font-size: 12.5px; }
.i-link {
  font-size: 11.5px; color: #fff; background: var(--grad-solid); border-radius: 999px;
  padding: 4px 10px; font-weight: 600; transition: transform .2s, filter .2s; white-space: nowrap;
}
.i-link:hover { filter: brightness(1.12); transform: scale(1.05); }
.i-link.alt { background: rgba(255,255,255,.1); border: 1px solid var(--stroke-strong); }

.outfit-actions { display: flex; gap: 10px; margin-top: 2px; }
.act {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255,255,255,.05); border: 1px solid var(--stroke); border-radius: 11px;
  padding: 8px; font-size: 13px; color: var(--muted); transition: all .25s;
}
.act:hover { color: var(--text); border-color: var(--accent); }
.act.liked { color: var(--danger); border-color: rgba(248,113,113,.55); background: rgba(248,113,113,.08); }
.act.faved { color: var(--accent-3); border-color: rgba(245,158,11,.55); background: rgba(245,158,11,.08); }
.act .heart { display: inline-block; transition: transform .25s; }
.act.liked .heart { animation: pop .4s cubic-bezier(.2,.8,.3,1.4); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.45) rotate(-8deg); } 100% { transform: scale(1); } }

/* ---------- 热门识别帖卡片 ---------- */
.hot-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--stroke); cursor: pointer;
  transition: transform .28s, box-shadow .28s, border-color .28s;
  animation: cardIn .5s both;
}
.hot-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-glow); border-color: rgba(236,72,153,.5); }
.hot-photo { position: relative; height: 150px; display: grid; place-items: center; }
.hot-photo .ph-emoji { font-size: 50px; }
.hot-body { padding: 13px 15px; display: flex; align-items: center; gap: 10px; }
.hot-body .hot-info { flex: 1; min-width: 0; }
.hot-body .hot-t { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-body .hot-s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.hot-likes { font-size: 12.5px; color: var(--accent-2); font-weight: 700; white-space: nowrap; }

/* ---------- 榜单横条 ---------- */
.rank-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 260px; gap: 16px; overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: thin; }
.rank-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border-radius: var(--radius); cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid var(--stroke);
  transition: transform .28s, box-shadow .28s, border-color .28s;
}
.rank-card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.55); box-shadow: var(--shadow-glow); }
.rank-no {
  position: absolute; top: 10px; right: 12px; font-size: 30px; font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.25);
}
.rank-card:nth-child(1) .rank-no { -webkit-text-stroke: 1px #fbbf24; color: rgba(251,191,36,.16); }
.rank-card:nth-child(2) .rank-no { -webkit-text-stroke: 1px #cbd5e1; color: rgba(203,213,225,.14); }
.rank-card:nth-child(3) .rank-no { -webkit-text-stroke: 1px #f59e0b; color: rgba(245,158,11,.14); }
.rank-top { display: flex; align-items: center; gap: 12px; }
.rank-avatar {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.22), 0 8px 18px -8px rgba(0,0,0,.6);
}
.rank-info b { display: block; font-size: 16px; }
.rank-info span { font-size: 12px; color: var(--muted); }
.rank-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad-solid); }
.rank-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.rank-hot { color: var(--accent-2); font-weight: 700; }

/* ---------- 识别页 ---------- */
.identify-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; margin-top: 26px; }
.upload-card { position: relative; padding: 26px; display: grid; place-items: center; min-height: 360px; transition: border-color .25s, background .25s; }
.upload-card.drag { border-color: var(--accent); background: rgba(139,92,246,.12); box-shadow: 0 0 0 4px rgba(139,92,246,.18); }
.upload-inner { text-align: center; }
.upload-icon { font-size: 58px; animation: float 6s ease-in-out infinite; }
.upload-t { font-size: 17px; font-weight: 700; margin-top: 14px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.upload-btns { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.preview { position: relative; width: 100%; max-width: 460px; }
.preview img { width: 100%; border-radius: var(--radius-sm); max-height: 420px; object-fit: contain; background: rgba(0,0,0,.3); }
.preview-del { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; backdrop-filter: blur(6px); }

.match-card { padding: 22px; display: flex; flex-direction: column; gap: 16px; align-self: start; }
.match-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.match-head h3 { font-size: 18px; font-weight: 800; }
.model-status { font-size: 12px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--stroke-strong); color: var(--muted); }
.model-status.loading { color: var(--accent-3); border-color: rgba(245,158,11,.5); }
.model-status.ok { color: var(--good); border-color: rgba(52,211,153,.5); }
.model-status.err { color: var(--danger); border-color: rgba(248,113,113,.5); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
select.input, select {
  background: rgba(255,255,255,.06); border: 1px solid var(--stroke-strong); color: var(--text);
  border-radius: 12px; padding: 11px 14px; font-size: 14px; outline: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa2bb' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  transition: border-color .2s;
}
select:focus { border-color: var(--accent); }
select option { background: #12141f; color: var(--text); }
.tiny { font-size: 11.5px; color: var(--faint); line-height: 1.7; }

/* 识别结果 */
.results-section { margin-top: 40px; }
.result-meta { font-size: 13px; color: var(--muted); }
.match-steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.mstep {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px;
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--stroke); background: rgba(255,255,255,.04);
  color: var(--muted);
}
.mstep .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.mstep.done { border-color: rgba(52,211,153,.45); color: var(--text); }
.mstep.done .dot { background: var(--good); box-shadow: 0 0 10px var(--good); }
.mstep .tag-mini { margin: 0; }
.mstep:hover .tag-mini { color: var(--text); }

/* ---------- 社区 ---------- */
.post-list { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.post-card {
  padding: 18px 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border: 1px solid var(--stroke);
  transition: transform .25s, border-color .25s, box-shadow .25s;
  animation: cardIn .45s both; cursor: pointer;
}
.post-card:hover { transform: translateY(-3px); border-color: rgba(139,92,246,.5); box-shadow: var(--shadow-glow); }
.post-head { display: flex; align-items: center; gap: 12px; }
.p-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; background: rgba(255,255,255,.08); border: 1px solid var(--stroke-strong); }
.p-author { font-size: 14px; font-weight: 700; }
.p-time { font-size: 12px; color: var(--faint); }
.p-badge { margin-left: auto; font-size: 11px; color: var(--good); border: 1px solid rgba(52,211,153,.5); padding: 3px 9px; border-radius: 999px; }
.p-badge.unsolved { color: var(--accent-3); border-color: rgba(245,158,11,.5); }
.post-title { font-size: 16px; font-weight: 700; margin-top: 12px; line-height: 1.5; }
.post-desc { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.post-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.post-thumbs img { width: 118px; height: 118px; object-fit: cover; border-radius: 12px; border: 1px solid var(--stroke-strong); }
.post-tags { margin-top: 12px; }
.post-foot { display: flex; gap: 8px; margin-top: 14px; align-items: center; }
.pstat { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--stroke); background: rgba(255,255,255,.03); }
.pstat.on { color: var(--danger); border-color: rgba(248,113,113,.5); }
.pstat.solve { margin-left: auto; }
.pstat.solve:hover { color: var(--good); border-color: rgba(52,211,153,.5); }

/* ---------- 榜单筛选 ---------- */
.filter-panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 18px; margin-top: 8px; }
.count-line { font-size: 13px; color: var(--muted); margin: 18px 2px 16px; }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(3, 5, 12, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.modal.open { display: flex; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  position: relative; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto;
  padding: 26px; animation: modalUp .3s cubic-bezier(.2,.8,.3,1.15);
}
.modal-wide { max-width: 620px; }
@keyframes modalUp { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--stroke-strong); background: rgba(255,255,255,.06); color: var(--muted);
  font-size: 14px; transition: all .2s; z-index: 2;
}
.modal-close:hover { color: #fff; background: rgba(255,255,255,.14); transform: rotate(90deg); }
.modal-title { font-size: 19px; font-weight: 800; margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin: 14px 0 7px; }
.input {
  width: 100%; background: rgba(255,255,255,.05); border: 1px solid var(--stroke-strong);
  color: var(--text); border-radius: 12px; padding: 11px 14px; font-size: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,92,246,.16); }
.input::placeholder { color: var(--faint); }
textarea.input { resize: vertical; }
.tag-editor { display: flex; flex-direction: column; gap: 10px; }
.post-upload { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.post-thumbs { display: flex; gap: 10px; }
.post-thumbs .thumb { position: relative; }
.post-thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; border: 1px solid var(--stroke-strong); }
.post-thumbs .x { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; border: none; background: var(--danger); color: #fff; font-size: 11px; }

/* 详情弹窗内容 */
.detail-post .d-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 23px; background: rgba(255,255,255,.08); border: 1px solid var(--stroke-strong); }
.detail-post .d-title { font-size: 19px; font-weight: 800; line-height: 1.5; margin-top: 14px; }
.detail-post .d-desc { color: var(--muted); font-size: 14px; margin-top: 8px; }
.detail-post .d-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.detail-post .d-thumbs img { width: 150px; border-radius: 12px; }
.d-replies { margin-top: 22px; }
.d-replies h4 { font-size: 15px; margin-bottom: 12px; color: var(--text); }
.reply {
  display: flex; gap: 10px; padding: 14px 0; border-top: 1px solid var(--stroke);
  animation: cardIn .35s both;
}
.reply .r-avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 17px; background: rgba(255,255,255,.07); }
.reply .r-body { flex: 1; min-width: 0; }
.reply .r-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.reply .r-author { font-weight: 700; color: var(--text); font-size: 13px; }
.reply .r-time { color: var(--faint); }
.reply .r-text { font-size: 13.5px; margin-top: 5px; word-break: break-word; }
.reply .r-text a { color: var(--accent-2); font-weight: 600; text-decoration: underline; }
.r-linkchip {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 12.5px;
  color: #fff; background: var(--grad-solid); padding: 5px 12px; border-radius: 999px; font-weight: 600;
}
.r-linkchip:hover { filter: brightness(1.12); }
.reply-form { display: flex; gap: 10px; margin-top: 16px; }
.reply-form .input { flex: 1; }
.d-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + 24px); transform: translateX(-50%) translateY(20px);
  background: rgba(20, 24, 40, .92); color: var(--text); border: 1px solid var(--stroke-strong);
  padding: 12px 20px; border-radius: 999px; font-size: 14px; z-index: 120;
  opacity: 0; pointer-events: none; transition: all .35s cubic-bezier(.2,.8,.3,1.1);
  box-shadow: var(--shadow); max-width: 90vw; text-align: center;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: rgba(52,211,153,.6); }
.toast.warn { border-color: rgba(245,158,11,.6); }
.toast.err { border-color: rgba(248,113,113,.6); }

/* ---------- 回到顶部 ---------- */
.backtop {
  position: fixed; right: 22px; bottom: calc(var(--tab-h) + 22px); z-index: 60;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--stroke-strong);
  background: rgba(20,24,40,.85); color: var(--text); font-size: 18px;
  opacity: 0; pointer-events: none; transform: translateY(14px); transition: all .3s;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.backtop.show { opacity: 1; pointer-events: auto; transform: none; }
.backtop:hover { border-color: var(--accent); background: rgba(139,92,246,.25); }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 60px 20px; }
.empty-ic { font-size: 56px; opacity: .8; }
.empty-t { font-size: 18px; font-weight: 700; margin-top: 14px; }
.empty-s { color: var(--muted); font-size: 13.5px; margin-top: 6px; max-width: 380px; margin-inline: auto; }
.empty .btn { margin-top: 20px; }

/* ---------- 骨架屏 ---------- */
.skeleton { border-radius: var(--radius); border: 1px solid var(--stroke); background: rgba(255,255,255,.04); overflow: hidden; }
.sk-ph { height: 190px; background: linear-gradient(100deg, rgba(255,255,255,.04) 40%, rgba(255,255,255,.10) 50%, rgba(255,255,255,.04) 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.sk-line { height: 14px; margin: 12px 16px 0; border-radius: 8px; background: linear-gradient(100deg, rgba(255,255,255,.04) 40%, rgba(255,255,255,.10) 50%, rgba(255,255,255,.04) 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.sk-line.short { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--stroke); margin-top: 40px; background: rgba(7,10,18,.6); backdrop-filter: blur(14px); }
.footer-inner { padding: 34px 20px 120px; text-align: center; }
.footer-brand { font-size: 17px; font-weight: 800; }
.footer-brand span { font-size: 11px; color: var(--muted); letter-spacing: 2px; margin-left: 8px; }
.footer p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.footer .footer-fine { font-size: 11.5px; color: var(--faint); }

/* ---------- 移动端底部标签栏 ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  display: none; height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(10, 13, 24, .88); border-top: 1px solid var(--stroke);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 11px; color: var(--muted); transition: color .2s; position: relative;
}
.tab .tab-ic { font-size: 21px; transition: transform .25s; }
.tab.active { color: var(--text); }
.tab.active .tab-ic { transform: translateY(-1px) scale(1.12); }
.tab-main .tab-ic {
  width: 48px; height: 48px; margin-top: -22px; display: grid; place-items: center;
  border-radius: 50%; background: var(--grad-solid); font-size: 22px;
  box-shadow: 0 10px 24px -6px rgba(236,72,153,.7); border: 3px solid #0b0e1a;
}

/* ---------- 视图切换动画 ---------- */
.view { display: none; }
.view.active { display: block; animation: viewIn .45s cubic-bezier(.2,.8,.3,1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .identify-wrap { grid-template-columns: 1fr; }
  .filter-panel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-links, .btn-nav { display: none; }
  .tabbar { display: flex; }
  main { padding-top: calc(var(--nav-h) + 6px); padding-bottom: calc(var(--tab-h) + 40px); }
  .hero { padding: 36px 8px 18px; }
  .hero-stats { gap: 8px; }
  .hstat { min-width: 104px; padding: 13px 14px; }
  .grid, .outfit-grid { grid-template-columns: 1fr; }
  .rank-strip { grid-auto-columns: 230px; }
  .filter-panel { grid-template-columns: 1fr 1fr; padding: 14px; }
  .footer-inner { padding-bottom: calc(var(--tab-h) + 30px); }
  .backtop { right: 14px; bottom: calc(var(--tab-h) + 14px); }
  .toast { bottom: calc(var(--tab-h) + 16px); }
  .post-list { gap: 12px; }
  .upload-card { min-height: 300px; padding: 18px; }
  .reply-form { flex-direction: column; }
  .d-thumbs img { width: 100px; }
  .outfit-items li { grid-template-columns: 40px 1fr auto; }
  .i-price { display: none; }
}
@media (max-width: 430px) {
  .filter-panel { grid-template-columns: 1fr; }
  .page-head .btn { width: 100%; }
  .outfit-items li { grid-template-columns: 40px 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
