/* ==========================================================================
   糖果云 TangGuoYun - 全局浅色风格样式表 (Pure CSS)
   ========================================================================== */

:root {
  /* 配色系统 (清新浅色调) */
  --bg-main: #f8fafc;
  --bg-white: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-accent-light: #eef2ff;
  
  --text-main: #0f172a;
  --text-sub: #475569;
  --text-muted: #64748b;
  --text-white: #ffffff;

  /* 品牌糖果渐变色 */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --secondary: #ec4899;
  --gradient-candy: linear-gradient(135deg, #4f46e5 0%, #7c3aed 40%, #ec4899 100%);
  --gradient-badge: linear-gradient(135deg, #e0e7ff 0%, #fae8ff 100%);
  --gradient-bg: linear-gradient(180deg, #f8fafc 0%, #eef2ff 50%, #f8fafc 100%);

  /* 边框与阴影 */
  --border-color: #e2e8f0;
  --border-focus: #c7d2fe;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(79, 70, 229, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 40px -15px rgba(79, 70, 229, 0.15);
  --shadow-hover: 0 25px 50px -12px rgba(79, 70, 229, 0.22);

  /* 布局参数 */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

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

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

/* 版块公用标题 */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--gradient-badge);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.3;
}

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

/* 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-candy);
  color: var(--text-white);
  box-shadow: 0 10px 20px -5px rgba(236, 72, 153, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(236, 72, 153, 0.5);
  opacity: 0.95;
}

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

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* 顶部导航 */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-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.35rem;
  font-weight: 800;
  background: var(--gradient-candy);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-candy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1.2rem;
  -webkit-text-fill-color: initial;
}

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

.nav-link {
  font-weight: 600;
  color: var(--text-sub);
  transition: var(--transition);
}

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

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

/* 主视觉区 Hero Section */
.hero {
  padding: 80px 0 100px;
  background: var(--gradient-bg);
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

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

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.hero-title span {
  background: var(--gradient-candy);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-sub);
  margin-bottom: 36px;
  line-height: 1.7;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

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

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

.hero-card-preview {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
}

.speed-meter {
  text-align: center;
  padding: 20px 0;
}

.meter-circle {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0% 85%, #e2e8f0 85% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.meter-inner {
  width: 130px;
  height: 130px;
  background: var(--bg-white);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.meter-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.meter-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.ping-info {
  display: flex;
  justify-content: space-around;
  background: var(--bg-subtle);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-top: 20px;
}

.ping-item {
  text-align: center;
}

.ping-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ping-val {
  font-weight: 700;
  color: #10b981;
  font-size: 1rem;
}

/* 核心优势 Section */
.features {
  padding: 100px 0;
  background-color: var(--bg-white);
}

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

.feature-card {
  background: var(--bg-main);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
  background: var(--bg-white);
}

.feature-icon {
  width: 54px;
  height: 54px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--primary);
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* 流媒体与 AI 支持 */
.unlock-section {
  padding: 100px 0;
  background: var(--gradient-bg);
}

.unlock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.unlock-card {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.unlock-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.unlock-badge-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-badge);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.unlock-card-title {
  font-size: 1.5rem;
  font-weight: 800;
}

.unlock-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
}

.tag-item:hover {
  background: var(--bg-accent-light);
  border-color: var(--border-focus);
  color: var(--primary);
}

/* 价格套餐表 */
.pricing {
  padding: 100px 0;
  background-color: var(--bg-white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

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

.price-card.popular {
  background: var(--bg-white);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

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

.price-header {
  margin-bottom: 24px;
  text-align: center;
}

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

.plan-price {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

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

.plan-desc {
  font-size: 0.875rem;
  color: var(--text-sub);
  margin-top: 10px;
}

.plan-features {
  margin: 30px 0;
  flex-grow: 1;
  border-top: 1px dashed var(--border-color);
  padding-top: 24px;
}

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

.check-icon {
  width: 20px;
  height: 20px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  flex-shrink: 0;
}

/* 用户评价 */
.testimonials {
  padding: 100px 0;
  background: var(--gradient-bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.review-text {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

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

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

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

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

/* FAQ 常见问题 */
.faq {
  padding: 100px 0;
  background-color: var(--bg-white);
}

.faq-grid {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 30px;
}

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

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

.faq-answer {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
  padding-left: 36px;
}

/* 页脚 (只保留 4 个标题，在新窗口打开) */
.footer {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
  padding: 50px 0;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  transition: var(--transition);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.footer-link:hover {
  color: var(--primary);
  background: var(--bg-subtle);
}

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

/* 子页面独立布局 */
.subpage-hero {
  padding: 60px 0 40px;
  background: var(--gradient-bg);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.subpage-content {
  padding: 60px 0;
  background: var(--bg-white);
  min-height: 60vh;
}

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

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

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

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

.content-box ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.content-box li {
  color: var(--text-sub);
  margin-bottom: 8px;
  list-style-type: disc;
}

/* ==========================================================================
   响应式适配（移动端单栏与大触控热区）
   ========================================================================== */

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

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

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

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 800px;
    margin: 0 auto;
  }

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

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr !important;
    max-width: 500px;
  }

  .header .container {
    height: 64px;
  }

  .nav-links {
    display: none; /* 移动端保持纯粹极简体验 */
  }

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

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

  .btn {
    width: 100%;
    min-height: 50px; /* 大手指点击热区 */
    font-size: 1.05rem;
  }

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

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

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

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

  .plan-price {
    font-size: 2.5rem;
  }
}

/* 高科技网格卡片 (Grid Cards) 布局样式 */
.articles-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.article-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-candy);
  opacity: 0;
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-focus);
}

.article-card:hover::before {
  opacity: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.article-category {
  background: var(--bg-accent-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.article-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 14px;
}

.article-card-title a {
  color: inherit;
  transition: var(--transition);
}

.article-card-title a:hover {
  color: var(--primary);
}

.article-excerpt {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--border-color);
  padding-top: 16px;
}

.article-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.article-link-btn:hover {
  gap: 10px;
  color: var(--secondary);
}

@media (max-width: 992px) {
  .articles-tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .articles-tech-grid {
    grid-template-columns: 1fr;
  }
}
