/* ==========================================================================
   糖果云 (TangGuoYun) - 纯原生 CSS 样式表 (浅色科技风格 Light Mode)
   极简高能、秒开加载、全端响应式
   ========================================================================== */

/* 1. 全局变量与设计系统 */
:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.9);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;

  /* 糖果云品牌主色与渐变 */
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --secondary: #ec4899;
  --accent: #3b82f6;
  --gradient-candy: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #3b82f6 100%);
  --gradient-soft: linear-gradient(135deg, #f3e8ff 0%, #fce7f3 50%, #dbeafe 100%);
  --gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

  /* 边框与阴影 */
  --border-color: #e2e8f0;
  --border-highlight: #c084fc;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 15px -3px rgba(124, 58, 237, 0.08), 0 2px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(124, 58, 237, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* 2. 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* 布局容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--gradient-candy);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
  cursor: pointer;
  text-align: center;
  min-height: 48px;
  border: none;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-candy);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.45);
  opacity: 0.95;
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border: 2px solid #e9d5ff;
}

.btn-secondary:hover {
  background: #f3e8ff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
  min-height: 40px;
}

/* 3. 顶部导航栏 */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-candy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 4. 主视觉区 Hero Section */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(243, 232, 255, 0.8) 0%, rgba(248, 250, 252, 0) 70%);
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: #f3e8ff;
  border: 1px solid #e9d5ff;
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-features-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.strip-item svg {
  color: var(--primary);
}

/* Hero Banner AI 高科技视觉美图特效容器 */
.hero-banner-container {
  margin-top: 36px;
  position: relative;
  border-radius: var(--radius-lg);
  padding: 6px;
  background: var(--gradient-candy);
  box-shadow: 0 20px 40px -10px rgba(124, 58, 237, 0.3);
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-lg) - 6px);
  border: 2px solid #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-banner-img:hover {
  transform: scale(1.008);
  box-shadow: 0 25px 50px -12px rgba(124, 58, 237, 0.4);
}

/* 5. 通用 Block 结构 */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* 6. 产品核心优势 Core Advantages */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.advantage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.advantage-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 7. 流媒体与 AI 支持 Streaming & AI Support */
.bg-light-purple {
  background-color: #fcfaff;
  border-top: 1px solid #f3e8ff;
  border-bottom: 1px solid #f3e8ff;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.media-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.25s ease;
}

.media-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.media-icon-wrapper {
  font-size: 2rem;
  margin-bottom: 10px;
}

.media-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.media-tag {
  font-size: 0.82rem;
  color: var(--primary);
  background: #f3e8ff;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
}

/* 8. 套餐价格对比表 Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-candy);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.pricing-price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.pricing-features {
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pricing-features li svg {
  color: #10b981;
  flex-shrink: 0;
}

/* 9. 用户评价 Testimonials */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.user-role {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* 10. FAQ 常见问题 */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-question::before {
  content: "Q";
  display: inline-flex;
  width: 24px;
  height: 24px;
  background: #f3e8ff;
  color: var(--primary);
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.faq-answer {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 34px;
  line-height: 1.6;
}

/* 11. 页脚 (Footer) - 严格只保留 4 个标题 */
.footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
  margin-top: 60px;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer-nav-link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  transition: color 0.2s ease;
  padding: 4px 0;
  position: relative;
}

.footer-nav-link:hover {
  color: var(--primary);
}

.footer-copyright {
  width: 100%;
  text-align: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid #f1f5f9;
  color: var(--text-light);
  font-size: 0.88rem;
}

/* 12. 子页面专属通用样式 (About, Terms, Privacy, Sitemap) */
.subpage-hero {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, #f3e8ff 0%, #f8fafc 100%);
  text-align: center;
}

.subpage-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.subpage-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.subpage-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin: 40px auto 60px;
  max-width: 960px;
  box-shadow: var(--shadow-sm);
}

.content-block {
  margin-bottom: 36px;
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

.content-block p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.content-block ul {
  margin-left: 20px;
  margin-bottom: 12px;
}

.content-block li {
  list-style-type: disc;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.6;
}

/* 网站地图格子样式 */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sitemap-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  background: #f8fafc;
}

.sitemap-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}

.sitemap-card ul li {
  list-style: none;
  margin-bottom: 10px;
}

.sitemap-card ul li a {
  color: var(--text-main);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sitemap-card ul li a:hover {
  color: var(--primary);
}

/* 13. 移动端响应式适配 (@media (max-width: 768px)) */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .header-container {
    height: 64px;
  }

  .nav-menu {
    display: none; /* 移动端精简导航 */
  }

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

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-features-strip {
    flex-direction: column;
    gap: 12px;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  /* 网格系统强制手机端单栏展示 */
  .grid-3,
  .media-grid,
  .pricing-grid,
  .reviews-grid,
  .sitemap-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pricing-card.popular {
    transform: none;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }

  .subpage-content {
    padding: 24px;
    margin: 20px auto 40px;
  }
}
