/* =========================================================
   抖漫 官网样式
   主题：温暖国漫风 · 橙红主色 · 现代简洁
   ========================================================= */

:root {
  --brand: #ff5a3c;
  --brand-2: #ff3d6e;
  --brand-3: #ff8a3d;
  --brand-dark: #e63e24;
  --ink: #1c1a27;
  --ink-soft: #4a4658;
  --muted: #8b8798;
  --bg: #ffffff;
  --bg-soft: #fff7f4;
  --bg-dark: #191624;
  --line: #f0e9e6;
  --card: #ffffff;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px -20px rgba(255, 90, 60, 0.25);
  --shadow-soft: 0 10px 30px -12px rgba(28, 26, 39, 0.14);
  --grad: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  --grad-warm: linear-gradient(135deg, var(--brand-3) 0%, var(--brand) 50%, var(--brand-2) 100%);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(255, 90, 60, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(255, 90, 60, 0.65); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
  padding: 14px 0;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 6px 24px -12px rgba(28, 26, 39, 0.18);
  padding: 9px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .5px;
  color: #fff;
  transition: color .3s ease;
}
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.site-header.scrolled .brand { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  transition: color .25s ease, background .25s ease;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav-link.active { color: #fff; }
.site-header.scrolled .nav-link { color: var(--ink-soft); }
.site-header.scrolled .nav-link:hover { color: var(--brand); background: rgba(255,90,60,.08); }
.site-header.scrolled .nav-link.active { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.site-header.scrolled .menu-toggle { background: rgba(28,26,39,.06); border-color: rgba(28,26,39,.14); }
.site-header.scrolled .menu-toggle span { background: var(--ink); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  background: radial-gradient(120% 120% at 85% 0%, #2a2440 0%, var(--bg-dark) 55%);
  color: #fff;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob-1 { width: 480px; height: 480px; background: #ff5a3c; top: -140px; right: -80px; }
.blob-2 { width: 420px; height: 420px; background: #ff3d6e; bottom: -160px; left: -120px; opacity: .4; }
.blob-3 { width: 300px; height: 300px; background: #ff8a3d; top: 40%; left: 45%; opacity: .28; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 48px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.hero-title {
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.grad-text {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-subtitle {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  max-width: 480px;
  margin-bottom: 16px;
}
.hero-tags {
  font-size: 15px;
  color: #ffd3c8;
  margin-bottom: 30px;
  letter-spacing: 1px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* 手机模型 */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: 300px;
  height: 600px;
  background: #14111f;
  border-radius: 46px;
  padding: 14px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255,255,255,.06);
  position: relative;
  animation: float 6s ease-in-out infinite;
}
.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 26px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  background: linear-gradient(180deg, #fff7f4 0%, #ffece7 100%);
  overflow: hidden;
  padding: 20px 16px;
  position: relative;
}
.app-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 16px;
}
.app-logo img { width: 32px; height: 32px; border-radius: 8px; }
.app-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.app-hero {
  background: var(--grad);
  border-radius: 18px;
  padding: 18px;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.app-hero::after {
  content: "";
  position: absolute;
  right: -30px; bottom: -30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,.14);
  border-radius: 50%;
}
.app-hero-tag { font-size: 11px; opacity: .9; }
.app-hero-title { font-size: 20px; font-weight: 800; line-height: 1.3; margin: 4px 0 10px; }
.app-hero-btn {
  display: inline-block;
  background: #fff;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
}
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cover {
  height: 96px;
  border-radius: 14px;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  box-shadow: inset 0 -30px 30px -20px rgba(0,0,0,.4);
}
.cover-1 { background: linear-gradient(135deg, #ff9a8b, #ff5a3c); }
.cover-2 { background: linear-gradient(135deg, #7f6cff, #4d3cff); }
.cover-3 { background: linear-gradient(135deg, #42e0c8, #18b5a0); }
.cover-4 { background: linear-gradient(135deg, #ffb84d, #ff8a3d); }

.float-chip {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  animation: float 5s ease-in-out infinite;
}
.chip-1 { top: 16%; left: 2%; animation-delay: .3s; }
.chip-2 { top: 44%; right: 0; animation-delay: 1s; }
.chip-3 { bottom: 12%; left: 6%; animation-delay: 1.7s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- 数据条 ---------- */
.stats-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 46px 24px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.2;
}
.stat-label { font-size: 14px; color: var(--muted); }

/* ---------- 通用区块 ---------- */
.section { padding: 92px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--brand);
  background: rgba(255, 90, 60, 0.1);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 900; margin-bottom: 12px; letter-spacing: .5px; }
.section-desc { color: var(--muted); font-size: 16px; }

/* ---------- 产品特色 ---------- */
.features { background: var(--bg-soft); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
}
.icon-hd { background: linear-gradient(135deg, #ff8a3d, #ff5a3c); }
.icon-bell { background: linear-gradient(135deg, #ff3d6e, #ff5a3c); }
.icon-download { background: linear-gradient(135deg, #7f6cff, #5a46ff); }
.icon-anywhere { background: linear-gradient(135deg, #18c5b8, #0ea79c); }
.icon-original { background: linear-gradient(135deg, #ffb84d, #ff8a3d); }
.icon-community { background: linear-gradient(135deg, #ff5a8c, #ff3d6e); }
.feature-title { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.feature-text { color: var(--muted); font-size: 15px; }

/* ---------- 热门分类 ---------- */
.categories { background: #fff; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.category-card {
  text-align: center;
  padding: 38px 24px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}
.category-card:hover {
  transform: translateY(-6px);
  background: #fff;
  box-shadow: var(--shadow);
  border-color: rgba(255,90,60,.25);
}
.category-emoji { font-size: 44px; display: block; margin-bottom: 14px; }
.category-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.category-card p { color: var(--muted); font-size: 14px; }

/* ---------- 热门作品 ---------- */
.works { background: var(--bg-soft); }
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.work-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work-cover {
  height: 210px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.work-tag {
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.wc-1 { background: linear-gradient(135deg, #6d5bff, #2a1fb0); }
.wc-2 { background: linear-gradient(135deg, #ff8aa8, #ff3d6e); }
.wc-3 { background: linear-gradient(135deg, #5ed4c0, #14958a); }
.wc-4 { background: linear-gradient(135deg, #ffb84d, #e57b1f); }
.wc-5 { background: linear-gradient(135deg, #58b7ff, #2f7fe0); }
.wc-6 { background: linear-gradient(135deg, #9a5cff, #5c2fb0); }
.work-info { padding: 18px 20px 20px; }
.work-title { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.work-desc { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.work-meta { font-size: 13px; font-weight: 600; color: var(--brand); }

/* ---------- 关于我们 ---------- */
.about { background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 40px;
  align-items: start;
}
.about-text h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.about-text p { color: var(--ink-soft); font-size: 16px; margin-bottom: 24px; line-height: 1.9; }
.about-text strong { color: var(--brand); }
.about-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 24px;
}
.about-card-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.about-card-row:last-child { border-bottom: none; }
.about-card-icon {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-soft);
}
.about-card-row h4 { font-size: 14px; color: var(--muted); font-weight: 600; }
.about-card-row p { font-size: 15px; font-weight: 700; color: var(--ink); }

/* ---------- 下载 CTA ---------- */
.download { background: var(--bg-dark); color: #fff; }
.download-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.download .section-kicker { background: rgba(255, 90, 60, 0.2); color: #ffb4a3; }
.download-title { font-size: clamp(28px, 4vw, 42px); font-weight: 900; line-height: 1.2; margin-bottom: 14px; }
.download-desc { color: rgba(255,255,255,.72); font-size: 16px; margin-bottom: 28px; }
.download-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: background .25s ease, transform .25s ease;
}
.store-btn:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.store-btn small { display: block; font-size: 12px; opacity: .72; }
.store-btn span { font-size: 15px; font-weight: 700; line-height: 1.2; }
.download-visual { display: flex; justify-content: center; }
.qr-box {
  background: #fff;
  color: var(--ink);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.qr-code {
  width: 168px;
  height: 168px;
  margin: 0 auto 14px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.qr-code span {
  border-radius: 3px;
  background: var(--ink);
}
.qr-code span:nth-child(3n) { background: transparent; }
.qr-code span:nth-child(7) { background: transparent; }
.qr-code span:nth-child(11) { background: transparent; }
.qr-code span:nth-child(13) { background: transparent; }
.qr-code span:nth-child(17) { background: transparent; }
.qr-code span:nth-child(21) { background: transparent; }
.qr-box p { font-size: 14px; color: var(--muted); }

/* ---------- 页脚 ---------- */
.site-footer { background: #120f1c; color: rgba(255,255,255,.72); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 24px 40px;
  flex-wrap: wrap;
}
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-slogan { font-size: 14px; max-width: 260px; }
.footer-links { display: flex; gap: 60px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--brand-3); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,.6); transition: color .2s ease; }
.footer-bottom a:hover { color: var(--brand-3); }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s ease;
  z-index: 90;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translateY(-3px); }

/* ---------- 滚动浮现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 56px; }
  .hero-copy { order: 1; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: 2; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .download-inner { grid-template-columns: 1fr; text-align: center; }
  .download-buttons { justify-content: center; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 260px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 90px 24px 24px;
    box-shadow: -20px 0 60px rgba(0,0,0,.18);
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links .nav-link { color: var(--ink-soft); width: 100%; }
  .nav-links .nav-link:hover { color: var(--brand); background: rgba(255,90,60,.08); }
  .nav-links .nav-link.active { color: var(--brand); }
  .menu-toggle { display: flex; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: 1fr; }
  .phone { width: 260px; height: 520px; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 40px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .chip-1, .chip-3 { display: none; }
}
