/* ==========================================================================
   【风格 03 · 灯塔夜航】Allblue 机场 全局样式表
   配色：午夜深蓝 #071022 | 强调色：灯塔金 #FFC46B | 正文：暖白 #F0EAD6
   传达理念：「有灯塔，永不迷航」
   ========================================================================== */

:root {
  --bg-midnight: #071022;
  --bg-midnight-deep: #040915;
  --bg-card: rgba(12, 24, 51, 0.72);
  --bg-card-hover: rgba(18, 36, 75, 0.85);
  --color-gold: #FFC46B;
  --color-gold-hover: #ffd48f;
  --color-gold-glow: rgba(255, 196, 107, 0.4);
  --border-gold: rgba(255, 196, 107, 0.22);
  --border-gold-subtle: rgba(255, 196, 107, 0.12);
  --text-main: #F0EAD6;
  --text-muted: #9BB0CD;
  --text-dim: #627798;
  --font-title: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "Space Grotesk", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container-max: 1200px;
  --shadow-lighthouse: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 196, 107, 0.12);
  --shadow-gold-btn: 0 4px 18px rgba(255, 196, 107, 0.35);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-midnight);
  color: var(--text-main);
  font-family: var(--font-title);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 10%, #0d1e3d 0%, #071022 70%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

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

.num-font, .stat-value, .price-number, .currency {
  font-family: var(--font-num) !important;
  font-weight: 800;
}

/* 页眉与导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 16, 34, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-gold-subtle);
  height: 74px;
  display: flex;
  align-items: center;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}

.brand-logo svg {
  width: 34px;
  height: 34px;
  color: var(--color-gold);
  filter: drop-shadow(0 0 8px rgba(255, 196, 107, 0.6));
}

.brand-logo span {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFC46B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  background: var(--color-gold);
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

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

/* 按钮通用 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, #FFC46B 0%, #F59E0B 100%);
  color: #071022;
  box-shadow: var(--shadow-gold-btn);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffd48f 0%, #f7a828 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 196, 107, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  background: rgba(255, 196, 107, 0.12);
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

/* 子页面规范 (关于我们、服务条款、隐私政策、网站地图、知识科普) */
.subpage-header {
  padding: 65px 0 32px;
  text-align: center;
  border-bottom: 1px solid var(--border-gold-subtle);
  margin-bottom: 40px;
}

.subpage-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 12px;
  color: #FFFFFF;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFC46B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto;
}

.subpage-content {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-lighthouse);
  backdrop-filter: blur(12px);
}

.content-block {
  margin-bottom: 38px;
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block h2 {
  font-size: 1.48rem;
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-block p {
  color: var(--text-main);
  opacity: 0.9;
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.content-block ul {
  list-style: none;
  padding-left: 0;
}

.content-block ul li {
  position: relative;
  padding-left: 24px;
  color: var(--text-main);
  opacity: 0.9;
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.content-block ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-size: 0.85rem;
}

/* ==========================================================================
   常见问题解答 (FAQ) - 原生 details 极速展开与尺寸约束 (防大图标破版)
   ========================================================================== */
.faq-wrap {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.faq-item:hover {
  border-color: var(--border-gold);
}

.faq-item[open] {
  border-color: var(--color-gold);
  background: rgba(18, 36, 75, 0.88);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.faq-summary {
  padding: 18px 22px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  cursor: pointer;
  list-style: none !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  gap: 16px;
}

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

.faq-summary::marker {
  display: none !important;
  content: "" !important;
}

/* 严格锁死 FAQ 箭头图标尺寸，杜绝超大撑屏破版 */
.faq-icon,
svg.faq-icon {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  color: var(--color-gold) !important;
  transition: transform 0.25s ease;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle;
}

.faq-item[open] .faq-icon,
.faq-item[open] svg.faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-main);
  opacity: 0.9;
  font-size: 0.95rem;
  line-height: 1.75;
}

/* 推荐相关阅读区块 */
.related-articles-box {
  margin-top: 32px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
}

.related-articles-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.related-link-item {
  padding: 10px 14px;
  background: rgba(12, 24, 51, 0.6);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-main);
  display: block;
  transition: all 0.25s ease;
}

.related-link-item:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateX(4px);
}

/* 网站地图与科普专栏列表 */
.sitemap-group {
  margin-bottom: 36px;
}

.sitemap-group h2,
.sitemap-group h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-gold-subtle);
  padding-bottom: 10px;
}

.sitemap-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.sitemap-list a,
.sitemap-item-link {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.95rem;
  display: block;
  transition: all 0.25s ease;
}

.sitemap-list a:hover,
.sitemap-item-link:hover {
  background: rgba(255, 196, 107, 0.12);
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

.sitemap-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sitemap-item-link:hover .sitemap-item-title {
  color: var(--color-gold);
}

.sitemap-item-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.sitemap-item-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 8px;
}

/* 页脚 */
.site-footer {
  background: var(--bg-midnight-deep);
  border-top: 1px solid var(--border-gold-subtle);
  padding: 50px 0 35px;
  margin-top: 60px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

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

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.25s ease;
}

.footer-link:hover::after {
  width: 100%;
}

.footer-copy {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .sitemap-list,
  .related-links-grid {
    grid-template-columns: 1fr;
  }
  .subpage-content {
    padding: 24px 20px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }
  .faq-summary {
    padding: 16px 18px;
    font-size: 0.98rem;
  }
  .faq-answer {
    padding: 0 18px 18px;
    font-size: 0.92rem;
  }
}

/* ==========================================================================
   无障碍与代码质量强化规范 (A11y, Focus, Scroll Margin, Reduced Motion)
   ========================================================================== */

/* 1. 跳转到主要内容无障碍入口 (Skip Link) */
.skip-link {
  position: absolute;
  top: -999px;
  left: 20px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--color-gold);
  color: #071022;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: top 0.2s ease-in-out;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 20px;
  outline: 3px solid #FFFFFF;
  outline-offset: 2px;
}

/* 2. 键盘访问清晰焦点样式 (:focus-visible) */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* 3. 固定页眉防遮挡锚点 (scroll-margin-top) */
[id] {
  scroll-margin-top: 100px;
}

/* 4. 长文本与代码块防撑破布局 */
body, p, h1, h2, h3, h4, h5, h6, .article-body, .faq-answer, blockquote {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 5. 遵循用户的减弱动效偏好 (prefers-reduced-motion) */
@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;
  }
}

/* 6. 移动端触控最小区域保障 (44x44px) */
.btn, .nav-cta, a.btn {
  min-height: 44px;
  min-width: 44px;
}

