/* 一元机场官网 - 浅色现代主题样式表 */
:root {
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.82);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #0ea5e9;
  --indigo: #6366f1;
  --success: #10b981;
  --warning: #f59e0b;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px -8px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px -12px rgba(37, 99, 235, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶部导航栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

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

.nav-links a {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.38);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -4px rgba(37, 99, 235, 0.48);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--text);
  font-size: 1.25rem;
  align-items: center;
  justify-content: center;
}

/* Hero 首屏与背景图 + 动态点缀 */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
  background-color: #f4f9ff;
  background-image:
    linear-gradient(180deg, rgba(248, 250, 252, 0.45) 0%, rgba(248, 250, 252, 0.72) 70%, #f8fafc 100%),
    url('hero-bg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.hero-orb-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #93c5fd, transparent 70%);
  top: -80px;
  left: -60px;
}

.hero-orb-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #a5f3fc, transparent 70%);
  bottom: -100px;
  right: -80px;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(36px, 28px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  position: relative;
  display: inline-block;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.35);
  animation: pulseRing 1.8s infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.1); opacity: 0; }
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-secondary);
  margin-bottom: 34px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-md);
}

.stat-item strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-item span {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* 通用板块布局 */
.section {
  padding: 80px 0;
  position: relative;
}

.section-alt {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.02rem;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.28);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

/* 节点延迟和状态板块 */
.status-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.status-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}

.nodes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.node-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.node-name {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.node-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
}

.node-metrics {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.node-ping {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
}

.node-ping small {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.node-load {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.node-bar {
  height: 6px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.node-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #0ea5e9);
  transition: width 0.6s ease;
}

.node-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.node-tags span {
  font-size: 0.74rem;
  color: var(--text-secondary);
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 6px;
}

/* 套餐价格板块 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

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

.price-card.featured {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 40%);
  box-shadow: var(--shadow-lg);
}

.price-ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.price-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.price-amount {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 20px;
}

.price-amount small {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-list {
  list-style: none;
  margin-bottom: 26px;
  flex: 1;
}

.price-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 7px 0;
  border-bottom: 1px dashed rgba(226, 232, 240, 0.7);
}

.price-list li:last-child {
  border-bottom: none;
}

.check-icon {
  color: var(--success);
  font-weight: 800;
}

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

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
  color: var(--primary);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.author-info strong {
  display: block;
  font-size: 0.92rem;
}

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

/* 常见问题板块 */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* 知识库与教程板块 */
.kb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.kb-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.28s ease;
  box-shadow: var(--shadow-sm);
}

.kb-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: var(--shadow-lg);
}

.kb-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.kb-cat {
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.kb-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--text);
}

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

.kb-card p {
  font-size: 0.89rem;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 16px;
}

.kb-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 底部 CTA 与页脚 */
.cta-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 50%, #eef2ff 100%);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: var(--radius-lg);
  padding: 52px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 26px;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 54px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-col h4 {
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* 文章详情页样式 */
.article-hero {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 36px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

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

.article-hero h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 16px;
}

.article-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.article-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  padding: 44px 0 72px;
  align-items: start;
}

.article-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.article-body h2 {
  font-size: 1.42rem;
  font-weight: 800;
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 22px 0 10px;
  color: var(--text);
}

.article-body p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.85;
}

.article-body ul, .article-body ol {
  margin: 0 0 18px 22px;
  color: var(--text-secondary);
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.75;
}

.article-callout {
  background: #f0f9ff;
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 22px 0;
  color: var(--text);
  font-size: 0.95rem;
}

.article-sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.sidebar-links a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* 滚动渐入动画 */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式适配 */
@media (max-width: 1024px) {
  .pricing-grid, .nodes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid, .reviews-grid, .kb-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-wrapper {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .hero {
    padding: 64px 0 56px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid, .nodes-grid, .pricing-grid, .reviews-grid, .kb-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .article-body {
    padding: 24px 20px;
  }
}
