/* 糖心vlog传媒官网 - txweb.mom */
:root {
  --brand-yellow: #ffb020;
  --brand-orange: #ff6b2c;
  --brand-magenta: #e8328a;
  --brand-purple: #8b2fc9;
  --text: #1a1520;
  --text-soft: #5a5260;
  --bg: #fff8f2;
  --bg-alt: #ffffff;
  --line: rgba(139, 47, 201, 0.12);
  --shadow: 0 12px 40px rgba(232, 50, 138, 0.1);
  --radius: 18px;
  --max: 1120px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 176, 32, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(232, 50, 138, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(139, 47, 201, 0.12), transparent 55%),
    var(--bg);
  line-height: 1.75;
  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-purple);
}

.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, 248, 242, 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(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(255, 107, 44, 0.35);
}

.brand span {
  background: linear-gradient(105deg, var(--brand-orange), var(--brand-magenta), var(--brand-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}

.nav a {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-magenta);
}

.nav-toggle {
  display: none;
  border: 0;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-magenta));
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(105deg, var(--brand-orange), var(--brand-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 36rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.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.98rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-magenta) 55%, var(--brand-purple));
  box-shadow: 0 10px 28px rgba(232, 50, 138, 0.32);
}

.btn-primary:hover {
  color: #fff;
  opacity: 0.93;
}

.btn-ghost {
  color: var(--brand-purple);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(139, 47, 201, 0.22);
}

.btn-ghost:hover {
  color: var(--brand-magenta);
  background: #fff;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  animation: floaty 5.5s ease-in-out infinite;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 12% -8% -8% 18%;
  background: linear-gradient(135deg, rgba(255, 176, 32, 0.35), rgba(232, 50, 138, 0.25), rgba(139, 47, 201, 0.2));
  filter: blur(36px);
  z-index: -1;
  border-radius: 40%;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sections */
section {
  padding: 3rem 0;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--text-soft);
  max-width: 42rem;
}

.panel {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 28px rgba(26, 21, 32, 0.04);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.feature-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #f3e9f0;
}

.feature-card .body {
  padding: 1rem 1.1rem 1.2rem;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.shot-grid figure {
  margin: 0;
  background: var(--bg-alt);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.shot-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-grid figcaption {
  padding: 0.65rem 0.75rem;
  font-size: 0.86rem;
  color: var(--text-soft);
  text-align: center;
}

.content-block {
  display: grid;
  gap: 1.25rem;
}

.content-block h2,
.content-block h3 {
  margin: 1.6rem 0 0.7rem;
  line-height: 1.35;
}

.content-block h2:first-child,
.content-block > .panel > h2:first-child {
  margin-top: 0;
}

.content-block p {
  margin: 0 0 0.9rem;
  color: var(--text);
}

.content-block ul,
.content-block ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-soft);
}

.content-block li {
  margin-bottom: 0.45rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.split img {
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
}

.tag-list a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.88rem;
}

.tag-list a:hover {
  color: var(--brand-magenta);
  border-color: rgba(232, 50, 138, 0.35);
}

.seo-article {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.seo-article p {
  margin: 0 0 1rem;
  text-align: justify;
}

.breadcrumb {
  padding: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.breadcrumb a {
  color: var(--text-soft);
}

.page-hero {
  padding: 2rem 0 1rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.page-hero p {
  margin: 0;
  color: var(--text-soft);
  max-width: 40rem;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-magenta), var(--brand-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.error-page h1 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
}

.error-page p {
  margin: 0 0 1.5rem;
  color: var(--text-soft);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  padding: 2.25rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--text-soft);
  font-size: 0.85rem;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 0.7s ease both;
  }
  .reveal-delay {
    animation: rise 0.7s ease 0.15s both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0.2rem;
    border-bottom: 1px solid var(--line);
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .feature-grid,
  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .seo-article,
  .panel {
    padding: 1.15rem;
  }
}

@media (max-width: 420px) {
  .feature-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }
}
