/* ==========================================================================
   极夜碧青 / 赛博翡绿流光主题 (Cyber Emerald & Midnight Teal)
   ========================================================================== */

:root {
  --bg-deep: #040c0b;
  --bg-surface: #0a1c1a;
  --card-bg: rgba(10, 28, 26, 0.85);
  --card-bg-hover: rgba(13, 36, 33, 0.92);
  --card-border: rgba(16, 185, 129, 0.25);
  --card-border-strong: rgba(20, 184, 166, 0.55);
  --glow-emerald: rgba(16, 185, 129, 0.18);
  --glow-emerald-strong: rgba(16, 185, 129, 0.34);

  --accent-primary: #10b981;
  --accent-secondary: #14b8a6;
  --accent-bright: #34d399;
  --gradient-cta: linear-gradient(135deg, #10b981 0%, #14b8a6 55%, #0d9488 100%);
  --gradient-text: linear-gradient(90deg, #ecfdf5 0%, #5eead4 50%, #34d399 100%);

  --text-main: #ecfdf5;
  --text-secondary: #a7f3d0;
  --text-muted: #7aa39b;
  --divider: rgba(16, 185, 129, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-card: 0 10px 32px rgba(0, 0, 0, 0.45), 0 0 24px var(--glow-emerald);
  --shadow-cta: 0 8px 26px rgba(16, 185, 129, 0.32), 0 0 18px var(--glow-emerald);
  --transition: 0.26s cubic-bezier(0.22, 1, 0.36, 1);

  --container-max: 1120px;
  --article-max: 820px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.75;
  color: var(--text-main);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(16, 185, 129, 0.16), transparent 65%),
    radial-gradient(circle at 85% 25%, rgba(20, 184, 166, 0.1), transparent 45%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 55%, var(--bg-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a:hover {
  color: #5eead4;
}

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

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

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

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

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

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

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-cta);
  box-shadow: 0 0 12px var(--accent-primary), 0 0 20px var(--glow-emerald-strong);
}

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

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

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

/* 徽章 / 标签 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-bright);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--card-border);
  box-shadow: 0 0 16px var(--glow-emerald);
}

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

.hero h1 {
  margin: 18px auto 16px;
  max-width: 820px;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

/* 流光高亮按钮 */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.btn-primary {
  color: #031511;
  background: linear-gradient(120deg, #10b981 0%, #14b8a6 50%, #34d399 100%);
  background-size: 200% 100%;
  box-shadow: var(--shadow-cta);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 80%
  );
  transform: translateX(-120%);
  transition: transform 0.65s ease;
}

.btn-primary:hover {
  color: #02120e;
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.42), 0 0 26px var(--glow-emerald-strong);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-outline {
  color: var(--text-main);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 0 18px var(--glow-emerald);
}

.btn-outline:hover {
  color: var(--accent-bright);
  border-color: var(--card-border-strong);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
}

/* 磨砂玻璃卡片 */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform var(--transition), border-color var(--transition),
    box-shadow var(--transition), background var(--transition);
}

.card:hover {
  background: var(--card-bg-hover);
  border-color: var(--card-border-strong);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 30px var(--glow-emerald-strong);
  transform: translateY(-3px);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

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

.section-header {
  margin-bottom: 24px;
}

.section-title {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 750;
  color: var(--text-main);
  margin-bottom: 8px;
}

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

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

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

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

/* 提示框 / 强调横幅 */
.callout {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(20, 184, 166, 0.08));
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 22px 0;
  box-shadow: 0 0 22px var(--glow-emerald);
}

.callout-title {
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 6px;
}

.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(10, 28, 26, 0.92), rgba(16, 185, 129, 0.14));
  border: 1px solid var(--card-border-strong);
  box-shadow: var(--shadow-card);
  margin: 28px 0;
}

/* 表格样式 */
.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 20px var(--glow-emerald);
  margin: 20px 0;
}

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

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
}

th {
  color: var(--accent-bright);
  font-weight: 700;
  background: rgba(16, 185, 129, 0.08);
  white-space: nowrap;
}

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

tr:hover td {
  background: rgba(16, 185, 129, 0.05);
}

/* 文章内容排版 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 26px 0 18px;
}

.article-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 38px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 12px 0 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--divider);
}

.prose h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  line-height: 1.3;
  color: var(--text-main);
}

.prose h2 {
  font-size: 1.42rem;
  color: var(--text-main);
  margin: 30px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--accent-primary);
}

.prose h3 {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: 22px 0 10px;
}

.prose p {
  margin-bottom: 16px;
  color: #d1fae5;
}

.prose ul,
.prose ol {
  margin: 12px 0 18px 22px;
  color: #d1fae5;
}

.prose li {
  margin-bottom: 8px;
}

.prose code {
  padding: 2px 7px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: #5eead4;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* FAQ 折叠项 */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: 0 0 18px var(--glow-emerald);
}

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

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

.faq-item p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
}

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

@media (max-width: 680px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .navbar {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.9rem;
  }

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

  .article-card {
    padding: 24px 18px;
  }

  .cta-banner {
    padding: 22px 20px;
  }
}
