/* 糖心Vlog - tvlog.lat 全局样式 */
:root {
  --primary-start: #ffb800;
  --primary-end: #d6008d;
  --accent-red: #ff3b30;
  --bg-dark: #0a0a0a;
  --bg-card: #161616;
  --bg-card-hover: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #777777;
  --border-color: #2a2a2a;
  --gradient: linear-gradient(135deg, var(--primary-start), var(--primary-end));
  --shadow: 0 4px 24px rgba(214, 0, 141, 0.15);
  --radius: 12px;
  --header-h: 64px;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--primary-start); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-end); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-link:hover { color: var(--text-primary); }
.logo-link img { width: 40px; height: 40px; border-radius: 10px; }

.nav-desktop { display: flex; gap: 28px; list-style: none; }
.nav-desktop a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-desktop a:hover,
.nav-desktop a.active { color: var(--text-primary); }
.nav-desktop a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.98);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 20px;
  z-index: 999;
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; }
.nav-mobile li { border-bottom: 1px solid var(--border-color); }
.nav-mobile a {
  display: block;
  padding: 14px 0;
  color: var(--text-secondary);
  font-size: 1rem;
}
.nav-mobile a:hover { color: var(--primary-start); }

.hero {
  padding: 60px 0 40px;
  background: radial-gradient(ellipse at 30% 0%, rgba(255, 184, 0, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 0%, rgba(214, 0, 141, 0.08) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  padding: 12px 28px;
  background: var(--gradient);
  color: #fff;
  border-radius: 28px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-outline {
  padding: 12px 28px;
  border: 2px solid var(--primary-start);
  color: var(--primary-start);
  border-radius: 28px;
  font-weight: 600;
  font-size: 1rem;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-outline:hover { background: rgba(255, 184, 0, 0.1); color: var(--primary-start); }

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.section { padding: 50px 0; }
.section-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
  text-align: center;
}
.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 36px;
  font-size: 0.95rem;
}
.section-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 0, 141, 0.3);
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary-start);
}
.feature-card p { color: var(--text-secondary); font-size: 0.92rem; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 9/16;
  max-height: 320px;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.category-card:hover img { transform: scale(1.05); }
.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.category-overlay h3 { font-size: 0.95rem; }
.category-overlay p { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.showcase-item {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.showcase-item:hover { border-color: rgba(255, 184, 0, 0.3); }
.showcase-item img {
  width: 200px;
  min-height: 160px;
  object-fit: cover;
  flex-shrink: 0;
}
.showcase-body { padding: 20px; flex: 1; }
.showcase-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.showcase-body p { color: var(--text-secondary); font-size: 0.9rem; }

.content-article {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 40px;
  margin: 20px 0;
}
.content-article h2 {
  font-size: 1.4rem;
  margin: 32px 0 16px;
  color: var(--primary-start);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}
.content-article h2:first-child { margin-top: 0; }
.content-article h3 {
  font-size: 1.15rem;
  margin: 24px 0 12px;
  color: var(--text-primary);
}
.content-article p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-align: justify;
}
.content-article ul, .content-article ol {
  color: var(--text-secondary);
  margin: 0 0 16px 24px;
}
.content-article li { margin-bottom: 8px; }

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--bg-card-hover); }
.faq-q::after { content: "+"; font-size: 1.2rem; color: var(--primary-start); }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  display: none;
  padding: 0 24px 18px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.faq-item.open .faq-a { display: block; }

.page-header {
  padding: 48px 0 32px;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(214, 0, 141, 0.06) 0%, transparent 70%);
}
.page-header h1 { font-size: 2rem; margin-bottom: 8px; }
.page-header p { color: var(--text-secondary); }

.breadcrumb {
  display: flex;
  gap: 8px;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb span { color: var(--text-muted); }

.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.legal-content h2 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  color: var(--primary-start);
}
.legal-content p, .legal-content li {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.legal-content ul, .legal-content ol { margin: 0 0 16px 24px; }
.legal-content .update-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.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-code {
  font-size: 6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.error-page h1 { font-size: 1.5rem; margin: 16px 0 8px; }
.error-page p { color: var(--text-secondary); margin-bottom: 24px; }

.site-footer {
  background: #060606;
  border-top: 1px solid var(--border-color);
  padding: 48px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand img { width: 48px; border-radius: 10px; margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.88rem; }
.footer-col a:hover { color: var(--primary-start); }

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.82rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.82rem; }

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 24px 0;
}
.internal-links a {
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: border-color 0.2s, color 0.2s;
}
.internal-links a:hover {
  border-color: var(--primary-start);
  color: var(--primary-start);
}

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }

  .hero { padding: 36px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-image { max-width: 280px; margin: 0 auto; }

  .feature-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-item { flex-direction: column; }
  .showcase-item img { width: 100%; min-height: auto; aspect-ratio: 16/9; }

  .content-article { padding: 24px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .section { padding: 36px 0; }
  .section-title { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .category-card { max-height: 220px; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; justify-content: center; }
}
