/* ==========================================================================
   蓝帆云 (LanFanYun) - 纯原生轻量高性能样式表
   零外部依赖 | 纯 CSS 自定义属性 | 响应式媒体查询 | 无障碍支持
   ========================================================================== */

:root {
  --primary: #0080ff;
  --primary-hover: #0066cc;
  --primary-light: #e6f4ff;
  --primary-dark: #005bb5;
  --accent: #0099ff;
  --accent-gradient: linear-gradient(135deg, #00a2ff 0%, #0077ff 60%, #0055ff 100%);
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --border-focus: #0080ff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --container-max: 1200px;
  --nav-height: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 跳转主要内容链接 (无障碍) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--text-main);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--primary);
}

/* 锚点滚动距离保护 */
[id] {
  scroll-margin-top: calc(var(--nav-height) + 20px);
}

/* 容器布局 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

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

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

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

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: inline-block;
  object-fit: contain;
  vertical-align: middle;
}

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

.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
  padding: 0.5rem 0.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.nav-menu a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* 按钮规范 (满足 44px 触控标准) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary,
a.btn-primary,
button.btn-primary,
a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active {
  background: var(--accent-gradient) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 128, 255, 0.35);
}

.btn-primary:hover,
a.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 128, 255, 0.45);
  color: #ffffff !important;
  text-decoration: none !important;
}

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

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* Hero 主视觉区 */
.hero-section {
  padding: 5rem 0 4rem;
  background: radial-gradient(circle at top right, #e0f2fe 0%, #f8fafc 60%);
  border-bottom: 1px solid var(--border-color);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.hero-title {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 1.25rem;
}

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

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--text-light);
  font-size: 0.875rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-color);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* 通用 Section 样式 */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: #ffffff;
}

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

.section-tag {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

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

/* 核心优势卡片 (3卡片网格) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

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

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

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

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

.media-ai-card {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-subtle) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
}

.media-ai-card h3 {
  font-size: 1.45rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: #dbeafe;
  color: #1e40af;
}

.media-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.media-tag-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

/* 套餐价格对比表 (保留表格语义、横向滚动响应式容器) */
.pricing-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

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

.pricing-table caption {
  caption-side: top;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-main);
}

.pricing-table th,
.pricing-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

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

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

.price-tag {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: normal;
}

.badge-popular {
  background: #ec4899;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  margin-left: 0.5rem;
  vertical-align: middle;
}

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

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

.review-rating {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

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

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

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

/* FAQ 常见问题 (使用 details/summary 原生无 JS 展开) */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--primary);
  background: #fafcfe;
}

.faq-item summary {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  line-height: 1;
}

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

.faq-item summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.faq-answer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer a:not(.btn) {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* CTA 转换区域 */
.cta-banner {
  background: var(--accent-gradient);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 620px;
  margin: 0 auto 2rem;
}

/* 知识科普与文章列表 */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

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

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

.article-category {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.article-card h2,
.article-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.85rem;
}

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

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

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

.article-read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
}

.article-read-more:hover {
  text-decoration: underline;
}

/* 单篇文章阅读页 */
.article-content-wrapper {
  max-width: 840px;
  margin: 0 auto;
  background: #ffffff;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.article-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
}

.article-header h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #334155;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.25rem 0 1rem;
  color: var(--text-main);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--primary-light);
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  color: var(--text-main);
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body a:not(.btn) {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.article-callout {
  background: #eff6ff;
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.75rem 0;
  font-size: 0.95rem;
  color: #1e3a8a;
}

/* 网站地图样式 */
.sitemap-group {
  margin-bottom: 2.5rem;
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.sitemap-group h2 {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  color: var(--primary-dark);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

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

.sitemap-list li a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.5rem;
}

.sitemap-list li a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* 单独关于/条款/隐私页面 */
.info-page-wrapper {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.info-page-wrapper h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.info-page-wrapper h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.85rem;
  color: var(--text-main);
}

.info-page-wrapper p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* 页脚规范：严格只保留四个标题入口 */
.site-footer {
  margin-top: auto;
  background: #0f172a;
  color: #94a3b8;
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid #1e293b;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid #1e293b;
}

.footer-link {
  color: #f1f5f9;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.5rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: #38bdf8;
}

.footer-link:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 4px;
}

.footer-bottom {
  padding-top: 1.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
}

/* ==========================================================================
   响应式媒体查询 (@media) 满足 360px, 390px, 768px, 1440px 断点
   ========================================================================== */

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

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }
  .hero-section {
    padding: 3.5rem 0 2.5rem;
  }
  .nav-menu {
    gap: 0.85rem;
  }
  .nav-menu a {
    font-size: 0.9rem;
  }
  .features-grid,
  .media-ai-grid,
  .reviews-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .footer-nav {
    gap: 1.25rem;
    flex-direction: column;
  }
  .article-content-wrapper,
  .info-page-wrapper {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .brand-logo {
    font-size: 1.15rem;
  }
  .nav-cta .btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
  }
  .hero-trust {
    gap: 1rem;
    font-size: 0.8rem;
  }
}

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

/* 按钮字体可读性强制保障：所有主按钮及深色按钮字体100%纯白无下划线 */
.btn-primary,
a.btn-primary,
.article-body a.btn-primary,
.article-body .btn-primary,
.info-page-wrapper a.btn-primary,
.pricing-table a.btn-primary {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none !important;
}
