﻿/* ==========================================================
   上线性能与顺滑度增强引擎 (Smoothness & Performance Optimization)
   ========================================================== */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

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

/* 硬件加速与流畅悬停 */
a, button, .media-news-card, .btn-media-primary, .btn-media-secondary, .faq-card, .intro-panel {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* 移动端平滑滚动与防抖 */
.table-wrapper, .table-container, .code-box, pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* 媒体图片防溢出与自适应 */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 消除点击高亮延迟 */
a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg-dark: #070913;
  --bg-card: #0e1326;
  --bg-card-hover: #141b36;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --neon-blue: #38bdf8;
  --neon-purple: #a855f7;
  --neon-indigo: #6366f1;
  --neon-pink: #ec4899;
  
  --glow-blue: rgba(56, 189, 248, 0.35);
  --glow-purple: rgba(168, 85, 247, 0.4);
  --glow-strong: rgba(168, 85, 247, 0.65);
  
  --border-neon: linear-gradient(135deg, #38bdf8 0%, #a855f7 50%, #ec4899 100%);
  --border-subtle: #1e293b;
}

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

body {
  background: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(168, 85, 247, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.75;
  min-height: 100vh;
}

a { color: var(--neon-blue); text-decoration: none; font-weight: 700; transition: all .2s ease; }
a:hover { color: #7dd3fc; text-shadow: 0 0 10px var(--glow-blue); text-decoration: none; }

.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

/* 顶部声明区 */
.notice {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  color: #94a3b8;
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}
.notice-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.notice-badge {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.2));
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* 导航栏 */
.site-header {
  background: rgba(14, 19, 38, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(56, 189, 248, 0.2);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}
.brand-glow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8, 0 0 20px #a855f7;
}
.brand-badge {
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 0 12px var(--glow-purple);
}
.nav { display: flex; flex-wrap: wrap; gap: 8px; }
.nav a {
  color: #cbd5e1;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all .25s ease;
}
.nav a:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(168, 85, 247, 0.15));
  border-color: rgba(168, 85, 247, 0.6);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
}

/* 首屏 Hero */
.hero {
  padding: 68px 0 56px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.25);
  border-radius: 999px;
  color: #c084fc;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 980px;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 70%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}
.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 880px;
  line-height: 1.8;
}
.hero strong { color: #38bdf8; text-shadow: 0 0 8px rgba(56, 189, 248, 0.3); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 38px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  padding: 15px 28px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 16px;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.button.primary {
  background: linear-gradient(135deg, #38bdf8 0%, #8b5cf6 50%, #ec4899 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.45), 0 4px 15px rgba(0, 0, 0, 0.5);
}
.button.primary:hover {
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.75), 0 0 15px rgba(56, 189, 248, 0.6);
  transform: translateY(-2px);
  color: #ffffff;
}
.button.secondary {
  background: rgba(14, 19, 38, 0.8);
  color: #e2e8f0;
  border: 1px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}
.button.secondary:hover {
  background: rgba(20, 27, 54, 0.9);
  border-color: #38bdf8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.45);
  color: #ffffff;
  transform: translateY(-2px);
}

/* 蓝紫发光亮点网格 */
.hero-glow-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 10px;
}
.glow-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 22px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
  position: relative;
  transition: all .25s ease;
}
.glow-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.3), 0 0 15px rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
}
.glow-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.glow-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 通用 Section */
.section {
  padding: 58px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px;
}
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-note {
  max-width: 480px;
  color: var(--text-dim);
  font-size: 15px;
}

/* 六宫格功能模块区 - 蓝紫发光边框 */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 14px;
  padding: 26px;
  position: relative;
  transition: all .25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #a855f7, transparent);
  opacity: 0.6;
  transition: opacity .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.35), 0 0 15px rgba(56, 189, 248, 0.2);
}
.card:hover::before {
  opacity: 1;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.card-badge {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
}
.card-num {
  font-size: 12px;
  color: var(--neon-purple);
  font-weight: 800;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}
.card h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
  color: #ffffff;
}
.card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}
.card strong { color: #38bdf8; }

/* 正文介绍区 */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.intro-box {
  background: var(--bg-card);
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.15);
  border-radius: 14px;
  padding: 32px;
  position: relative;
}
.intro-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #38bdf8, #a855f7);
}
.intro-box h3 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 16px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.intro-box p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 14px;
  line-height: 1.75;
}
.intro-box ul {
  list-style: none;
  display: grid;
  gap: 12px;
}
.intro-box li {
  font-size: 14.5px;
  color: var(--text-muted);
  padding-left: 24px;
  position: relative;
}
.intro-box li::before {
  content: "✨";
  position: absolute;
  left: 0;
  font-size: 13px;
}
.intro-box strong { color: #ffffff; }

/* 热门教程表格 - 发光风格 */
.table-wrap {
  background: var(--bg-card);
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.15);
  border-radius: 14px;
  overflow-x: auto;
}
table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}
th, td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}
th {
  background: rgba(168, 85, 247, 0.12);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(168, 85, 247, 0.4);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(56, 189, 248, 0.05); }
.level-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}
.level-badge.easy {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}
.level-badge.medium {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}
.level-badge.hard {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.4);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.2);
}

/* FAQ 区域 */
.faq-list {
  display: grid;
  gap: 14px;
}
details {
  background: var(--bg-card);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 12px;
  padding: 20px 24px;
  transition: all .25s ease;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
details:hover {
  border-color: #38bdf8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
}
summary {
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 22px;
  color: var(--neon-purple);
  text-shadow: 0 0 10px var(--glow-purple);
  font-weight: 900;
}
details[open] summary::after {
  content: "−";
  color: var(--neon-blue);
  text-shadow: 0 0 10px var(--glow-blue);
}
details p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

/* 子页面文章排版 - 蓝紫发光边框 */
.article {
  max-width: 920px;
  margin: 48px auto;
  background: var(--bg-card);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 16px;
  padding: 44px;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.2), 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
}
.article::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #38bdf8, #a855f7, #ec4899);
}
.article h1 {
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 950;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.3;
  background: linear-gradient(135deg, #ffffff 40%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.article-lead {
  font-size: 16px;
  color: #e2e8f0;
  border-left: 4px solid #38bdf8;
  padding: 14px 20px;
  margin-bottom: 30px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.12) 0%, transparent 100%);
  border-radius: 0 10px 10px 0;
}
.article h2 {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  margin: 34px 0 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.article p, .article li {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 14px;
  line-height: 1.8;
}
.article ul { margin-left: 20px; }
.article .ai-glow-note {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 22px 0;
  color: #e2e8f0;
  font-size: 14.5px;
}
.article .ai-glow-note strong { color: #38bdf8; }

/* 页脚 */
.site-footer {
  margin-top: 64px;
  background: #05070e;
  color: var(--text-muted);
  padding: 50px 0 34px;
  border-top: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 32px;
}
.footer-glow-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.footer-glow-title strong {
  font-size: 17px;
  color: #ffffff;
}
.footer-brand p {
  font-size: 13.5px;
  color: var(--text-dim);
  max-width: 460px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-links a {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s ease;
}
.footer-links a:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.2));
  border-color: rgba(168, 85, 247, 0.6);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 22px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

/* 响应式适配 */
@media (max-width: 960px) {
  .header-inner { flex-direction: column; align-items: flex-start; padding: 14px 0; }
  .hero-glow-banner, .grid-6, .intro-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-top { flex-direction: column; }
  .article { padding: 26px 20px; }
  .notice-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
}
