/* 糖心Vlog官网 txssc.vip */
:root {
  --primary: #e84a6f;
  --primary-dark: #c93658;
  --primary-light: #ff6b8a;
  --accent: #ff8fa3;
  --bg: #0c0c12;
  --bg-card: #16161f;
  --bg-card-hover: #1e1e2a;
  --text: #f2f2f7;
  --text-muted: #9a9aab;
  --border: #2a2a38;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --max-width: 1200px;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Header ========== */
.site-header {
  background: linear-gradient(135deg, #0a0810, #1a1018);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
  min-height: var(--header-h);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  flex-shrink: 0;
  z-index: 1001;
}

.logo-link:hover {
  color: #fff;
  opacity: 0.92;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
}

.logo-text span {
  color: var(--primary);
}

/* Desktop nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.88);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(232, 74, 111, 0.18);
  color: var(--primary-light);
}

.header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #1a0508;
}

.btn-primary:hover {
  filter: brightness(1.08);
  color: #1a0508;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(232, 74, 111, 0.5);
}

.btn-outline:hover {
  background: rgba(232, 74, 111, 0.12);
  color: #fff;
}

/* ========== Hero ========== */
.hero {
  background: linear-gradient(135deg, #0a0810 0%, #1a1020 45%, #201018 100%);
  color: #fff;
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(232, 74, 111, 0.14) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2rem;
  line-height: 1.35;
  margin-bottom: 16px;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ========== Sections ========== */
section {
  padding: 56px 0;
}

section:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
  color: #fff;
}

.section-header p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-item:hover {
  border-color: rgba(232, 74, 111, 0.45);
  transform: translateY(-2px);
}

.feature-item h3 {
  color: var(--primary-light);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(232, 74, 111, 0.3);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top center;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.05rem;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 0.9rem;
}

.cta-banner {
  background: linear-gradient(135deg, #1a1018, #2a1520);
  border: 1px solid rgba(232, 74, 111, 0.35);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  margin-top: 40px;
}

.cta-banner h2 {
  margin-bottom: 12px;
  color: #fff;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--primary);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 24px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.article-content {
  max-width: 860px;
  margin: 0 auto;
}

.article-content h2 {
  margin: 32px 0 16px;
  color: #fff;
  font-size: 1.5rem;
}

.article-content h3 {
  margin: 24px 0 12px;
  color: var(--primary-light);
  font-size: 1.15rem;
}

.article-content p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.article-content ul,
.article-content ol {
  margin: 0 0 16px 24px;
  color: var(--text-muted);
}

.article-content li {
  margin-bottom: 8px;
}

.internal-links {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 32px;
}

.internal-links h3 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 1rem;
}

.internal-links ul {
  list-style: none;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.internal-links li::before {
  content: "› ";
  color: var(--primary);
}

.breadcrumb {
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary-light);
}

.breadcrumb span {
  margin: 0 8px;
  opacity: 0.5;
}

.page-header {
  padding: 40px 0;
  text-align: center;
  background: linear-gradient(135deg, #0a0810, #1a1018);
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-muted);
}

.page-body {
  padding: 48px 0 64px;
}

.updated-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
}

.showcase-row.reverse {
  direction: rtl;
}

.showcase-row.reverse > * {
  direction: ltr;
}

.showcase-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.screenshot-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.screenshot-item:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 74, 111, 0.4);
}

.screenshot-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--border);
}

.screenshot-item .shot-body {
  padding: 20px;
}

.screenshot-item h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 10px;
}

.screenshot-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.brand-showcase {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 40px;
}

.brand-showcase img {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.brand-showcase h3 {
  color: var(--primary-light);
  margin-bottom: 10px;
}

.brand-showcase p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.deep-dive-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}

.deep-dive-block .showcase-row {
  margin-bottom: 0;
}

.deep-dive-block h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 14px;
}

.deep-dive-block p {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.deep-dive-block ul {
  margin: 0 0 12px 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.deep-dive-block li {
  margin-bottom: 6px;
}

.content-img-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.content-img-row figure {
  margin: 0;
}

.content-img-row img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top center;
}

.content-img-row figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tag-list span {
  background: rgba(232, 74, 111, 0.12);
  color: var(--primary-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  border: 1px solid rgba(232, 74, 111, 0.25);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #1a0508;
  font-weight: 800;
  margin-bottom: 14px;
}

.step-item h3 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.step-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.guide-block {
  margin-bottom: 36px;
}

.guide-block h3 {
  color: var(--primary-light);
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.guide-block p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.guide-block ul {
  margin: 0 0 14px 22px;
  color: var(--text-muted);
}

.guide-block li {
  margin-bottom: 8px;
}

/* ========== Ads bar ========== */
.ad-bar {
  background: linear-gradient(180deg, #14141e 0%, var(--bg) 100%);
  padding: 12px 0 8px;
  border-bottom: 1px solid var(--border);
}

#applist {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 12px;
}

.applist-title {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 8px;
  background: transparent;
  margin: 6px 0 4px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: 2px solid rgba(232, 74, 111, 0.2);
  background: #fff;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(232, 74, 111, 0.28);
  border-color: var(--primary);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== Footer ========== */
.site-footer {
  background: #08080e;
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.7;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========== Error pages ========== */
.error-page {
  padding: 80px 0;
  text-align: center;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-code {
  font-size: 6rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  opacity: 0.85;
}

.error-title {
  font-size: 1.75rem;
  margin: 16px 0;
}

.error-desc {
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 480px;
}

/* ========== Responsive / Hamburger ========== */
@media (max-width: 980px) {
  .header-inner {
    position: relative;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
    order: 3;
  }

  .logo-link {
    order: 1;
  }

  .header-actions {
    display: none;
  }

  .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    top: 0;
    background: rgba(8, 8, 14, 0.98);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 80px 28px 40px;
    gap: 4px;
    z-index: 1000;
    order: 2;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    font-size: 1.1rem;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .hero-grid,
  .showcase-row {
    grid-template-columns: 1fr;
  }

  .showcase-row.reverse {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brand-showcase {
    flex-direction: column;
    text-align: center;
  }

  .content-img-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.45rem;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .screenshot-gallery {
    grid-template-columns: 1fr;
  }

  .error-code {
    font-size: 4.5rem;
  }
}

body.nav-open {
  overflow: hidden;
}
