/* ==========================================================================
   锦云机场 (Jinyun Cloud) - 方案 A：云间素雅版
   Design System & Styling
   2. 色彩与排版系统 (CSS Variables) & 3. 页面模块样式
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* 页面底色：晨云白 #F8FAFC */
  --bg-page: #F8FAFC;

  /* 内容卡片：纯白 #FFFFFF */
  --bg-surface: #FFFFFF;

  /* 辅助呼吸色：浅天蓝 #E0F2FE、柔和云粉 #F1F5F9 */
  --color-sky-light: #E0F2FE;
  --color-cloud-soft: #F1F5F9;
  --bg-surface-subtle: #F1F5F9;

  /* 主题色：晴空蓝 #0284C7（温和、稳定、清晰） */
  --brand-primary: #0284C7;
  --brand-primary-hover: #0369A1;
  --brand-primary-light: #E0F2FE;
  --brand-primary-border: #BAE6FD;
  --brand-gradient: linear-gradient(135deg, #0284C7 0%, #38BDF8 100%);

  /* 文字主色：沉稳蓝灰 #0F172A（高对比度但温和不刺眼） */
  --text-primary: #0F172A;

  /* 次级说明文字：浅板岩灰 #64748B */
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;
  --text-on-primary: #FFFFFF;

  /* 功能状态色 */
  --success: #059669;
  --success-bg: #ECFDF5;
  --success-border: #A7F3D0;

  --warning: #D97706;
  --warning-bg: #FFFBEB;
  --warning-border: #FDE68A;

  /* 卡片边框与阴影：极细浅灰边框 1px solid #E2E8F0，柔和弥散阴影 0 4px 20px rgba(0, 0, 0, 0.04) */
  --border-light: #E2E8F0;
  --border-subtle: #F1F5F9;
  --border-focus: #0284C7;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 8px 24px rgba(2, 132, 199, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.22s ease;

  /* Layout */
  --container-max-w: 1140px;
  --header-height: 68px;
}

/* --------------------------------------------------------------------------
   2. Reset & Baseline
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

img, svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. Container & Section Header
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3.5vw, 2rem);
  padding-right: clamp(1rem, 3.5vw, 2rem);
}

.section {
  padding-top: clamp(3.5rem, 5.5vw, 5rem);
  padding-bottom: clamp(3.5rem, 5.5vw, 5rem);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto clamp(2rem, 3.5vw, 3rem) auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  background: var(--color-sky-light);
  border: 1px solid var(--brand-primary-border);
  color: var(--brand-primary);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 2.7vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 0.65rem;
}

.section-description {
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation (固定页眉)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.brand-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.brand-title-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}

.nav-link {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  transition: color var(--transition-fast);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* 清爽浅蓝胶囊按钮 */
.btn-capsule-sky {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-primary);
  background: var(--color-sky-light);
  border: 1px solid var(--brand-primary-border);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-capsule-sky:hover {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

/* 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-primary);
  color: #ffffff;
  border: 1px solid var(--brand-primary);
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

/* 天蓝渐变主按钮 */
.btn-gradient {
  background: var(--brand-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--color-cloud-soft);
  color: var(--text-primary);
  border-color: var(--brand-primary-border);
}

.btn-pill {
  border-radius: var(--radius-full);
}

.btn-lg {
  padding: 0.8rem 1.85rem;
  font-size: 1rem;
}

/* Mobile Hamburger & Drawer */
.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
}

.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 999;
}

.mobile-drawer.active {
  display: flex;
}

.mobile-drawer .nav-link {
  font-size: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   5. Hero 首屏（左图右文，温和平衡）
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: clamp(3rem, 5.5vw, 4.8rem);
  padding-bottom: clamp(3rem, 5.5vw, 4.8rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

/* 左侧舒适视觉卡片 */
.hero-visual-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cloud-visual-wrapper {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 1.75rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-status-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.status-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
}

.status-val {
  font-size: 0.82rem;
  color: var(--success);
  font-weight: 500;
}

/* 右侧极简文案 */
.hero-text-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-main-title {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
}

.hero-sub-title {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 600;
  color: var(--brand-primary);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.25rem;
}

.hero-cta-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   6. 优势板块（三个大白卡片，平实易懂）
   -------------------------------------------------------------------------- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.advantage-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

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

.advantage-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-sky-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.advantage-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.advantage-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   7. 支持服务（3栏直观卡片）
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem 1.85rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.service-card:hover {
  border-color: var(--brand-primary-border);
  box-shadow: var(--shadow-card-hover);
}

.service-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-cloud-soft);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   8. 套餐展示（3个清爽卡片，杜绝瞎编乱造）
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}

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

.pricing-card.featured {
  border-color: var(--brand-primary);
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.08);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.95rem;
  border-radius: var(--radius-full);
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.plan-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.plan-price-box {
  margin-bottom: 1.75rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--border-light);
}

.price-realtime-tag {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--color-sky-light);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.35rem;
}

.price-sub-note {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.feature-check-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--brand-primary);
}

/* --------------------------------------------------------------------------
   9. 产品特点（展示三大实在特性）
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem 1.85rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: var(--brand-primary-border);
  box-shadow: var(--shadow-card-hover);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-sky-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

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

/* --------------------------------------------------------------------------
   10. 教程板块（简易上手三步走）
   -------------------------------------------------------------------------- */
.setup-guide-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.setup-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.setup-step {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-sky-light);
  color: var(--brand-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

/* --------------------------------------------------------------------------
   11. 常见问题解答（原生 details + summary 默认全展开）
   -------------------------------------------------------------------------- */
.faq-container {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

details.faq-detail {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.6rem;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-fast);
}

details.faq-detail:hover {
  border-color: var(--brand-primary-border);
}

summary.faq-summary {
  list-style: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  user-select: none;
}

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

summary.faq-summary::marker {
  display: none;
}

.badge-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--color-sky-light);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-right: 0.85rem;
}

.badge-a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--success-bg);
  color: var(--success);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-right: 0.85rem;
  margin-top: 2px;
}

.faq-answer-content {
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   12. 规范页脚
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 3.5rem 0 2rem 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-link {
  color: var(--text-secondary);
  font-weight: 500;
}

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

.footer-copyright {
  font-size: 0.82rem;
  color: var(--text-subtle);
}

/* --------------------------------------------------------------------------
   13. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .advantages-grid,
  .services-grid,
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .setup-steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links, .header-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
}
