/* ==========================================================================
   极夜翡翠青 / 霓虹冰蓝流光主题 (Abyssal Emerald & Neon Ice Cyan)
   ========================================================================== */

:root {
  --bg-deep: #040b0e;
  --bg-surface: #0b1920;
  --card-bg: rgba(11, 25, 32, 0.85);
  --card-border: rgba(0, 229, 255, 0.25);
  --card-border-hover: rgba(0, 255, 163, 0.5);
  --card-glow: rgba(0, 229, 255, 0.18);
  --accent-cyan: #00e5ff;
  --accent-emerald: #00ffa3;
  --gradient-accent: linear-gradient(135deg, #00e5ff 0%, #00ffa3 100%);
  --gradient-bg: radial-gradient(circle at 18% 12%, rgba(0, 229, 255, 0.12), transparent 42%),
                 radial-gradient(circle at 82% 20%, rgba(0, 255, 163, 0.08), transparent 45%),
                 linear-gradient(180deg, #040b0e 0%, #0b1920 100%);
  --text-primary: #e8f7fa;
  --text-secondary: #9bb8c2;
  --text-muted: #688794;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --container-max: 1120px;
  --transition: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  background-color: var(--bg-deep);
  background-image: var(--gradient-bg);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--accent-emerald);
}

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

/* 布局容器 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶部磨砂导航栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 11, 14, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-primary);
}

.brand-badge {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 12px var(--accent-cyan);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-cyan);
}

/* 磨砂卡片与霓虹光晕 */
.card,
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 24px var(--card-glow);
  padding: 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card:hover,
.glass-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-border-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 32px rgba(0, 229, 255, 0.26);
}

/* 霓虹流光按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  text-decoration: none;
}

.btn-primary {
  position: relative;
  color: #031317;
  background: linear-gradient(120deg, #00e5ff 0%, #00ffa3 50%, #00e5ff 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.38), 0 6px 20px rgba(0, 255, 163, 0.2);
  animation: btnShimmer 4s linear infinite;
}

.btn-primary:hover {
  color: #021014;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.55), 0 8px 26px rgba(0, 255, 163, 0.32);
  filter: brightness(1.06);
}

.btn-outline {
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid var(--card-border);
}

.btn-outline:hover {
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
  background: rgba(0, 255, 163, 0.1);
  transform: translateY(-2px);
}

@keyframes btnShimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* Hero 首屏 */
.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-emerald);
  background: rgba(0, 255, 163, 0.08);
  border: 1px solid rgba(0, 255, 163, 0.28);
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  background: linear-gradient(90deg, #ffffff 0%, #aef6ff 55%, #00ffa3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: 1.06rem;
  color: var(--text-secondary);
}

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

/* 通用区块与网格 */
.section {
  padding: 40px 0;
}

.section-title {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 0.98rem;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 标签与徽章 */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.26);
}

.badge-emerald {
  color: var(--accent-emerald);
  background: rgba(0, 255, 163, 0.1);
  border-color: rgba(0, 255, 163, 0.28);
}

/* 表格样式 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: 0 0 24px var(--card-glow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-size: 0.94rem;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 229, 255, 0.14);
}

th {
  color: var(--accent-cyan);
  font-weight: 700;
  background: rgba(0, 229, 255, 0.06);
}

tbody tr:hover {
  background: rgba(0, 229, 255, 0.05);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* 文章正文与提示框 */
.article-layout {
  max-width: 860px;
  margin: 36px auto 64px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.article-content h2 {
  font-size: 1.45rem;
  margin: 32px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--accent-cyan);
  color: var(--text-primary);
}

.article-content h3 {
  font-size: 1.15rem;
  margin: 22px 0 10px;
  color: #c9f6ff;
}

.article-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

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

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

.callout {
  margin: 22px 0;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent-emerald);
  color: var(--text-primary);
}

code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-emerald);
  font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
  font-size: 0.88em;
}

pre {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(4, 11, 14, 0.92);
  border: 1px solid var(--card-border);
  overflow-x: auto;
}

pre code {
  padding: 0;
  background: transparent;
  color: #c8f9ff;
}

/* FAQ 折叠面板 */
details.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 0 18px var(--card-glow);
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
}

details.faq-item[open] summary {
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

details.faq-item p {
  color: var(--text-secondary);
  margin: 0;
}

/* 页脚 */
.site-footer {
  margin-top: 64px;
  padding: 32px 0;
  border-top: 1px solid var(--card-border);
  background: rgba(4, 11, 14, 0.72);
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

.site-footer p + p {
  margin-top: 8px;
}

/* 响应式适配 */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .header-inner {
    flex-direction: column;
    padding: 12px 0;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .card,
  .glass-card {
    padding: 20px;
  }

  .hero {
    padding: 48px 0 32px;
  }
}
