/* 糖心Vlog txsip.org — 全站样式 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=ZCOOL+XiaoWei&display=swap');

:root {
  --primary: #e11d48;
  --primary-dark: #be123c;
  --primary-light: #fb7185;
  --accent: #f43f5e;
  --bg: #f7f5f8;
  --bg-soft: #fff;
  --bg-card: #ffffff;
  --bg-muted: #f0ebf0;
  --text: #1c1418;
  --text-muted: #5c4f56;
  --border: #e8dde3;
  --shadow: 0 8px 28px rgba(28, 20, 24, 0.08);
  --radius: 14px;
  --max-width: 1180px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

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(180deg, #fff 0%, #fffafb 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 var(--border), 0 8px 24px rgba(225, 29, 72, 0.04);
  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: var(--text);
  flex-shrink: 0;
}
.logo-link:hover { color: var(--text); opacity: .92; }
.logo-img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}
.logo-text {
  font-family: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  font-size: 1.35rem;
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.logo-text span { color: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  z-index: 1002;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(225, 29, 72, 0.08);
  color: var(--primary);
}

.header-actions { display: flex; gap: 8px; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.28);
}
.btn-primary:hover {
  filter: brightness(1.05);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid rgba(225, 29, 72, 0.35);
}
.btn-outline:hover {
  background: rgba(225, 29, 72, 0.06);
  color: var(--primary-dark);
}
.btn-orange {
  background: var(--primary);
  color: #fff;
}
.btn-orange:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse at 85% 20%, rgba(244, 63, 94, 0.14) 0%, transparent 45%),
    radial-gradient(ellipse at 10% 80%, rgba(225, 29, 72, 0.08) 0%, transparent 40%),
    linear-gradient(160deg, #fff5f7 0%, #f7f5f8 48%, #f3eef4 100%);
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.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='%23e11d48' 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;
  opacity: .9;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-family: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  font-size: 2.15rem;
  line-height: 1.35;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 400;
}
.hero-desc {
  color: var(--text-muted);
  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);
  width: 100%;
}

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--bg-soft); }
section.soft {
  background: linear-gradient(180deg, #fff 0%, #faf6f8 100%);
}

.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 {
  font-family: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  font-size: 1.85rem;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 400;
}
.section-header p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature-item:hover {
  border-color: rgba(225, 29, 72, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature-item h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.feature-item p {
  color: var(--text-muted);
  font-size: .95rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(225, 29, 72, 0.28);
}
.card-img { width: 100%; height: 190px; object-fit: cover; object-position: top; }
.card-body { padding: 20px; }
.card-body h3 { margin-bottom: 10px; color: var(--text); font-size: 1.05rem; }
.card-body p { color: var(--text-muted); font-size: .92rem; }

.cta-banner {
  background: linear-gradient(135deg, #fff1f4, #ffe4e9);
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  margin-top: 40px;
}
.cta-banner h2 {
  margin-bottom: 12px;
  color: var(--text);
  font-family: "ZCOOL XiaoWei", serif;
  font-weight: 400;
}
.cta-banner p { color: var(--text-muted); margin-bottom: 24px; }

.faq-list { max-width: 820px; 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: var(--text);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--primary);
  font-weight: 700;
}
.faq-item[open] summary::after { content: '−'; }
.faq-answer {
  padding: 0 24px 18px;
  color: var(--text-muted);
  font-size: .95rem;
}

.article-content { max-width: 860px; margin: 0 auto; }
.article-content h2 {
  margin: 32px 0 16px;
  color: var(--text);
  font-size: 1.45rem;
  font-family: "ZCOOL XiaoWei", serif;
  font-weight: 400;
}
.article-content h3 {
  margin: 24px 0 12px;
  color: var(--primary);
  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: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 32px;
}
.internal-links h3 {
  margin-bottom: 12px;
  color: var(--text);
  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: #fff;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

.page-header {
  padding: 44px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(244, 63, 94, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #fff5f7, #f7f5f8);
}
.page-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  font-family: "ZCOOL XiaoWei", serif;
  font-weight: 400;
}
.page-header p { color: var(--text-muted); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.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);
  width: 100%;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.screenshot-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.screenshot-item:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 72, 0.3);
  box-shadow: var(--shadow);
}
.screenshot-item img {
  width: 100%;
  height: 210px;
  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: var(--text); margin-bottom: 10px; }
.screenshot-item p { font-size: .9rem; color: var(--text-muted); line-height: 1.75; }

.brand-showcase {
  display: flex;
  align-items: center;
  gap: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}
.brand-showcase img {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.18);
}
.brand-showcase h3 { color: var(--primary); margin-bottom: 10px; }
.brand-showcase p { color: var(--text-muted); font-size: .95rem; }

.deep-dive-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(28, 20, 24, 0.04);
}
.deep-dive-block .showcase-row { margin-bottom: 0; }
.deep-dive-block h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 14px;
}
.deep-dive-block p {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: .95rem;
}
.deep-dive-block ul {
  margin: 0 0 12px 20px;
  color: var(--text-muted);
  font-size: .92rem;
}
.deep-dive-block li { margin-bottom: 6px; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  position: relative;
}
.step-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -12px;
  left: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-item h3 { margin: 8px 0 10px; font-size: 1.05rem; }
.step-item p { color: var(--text-muted); font-size: .92rem; }

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.member-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.member-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.member-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top;
}
.member-card .body { padding: 18px; }
.member-card h3 { font-size: 1rem; margin-bottom: 8px; }
.member-card p { font-size: .88rem; color: var(--text-muted); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag-list span {
  background: rgba(225, 29, 72, 0.08);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .82rem;
  border: 1px solid rgba(225, 29, 72, 0.18);
}

.toc-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 36px;
}
.toc-box h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 600;
}
.toc-box ol {
  margin-left: 20px;
  color: var(--text-muted);
  columns: 2;
  column-gap: 28px;
}
.toc-box li { margin-bottom: 6px; break-inside: avoid; }
.toc-box a { color: var(--text-muted); }
.toc-box a:hover { color: var(--primary); }

.prose-block {
  max-width: 860px;
  margin: 0 auto 36px;
}
.prose-block p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 1rem;
}
.prose-block h3 {
  color: var(--text);
  margin: 20px 0 10px;
  font-size: 1.15rem;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #1c1418 0%, #120e11 100%);
  border-top: 1px solid #2a2226;
  padding: 48px 0 24px;
  color: #d4c8cd;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand .logo-text { color: #fff; }
.footer-brand p {
  color: #a8989f;
  font-size: .9rem;
  margin-top: 12px;
  line-height: 1.7;
}
.footer-col h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: .95rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #a8989f; font-size: .9rem; }
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid #2a2226;
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p { color: #8a7a82; font-size: .85rem; }
.footer-bottom a { color: #a8989f; }

/* Error pages */
.error-page { padding: 90px 0; text-align: center; }
.error-code {
  font-size: 6rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  opacity: .85;
  font-family: "ZCOOL XiaoWei", serif;
}
.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;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 20, 24, 0.45);
  z-index: 999;
}
.nav-overlay.show { display: block; }

/* Responsive + hamburger */
@media (max-width: 980px) {
  .header-inner { justify-content: flex-start; }
  .nav-toggle {
    display: flex;
    margin-left: auto;
    order: 3;
  }
  .header-actions { display: none; }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 86vw);
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 20px 32px;
    gap: 4px;
    box-shadow: -12px 0 40px rgba(28, 20, 24, 0.15);
    z-index: 1001;
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 10px;
  }
  .hero-grid, .two-col, .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; }
  .toc-box ol { columns: 1; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 44px; }
  .hero h1 { font-size: 1.55rem; }
  .section-header h2 { font-size: 1.45rem; }
  .screenshot-gallery { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px 20px; }
}

/* APP 推荐广告条 */
.ad-bar {
  background: linear-gradient(180deg, #fff 0%, #fff7f9 100%);
  border-bottom: 1px solid var(--border);
  padding: 12px 0 8px;
}
#applist { margin: 0 auto; }
.applist-title {
  text-align: center;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 14px;
  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; }
#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  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(225, 29, 72, 0.22);
}
#ads figcaption,
#ads .caption {
  height: 18px;
  margin-top: 6px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 600px) {
  #ads > div { width: 64px; }
  #ads img { width: 58px; height: 58px; }
}
