/* 糖心Vlog高清视频官网 txvlog.autos - 全局样式 */
:root {
  --primary: #ff6b35;
  --primary-dark: #e55a2b;
  --accent: #d81b60;
  --accent-light: #f06292;
  --bg-dark: #0d0d0d;
  --bg-card: #1a1a1a;
  --bg-card-hover: #252525;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #777;
  --border: #333;
  --gradient: linear-gradient(135deg, #ff8c00 0%, #d81b60 100%);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --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: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-menu a {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-menu a.active {
  background: var(--gradient);
  color: #fff;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gradient);
  color: #fff !important;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(216, 27, 96, 0.4);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.menu-toggle:hover {
  border-color: var(--primary);
}

.menu-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: background 0.2s;
}

.menu-toggle .bar::before,
.menu-toggle .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease;
}

.menu-toggle .bar::before {
  top: -6px;
}

.menu-toggle .bar::after {
  top: 6px;
}

.menu-toggle.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

.menu-toggle.active .bar {
  background: transparent;
}

.menu-toggle.active .bar::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.active .bar::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero 区域 */
.hero {
  padding: 60px 0 80px;
  background: radial-gradient(
      ellipse at 30% 20%,
      rgba(255, 107, 53, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 80%,
      rgba(216, 27, 96, 0.12) 0%,
      transparent 50%
    );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content .subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border: 2px solid var(--border);
  border-radius: 25px;
  color: var(--text-primary) !important;
  font-weight: 600;
  transition: border-color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
}

.hero-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
}

/* 区块通用 */
.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--bg-card);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* 功能卡片 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.feature-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* 截图展示 */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.screenshot-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.screenshot-item:hover {
  transform: scale(1.03);
}

.screenshot-item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.screenshot-item figcaption {
  padding: 12px;
  background: var(--bg-card);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}

/* 分类标签 */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.category-tag {
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 25px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.category-tag:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

/* 内容文章区 */
.content-article {
  max-width: 900px;
  margin: 0 auto;
}

.content-article h2 {
  font-size: 1.6rem;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.content-article h3 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  color: var(--accent-light);
}

.content-article p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  text-align: justify;
}

.content-article ul,
.content-article ol {
  margin: 16px 0 16px 24px;
  color: var(--text-secondary);
}

.content-article li {
  margin-bottom: 8px;
}

.content-article a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 下载步骤 */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--primary);
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
}

.faq-item.open .faq-answer {
  padding: 0 24px 18px;
  max-height: 500px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* 内链导航 */
.internal-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.internal-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary) !important;
  transition: border-color 0.2s;
}

.internal-link-card:hover {
  border-color: var(--primary);
}

.internal-link-card .link-icon {
  font-size: 1.5rem;
}

.internal-link-card .link-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.internal-link-card .link-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 页面内容（法律页面） */
.page-hero {
  padding: 50px 0 30px;
  text-align: center;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-secondary);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 20px 80px;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
  color: var(--accent-light);
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal-content ul,
.legal-content ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

.legal-content .update-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 30px;
}

/* 错误页面 */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-size: 8rem;
  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: 20px 0 12px;
}

.error-page p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* 页脚 */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1rem;
  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.9rem;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* 面包屑 */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb span {
  margin: 0 8px;
}

/* 响应式 - 平板 */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshot-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 响应式 - 手机 */
@media (max-width: 768px) {
  .header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo img {
    width: 38px;
    height: 38px;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .header-inner nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1001;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  }

  .nav-menu a:active {
    transform: scale(0.98);
  }

  .nav-menu a:hover {
    color: var(--text-primary);
    border-color: var(--primary);
    background: var(--bg-card-hover);
  }

  .nav-menu a.active {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(216, 27, 96, 0.3);
  }

  .header-inner .btn-download {
    display: none;
  }

  .hero {
    padding: 40px 0 50px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .section {
    padding: 50px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .internal-links {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .error-code {
    font-size: 5rem;
  }
}

@media (max-width: 480px) {
  .screenshot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-download,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
