/* ==========================================================================
   疾风云 JiFeng Cloud - 平流层滑翔高空巡航款·全景矩阵表版
   设计系统与核心样式表 (纯原生 CSS3 · WCAG AA 达标 · 响应式适配)
   ========================================================================== */

:root {
  /* 品牌平流层朝雾白明亮配色体系 */
  --bg-canvas: #f8fafc;        /* 高空朝雾白主背景 */
  --bg-card: #ffffff;          /* 纯白卡片容器 */
  --bg-card-subtle: #f1f5f9;   /* 浅灰对比背景 */
  --bg-hud: rgba(255, 255, 255, 0.88); /* HUD 磨砂玻璃背景 */

  /* 排版色彩规范 (WCAG AA: 对比度严格达标) */
  --text-heading: #0f172a;     /* 深穹墨蓝 (对比白底 > 13:1) */
  --text-body: #334155;        /* 板岩中灰 (对比白底 > 7:1) */
  --text-muted: #64748b;       /* 平流冷灰 (对比白底 > 4.5:1) */
  --text-pure-white: #ffffff;  /* 按钮白色反白字 */

  /* 航空点缀色系与边框系统 */
  --sky-cyan: #0284c7;         /* 苍穹天青 (点缀/边框) */
  --sky-cyan-light: #e0f2fe;   /* 天青淡背景 */
  --sky-cyan-glow: rgba(2, 132, 199, 0.12);
  --aurora-emerald: #10b981;   /* 极光翠 */
  --aurora-emerald-dark: #047857; /* 极光翠深色字 */
  --aurora-light: #d1fae5;

  /* 核心行动点 (CTA) 加深高对比度色值 (确保对白字 >= 4.5:1) */
  --btn-cta-bg: #0369a1;       /* 加深苍穹青 (白字对比度 5.1:1) */
  --btn-cta-hover: #075985;    /* 悬停更深色 */
  --btn-cta-active: #0c4a6e;

  /* 气动边界与结构阴影 */
  --border-subtle: #e2e8f0;    /* 细朝雾分割线 */
  --border-card: #cbd5e1;      /* 卡片常态边框 */
  --border-highlight: #38bdf8; /* 高亮专线边框 */
  --border-focus: #0284c7;     /* 键盘焦点环色彩 */
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.1);

  /* 几何与圆角体系 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* 原生排版字体系统 (严禁外部字体) */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* 动效系统 */
  --ease-aero: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 160ms ease;
  --transition-base: 240ms var(--ease-aero);

  /* 容器规范 */
  --container-max: 1200px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-body);
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-canvas);
}

/* 键盘焦点样式 (WCAG 2.1) */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* 动效偏好媒体查询适配 */
@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;
  }
}

/* 平流层微光与气动背景装饰 */
.flight-ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}

.ambient-glow-top {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(2, 132, 199, 0.08) 0%, rgba(224, 242, 254, 0.5) 60%, transparent 80%);
  filter: blur(60px);
}

.ambient-horizon-line {
  position: absolute;
  top: 360px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(2, 132, 199, 0.25) 30%, rgba(2, 132, 199, 0.6) 50%, rgba(2, 132, 199, 0.25) 70%, transparent 100%);
  opacity: 0.8;
}

/* 容器布局 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   1. 顶部平流层通透企业导航栏 (Header Navigation)
   ========================================================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 0;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

.header-nav.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.94);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-height: 44px;
  color: var(--text-heading);
}

.brand-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--sky-cyan-light) 0%, #bae6fd 100%);
  border: 1px solid rgba(2, 132, 199, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky-cyan);
}

.brand-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-heading);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--sky-cyan);
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-link {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sky-cyan);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 按钮通用规范 (触控热区 >= 44x44px 与 WCAG AA 对比度) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* 极简航图微边「用户登录」 */
.btn-outline-aero {
  color: var(--text-heading);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
}

.btn-outline-aero:hover {
  background: var(--bg-card-subtle);
  border-color: var(--sky-cyan);
  color: var(--sky-cyan);
  transform: translateY(-1px);
}

/* 深天青高对比度胶囊「快速注册」 */
.btn-capsule-cta {
  color: var(--text-pure-white);
  background-color: var(--btn-cta-bg);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.28);
}

.btn-capsule-cta:hover {
  background-color: var(--btn-cta-hover);
  box-shadow: 0 6px 20px rgba(3, 105, 161, 0.4);
  transform: translateY(-1px);
  color: var(--text-pure-white);
}

.btn-secondary {
  color: var(--text-heading);
  background: var(--bg-card);
  border-color: var(--border-card);
  box-shadow: var(--shadow-sm);
}

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

.btn-primary {
  color: var(--text-pure-white);
  background-color: var(--btn-cta-bg);
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.28);
}

.btn-primary:hover {
  background-color: var(--btn-cta-hover);
  box-shadow: 0 6px 20px rgba(3, 105, 161, 0.4);
  color: var(--text-pure-white);
}

.mobile-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-heading);
  min-height: 44px;
  min-width: 44px;
  padding: 10px;
  cursor: pointer;
}

.mobile-drawer-actions {
  display: none;
}

/* ==========================================================================
   2. Hero 首屏：3D 平流层滑翔悬浮测天仪（3D + 2D 混合架构）
   ========================================================================== */
.hero-section {
  padding-top: 130px;
  padding-bottom: 70px;
  position: relative;
}

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

/* 3D 测天装置舞台 (Pure CSS 3D + SVG) */
.astrolabe-stage {
  position: relative;
  perspective: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 30px 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.astrolabe-viewport {
  width: 260px;
  height: 260px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(54deg) rotateZ(-34deg);
  transition: transform 0.6s var(--ease-aero);
}

.astrolabe-viewport:hover {
  transform: rotateX(48deg) rotateZ(-26deg);
}

/* 三层立体结构 */
/* 底层：等距经纬地平座 */
.astrolabe-base-plate {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(2, 132, 199, 0.4);
  background: radial-gradient(circle, rgba(224, 242, 254, 0.4) 0%, rgba(248, 250, 252, 0.8) 70%, transparent 100%);
  box-shadow: 0 0 30px rgba(2, 132, 199, 0.15), inset 0 0 20px rgba(2, 132, 199, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0px);
}

.astrolabe-graticule-ring {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.astrolabe-graticule-cross {
  position: absolute;
  width: 100%;
  height: 1px;
  background: rgba(2, 132, 199, 0.3);
}

.astrolabe-graticule-cross.v {
  transform: rotate(90deg);
}

/* 中层：平流层层状气流光轨 */
.astrolabe-stream-tracks {
  position: absolute;
  inset: 35px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
  transform: translateZ(32px);
  animation: streamOrbit 16s linear infinite;
}

@keyframes streamOrbit {
  0% { transform: translateZ(32px) rotate(0deg); }
  100% { transform: translateZ(32px) rotate(360deg); }
}

/* 顶层：大展弦比滑翔机翼晶体 (悬浮浮动) */
.astrolabe-glider-crystal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130px;
  height: 70px;
  margin-top: -35px;
  margin-left: -65px;
  transform: translateZ(68px);
  animation: gliderFloat 4.8s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 14px 18px rgba(2, 132, 199, 0.28));
}

@keyframes gliderFloat {
  0% { transform: translateZ(60px) translateY(0px) rotate(-2deg); }
  100% { transform: translateZ(78px) translateY(-14px) rotate(3deg); }
}

.astrolabe-glider-crystal svg {
  width: 100%;
  height: 100%;
}

/* 底部 3 个客观航空参数徽章 */
.astrolabe-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  flex-wrap: wrap;
  width: 100%;
}

.aero-spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-body);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 5px 9px;
  white-space: nowrap;
}

.aero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--aurora-emerald);
}

/* 右侧 2D 商业文案区 */
.hero-content-col {
  text-align: left;
}

.hero-micro-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--sky-cyan);
  background: var(--sky-cyan-light);
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.hero-main-title {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.hero-subtitle-quote {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 700;
  color: var(--sky-cyan);
  margin-bottom: 18px;
  line-height: 1.4;
}

.hero-objective-intro {
  font-size: 1.02rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   3. 巡航优势：水平地平线式宽幅卡片 (#features)
   ========================================================================== */
.features-section {
  padding: 80px 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--sky-cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-bottom: 14px;
  line-height: 1.25;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.65;
}

.horizon-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.horizon-stream-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.horizon-stream-card:hover {
  transform: translateY(-4px);
  border-color: var(--sky-cyan);
  box-shadow: var(--shadow-md);
}

/* 天际线分割感顶部光条 */
.horizon-stream-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--sky-cyan) 50%, transparent 100%);
}

.horizon-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--sky-cyan-light);
  border: 1px solid rgba(2, 132, 199, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--sky-cyan);
}

.horizon-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.horizon-card-text {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.68;
}

/* ==========================================================================
   4. 套餐价格：平流层航空舱位全景矩阵表 (#pricing)
   ========================================================================== */
.pricing-section {
  padding: 80px 0;
  position: relative;
}

.pricing-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.flight-cabin-matrix {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  text-align: left;
}

.flight-cabin-matrix th,
.flight-cabin-matrix td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  vertical-align: middle;
}

.flight-cabin-matrix thead th {
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: 26px;
  padding-bottom: 24px;
  vertical-align: top;
  border-bottom: 2px solid var(--border-subtle);
}

.cabin-col-label {
  width: 25%;
}

.cabin-col-tier {
  width: 25%;
  text-align: center;
}

.cabin-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--sky-cyan);
  background: var(--sky-cyan-light);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.cabin-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.cabin-capacity {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* 推荐主舱高光边框强调 */
.cabin-popular-col {
  position: relative;
  background: #f0f9ff !important;
  border-left: 2px solid var(--sky-cyan);
  border-right: 2px solid var(--sky-cyan);
}

.cabin-popular-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--btn-cta-bg);
  color: var(--text-pure-white);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 0;
  letter-spacing: 0.08em;
  text-align: center;
}

/* 矩阵分类横幅 */
.matrix-group-banner td {
  background: #f1f5f9;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-heading);
  padding: 10px 20px;
  border-top: 1px solid var(--border-card);
}

.row-feature-name {
  font-weight: 700;
  color: var(--text-heading);
}

.matrix-val {
  text-align: center;
  color: var(--text-body);
  font-size: 0.92rem;
}

.matrix-val.highlight-val {
  color: var(--text-heading);
  font-weight: 800;
}

.price-text-strong {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--text-heading);
  font-size: 1rem;
}

.matrix-cta-row td {
  padding: 24px;
  text-align: center;
  background: #f8fafc;
}

/* ==========================================================================
   5. 常见疑问：平流全域开放白皮书 (#faq - 原生 details open 默认展开)
   ========================================================================== */
.faq-section {
  padding: 80px 0;
  position: relative;
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-details {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-details[open] {
  border-color: var(--sky-cyan);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.faq-summary:hover {
  color: var(--sky-cyan);
}

.faq-open-badge {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 8px;
  background: var(--sky-cyan-light);
  color: var(--sky-cyan);
  border-radius: var(--radius-full);
}

.faq-body {
  padding: 0 24px 22px 24px;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 16px;
}

/* ==========================================================================
   6. 规范页脚 (Footer)
   ========================================================================== */
.footer-main {
  background: #0f172a;
  color: #cbd5e1;
  border-top: 1px solid var(--border-card);
  padding: 56px 0 32px 0;
  position: relative;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.footer-nav-links a:hover {
  color: #38bdf8;
}

.footer-bottom-copy {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   独立知识库架构 (knowledge.html: 72% 内容区 + 28% Sticky 目录)
   ========================================================================== */
.kb-layout {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  padding: 40px 0 80px 0;
}

.kb-content-col {
  width: 72%;
  flex: 0 0 72%;
}

.kb-toc-col {
  width: 28%;
  flex: 0 0 28%;
  position: sticky;
  top: 86px;
  align-self: flex-start;
}

.toc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
}

.toc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--sky-cyan);
  letter-spacing: 0.1em;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.42;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.toc-link:hover,
.toc-link.active {
  background: var(--sky-cyan-light);
  color: var(--sky-cyan);
}

.toc-link-num {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--sky-cyan);
  flex-shrink: 0;
}

/* 知识库独立 SEO 文章卡片 */
.kb-article-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 38px 34px;
  margin-bottom: 34px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 96px; /* 锚点跳转留白，防止被吸顶导航遮挡 */
}

.kb-article-box:last-child {
  margin-bottom: 0;
}

.article-header {
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
}

.article-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--sky-cyan);
  background: var(--sky-cyan-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.article-title {
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.article-content {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.85;
}

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

.article-content h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 24px 0 12px 0;
  letter-spacing: -0.01em;
}

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

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

/* 自然内嵌的高权重 SEO 链接样式 */
.seo-inline-link {
  color: #0369a1;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.seo-inline-link:hover {
  color: #075985;
}

.callout-box {
  background: var(--bg-card-subtle);
  border-left: 4px solid var(--sky-cyan);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
  font-size: 0.92rem;
  color: var(--text-heading);
}

/* ==========================================================================
   响应式断点系统 (适配 360px、390px、768px、1440px)
   ========================================================================== */
@media (max-width: 1024px) {
  .kb-layout {
    flex-direction: column;
    gap: 32px;
  }
  .kb-content-col {
    width: 100%;
    flex: 0 0 100%;
  }
  .kb-toc-col {
    width: 100%;
    flex: 0 0 100%;
    position: static;
  }
  .hero-hybrid-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .astrolabe-stage {
    min-height: 380px;
  }
  .horizon-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    gap: 12px;
  }

  .mobile-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    width: 100%;
  }

  .mobile-drawer-actions .btn {
    width: 100%;
  }

  .pricing-table-container {
    margin-left: -12px;
    margin-right: -12px;
    border-radius: 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-main-title {
    font-size: 2rem;
  }

  .astrolabe-viewport {
    width: 220px;
    height: 220px;
  }

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

  .hero-actions-row .btn {
    width: 100%;
  }
}
