/* 糖心官网 tx-tv.live */
:root {
  --bg: #0a0a0c;
  --bg-elevated: #141418;
  --bg-card: #1a1a20;
  --bg-soft: #22222a;
  --text: #f5f2f0;
  --text-muted: #a8a2ad;
  --text-dim: #7a7480;
  --accent: #e83e8c;
  --accent-hot: #ff4d6d;
  --accent-gold: #f0a020;
  --accent-soft: #ff6b9d;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --max: 1180px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti 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);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(232, 62, 140, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 5%, rgba(240, 160, 32, 0.12), transparent 50%),
    linear-gradient(180deg, #0d0d12 0%, var(--bg) 40%, #08080a 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 0.6em;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 1.1em;
  color: var(--text-muted);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10, 10, 12, 0.82);
  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(--text);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(232, 62, 140, 0.35);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  padding: 3.5rem 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;
  color: var(--accent-gold);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}

.hero-copy h1 {
  margin-bottom: 0.85rem;
  background: linear-gradient(120deg, #fff 20%, #ffb4d0 55%, #f0a020 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy .lead {
  font-size: 1.05rem;
  max-width: 36em;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  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 {
  background: linear-gradient(135deg, var(--accent-hot), var(--accent));
  color: #fff;
  box-shadow: 0 10px 28px rgba(232, 62, 140, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Overlapping phone banner */
.phone-stack {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  position: absolute;
  width: min(240px, 42vw);
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  background: #111;
  transition: transform 0.35s ease;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 9 / 19.5;
}

.phone-back {
  transform: translate(-18%, 4%) rotate(-8deg);
  z-index: 1;
  opacity: 0.92;
}

.phone-front {
  transform: translate(16%, -2%) rotate(5deg);
  z-index: 2;
}

.phone-stack:hover .phone-back {
  transform: translate(-22%, 2%) rotate(-10deg);
}

.phone-stack:hover .phone-front {
  transform: translate(20%, -4%) rotate(7deg);
}

.phone-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 62, 140, 0.35), transparent 70%);
  filter: blur(20px);
  z-index: 0;
  animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

/* Sections */
.section {
  padding: 3.2rem 0;
}

.section-head {
  margin-bottom: 1.6rem;
  max-width: 46rem;
}

.section-head p {
  margin-bottom: 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-block: 1px solid var(--line);
}

.prose {
  max-width: 52rem;
}

.prose p {
  text-align: justify;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(232, 62, 140, 0.4);
  transform: translateY(-3px);
}

.feature-card h3 {
  color: var(--text);
  margin-bottom: 0.45rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.shot-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: transform 0.25s ease;
}

.shot-item:hover {
  transform: translateY(-4px);
}

.shot-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-item figcaption {
  padding: 0.7rem 0.8rem 0.9rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.shot-item figcaption strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.split-media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
  margin-inline: auto;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.list-check li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.4rem;
  color: var(--text-muted);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent));
}

.news-list {
  display: grid;
  gap: 1rem;
}

.news-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.news-item time {
  color: var(--accent-gold);
  font-size: 0.9rem;
}

.news-item h3 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.news-item p {
  margin: 0;
  font-size: 0.95rem;
}

.cta-band {
  margin: 1rem 0 0;
  padding: 2rem;
  border-radius: 20px;
  background:
    linear-gradient(120deg, rgba(232, 62, 140, 0.22), rgba(240, 160, 32, 0.12)),
    var(--bg-card);
  border: 1px solid rgba(232, 62, 140, 0.25);
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 0.5rem;
}

.cta-band p {
  max-width: 40rem;
  margin: 0 auto 1.2rem;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.chip {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.chip:hover {
  color: #fff;
  border-color: rgba(232, 62, 140, 0.5);
}

/* Inner pages */
.page-hero {
  padding: 2.8rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.content-block {
  padding: 2.5rem 0 3.5rem;
}

.content-block h2 {
  margin-top: 1.8rem;
}

.content-block h2:first-child {
  margin-top: 0;
}

.legal p,
.about-body p {
  max-width: 52rem;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.4rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  background: #070709;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.footer-brand h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-col h4 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  color: var(--text);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.footer-bottom {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  justify-content: space-between;
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .phone-stack {
    height: 420px;
    order: -1;
  }

  .split-media img {
    max-height: 480px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(12, 12, 16, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0.4rem;
    border-bottom: 1px solid var(--line);
  }

  .header-inner {
    position: relative;
  }

  .feature-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .phone-stack {
    height: 360px;
  }

  .phone {
    width: min(180px, 46vw);
  }

  .hero {
    padding-top: 2rem;
  }

  .cta-band {
    padding: 1.4rem;
  }
}
