/* ===================================================================
   【风格 08 · 霓虹航站】赛博霓虹航站风
   暗夜紫黑 #0E0B1E | 霓虹粉 #FF5C9D | 电光青 #40DCFF | 冷白正文 #E6EDF8
   航站不夜 · 航线常亮
   =================================================================== */

:root {
  --bg-space: #0E0B1E;
  --bg-terminal: #130E26;
  --bg-card: #181232;
  --bg-card-hover: #221844;
  --bg-card-elevated: #1F153D;
  
  --neon-pink: #FF5C9D;
  --neon-pink-glow: rgba(255, 92, 157, 0.45);
  --neon-cyan: #40DCFF;
  --neon-cyan-glow: rgba(64, 220, 255, 0.45);
  
  --text-white: #FFFFFF;
  --text-main: #E6EDF8;
  --text-muted: #A5B4CF;
  --text-dim: #7E8DAE;
  
  --border-subtle: rgba(255, 92, 157, 0.18);
  --border-neon-cyan: rgba(64, 220, 255, 0.4);
  --border-neon-pink: rgba(255, 92, 157, 0.4);
  
  --font-heading: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "Space Grotesk", "SF Pro Display", -apple-system, monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px -5px rgba(5, 3, 14, 0.7);
  --shadow-pink: 0 0 25px rgba(255, 92, 157, 0.35);
  --shadow-cyan: 0 0 25px rgba(64, 220, 255, 0.35);
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
}

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

html {
  font-family: var(--font-body);
  background-color: var(--bg-space);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-space);
  background-image: radial-gradient(circle at 50% 0%, #1f1442 0%, #0E0B1E 60%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

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

/* 全局键盘焦点可见性规范 */
:focus-visible {
  outline: 2px solid var(--neon-cyan) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 12px rgba(64, 220, 255, 0.6) !important;
}

/* 无障碍跳过导航链接 */
.skip-link {
  position: absolute;
  top: -120px;
  left: 20px;
  background: var(--neon-pink);
  color: #FFFFFF !important;
  padding: 12px 24px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top 0.2s ease;
  box-shadow: 0 0 20px var(--neon-pink);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--neon-cyan) !important;
}

/* 锚点偏移保障：避免固定页眉遮挡标题 */
section[id],
div[id],
h2[id],
h3[id],
article[id] {
  scroll-margin-top: 88px;
}

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

/* 航站霓虹按钮体系 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  min-height: 50px;
  text-align: center;
  user-select: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #FF5C9D 0%, #d946ef 55%, #40DCFF 100%);
  background-size: 200% 200%;
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(255, 92, 157, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 92, 157, 0.7), 0 0 20px rgba(64, 220, 255, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
  border: 1px solid var(--border-neon-cyan);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(64, 220, 255, 0.12);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(64, 220, 255, 0.35);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 13px;
  min-height: 44px;
  min-width: 44px;
}

.btn-block {
  width: 100%;
}

/* 顶部航站导航栏 */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 11, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 92, 157, 0.2);
  height: 72px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--text-white);
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #FF5C9D, #40DCFF);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 92, 157, 0.6);
}

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

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(64, 220, 255, 0.6);
}

.nav-link-special {
  color: var(--neon-pink) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 0 10px rgba(255, 92, 157, 0.5);
}

.nav-tag-badge {
  font-size: 10px;
  background: rgba(255, 92, 157, 0.25);
  border: 1px solid var(--neon-pink);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
  box-shadow: 0 0 8px rgba(255, 92, 157, 0.5);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(64, 220, 255, 0.1);
  border: 1px solid rgba(64, 220, 255, 0.35);
  border-radius: var(--radius-full);
  color: var(--neon-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 18px;
  text-shadow: 0 0 10px rgba(64, 220, 255, 0.5);
}

/* 规范页脚 (严格只保留四个标题链接，新页面展示) */
.site-footer {
  background: #080512;
  border-top: 1px solid rgba(255, 92, 157, 0.25);
  padding: 48px 0 36px 0;
  margin-top: auto;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

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

.footer-link-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

.footer-link-title:hover {
  color: var(--neon-cyan);
  background: rgba(64, 220, 255, 0.08);
  border-color: rgba(64, 220, 255, 0.3);
  box-shadow: 0 0 15px rgba(64, 220, 255, 0.3);
}

.footer-bottom-info {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  max-width: 800px;
  margin: 0 auto;
}

/* 独立页面通用主体 (关于我们、服务条款、隐私政策、知识科普、网站地图) */
.page-article-container {
  max-width: 880px;
  margin: 50px auto 80px auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-card);
}

.article-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 10px;
}

.article-meta {
  font-size: 13px;
  color: var(--text-dim);
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 850;
  color: var(--text-white);
  margin: 34px 0 14px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-content h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--neon-pink);
  box-shadow: 0 0 8px var(--neon-pink);
  border-radius: 2px;
}

.article-content p {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 18px;
}

.article-content ul, .article-content ol {
  margin: 0 0 22px 24px;
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.8;
}

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

.callout-box {
  background: rgba(64, 220, 255, 0.08);
  border-left: 4px solid var(--neon-cyan);
  padding: 18px 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 22px 0;
  font-size: 14px;
  color: var(--text-main);
  box-shadow: 0 0 15px rgba(64, 220, 255, 0.1);
}

.callout-box.warning {
  background: rgba(255, 92, 157, 0.08);
  border-left-color: var(--neon-pink);
  box-shadow: 0 0 15px rgba(255, 92, 157, 0.1);
}

.callout-box.success {
  background: rgba(64, 220, 255, 0.08);
  border-left-color: var(--neon-cyan);
}

/* 网站地图卡片网格 */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.sitemap-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.sitemap-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 14px;
}

.sitemap-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap-card li {
  margin-bottom: 10px;
}

.sitemap-card a {
  font-size: 14px;
  color: var(--neon-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sitemap-card a:hover {
  color: var(--neon-pink);
  text-decoration: underline;
  text-shadow: 0 0 10px rgba(255, 92, 157, 0.5);
}

/* 面包屑导航体系 */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.breadcrumbs a {
  color: var(--text-muted);
  transition: var(--transition);
}

.breadcrumbs a:hover {
  color: var(--neon-cyan);
}

.breadcrumbs .separator {
  color: var(--text-dim);
  opacity: 0.6;
}

.breadcrumbs .current {
  color: var(--neon-pink);
  font-weight: 600;
}

/* 内链与锚文本视觉强化 */
.article-content a.internal-link {
  color: var(--neon-cyan);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.article-content a.internal-link:hover {
  color: var(--neon-pink);
  text-shadow: 0 0 10px rgba(255, 92, 157, 0.4);
}

/* 文章专属 FAQ 问答区块 */
.article-faq-section {
  margin-top: 42px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.article-faq-section h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 850;
  color: var(--text-white);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-faq-section h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  border-radius: 2px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(64, 220, 255, 0.35);
}

.faq-item[open] {
  border-color: var(--neon-pink);
  background: var(--bg-card-hover);
  box-shadow: 0 0 20px rgba(255, 92, 157, 0.2);
}

.faq-question {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

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

.faq-icon {
  width: 18px;
  height: 18px;
  color: var(--neon-cyan);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px var(--neon-cyan));
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--neon-pink);
  filter: drop-shadow(0 0 5px var(--neon-pink));
}

.faq-answer {
  padding: 0 22px 20px 22px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}

/* 延伸阅读与相关文章内链推荐卡片 */
.related-posts-section {
  margin-top: 38px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.related-posts-section h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.related-post-card {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-post-card:hover {
  border-color: var(--neon-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(64, 220, 255, 0.15);
}

.related-post-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
}

.related-post-desc {
  font-size: 12px;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .header-nav {
    height: 60px;
  }
  .nav-links {
    display: none;
  }
  .mobile-show {
    display: inline-flex !important;
  }
  .page-article-container {
    padding: 28px 20px;
    margin: 24px auto 50px auto;
  }
  .sitemap-grid {
    grid-template-columns: 1fr;
  }
  .footer-nav-container {
    flex-direction: column;
    gap: 14px;
  }
  .footer-link-title {
    display: block;
    width: 100%;
    text-align: center;
  }
}

/* 遵循系统级减弱动态偏好 */
@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;
  }
}
