/* 糖心Vlog 视频资源导航 txin.lat */
:root {
  --primary: #e63956;
  --primary-dark: #c1122f;
  --primary-light: #ff6b81;
  --accent: #ff8fa3;
  --bg: #0f0f14;
  --bg-card: #1a1a24;
  --bg-card-hover: #222230;
  --text: #f0f0f5;
  --text-muted: #a0a0b0;
  --border: #2a2a3a;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --max-width: 1200px;
}

*,
*::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", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}

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, #0a0a10, #1a1018);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.logo-link:hover {
  color: #fff;
  opacity: 0.92;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
}

.logo-text span {
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.88);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(230, 57, 86, 0.18);
  color: var(--primary-light);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 998;
}

.nav-overlay.is-open {
  display: block;
}

.header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

/* APP 推荐广告 */
.ad-bar {
  background: linear-gradient(180deg, #14141e 0%, var(--bg) 100%);
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--border);
}

.applist-title {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-weight: 600;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  background: transparent;
  margin: 0;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  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: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: block;
  border: 2px solid rgba(230, 57, 86, 0.2);
  background: #fff;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 28px rgba(230, 57, 86, 0.25);
  border-color: var(--primary);
}

#ads .caption,
#ads figcaption {
  margin-top: 6px;
  height: 15px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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.1);
  color: #1a0508;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(230, 57, 86, 0.5);
}

.btn-outline:hover {
  background: rgba(230, 57, 86, 0.12);
  color: #fff;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0a0812 0%, #1a1020 50%, #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(230, 57, 86, 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(230, 57, 86, 0.4);
  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(230, 57, 86, 0.3);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.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, #1a1020, #2a1520);
  border: 1px solid rgba(230, 57, 86, 0.3);
  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, #0a0812, #1a1020);
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-muted);
}

.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(230, 57, 86, 0.35);
}

.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 img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.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(230, 57, 86, 0.12);
  color: var(--primary-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  border: 1px solid rgba(230, 57, 86, 0.25);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.step-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.step-num {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  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;
}

/* Footer */
.site-footer {
  background: #080810;
  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;
}

.error-code {
  font-size: 6rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  opacity: 0.8;
}

.error-title {
  font-size: 1.75rem;
  margin: 16px 0;
}

.error-desc {
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .showcase-row {
    grid-template-columns: 1fr;
  }

  .showcase-row.reverse {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .menu-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .logo-link {
    order: 1;
  }

  .header-actions {
    display: none;
  }

  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 0 8px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .brand-showcase {
    flex-direction: column;
    text-align: center;
  }

  .content-img-row,
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .screenshot-gallery {
    grid-template-columns: 1fr;
  }

  #ads > div {
    width: 68px;
  }

  #ads img {
    width: 60px;
    height: 60px;
  }
}
