/* ==========================================================================
   贝雪云 (Besnow Cloud) - 官方极简原生样式表
   零重型框架依赖 / 秒开级加载 / 响应式适配 / 无障碍对比度 >= 4.5:1
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #0284c7;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --nav-height: 72px;
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 键盘可访问性跳过链接 */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease-in-out;
}
.skip-link:focus {
  top: 16px;
  outline: 3px solid #facc15;
}

/* 锚点偏移量处理 */
[id] {
  scroll-margin-top: calc(var(--nav-height) + 20px);
}

/* 容器定义 */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* 页眉与导航 */
.site-header {
  position: sticky;
  top: 0;
  height: var(--nav-height);
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

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

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.22);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-link:hover .logo-icon {
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.site-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background-color 0.2s;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-nav a:hover, .site-nav a:focus-visible {
  color: var(--primary);
  background-color: var(--primary-light);
  outline: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: #ffffff !important;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 10px 18px !important;
  transition: background-color 0.2s, transform 0.1s;
}

.nav-cta:hover, .nav-cta:focus-visible {
  background-color: var(--primary-hover) !important;
  color: #ffffff !important;
}

/* 按钮通用规范 (满足触摸 >= 44x44px) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  min-height: 48px;
  min-width: 120px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease-in-out;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

/* 主视觉区 (Hero) */
.hero-section {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: #dbeafe;
  color: #1e40af;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}

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

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 700px;
  margin: 50px auto 0;
  padding: 24px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

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

.stat-item .stat-label {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 4px;
}

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

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

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

.section-tag {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

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

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

/* 产品核心优势 3 个图文卡片 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

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

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* 套餐价格对比表 */
.pricing-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 640px;
}

.pricing-table caption {
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: left;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

.pricing-table th,
.pricing-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-table thead th {
  background-color: #f1f5f9;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.pricing-table tbody tr:hover {
  background-color: #fafbfc;
}

.pricing-table tr.highlight-row {
  background-color: #f0f7ff;
}

.plan-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.plan-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 8px;
  background-color: #2563eb;
  color: #ffffff;
  border-radius: 9999px;
  margin-left: 8px;
  font-weight: 600;
}

.plan-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #2563eb;
}

.plan-price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
}

/* 流媒体与 AI 支持图卡 */
.media-ai-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.media-ai-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.media-ai-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.media-logo-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-subtle);
}

.media-ai-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.media-ai-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

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

.review-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #dbeafe;
  color: #1e40af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.author-info span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* FAQ 常见问题 (details/summary 默认展开，无依赖原生实现) */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-question {
  padding: 20px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

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

.faq-question::after {
  content: "▾";
  font-size: 1.25rem;
  color: var(--text-light);
  transition: transform 0.2s ease;
}

details[open] > .faq-question::after {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 24px 20px 24px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.faq-answer a {
  color: var(--primary);
  text-decoration: underline;
}

/* 页脚 Footer - 严格只保留 4 个跳转新页面的入口 */
.site-footer {
  margin-top: auto;
  background-color: #0f172a;
  color: #94a3b8;
  padding: 50px 0 30px;
  border-top: 1px solid #1e293b;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
}

.footer-nav a:hover, .footer-nav a:focus-visible {
  color: #38bdf8;
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid #1e293b;
  width: 100%;
  padding-top: 24px;
}

/* 文章列表与内容页专属样式 */
.article-header {
  padding: 60px 0 40px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 14px;
}

.article-content {
  max-width: 820px;
  margin: 40px auto 60px;
  padding: 0 20px;
  color: #334155;
  font-size: 1.075rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.article-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 28px 0 12px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

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

.article-content blockquote {
  border-left: 4px solid var(--primary);
  background-color: #f0f7ff;
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
  font-style: italic;
  color: var(--text-muted);
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

.article-cta-box {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  margin: 48px 0;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.article-cta-box h3 {
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.article-cta-box p {
  color: #dbeafe;
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.article-cta-box .btn {
  background: #ffffff;
  color: #1e3a8a;
  font-weight: 700;
}
.article-cta-box .btn:hover {
  background: #f8fafc;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-card-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.article-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.article-card h3 a {
  color: var(--text-main);
  text-decoration: none;
}

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

.article-card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

/* 网站地图与单页条款布局 */
.page-container {
  max-width: 900px;
  margin: 50px auto 80px;
  padding: 0 20px;
}

.policy-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.sitemap-group {
  margin-bottom: 36px;
}

.sitemap-group h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
  color: var(--text-main);
}

.sitemap-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.sitemap-list li a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  border: 1px solid var(--border-color);
  width: 100%;
  transition: all 0.2s;
  min-height: 44px;
}

.sitemap-list li a:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary);
}

/* ==========================================================================
   响应式媒体查询 (@media) 保证 360px, 390px, 768px, 1440px 完美适配
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .media-ai-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: auto;
  }
  .site-header {
    padding: 12px 0;
  }
  .nav-container {
    flex-direction: column;
    gap: 14px;
  }
  .site-nav ul {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-section {
    padding: 48px 0 36px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1.15rem;
  }
  .hero-description {
    font-size: 1rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .media-ai-grid {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .sitemap-list {
    grid-template-columns: 1fr;
  }
  .footer-nav ul {
    gap: 16px;
  }
  .policy-card {
    padding: 24px 16px;
  }
  .pricing-table th, .pricing-table td {
    padding: 14px 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .btn {
    width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
}
