/* 抖阴官方站 — 深色视频品牌视觉 */
:root {
  --bg: #07080d;
  --bg-elev: #0e1018;
  --bg-soft: #141722;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f6fb;
  --muted: #9aa3b8;
  --faint: #6b7388;
  --cyan: #2de2e6;
  --magenta: #ff2d6a;
  --pink: #ff4d8d;
  --grad: linear-gradient(135deg, #2de2e6 0%, #7a6cff 42%, #ff2d6a 100%);
  --grad-soft: linear-gradient(160deg, rgba(45, 226, 230, 0.18), rgba(255, 45, 106, 0.14));
  --glow-c: 0 0 40px rgba(45, 226, 230, 0.35);
  --glow-m: 0 0 40px rgba(255, 45, 106, 0.3);
  --radius: 18px;
  --nav-h: 64px;
  --max: 1120px;
  --font: "Sora", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Sora", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--pink);
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(7, 8, 13, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand span {
  font-size: 1.15rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
}

/* —— Sticky site ads (from myads.html) —— */
.site-ads-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(12, 14, 22, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  padding: 6px 12px 10px;
}

.site-ads-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.site-ads-bar .applist-title {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.site-ads-bar #ads {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  margin: 6px 0 0;
  gap: 8px 12px;
}

.site-ads-bar #ads>div {
  flex: 0 0 auto;
  width: 70px;
  max-width: 70px;
}

.site-ads-bar #ads figcaption,
.site-ads-bar #ads .caption {
  color: var(--muted);
}

.site-ads-bar figure {
  margin: 0;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--glow-m);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: rgba(45, 226, 230, 0.45);
  color: var(--cyan);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 64px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 80%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(45, 226, 230, 0.22), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 45, 106, 0.2), transparent 45%),
    radial-gradient(ellipse at 50% 80%, rgba(122, 108, 255, 0.12), transparent 55%);
  z-index: -1;
  animation: aura 10s ease-in-out infinite alternate;
}

@keyframes aura {
  from { transform: scale(1) translateY(0); opacity: 0.9; }
  to { transform: scale(1.08) translateY(12px); opacity: 1; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--display);
}

.hero-brand img {
  width: clamp(48px, 8vw, 64px);
  height: clamp(48px, 8vw, 64px);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  line-height: 1.35;
  font-weight: 700;
}

.hero .lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36em;
}

.hero-copy {
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 38em;
}

.sell-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.sell-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 0.95rem;
}

.sell-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: var(--glow-c);
}

.hero-phones {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  width: min(48%, 240px);
  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(255, 255, 255, 0.04),
    var(--glow-m);
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
}

.phone-main {
  position: relative;
  z-index: 2;
  transform: translateX(-18px) rotate(-3deg);
  animation: floaty 5.5s ease-in-out infinite;
}

.phone-side {
  position: absolute;
  right: 8%;
  top: 8%;
  z-index: 1;
  width: min(42%, 210px);
  opacity: 0.92;
  filter: brightness(0.92);
  transform: translateX(18px) rotate(6deg) scale(0.94);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.5),
    var(--glow-c);
  animation: floaty 6.5s ease-in-out infinite reverse;
}

@keyframes floaty {
  0%, 100% { transform: translateX(-18px) translateY(0) rotate(-3deg); }
  50% { transform: translateX(-18px) translateY(-14px) rotate(-2deg); }
}

.phone-side {
  animation-name: floaty-side;
}

@keyframes floaty-side {
  0%, 100% { transform: translateX(18px) rotate(6deg) scale(0.94) translateY(0); }
  50% { transform: translateX(18px) rotate(7deg) scale(0.94) translateY(12px); }
}

/* —— Sections —— */
.section {
  padding: 72px 0;
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 36px;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  line-height: 1.35;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.prose {
  color: var(--muted);
  max-width: 72ch;
}

.prose p {
  margin: 0 0 1.15em;
}

.prose h3 {
  margin: 1.6em 0 0.7em;
  color: var(--text);
  font-size: 1.15rem;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.inline-link {
  border-bottom: 1px solid rgba(45, 226, 230, 0.35);
}

/* —— Advantage grid —— */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 28px;
}

.adv-item {
  padding: 8px 0;
}

.adv-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.adv-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Video grid —— */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.video-tile {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}

.video-tile img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.video-tile:hover img {
  transform: scale(1.04);
}

.video-tile .caption {
  padding: 12px 14px 14px;
}

.video-tile h3 {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.video-tile p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--faint);
}

/* —— Feature split —— */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 56px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse .feature-media {
  order: 2;
}

.feature-row.reverse .feature-text {
  order: 1;
}

.feature-media {
  position: relative;
}

.feature-media img {
  width: min(280px, 70%);
  margin-inline: auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), var(--glow-c);
}

.feature-text h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.feature-text p {
  margin: 0 0 12px;
  color: var(--muted);
}

/* —— Tag cloud / taxonomy —— */
.tag-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
}

/* —— Experience —— */
.xp-list {
  display: grid;
  gap: 22px;
}

.xp-item h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.xp-item p {
  margin: 0;
  color: var(--muted);
}

/* —— CTA band —— */
.cta-band {
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  z-index: -1;
}

.cta-panel {
  padding: 40px 32px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 16, 24, 0.75);
  text-align: center;
  box-shadow: var(--glow-m);
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
}

.cta-panel p {
  margin: 0 auto 24px;
  color: var(--muted);
  max-width: 42em;
}

.cta-apps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

/* —— FAQ —— */
.faq-list {
  display: grid;
  gap: 14px;
  max-width: 820px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 18px 20px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Related —— */
.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.related a {
  display: block;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
}

.related a span {
  display: block;
  color: var(--faint);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* —— Breadcrumb —— */
.breadcrumb {
  padding: 18px 0 0;
  font-size: 0.85rem;
  color: var(--faint);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--faint);
}

.page-hero {
  padding: 28px 0 12px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 48em;
}

/* —— Download page —— */
.dl-grid {
  display: grid;
  gap: 18px;
}

.dl-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.dl-card.featured {
  background: linear-gradient(135deg, rgba(45, 226, 230, 0.1), rgba(255, 45, 106, 0.1));
  border-color: rgba(255, 45, 106, 0.35);
}

.dl-card img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
}

.dl-card h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.dl-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  vertical-align: middle;
  background: var(--grad);
  color: #fff;
}

/* —— Footer —— */
.site-footer {
  margin-top: 40px;
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
  background: #05060a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 700;
}

.footer-brand img {
  width: 32px;
  height: 32px;
}

.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 + li {
  margin-top: 8px;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--text);
}

.copyright {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.82rem;
}

/* —— Error pages —— */
.error-wrap {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}

.error-wrap h1 {
  margin: 0 0 10px;
  font-size: 3rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* —— Reveal motion —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero-grid,
  .feature-row,
  .feature-row.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-media,
  .feature-row.reverse .feature-text {
    order: initial;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related {
    grid-template-columns: 1fr;
  }

  .hero-phones {
    min-height: 360px;
    margin-top: 12px;
  }

  .adv-grid {
    grid-template-columns: 1fr;
  }

  .dl-card {
    grid-template-columns: auto 1fr;
  }

  .dl-card .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 58px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 16px;
    background: rgba(7, 8, 13, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: 12px 4px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-ads-bar #ads {
    flex-wrap: nowrap;
    gap: 6px 8px;
  }

  .site-ads-bar #ads>div {
    width: 64px;
    max-width: 64px;
  }

  .site-ads-bar #ads img {
    width: 56px;
    height: 56px;
  }

  .video-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .section {
    padding: 52px 0;
  }

  .hero {
    padding: 28px 0 40px;
  }
}

@media (max-width: 420px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}
