/* =========================================================
   糖心Vlog · TANGXIN VLOG — 全站共享样式
   设计基调：暖白底 / 糖果珊瑚红 / 图片优先的不等高瀑布流
   ========================================================= */

:root {
  --bg: #fff9f7;
  --surface: #ffffff;
  --surface-2: #fff3f2;
  --surface-3: #fff8f2;
  --ink: #251c22;
  --ink-2: #4e4149;
  --muted: #8a7b83;
  --line: #f1e5e4;
  --line-strong: #e8d8d7;
  --brand: #ff5b7d;
  --brand-dark: #e63f66;
  --brand-soft: #ffe9ee;
  --mint: #21b99a;
  --amber: #ffb340;
  --shadow-sm: 0 4px 16px rgba(88, 44, 60, .055);
  --shadow: 0 14px 36px rgba(88, 44, 60, .09);
  --shadow-lg: 0 28px 70px rgba(88, 44, 60, .14);
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --max: 1320px;
  --nav-h: 72px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 520px;
  background:
    radial-gradient(620px 300px at 8% -10%, rgba(255, 128, 156, .17), transparent 70%),
    radial-gradient(520px 280px at 92% 0%, rgba(255, 190, 120, .14), transparent 72%);
  pointer-events: none;
  z-index: -1;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible {
  outline: 3px solid rgba(255, 91, 125, .45);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--brand-soft); color: var(--brand-dark); }

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 249, 247, .86);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(238, 220, 219, .8);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #ff7a96, #ff4d72);
  box-shadow: 0 8px 18px rgba(255, 78, 112, .3);
}

.brand-mark svg { width: 21px; height: 21px; }

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.4px;
  line-height: 1.1;
}

.brand-name small {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.1px;
  color: var(--muted);
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}

.main-nav a {
  position: relative;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color .2s, background .2s;
}

.main-nav a:hover { color: var(--brand-dark); background: var(--brand-soft); }

.main-nav a.active {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 6px 16px rgba(255, 91, 125, .28);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .2s, border-color .2s, color .2s;
}

.icon-btn:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand-dark); }
.icon-btn svg { width: 18px; height: 18px; }

.menu-toggle { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}

.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff7191, #ff4d72);
  box-shadow: 0 10px 24px rgba(255, 77, 114, .28);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(255, 77, 114, .38); }

.btn-dark { color: #fff; background: var(--ink); box-shadow: 0 10px 24px rgba(37, 28, 34, .18); }
.btn-soft { color: var(--brand-dark); background: var(--brand-soft); }
.btn-soft:hover { background: #ffdbe4; }
.btn-outline { color: var(--ink); background: #fff; border: 1px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero { padding: 70px 0 46px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  box-shadow: var(--shadow-sm);
}

.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 91, 125, .16);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.12;
  letter-spacing: -2.4px;
  font-weight: 900;
}

.hero h1 .accent {
  background: linear-gradient(100deg, #ff5b7d, #ff9a6b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 520px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink-2);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-stats strong {
  display: block;
  font-size: 24px;
  letter-spacing: -.8px;
  font-weight: 900;
}

.hero-stats span { font-size: 12px; color: var(--muted); }

/* Hero 图片拼贴（小型瀑布流） */

.hero-collage {
  position: relative;
  min-height: 500px;
  columns: 3;
  column-gap: 14px;
}

.hero-collage figure {
  break-inside: avoid;
  margin: 0 0 14px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f4e6e5;
}

.hero-collage img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hero-collage figure:hover img { transform: scale(1.06); }
.hero-collage figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 26px 12px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(transparent, rgba(28, 16, 22, .72));
}

.hero-collage .float-badge {
  position: absolute;
  z-index: 2;
  right: -10px;
  top: 38%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  font-weight: 700;
}

.float-badge .pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(255, 91, 125, .16);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 12px rgba(255, 91, 125, 0); }
}

/* ---------- Sections ---------- */

.section { padding: 62px 0; }
.section-sm { padding: 40px 0; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -1.1px;
  font-weight: 900;
  line-height: 1.25;
  margin-top: 8px;
}

.section-head p { margin-top: 8px; color: var(--muted); font-size: 14px; }

.section-head .more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand-dark); font-size: 14px; font-weight: 700;
  flex: none;
}
.section-head .more:hover { text-decoration: underline; }
.section-head .more svg { width: 15px; height: 15px; }

.tagline {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

/* ---------- 分类筛选条 ---------- */

.filter-bar {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  padding: 9px 17px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  transition: all .2s;
}
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

/* ---------- Masonry 瀑布流 ---------- */

.masonry {
  columns: 4;
  column-gap: 18px;
}

.masonry-item {
  break-inside: avoid;
  margin: 0 0 18px;
  display: block;
  animation: rise .5s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.card {
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, border-color .28s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #ffd3dd;
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fbe9e8, #f7f0e8);
}

.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}

.card:hover .card-media img { transform: scale(1.07); }

.card-media::after {
  content: "";
  position: absolute; inset: 42% 0 0 0;
  background: linear-gradient(transparent, rgba(20, 12, 18, .38));
  opacity: 0;
  transition: opacity .28s;
}
.card:hover .card-media::after { opacity: 1; }

.badge {
  position: absolute;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: rgba(25, 16, 22, .62);
  backdrop-filter: blur(6px);
  letter-spacing: .3px;
}

.badge.tr { top: 10px; right: 10px; }
.badge.tl { top: 10px; left: 10px; }

.badge.live {
  background: linear-gradient(135deg, #ff5b7d, #ff3d64);
  display: inline-flex; align-items: center; gap: 6px;
}
.badge.live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; animation: pulse 1.6s infinite;
}

.play-hint {
  position: absolute;
  z-index: 2;
  left: 50%; top: 50%;
  width: 52px; height: 52px;
  transform: translate(-50%, -50%) scale(.8);
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .93);
  color: var(--brand-dark);
  opacity: 0;
  transition: all .28s;
}
.card:hover .play-hint { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.play-hint svg { width: 20px; height: 20px; margin-left: 3px; }

.card-body { padding: 13px 14px 14px; }

.card-title {
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 42px;
}

.card:hover .card-title { color: var(--brand-dark); }

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
}

.avatar {
  width: 26px; height: 26px;
  flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  background: linear-gradient(140deg, #ff9db3, #ff5b7d);
}

.avatar.mint { background: linear-gradient(140deg, #6fe0c6, #21b99a); }
.avatar.amber { background: linear-gradient(140deg, #ffd08a, #f5a623); }
.avatar.violet { background: linear-gradient(140deg, #b9a8ff, #8168e8); }
.avatar.blue { background: linear-gradient(140deg, #93c9ff, #4c8ee8); }

.card-author {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-stats {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
  font-size: 11px;
  color: var(--muted);
  flex: none;
}

.card-stats span { display: inline-flex; align-items: center; gap: 3px; }
.card-stats svg { width: 13px; height: 13px; }

.like-btn { transition: color .2s, transform .2s; }
.like-btn:hover { color: var(--brand); transform: scale(1.12); }
.like-btn.is-liked { color: var(--brand); }
.like-btn.is-liked svg { fill: currentColor; }

.hidden { display: none !important; }

.load-more-wrap { display: flex; justify-content: center; margin-top: 32px; }

/* ---------- 创作者 ---------- */

.creator-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.creator-card {
  padding: 22px 18px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.creator-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.creator-card .avatar {
  width: 64px; height: 64px;
  margin: 0 auto 12px;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(255, 91, 125, .22);
}

.creator-card h3 { font-size: 15px; font-weight: 800; }
.creator-card p { font-size: 12px; color: var(--muted); margin: 4px 0 14px; }
.creator-card .btn { min-height: 34px; font-size: 12px; padding: 6px 16px; }

/* ---------- 特色/功能卡 ---------- */

.feature-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(115deg, #fff0f3 0%, #fff7ec 55%, #f0fbf7 100%);
  border: 1px solid #ffe6e9;
  padding: 48px;
}

.feature-band::after {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(255, 120, 150, .22), transparent 70%);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.feature-band h2 {
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -1.2px;
  line-height: 1.28;
  font-weight: 900;
  margin: 14px 0;
}

.feature-band p { color: var(--ink-2); font-size: 15px; line-height: 1.9; }

.feature-list { margin-top: 24px; display: grid; gap: 12px; }

.feature-list li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 14px; font-weight: 600;
}

.feature-list .tick {
  width: 22px; height: 22px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--brand);
  box-shadow: var(--shadow-sm);
  font-size: 12px; font-weight: 900;
}

.ai-preview {
  background: #fff;
  border: 1px solid #ffe1e7;
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.4deg);
}

.ai-preview .bar {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 4px 12px;
}
.ai-preview .bar i { width: 8px; height: 8px; border-radius: 50%; background: #ffc4d0; }
.ai-preview .bar span { margin-left: auto; font-size: 10px; color: var(--muted); }

.ai-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ai-strip div {
  border-radius: 12px;
  height: 112px;
  background-size: cover;
  background-position: center;
}
.ai-strip div:nth-child(1) { height: 148px; }
.ai-strip div:nth-child(3) { height: 130px; }

.ai-input {
  margin-top: 12px;
  display: flex; align-items: center; gap: 8px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 11px;
  color: var(--muted);
}
.ai-input b { color: var(--brand-dark); }

/* ---------- 步骤 ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  padding: 28px 24px;
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 42px; height: 42px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 18px;
}

.step h3 { font-size: 17px; font-weight: 800; }
.step p { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.8; }
.step a { display: inline-block; margin-top: 14px; color: var(--brand-dark); font-size: 13px; font-weight: 700; }

/* ---------- 内页头部 ---------- */

.page-hero {
  position: relative;
  padding: 54px 0 30px;
}

.page-hero h1 {
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 900;
  letter-spacing: -1.8px;
  line-height: 1.16;
  margin: 14px 0 12px;
}

.page-hero p { color: var(--ink-2); font-size: 16px; max-width: 640px; }

.page-hero .crumb {
  font-size: 12px; color: var(--muted); font-weight: 600;
}
.page-hero .crumb a:hover { color: var(--brand-dark); }

/* 搜索框 */

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  max-width: 480px;
  width: 100%;
}
.search-box svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search-box input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-size: 14px; color: var(--ink);
}
.search-box input::placeholder { color: #b3a5ab; }
.search-box .btn { flex: none; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.result-count { font-size: 13px; color: var(--muted); }
.result-count b { color: var(--ink); font-weight: 800; }

.select-wrap {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
}
.select-wrap select {
  padding: 8px 28px 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  outline: 0;
}

/* ---------- 直播页 ---------- */

.live-hero {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: end;
  padding: 36px;
  background:
    linear-gradient(90deg, rgba(22, 12, 18, .84), rgba(22, 12, 18, .12) 72%),
    url("https://picsum.photos/seed/tangxin-live-hero/1400/700") center/cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.live-hero h2 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 900; letter-spacing: -1.2px; margin: 12px 0; }
.live-hero p { max-width: 480px; color: rgba(255,255,255,.85); font-size: 14px; }
.live-hero .btn { margin-top: 22px; }

.live-card .card-media::after { opacity: .5; }
.live-now {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 800; color: var(--brand-dark);
}
.live-now i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: pulse 1.6s infinite; }

/* ---------- 表单（发布页 / AI） ---------- */

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.panel-head .step-num { margin: 0; }
.panel-head h2 { font-size: 21px; font-weight: 900; letter-spacing: -.5px; }
.panel-head p { font-size: 12px; color: var(--muted); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}
.field label span { color: var(--brand); }

.field input[type=text],
.field input[type=url],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fffdfc;
  outline: 0;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 91, 125, .11);
}
.field textarea { min-height: 118px; resize: vertical; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #b6a8ae; }
.field-hint { font-size: 11px; color: var(--muted); margin-top: 6px; }

.dropzone {
  border: 2px dashed #ffd0da;
  border-radius: 18px;
  background: #fff8f9;
  min-height: 210px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 26px;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-2px);
}
.dropzone svg { width: 40px; height: 40px; color: var(--brand); margin: 0 auto 10px; }
.dropzone h3 { font-size: 15px; font-weight: 800; }
.dropzone p { font-size: 12px; color: var(--muted); margin-top: 6px; }
.dropzone .btn { margin-top: 14px; pointer-events: none; }
.dropzone.has-file { border-style: solid; background: #fff; }
.dropzone .preview-file {
  display: none;
  align-items: center; gap: 14px;
  text-align: left;
}
.dropzone.has-file .dropzone-idle { display: none; }
.dropzone.has-file .preview-file { display: flex; }
.preview-file img {
  width: 96px; height: 72px; object-fit: cover;
  border-radius: 10px; background: #eee;
}
.preview-file strong { display: block; font-size: 13px; word-break: break-all; }
.preview-file span { font-size: 11px; color: var(--muted); }

.form-actions {
  display: flex; align-items: center; gap: 12px;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px dashed var(--line);
  flex-wrap: wrap;
}
.form-actions .note { font-size: 12px; color: var(--muted); margin-left: auto; }

/* AI 工作台 */

.ai-workbench {
  border-radius: var(--r-lg);
  padding: 34px;
  background: linear-gradient(135deg, #2a1d25, #43242f);
  color: #fff;
}
.ai-workbench h2 { font-size: 26px; font-weight: 900; margin: 12px 0 8px; letter-spacing: -.7px; }
.ai-workbench > p { color: rgba(255,255,255,.7); font-size: 14px; max-width: 620px; }
.ai-workbench .field label { color: rgba(255,255,255,.9); }
.ai-workbench input, .ai-workbench select {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}
.ai-workbench input::placeholder { color: rgba(255,255,255,.42); }
.ai-workbench select option { color: var(--ink); }

.ai-result {
  margin-top: 22px;
  display: none;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
}
.ai-result.show { display: grid; animation: rise .4s both; }
.ai-result figure { margin: 0; }
.ai-result .shot {
  height: 120px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,.15);
}
.ai-result figcaption { font-size: 11px; color: rgba(255,255,255,.65); margin-top: 7px; }

/* ---------- 下载页 ---------- */

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.platform-list { display: grid; gap: 12px; margin-top: 26px; }

.platform-btn {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line-strong);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
}
.platform-btn:hover { transform: translateX(5px); border-color: var(--brand); box-shadow: var(--shadow); }
.platform-btn .p-ico {
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
}
.platform-btn .p-ico svg { width: 21px; height: 21px; }
.platform-btn strong { display: block; font-size: 14px; font-weight: 800; }
.platform-btn small { font-size: 11px; color: var(--muted); }
.platform-btn .arrow { margin-left: auto; color: var(--muted); }

.phone {
  position: relative;
  width: 288px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 44px;
  background: linear-gradient(160deg, #3a2a33, #1d141a);
  box-shadow: 0 36px 80px rgba(50, 25, 35, .28);
}
.phone::before {
  content: ""; position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 22px; border-radius: 0 0 14px 14px;
  background: #1d141a; z-index: 3;
}
.phone-screen {
  border-radius: 34px;
  overflow: hidden;
  background: var(--bg);
  padding: 42px 12px 14px;
}
.phone-screen .mini-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.phone-screen .mini-head b { font-size: 15px; }
.phone-screen .mini-mini {
  display: flex; gap: 6px; overflow: hidden; margin-bottom: 10px;
}
.phone-screen .mini-mini span {
  flex: none; padding: 5px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 10px; font-weight: 700;
}
.phone-screen .mini-mini span:first-child { background: var(--brand); color: #fff; border-color: var(--brand); }
.phone-masonry { columns: 2; column-gap: 8px; }
.phone-masonry figure { break-inside: avoid; margin: 0 0 8px; border-radius: 10px; overflow: hidden; background: #eee; }
.phone-masonry img { width: 100%; display: block; }
.phone-masonry figcaption { font-size: 9px; padding: 6px; background: #fff; line-height: 1.3; height: 34px; overflow: hidden; }

.mini-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.mini-feature {
  padding: 22px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.mini-feature .ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-dark);
  margin-bottom: 14px;
}
.mini-feature .ico svg { width: 20px; height: 20px; }
.mini-feature h3 { font-size: 14px; font-weight: 800; }
.mini-feature p { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.7; }

/* FAQ */

.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 18px;
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: #ffd3dd; box-shadow: var(--shadow-sm); }
.faq summary {
  padding: 17px 0;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto;
  font-size: 20px; font-weight: 400; color: var(--brand);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 54px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-grid h4 { font-size: 13px; font-weight: 900; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a { font-size: 13px; color: var(--muted); }
.footer-grid ul a:hover { color: var(--brand-dark); }
.footer-about p { font-size: 13px; color: var(--muted); margin: 16px 0 18px; line-height: 1.9; max-width: 320px; }

.footer-bottom {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  padding: 20px 0 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.footer-keywords { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-keywords a {
  padding: 5px 11px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line);
  font-size: 11px;
}
.footer-keywords a:hover { color: var(--brand-dark); border-color: var(--brand); }

/* ---------- 弹窗 / Toast ---------- */

.modal {
  position: fixed; inset: 0; z-index: 300;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(28, 16, 22, .58);
  backdrop-filter: blur(6px);
}
.modal.open { display: flex; animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal-panel {
  position: relative;
  width: min(100%, 720px);
  max-height: min(90vh, 860px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 40px 100px rgba(20, 8, 14, .35);
  animation: pop .28s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes pop { from { transform: translateY(18px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-close {
  position: absolute; z-index: 5;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(20, 12, 18, .55);
  color: #fff;
  font-size: 20px;
  line-height: 1;
}
.modal-close:hover { background: var(--brand); }

.modal-player {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  background-size: cover; background-position: center;
  color: #fff;
}
.modal-player::before { content: ""; position: absolute; inset: 0; background: rgba(24, 12, 20, .42); }
.modal-player .big-play {
  position: relative; z-index: 2;
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.94); color: var(--brand-dark);
  box-shadow: 0 14px 36px rgba(0,0,0,.25);
  transition: transform .2s;
}
.modal-player .big-play:hover { transform: scale(1.08); }
.modal-player .big-play svg { width: 28px; height: 28px; margin-left: 4px; }
.modal-player .video-note {
  position: absolute; z-index: 2; bottom: 16px; left: 20px;
  font-size: 12px; font-weight: 700;
  background: rgba(0,0,0,.4); padding: 6px 12px; border-radius: 999px;
}

.modal-info { padding: 24px 26px 28px; }
.modal-info h3 { font-size: 20px; font-weight: 900; line-height: 1.4; }
.modal-info .meta {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0; font-size: 12px; color: var(--muted);
}
.modal-info .desc { font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.modal-tags span {
  padding: 5px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 11px; font-weight: 700;
}
.modal-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* 下载弹窗里的二维码 */
.qr-box {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 22px;
  align-items: center;
  padding: 26px;
}
.qr-canvas {
  width: 132px; height: 132px;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.qr-canvas canvas { width: 100%; height: 100%; display: block; }
.qr-box h3 { font-size: 19px; font-weight: 900; }
.qr-box p { font-size: 13px; color: var(--muted); margin: 8px 0 16px; line-height: 1.8; }

.toast {
  position: fixed;
  z-index: 500;
  left: 50%; bottom: 34px;
  transform: translate(-50%, 24px);
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(32, 20, 27, .94);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  text-align: center;
  max-width: calc(100vw - 40px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.to-top {
  position: fixed; z-index: 90;
  right: 24px; bottom: 26px;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 18px; height: 18px; }
.to-top:hover { color: var(--brand-dark); border-color: var(--brand); }

/* ---------- 移动端底部导航 ---------- */

.bottom-nav {
  display: none;
  position: fixed; z-index: 120;
  left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
}
.bottom-nav .inner { display: flex; justify-content: space-around; }
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; color: var(--muted);
  padding: 4px 10px;
}
.bottom-nav a svg { width: 21px; height: 21px; }
.bottom-nav a.active { color: var(--brand-dark); }
.bottom-nav a.central {
  color: #fff;
  background: var(--brand);
  width: 48px; height: 48px;
  border-radius: 16px;
  justify-content: center;
  margin-top: -18px;
  box-shadow: 0 8px 20px rgba(255, 91, 125, .35);
}
.bottom-nav a.central span { display: none; }

/* ---------- 响应式 ---------- */

@media (max-width: 1180px) {
  .masonry { columns: 3; }
  .hero-grid { gap: 36px; }
  .creator-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    margin: 0;
    padding: 12px 16px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(255, 249, 247, .98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; animation: rise .2s both; }
  .main-nav a { padding: 12px 16px; border-radius: 12px; }
  .menu-toggle { display: grid; }
  .header-actions .btn-primary { display: none; }
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-collage { min-height: 420px; max-width: 620px; width: 100%; margin-inline: auto; }
  .feature-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-band { padding: 34px; }
  .download-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :last-child { grid-column: auto; }
}

@media (max-width: 700px) {
  :root { --nav-h: 62px; }
  .container { width: min(calc(100% - 30px), var(--max)); }
  body { padding-bottom: 68px; font-size: 14px; }
  .masonry { columns: 2; column-gap: 10px; }
  .masonry-item { margin-bottom: 10px; }
  .card { border-radius: 14px; }
  .card-body { padding: 10px 10px 11px; }
  .card-title { font-size: 12px; min-height: 36px; }
  .card-meta { gap: 5px; margin-top: 8px; }
  .card-author { font-size: 10px; }
  .card-stats { gap: 6px; font-size: 10px; }
  .card-stats .views { display: none; }
  .avatar { width: 22px; height: 22px; font-size: 10px; }
  .badge { font-size: 10px; padding: 4px 7px; }
  .play-hint { display: none; }

  .section { padding: 42px 0; }
  .section-head { align-items: flex-start; }
  .section-head h2 { font-size: 23px; }
  .section-head p { font-size: 12px; }
  .hero h1 { font-size: 40px; letter-spacing: -1.6px; }
  .hero-lead { font-size: 15px; }
  .hero-stats { gap: 22px; }
  .hero-stats strong { font-size: 20px; }
  .hero-collage { columns: 2; min-height: 0; }
  .hero-collage figure:nth-child(n+5) { display: none; }
  .float-badge { right: 0; top: 12px; }

  .creator-grid { gap: 10px; }
  .creator-card { padding: 16px 10px; }
  .feature-band { padding: 24px 20px; border-radius: 20px; }
  .ai-preview { transform: none; }
  .panel { padding: 20px 16px; border-radius: 18px; }
  .ai-workbench { padding: 24px 18px; border-radius: 18px; }
  .ai-result { grid-template-columns: repeat(2, 1fr); }
  .live-hero { padding: 24px 20px; min-height: 280px; }
  .phone { width: min(100%, 300px); }
  .mini-features { gap: 10px; }
  .mini-feature { padding: 16px 14px; }
  .qr-box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .to-top { bottom: 84px; right: 14px; width: 40px; height: 40px; }
  .bottom-nav { display: block; }
  .modal { padding: 10px; align-items: flex-end; }
  .modal-panel { border-radius: 22px 22px 12px 12px; max-height: 92vh; }
  .modal-info { padding: 20px; }
  .modal-info h3 { font-size: 17px; }
  .site-footer { padding-top: 38px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { margin-top: 30px; }
}

@media (max-width: 380px) {
  .masonry { columns: 2; column-gap: 8px; }
  .card-stats .like-wrap span { display: none; }
  .hero h1 { font-size: 34px; }
  .hero-cta .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
