/* 抖阴 dyin.live — 品牌官网 */
:root {
  --bg: #050507;
  --bg-2: #0b0b10;
  --bg-3: #12121a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f6;
  --muted: #9b9ba8;
  --dim: #6e6e7a;
  --red: #fe2c55;
  --cyan: #25f4ee;
  --pink: #ff4d8d;
  --grad: linear-gradient(120deg, #fe2c55 0%, #ff4d8d 42%, #25f4ee 100%);
  --grad-soft: linear-gradient(160deg, rgba(254, 44, 85, 0.28), rgba(37, 244, 238, 0.12) 55%, transparent 80%);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --radius: 16px;
  --nav-h: 64px;
  --ad-h: 72px;
  --font: "Noto Sans SC", "Outfit", system-ui, sans-serif;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(254, 44, 85, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 5%, rgba(37, 244, 238, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(254, 44, 85, 0.08), transparent 60%),
    var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--cyan);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(100% - 32px, 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);
  border: 0;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 5, 7, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  height: 36px;
  width: auto;
}

.brand-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface);
}

.nav-cta {
  display: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(254, 44, 85, 0.35);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav-drawer {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 0 18px;
}

.nav-drawer.open {
  display: block;
}

.nav-drawer a {
  display: block;
  padding: 12px 4px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.nav-drawer a:last-child {
  border-bottom: none;
  margin-top: 8px;
  text-align: center;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
}

/* —— Sticky APP ad bar —— */
.app-ad-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 990;
  background: linear-gradient(90deg, rgba(18, 18, 26, 0.97), rgba(12, 12, 18, 0.97));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.app-ad-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 0;
  align-items: stretch;
}

.app-ad-label {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--dim);
  padding-right: 4px;
  white-space: nowrap;
}

.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  padding: 6px 10px 6px 6px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 500;
  overflow: hidden;
}

.app-chip:hover {
  border-color: rgba(254, 44, 85, 0.45);
  color: var(--text);
  background: var(--surface-hover);
}

.app-chip.primary {
  border-color: rgba(254, 44, 85, 0.55);
  background: linear-gradient(90deg, rgba(254, 44, 85, 0.18), rgba(37, 244, 238, 0.08));
}

.app-chip img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.app-chip .tag {
  font-size: 0.68rem;
  color: var(--cyan);
  font-weight: 600;
  margin-left: auto;
}

.app-chip span:not(.tag) {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: 36px 0 48px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(254, 44, 85, 0.35);
  background: rgba(254, 44, 85, 0.1);
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.85rem, 5.5vw, 2.85rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 36em;
}

.hero-intro {
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 38em;
  font-size: 0.98rem;
}

.sell-points {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.sell-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-size: 0.95rem;
}

.sell-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(254, 44, 85, 0.6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 650;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 32px rgba(254, 44, 85, 0.4);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(37, 244, 238, 0.4);
}

/* phone stack */
.phone-stack {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  min-height: 440px;
  aspect-ratio: 4 / 5;
}

.phone-stack::before {
  content: "";
  position: absolute;
  inset: 10% -10% -5%;
  background: var(--grad-soft);
  filter: blur(40px);
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.phone {
  position: absolute;
  width: 58%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow), 0 0 0 1px rgba(254, 44, 85, 0.12);
  background: #111;
  z-index: 1;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 9 / 19.5;
  background: #1a1a22;
}

.phone.main {
  z-index: 2;
  left: 6%;
  top: 0;
  transform: rotate(-3deg);
  animation: floatA 6s ease-in-out infinite;
}

.phone.sub {
  z-index: 1;
  right: 0;
  top: 12%;
  width: 52%;
  opacity: 0.95;
  filter: saturate(0.95) brightness(0.92);
  transform: rotate(6deg) scale(0.96);
  animation: floatB 7s ease-in-out infinite;
}

@keyframes floatA {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-10px); }
}

@keyframes floatB {
  0%, 100% { transform: rotate(6deg) scale(0.96) translateY(0); }
  50% { transform: rotate(5deg) scale(0.96) translateY(8px); }
}

/* —— Sections —— */
.section {
  padding: 56px 0;
  position: relative;
}

.section + .section {
  border-top: 1px solid transparent;
}

.section-head {
  margin-bottom: 28px;
  max-width: 42em;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
  font-weight: 600;
}

.section-head h2 {
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  line-height: 1.35;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 0.98rem;
}

.prose {
  color: var(--muted);
  font-size: 1rem;
}

.prose p {
  margin-bottom: 1.1em;
}

.prose h3 {
  color: var(--text);
  font-size: 1.15rem;
  margin: 1.6em 0 0.7em;
}

.prose a.ext {
  color: var(--pink);
  border-bottom: 1px solid rgba(255, 77, 141, 0.35);
}

.prose a.ext:hover {
  color: var(--cyan);
  border-bottom-color: rgba(37, 244, 238, 0.5);
}

.prose strong {
  color: var(--text);
  font-weight: 650;
}

/* advantage grid */
.adv-grid {
  display: grid;
  gap: 14px;
}

.adv-card {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.adv-card:hover {
  border-color: rgba(254, 44, 85, 0.35);
  transform: translateY(-2px);
}

.adv-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.adv-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.adv-num {
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  font-weight: 700;
}

/* video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.video-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(254, 44, 85, 0.4);
}

.video-card .thumb {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}

.video-card .meta {
  padding: 10px 12px 14px;
}

.video-card .meta h3 {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card .meta span {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--dim);
}

/* feature blocks */
.feat-block {
  display: grid;
  gap: 24px;
  margin-bottom: 36px;
  align-items: center;
}

.feat-block:last-child {
  margin-bottom: 0;
}

.feat-copy h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feat-copy p {
  color: var(--muted);
  margin-bottom: 12px;
}

.feat-shot {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-width: 280px;
  margin-inline: auto;
  background: #0a0a0a;
}

.feat-shot img {
  width: 100%;
  display: block;
}

/* chips / tags */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(37, 244, 238, 0.08);
  border: 1px solid rgba(37, 244, 238, 0.2);
  color: var(--cyan);
}

/* experience */
.exp-list {
  display: grid;
  gap: 14px;
}

.exp-item {
  padding: 20px;
  border-left: 3px solid transparent;
  border-image: var(--grad) 1;
  background: var(--surface);
  border-radius: 0 14px 14px 0;
}

.exp-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.exp-item p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* CTA band */
.cta-band {
  padding: 48px 0;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 36px 24px;
  background:
    linear-gradient(135deg, rgba(254, 44, 85, 0.22), rgba(37, 244, 238, 0.1)),
    var(--bg-3);
  border: 1px solid rgba(254, 44, 85, 0.3);
  text-align: center;
}

.cta-panel h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 12px;
}

.cta-panel p {
  color: var(--muted);
  max-width: 36em;
  margin: 0 auto 22px;
}

.cta-apps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--cyan);
  font-size: 1.2rem;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .faq-body {
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* related */
.related-grid {
  display: grid;
  gap: 10px;
}

.related-grid a {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.92rem;
}

.related-grid a:hover {
  color: var(--text);
  border-color: rgba(37, 244, 238, 0.35);
}

/* breadcrumb */
.breadcrumb {
  padding: 18px 0 0;
  font-size: 0.85rem;
  color: var(--dim);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb span {
  margin: 0 6px;
  color: var(--dim);
}

.page-hero {
  padding: 28px 0 10px;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
  max-width: 42em;
}

/* download page cards */
.dl-grid {
  display: grid;
  gap: 14px;
}

.dl-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.dl-card.featured {
  border-color: rgba(254, 44, 85, 0.45);
  background: linear-gradient(120deg, rgba(254, 44, 85, 0.12), rgba(37, 244, 238, 0.05));
}

.dl-card img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
}

.dl-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.dl-card p {
  font-size: 0.82rem;
  color: var(--muted);
}

.dl-card .btn {
  padding: 10px 16px;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* legal pages */
.legal {
  padding-bottom: 64px;
}

.legal h2 {
  font-size: 1.2rem;
  margin: 1.8em 0 0.7em;
}

.legal p,
.legal li {
  color: var(--muted);
  margin-bottom: 0.9em;
}

.legal ul {
  padding-left: 1.2em;
  list-style: disc;
  margin-bottom: 1em;
}

.legal li {
  margin-bottom: 0.45em;
}

/* error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 20px;
}

.error-page .code {
  font-size: clamp(4rem, 15vw, 7rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h1 {
  margin-bottom: 10px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* footer */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: #07070b;
  padding: 40px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 28em;
}

.footer-col h4 {
  font-size: 0.88rem;
  margin-bottom: 12px;
  color: var(--text);
}

.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 4px 0;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: var(--dim);
  font-size: 0.8rem;
}

/* version table */
.ver-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 18px 0 24px;
}

.ver-table th,
.ver-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

.ver-table th {
  color: var(--cyan);
  font-weight: 600;
}

.ver-table td {
  color: var(--muted);
}

/* stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.stat {
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}

.stat b {
  display: block;
  font-size: 1.35rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}

.stat span {
  font-size: 0.78rem;
  color: var(--dim);
}

/* timeline */
.timeline {
  position: relative;
  padding-left: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--red), var(--cyan));
}

.tl-item {
  position: relative;
  margin-bottom: 22px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.25);
}

.tl-item h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.tl-item p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* responsive */
@media (min-width: 640px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .phone-stack {
    max-width: 400px;
    min-height: 500px;
  }
}

@media (min-width: 900px) {
  .app-ad-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .app-ad-inner::-webkit-scrollbar {
    display: none;
  }

  .app-ad-label {
    grid-column: auto;
    flex-shrink: 0;
    font-size: 0.82rem;
  }

  .app-chip {
    width: auto;
    flex-shrink: 0;
    border-radius: 999px;
    font-size: 0.82rem;
    padding: 6px 12px 6px 6px;
  }

  .app-chip .tag {
    margin-left: 0;
  }

  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
  .hero {
    padding: 56px 0 72px;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
  .phone-stack {
    max-width: 420px;
    min-height: 540px;
  }
  .adv-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .video-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .feat-block {
    grid-template-columns: 1fr 240px;
    gap: 40px;
  }
  .feat-block.reverse {
    grid-template-columns: 240px 1fr;
  }
  .feat-block.reverse .feat-copy {
    order: 2;
  }
  .feat-block.reverse .feat-shot {
    order: 1;
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
  .dl-card {
    grid-template-columns: 72px 1fr auto;
  }
  .section {
    padding: 72px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone.main,
  .phone.sub {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
