/* ==========================================================================
   TAG机场信息指南与价格决策矩阵 - 全局样式表
   视觉规范：珍珠白、深石墨、暖铜色 (高端商务·克制排版)
   ========================================================================== */

:root {
  /* 基础主色调 */
  --bg-primary: #f8fafc;       /* 珍珠白浅色底 */
  --bg-surface: #ffffff;       /* 纯白卡片底色 */
  --bg-elevated: #f1f5f9;      /* 次级区块背景 */
  --bg-dark: #0f172a;          /* 深石墨夜幕色 */

  /* 文字颜色体系 (对比度均高于 7:1) */
  --text-primary: #0f172a;     /* 主标题与正文字 */
  --text-secondary: #334155;   /* 次级正文与说明 */
  --text-muted: #64748b;       /* 辅助标注与注脚 */
  --text-inverse: #f8fafc;     /* 暗底白字 */

  /* 暖铜色点缀 (商务决策高亮与强调) */
  --copper-primary: #b45309;   /* 稳重暖铜色 (高对比度) */
  --copper-hover: #92400e;     /* 悬停加深暖铜 */
  --copper-subtle: #fef3c7;    /* 暖铜浅色徽章底 */
  --copper-border: #d97706;    /* 暖铜强调边框 */

  /* 边框与分割线 */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;

  /* 布局与阴影 */
  --container-max: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);

  /* 字体栈 (无外部网络字体依赖) */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* 重置与盒模型 */
*, *::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: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

/* 无障碍跳过链接 */
.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--copper-primary);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* 焦点轮廓 */
:focus-visible {
  outline: 2px solid var(--copper-primary);
  outline-offset: 3px;
}

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

/* 排版标量 */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.15rem; margin-bottom: 1rem; }
h2 { font-size: 1.65rem; margin-bottom: 0.85rem; scroll-margin-top: 5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.65rem; scroll-margin-top: 5rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--copper-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--copper-hover);
  text-decoration: underline;
}

/* 网站头部与导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
}

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

.site-logo-img {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.logo-symbol {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--bg-dark), var(--copper-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover, .nav-link.active {
  color: var(--copper-primary);
  text-decoration: none;
  border-bottom: 2px solid var(--copper-primary);
}

/* 搜索交互区 */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  font-size: 0.875rem;
  font-family: inherit;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  width: 180px;
  min-height: 40px;
  transition: width 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.search-input:focus {
  width: 240px;
  background-color: #ffffff;
  border-color: var(--copper-primary);
}

.search-icon {
  position: absolute;
  left: 0.65rem;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  width: 320px;
  max-height: 380px;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 200;
}

.search-item {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 0.875rem;
  text-decoration: none;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover, .search-item:focus {
  background-color: var(--bg-elevated);
  text-decoration: none;
}

.search-item strong {
  display: block;
  color: var(--copper-primary);
  margin-bottom: 0.2rem;
}

/* 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

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

.btn-copper:hover {
  background-color: var(--copper-hover);
  color: #ffffff;
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-outline:hover {
  background-color: var(--bg-elevated);
  color: var(--copper-primary);
  text-decoration: none;
}

/* Hero 首屏区 */
.hero-section {
  position: relative;
  padding: 3.5rem 0 3rem;
  background: radial-gradient(circle at top right, #fffbeb 0%, #f8fafc 60%);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
  isolation: isolate;
}

/* 均匀浅灰色菱形 X 网格背景 (36px 步长，与 Canvas 动画像素级对齐) */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, transparent 49.2%, rgba(100, 116, 139, 0.08) 50%, transparent 50.8%),
    linear-gradient(45deg, transparent 49.2%, rgba(100, 116, 139, 0.08) 50%, transparent 50.8%);
  background-size: 36px 36px;
  background-position: 0 0;
  pointer-events: none;
  z-index: 0;
}

/* 动态 X 画线 Canvas 组件：位于内容后方，不阻碍鼠标交互 */
.hero-x-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

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

.hero-content .hero-badge {
  margin-left: auto;
  margin-right: auto;
}

.hero-title {
  font-size: 2.35rem;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* 最低价通告条 (首屏紧接标题下方) */
.lowest-price-banner {
  background-color: #ffffff;
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--copper-primary);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.25rem;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.lowest-price-info {
  display: flex;
  flex-direction: column;
}

.lowest-price-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.lowest-price-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.lowest-price-value span {
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--text-secondary);
  margin-left: 0.35rem;
}

.lowest-price-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* 热门套餐推荐卡片网格 */
.popular-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.package-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.package-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--copper-border);
}

.package-card.highlight {
  border: 2px solid var(--copper-primary);
  box-shadow: var(--shadow-md);
}

.card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-elevated);
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.card-tag.highlight {
  background-color: var(--copper-subtle);
  color: var(--copper-hover);
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.card-price {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.card-price small {
  font-size: 0.9rem;
  font-weight: normal;
  color: var(--text-muted);
}

.card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}

.card-features li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-features li:last-child {
  border-bottom: none;
}

.card-features .icon-check {
  color: var(--copper-primary);
  font-weight: bold;
}

/* 区块通用结构 */
.section-block {
  padding: 3.5rem 0;
}

.section-block.alt-bg {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  margin-bottom: 2rem;
  max-width: 780px;
}

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

/* 规范价格与参数矩阵表 */
.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

.pricing-table caption {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  background-color: var(--bg-elevated);
}

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

.pricing-table thead th {
  background-color: #f8fafc;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-medium);
  white-space: nowrap;
}

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

.pricing-table .col-highlight {
  font-weight: 700;
  color: var(--copper-primary);
}

.table-disclaimer {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* 数据与服务能力行 */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.capability-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.capability-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* FAQ 折叠模块 (原生 details) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

details.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  transition: border-color 0.15s ease;
}

details.faq-item[open] {
  border-color: var(--copper-border);
  box-shadow: var(--shadow-sm);
}

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

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

summary.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--copper-primary);
  margin-left: 1rem;
  flex-shrink: 0;
  line-height: 1;
}

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

.faq-answer {
  padding-top: 0.85rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* 文章导览卡片网格 */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.article-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.article-card:hover {
  border-color: var(--copper-border);
  transform: translateY(-2px);
}

.article-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.article-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.article-link {
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* 独立文章详情排版 */
.article-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border-light);
  background-color: var(--bg-surface);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  list-style: none;
  padding: 0;
}

.breadcrumb li+li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--border-medium);
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.article-body {
  padding: 2.5rem 0 3.5rem;
  max-width: 840px;
}

.article-body h2 {
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.article-body h3 {
  margin-top: 1.75rem;
}

.article-body code {
  background-color: var(--bg-elevated);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--copper-hover);
}

.article-body pre {
  background-color: var(--bg-dark);
  color: #f8fafc;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.info-box {
  background-color: #fffbeb;
  border-left: 4px solid var(--copper-primary);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.925rem;
}

/* 页脚规范 (仅 4 个独立页面入口) */
.site-footer {
  background-color: var(--bg-dark);
  color: #94a3b8;
  padding: 3rem 0 2rem;
  border-top: 1px solid #1e293b;
  font-size: 0.875rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-link {
  color: #cbd5e1;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-link:hover {
  color: var(--copper-border);
  text-decoration: underline;
}

.footer-disclaimer {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #64748b;
}

.footer-copy {
  text-align: center;
  color: #64748b;
  font-size: 0.8rem;
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
}

/* 响应式断点 */
@media (max-width: 992px) {
  .popular-cards-grid,
  .capability-grid,
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 0;
    gap: 0.75rem;
  }

  .nav-menu {
    gap: 1rem;
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .search-wrapper {
    order: 2;
  }

  .search-input {
    width: 140px;
  }

  .search-input:focus {
    width: 180px;
  }

  .search-dropdown {
    right: auto;
    left: 0;
    width: 290px;
  }

  .popular-cards-grid,
  .capability-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .lowest-price-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 动效与无障碍偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
