/* 糖果云 TangGuoYun - 高性能浅色主题 CSS */

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.9);
  
  --text-main: #0f172a;
  --text-sub: #475569;
  --text-muted: #64748b;
  
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --candy-pink: #f43f5e;
  --candy-purple: #8b5cf6;
  --candy-cyan: #06b6d4;
  
  --gradient-candy: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --gradient-btn: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-btn-hover: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  --gradient-soft: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);

  --border-light: #e2e8f0;
  --border-highlight: #cbd5e1;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 10px 30px -5px rgba(99, 102, 241, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 20px 40px -10px rgba(99, 102, 241, 0.18), 0 10px 15px -5px rgba(0, 0, 0, 0.04);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --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", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* 容器通用类 */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* 渐变高亮文本 */
.gradient-text {
  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;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

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

.btn-lg {
  padding: 16px 36px;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
}

/* 顶部导航栏 */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: 72px;
  display: flex;
  align-items: center;
}

.header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-candy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.25);
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.25);
  transition: transform 0.2s ease;
}

.logo-img:hover {
  transform: scale(1.08);
}

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

.nav-links a {
  font-weight: 500;
  color: var(--text-sub);
  transition: color 0.2s ease;
}

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

/* Hero 主视觉区 */
.hero {
  padding: 80px 0 60px;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, rgba(248, 250, 252, 0) 70%);
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  margin-bottom: 50px;
}

.hero-text {
  text-align: left;
}

.hero-text .hero-subtitle {
  margin: 0 0 36px 0;
}

.hero-text .hero-actions {
  justify-content: flex-start;
}

.hero-image-box {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.18), 0 10px 15px rgba(0, 0, 0, 0.04);
  border: 4px solid #ffffff;
  transition: transform 0.3s ease;
}

.hero-img:hover {
  transform: scale(1.02);
}

.hero-img-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background-color: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-sub);
  max-width: 760px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.stat-item h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-color);
}

.stat-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* 板块通用布局 */
.section {
  padding: 80px 0;
}

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

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

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

/* 网格与卡片设计 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

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

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

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

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

/* 流媒体与 AI 支持 */
.support-section {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.tech-tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.tech-tag-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border-light);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tech-tag-card:hover {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.tech-icon {
  font-size: 1.5rem;
}

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

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

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.price-card.popular {
  border: 2px solid var(--primary-color);
  box-shadow: 0 12px 35px rgba(79, 70, 229, 0.15);
}

.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-pill);
  letter-spacing: 0.5px;
}

.price-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.price-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.price-amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
}

.price-amount span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

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

.check-mark {
  color: #10b981;
  font-weight: 900;
}

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

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

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

.review-content {
  color: var(--text-sub);
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-style: italic;
}

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

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-candy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

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

.user-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

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

.faq-item summary {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "＋";
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "－";
}

.faq-content {
  padding: 0 24px 20px;
  color: var(--text-sub);
  font-size: 0.95rem;
  border-top: 1px solid #f1f5f9;
  margin-top: 4px;
  padding-top: 16px;
}

/* 底部极简 Footer */
.footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 40px 0;
  margin-top: 60px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

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

.footer-nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-sub);
  transition: color 0.2s ease;
}

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

.copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* 子页面内容框架 (about, terms, privacy, sitemap) */
.page-header {
  padding: 60px 0 30px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.06) 0%, rgba(248, 250, 252, 0) 70%);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.content-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--text-main);
  border-left: 4px solid var(--primary-color);
  padding-left: 12px;
}

.content-box h2:first-child {
  margin-top: 0;
}

.content-box p {
  color: var(--text-sub);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.7;
}

.content-box ul {
  margin: 0 0 20px 24px;
  color: var(--text-sub);
}

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

/* 响应式媒体查询 (Mobile Adaptive) */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .grid-3, .pricing-grid, .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .header {
    height: 64px;
  }
  
  .hero {
    padding: 50px 0 40px;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

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

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 16px;
  }

  .stat-item h3 {
    font-size: 1.4rem;
  }

  .grid-3, .grid-4, .pricing-grid, .reviews-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 50px 0;
  }

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

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

  .content-box {
    padding: 24px;
  }
}
