/* 糖心vlog官网 - txlog.monster */
:root {
  --brand-orange: #ff6b1a;
  --brand-pink: #e91e63;
  --brand-grad: linear-gradient(135deg, #ff8c2a 0%, #e91e63 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(255, 140, 42, 0.12), rgba(233, 30, 99, 0.12));
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --bg: #faf8f6;
  --bg-white: #ffffff;
  --border: #eee6e0;
  --shadow: 0 8px 32px rgba(233, 30, 99, 0.08);
  --radius: 12px;
  --max: 1180px;
  --header-h: 68px;
  --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;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-pink);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--brand-orange);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.logo span {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-pink);
  background: var(--brand-grad-soft);
}

.nav-cta {
  background: var(--brand-grad) !important;
  color: #fff !important;
  margin-left: 8px;
  padding: 8px 18px !important;
}

.nav-cta:hover {
  opacity: 0.9;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.25s;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(255, 140, 42, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(233, 30, 99, 0.12), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e91e63' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 20px;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 1.15;
  margin-bottom: 16px;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeUp 0.7s ease both;
}

.hero-title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 480px;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeUp 0.7s 0.3s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 10px 28px rgba(233, 30, 99, 0.4);
}

.btn-outline {
  background: var(--bg-white);
  color: var(--brand-pink);
  border: 1.5px solid rgba(233, 30, 99, 0.35);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeIn 1s 0.2s ease both;
}

.hero-phone {
  width: min(280px, 70%);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  border: 4px solid #fff;
  overflow: hidden;
  transform: rotate(2deg);
  transition: transform 0.4s;
}

.hero-phone:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-float {
  position: absolute;
  width: 140px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
  animation: float 4s ease-in-out infinite;
}

.hero-float.f1 {
  top: 8%;
  left: 0;
  animation-delay: 0s;
}

.hero-float.f2 {
  bottom: 12%;
  right: 0;
  animation-delay: 1.5s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-white);
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 12px;
  color: var(--text);
}

.section-head p {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.02rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-item {
  text-align: center;
  padding: 28px 20px;
}

.feature-item img {
  width: 100%;
  max-width: 200px;
  margin: 0 auto 20px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
  transition: transform 0.3s;
}

.feature-item:hover img {
  transform: translateY(-6px);
}

.feature-item h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Category showcase */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.cat-card:hover {
  transform: translateY(-4px);
}

.cat-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.cat-card .cat-info {
  padding: 14px 16px 18px;
}

.cat-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.cat-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Content blocks */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block.reverse {
  direction: rtl;
}

.content-block.reverse > * {
  direction: ltr;
}

.content-block img {
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 4px solid #fff;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.content-text h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.content-text p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.content-text ul {
  margin: 16px 0;
}

.content-text li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.content-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-grad);
}

/* Article / SEO text */
.seo-article {
  max-width: 860px;
  margin: 0 auto;
}

.seo-article h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.seo-article h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: var(--text);
}

.seo-article p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  text-align: justify;
}

.seo-article ol,
.seo-article ul {
  margin: 12px 0 20px 1.2em;
  color: var(--text-secondary);
}

.seo-article ol {
  list-style: decimal;
}

.seo-article ul {
  list-style: disc;
}

.seo-article li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.seo-article a {
  font-weight: 500;
  border-bottom: 1px solid rgba(233, 30, 99, 0.3);
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.internal-links a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--brand-grad-soft);
  border-radius: 8px;
  color: var(--brand-pink);
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: none;
}

.internal-links a:hover {
  background: var(--brand-grad);
  color: #fff;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--bg-white);
  padding: 28px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--brand-pink);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--brand-grad-soft);
  padding: 48px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--brand-pink);
}

.page-content {
  padding: 48px 0 72px;
}

.page-content .seo-article {
  background: var(--bg-white);
  padding: 40px 44px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-page .error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 8rem);
  line-height: 1;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  background: #1f1a1c;
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-about {
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: #ff8c2a;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

/* Download banner */
.download-banner {
  background: var(--brand-grad);
  padding: 48px 0;
  text-align: center;
  color: #fff;
}

.download-banner h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.download-banner p {
  opacity: 0.9;
  margin-bottom: 24px;
}

.download-banner .btn {
  background: #fff;
  color: var(--brand-pink);
}

.download-banner .btn:hover {
  color: var(--brand-orange);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 20px;
    gap: 36px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-float {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-block,
  .content-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 28px;
    text-align: center;
  }

  .content-block img {
    max-width: 260px;
  }

  .content-text ul {
    text-align: left;
    display: inline-block;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    gap: 2px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 12px 16px;
    text-align: left;
  }

  .nav-cta {
    margin-left: 0 !important;
    margin-top: 8px;
    text-align: center !important;
    justify-content: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-brand {
    font-size: 2.4rem;
  }

  .section {
    padding: 48px 0;
  }

  .cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-content .seo-article {
    padding: 24px 18px;
  }

  .seo-article p {
    text-align: left;
  }
}

@media (max-width: 400px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
}
