/* 抖阴官方品牌站 — 深色科技风 */
:root {
  --bg: #07070e;
  --bg-2: #0d0d18;
  --bg-3: #141422;
  --bg-card: rgba(22, 22, 38, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f5f8;
  --muted: #9a9bb0;
  --cyan: #25f4ee;
  --magenta: #fe2c55;
  --gold: #e0b35a;
  --blue: #3d7eff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --glow: 0 0 40px rgba(37, 244, 238, 0.18);
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --nav-h: 64px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(37, 244, 238, 0.12), transparent 55%),
    radial-gradient(900px 500px at 95% 5%, rgba(254, 44, 85, 0.14), transparent 50%),
    radial-gradient(800px 500px at 50% 100%, rgba(61, 126, 255, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 40%, var(--bg) 100%);
  background-attachment: fixed;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #7cfff9;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* ===== Nav ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(7, 7, 14, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-nav .inner {
  width: min(100% - 24px, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

/* ===== Site ads (myads.html) ===== */
#site-ads {
  position: sticky;
  top: var(--nav-h);
  z-index: 900;
  background: rgba(7, 7, 14, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 6px 12px 10px;
}

#site-ads:empty {
  display: none;
  padding: 0;
  border: 0;
}

#site-ads .applist-title {
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 4px 0 2px;
}

#site-ads #ads figcaption,
#site-ads #ads .caption {
  color: #b4b5c6;
}

#site-ads #ads {
  margin: 6px 0 0;
  flex-wrap: wrap;
  gap: 8px 4px;
}

#site-ads #ads > div {
  flex: 0 0 70px;
  min-width: 70px;
  width: 70px;
}

#site-ads #ads img {
  width: 65px !important;
  height: 65px !important;
  max-width: none !important;
  min-width: 65px;
  min-height: 65px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  flex-shrink: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--magenta) 0%, #ff5a7a 55%, #ff8aa3 100%);
  color: #fff;
  box-shadow: 0 12px 32px rgba(254, 44, 85, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(37, 244, 238, 0.35);
  color: var(--cyan);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 48px 0 36px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 80%;
  background:
    radial-gradient(circle at 30% 40%, rgba(37, 244, 238, 0.16), transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(254, 44, 85, 0.18), transparent 42%);
  pointer-events: none;
  filter: blur(10px);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 12px var(--magenta);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff 20%, #c8fbff 55%, #ffb3c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36em;
}

.hero .intro {
  margin: 0 0 20px;
  color: #c8c9d8;
  max-width: 38em;
}

.sell-points {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.sell-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #d7d8e6;
  font-size: 0.95rem;
}

.sell-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.55em;
  border-radius: 50%;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  box-shadow: var(--glow);
}

.hero-visual {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-stack {
  position: relative;
  width: min(100%, 360px);
  height: 460px;
  margin: 0 auto;
}

.phone {
  position: absolute;
  width: 210px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(37, 244, 238, 0.08),
    0 0 50px rgba(254, 44, 85, 0.12);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 9 / 19.5;
}

.phone.main {
  right: 18px;
  top: 10px;
  z-index: 2;
  transform: rotate(2deg);
  animation: floatMain 5.5s ease-in-out infinite;
}

.phone.back {
  left: 8px;
  top: 48px;
  z-index: 1;
  transform: rotate(-8deg) scale(0.92);
  filter: brightness(0.78) saturate(0.9);
  opacity: 0.92;
  animation: floatBack 6.2s ease-in-out infinite;
}

.phone.back::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 7, 14, 0.45));
  pointer-events: none;
}

@keyframes floatMain {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-10px); }
}

@keyframes floatBack {
  0%, 100% { transform: rotate(-8deg) scale(0.92) translateY(0); }
  50% { transform: rotate(-8deg) scale(0.92) translateY(8px); }
}

/* ===== Sections ===== */
section {
  padding: 56px 0;
}

.section-head {
  margin-bottom: 28px;
  max-width: 720px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(8px);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  border-color: rgba(37, 244, 238, 0.3);
  transform: translateY(-3px);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.feature-card .icon-dot {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(37, 244, 238, 0.25), rgba(254, 44, 85, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Media blocks ===== */
.media-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  margin: 28px 0;
}

.media-row.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.media-row.reverse .media-shot {
  order: 2;
}

.media-shot {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0a0a12;
}

.media-shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  max-height: 480px;
}

.media-copy h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.media-copy p {
  margin: 0 0 12px;
  color: #c5c6d6;
}

/* ===== Video grid ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.video-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(254, 44, 85, 0.35);
}

.video-card .thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
}

.video-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .thumb img {
  transform: scale(1.04);
}

.video-card .body {
  padding: 12px 14px 16px;
}

.video-card h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Article / long content ===== */
.article {
  color: #cfd0de;
  font-size: 1.02rem;
}

.article h2 {
  margin: 42px 0 14px;
  color: var(--text);
  font-size: 1.45rem;
}

.article h3 {
  margin: 28px 0 10px;
  color: #ececf6;
  font-size: 1.15rem;
}

.article p {
  margin: 0 0 16px;
}

.article ul,
.article ol {
  margin: 0 0 18px;
  padding-left: 1.25em;
  color: #c5c6d6;
}

.article li {
  margin-bottom: 8px;
}

.article a.outlink {
  color: var(--cyan);
  border-bottom: 1px dashed rgba(37, 244, 238, 0.45);
}

.article a.outlink:hover {
  color: #9ffcf8;
}

.inline-figure {
  margin: 22px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-width: 420px;
}

.inline-figure img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
}

.inline-figure figcaption {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

/* ===== CTA band ===== */
.cta-band {
  position: relative;
  margin: 20px 0;
  padding: 40px 28px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(254, 44, 85, 0.28);
  background:
    radial-gradient(600px 200px at 10% 0%, rgba(37, 244, 238, 0.16), transparent 50%),
    radial-gradient(500px 220px at 90% 100%, rgba(254, 44, 85, 0.22), transparent 55%),
    linear-gradient(135deg, #151525, #1a1020);
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.cta-band p {
  margin: 0 auto 22px;
  max-width: 40em;
  color: var(--muted);
}

/* ===== FAQ ===== */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--cyan);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .answer {
  padding: 0 18px 16px;
  color: var(--muted);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 18px 0 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.breadcrumb span {
  margin: 0 6px;
  opacity: 0.5;
}

.page-hero {
  padding: 18px 0 28px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 46em;
}

/* ===== Related ===== */
.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.related a {
  display: block;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.related a:hover {
  border-color: rgba(37, 244, 238, 0.35);
}

.related strong {
  display: block;
  margin-bottom: 6px;
}

.related span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 40px;
  padding: 40px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.site-footer p,
.site-footer li {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--cyan);
}

.copyright {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #6f7084;
  font-size: 0.84rem;
  text-align: center;
}

/* ===== Error pages ===== */
.error-page {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 20px;
}

.error-page h1 {
  margin: 0 0 10px;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  background: linear-gradient(120deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page p {
  color: var(--muted);
  margin: 0 0 22px;
}

/* ===== Reveal motion ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid,
  .media-row,
  .media-row.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .media-row.reverse .media-shot {
    order: 0;
  }

  .grid-3,
  .video-grid,
  .related {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    min-height: 420px;
    order: -1;
  }

  .phone-stack {
    height: 400px;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 58px;
  }

  body {
    padding-top: var(--nav-h);
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(10, 10, 18, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .grid-3,
  .video-grid,
  .related,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .phone {
    width: 180px;
  }

  .phone-stack {
    width: 300px;
    height: 360px;
  }

  section {
    padding: 40px 0;
  }

  .inline-figure {
    max-width: 100%;
  }
}
