/* 0u0 极简风样式库 - UTF-8 编码 */

:root {
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-rounded: "Comfortaa", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.92);
  --bg-alt: #f1f5f9;
  --bg-dark: #0f172a;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #10b981;
  --warning: #f97316;
  --danger: #ef4444;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --container-max: 1200px;
  --header-height: 68px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-system);
  color: var(--text-primary);
  background-color: var(--bg-body);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* 键盘焦点 */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* 容器限制 */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* 标题粗圆风格 */
h1, h2, h3, .brand-logo-text {
  font-family: var(--font-rounded);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.25; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; }
h3 { font-size: 1.25rem; }

/* 按钮通用 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background-color: var(--bg-alt);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: #e2e8f0;
  transform: translateY(-2px);
}

/* 页眉栏 Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-header);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--text-primary);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}

.brand-logo-text {
  font-size: 22px;
  color: var(--text-primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
  padding: 6px 0;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.nav-cta {
  margin-left: 12px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  background: transparent;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

/* Section 通用样式 */
.section {
  padding: 80px 0;
  position: relative;
}

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

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

.section-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* Hero Section */
.hero-section {
  padding: 70px 0 90px 0;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-pill);
  width: fit-content;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.hero-title {
  color: var(--text-primary);
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-graphic {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: var(--radius-lg);
  padding: 30px;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.graphic-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  backdrop-filter: blur(10px);
}

.node-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent);
}

/* 核心优势 Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

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

.feature-icon-wrapper svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.feature-title {
  margin-bottom: 10px;
  font-size: 18px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.support-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.support-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.support-icon {
  width: 44px;
  height: 44px;
  background-color: var(--bg-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.support-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.support-note {
  font-size: 12px;
  color: var(--text-muted);
}

.disclaimer-box {
  margin-top: 30px;
  padding: 16px 20px;
  background-color: #fffbe0;
  border: 1px solid #ffe58f;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: #856404;
  text-align: center;
}

/* 套餐 Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.pricing-card.featured::before {
  content: '推荐套餐';
  position: absolute;
  top: -12px;
  right: 20px;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
}

.plan-header-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.plan-price {
  margin-bottom: 16px;
}

.plan-price .amount {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-primary);
}

.plan-price .unit {
  font-size: 13px;
  color: var(--text-secondary);
}

.plan-specs-bar {
  background-color: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  margin-bottom: 20px;
  font-size: 12px;
}

.spec-val-text {
  font-weight: 800;
  display: block;
  color: var(--text-primary);
}

.spec-lbl-text {
  color: var(--text-muted);
}

.plan-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  flex: 1;
}

.pill {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill-green { background-color: #10b981; color: #ffffff; }
.pill-red { background-color: #ef4444; color: #ffffff; }
.pill-orange { background-color: #f97316; color: #ffffff; }

/* FAQ 常见问题 */
.faq-accordion {
  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-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  text-align: left;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 24px 20px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* 右侧浮动章节导航箭头 Section Floating Nav Arrows */
.section-nav-arrows {
  position: fixed;
  right: 24px;
  bottom: 80px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.arrow-btn:hover:not(:disabled) {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: scale(1.08);
}

.arrow-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

/* 页脚 Footer (仅保留指定4个入口) */
.site-footer {
  background-color: var(--bg-dark);
  color: #94a3b8;
  padding: 40px 0;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

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

.footer-brand {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-copy {
  font-size: 13px;
  color: #64748b;
}

/* 博客文章列表 & 详情页样式 */
.articles-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 30px;
}

.article-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

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

.article-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.article-title {
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
  max-width: 860px;
  margin: 0 auto;
}

.article-content h1 { font-size: 2rem; margin-bottom: 16px; }
.article-content h2 { font-size: 1.5rem; margin: 32px 0 16px 0; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.article-content h3 { font-size: 1.2rem; margin: 24px 0 12px 0; }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; }
.article-content li { margin-bottom: 8px; }
.article-cta-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 30px 0;
  text-align: center;
}

/* 响应式适配 Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .features-grid, .support-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-list-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .features-grid, .support-grid, .pricing-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .section-nav-arrows { right: 12px; bottom: 20px; }
  .arrow-btn { width: 38px; height: 38px; }
}

/* 尊重减弱动画 preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
