/* 糖心Vlog 品牌中心 - txtv-app.sbs */
:root {
  --brand-yellow: #ffb020;
  --brand-orange: #ff6a3d;
  --brand-magenta: #e0187a;
  --brand-pink: #ff4f91;
  --ink: #1c1218;
  --muted: #6a5560;
  --line: rgba(28, 18, 24, 0.1);
  --bg: #fff6f1;
  --bg-deep: #1a0f14;
  --surface: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(224, 24, 122, 0.12);
  --max: 1120px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 176, 32, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(224, 24, 122, 0.16), transparent 50%),
    linear-gradient(180deg, #fff9f5 0%, #fff6f1 40%, #ffeef5 100%);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-magenta);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--brand-orange);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 249, 245, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(255, 106, 61, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-magenta));
  transition: width 0.25s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a.active {
  color: var(--brand-magenta);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.25s;
}

/* Hero */
.hero {
  padding: 3.2rem 0 2.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--brand-magenta);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  background: linear-gradient(115deg, var(--ink) 20%, var(--brand-magenta) 70%, var(--brand-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 1.6rem;
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  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(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-magenta));
  box-shadow: 0 12px 28px rgba(224, 24, 122, 0.28);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--brand-magenta);
}

/* Overlapping phone mockups */
.phone-stack {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  position: absolute;
  width: min(240px, 46vw);
  aspect-ratio: 9 / 19.2;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, #2a1a22, #12090e);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  animation: floatY 5.5s ease-in-out infinite;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.phone-back {
  transform: translate(-18%, 4%) rotate(-8deg);
  z-index: 1;
  animation-delay: -1.5s;
}

.phone-front {
  transform: translate(16%, -2%) rotate(6deg);
  z-index: 2;
  animation-duration: 6.2s;
}

.phone-glow {
  position: absolute;
  inset: 18% 10%;
  background: radial-gradient(circle, rgba(255, 79, 145, 0.35), transparent 70%);
  filter: blur(30px);
  z-index: 0;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-copy,
.section-head,
.feature-card,
.shot-card,
.prose p {
  animation: riseIn 0.7s ease both;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin: 0 0 0.7rem;
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.prose {
  max-width: 48rem;
}

.prose p {
  margin: 0 0 1.15rem;
  color: #3a2a32;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.8rem;
}

.prose ul {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
  color: #3a2a32;
}

.prose li {
  margin-bottom: 0.45rem;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: 0 10px 30px rgba(28, 18, 24, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  background: linear-gradient(135deg, rgba(255, 176, 32, 0.25), rgba(224, 24, 122, 0.18));
  font-size: 1.15rem;
}

.feature-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Shot gallery */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.shot-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #12090e;
  aspect-ratio: 9 / 16;
  box-shadow: 0 12px 28px rgba(28, 18, 24, 0.12);
}

.shot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.shot-card:hover img {
  transform: scale(1.05);
}

.shot-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.8rem 0.75rem;
  background: linear-gradient(transparent, rgba(10, 4, 8, 0.85));
  color: #fff;
  font-size: 0.88rem;
}

.shot-wide {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.shot-wide img {
  object-position: top center;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.split-media {
  position: relative;
}

.split-media .frame {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #12090e;
}

.split-media .frame img {
  width: 100%;
  display: block;
}

.split-media .frame-offset {
  position: absolute;
  width: 42%;
  right: -4%;
  bottom: -8%;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 14px 34px rgba(224, 24, 122, 0.25);
}

/* Download / version */
.version-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  background: linear-gradient(135deg, #1a0f14, #3a1528 55%, #5a1a2e);
  color: #fff;
  border-radius: 24px;
  padding: 2rem;
  overflow: hidden;
  position: relative;
}

.version-box::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 176, 32, 0.35), transparent 65%);
  pointer-events: none;
}

.version-box h2,
.version-box h3 {
  font-family: var(--font-display);
  margin-top: 0;
}

.version-box p {
  color: rgba(255, 255, 255, 0.82);
}

.version-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.version-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
}

.version-list span:last-child {
  color: #ffc56d;
  font-weight: 600;
}

.version-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.version-shots img {
  border-radius: 14px;
  height: 220px;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

/* Keyword chips - not cards for interaction, just text rhythm */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.tag-row a,
.tag-row span {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(224, 24, 122, 0.08);
  color: var(--brand-magenta);
  font-size: 0.85rem;
  border: 1px solid rgba(224, 24, 122, 0.15);
}

/* Legal / inner pages */
.page-hero {
  padding: 2.8rem 0 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin: 0 0 0.6rem;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.legal {
  padding-bottom: 3.5rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.7rem;
}

.crumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--brand-magenta);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.error-page h1 {
  font-family: var(--font-display);
  margin: 0.4rem 0 0.8rem;
}

.error-page p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--bg-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  font-family: var(--font-display);
  color: #fff;
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 0.8rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover {
  color: #ffb020;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .version-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot-wide {
    grid-column: span 2;
  }

  .phone-stack {
    height: 420px;
    order: -1;
  }

  .split-media .frame-offset {
    width: 38%;
    right: 4%;
    bottom: -6%;
  }

  .version-shots img {
    height: 180px;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.35rem);
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.75rem;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.65rem 0.5rem;
  }

  .feature-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .shot-wide {
    grid-column: span 1;
    aspect-ratio: 9 / 14;
  }

  .phone-stack {
    height: 360px;
  }

  .phone {
    width: min(170px, 42vw);
  }

  .hero {
    padding-top: 1.8rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .header-inner {
    position: relative;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
