/* ============================================
   Mythic 插件工坊 — 深空科技风 全局样式
   ============================================ */

/* 字体由 header.php 中 <link> 标签非阻塞加载，不再使用 @import */

/* ============================================
   CSS Variables
   ============================================ */
:root {
  /* Background */
  --bg-primary:      #070b14;
  --bg-secondary:    #0c1220;
  --bg-tertiary:     #111827;
  --bg-card:         rgba(12, 18, 32, 0.65);
  --bg-card-hover:   rgba(18, 28, 48, 0.75);
  --bg-code:         #050810;

  /* Text */
  --text-primary:    #dde6f5;
  --text-secondary:  #7e8fa8;
  --text-muted:      #3e4f66;

  /* Accents */
  --accent-blue:     #38bdf8;
  --accent-purple:   #a78bfa;
  --accent-pink:     #f472b6;
  --accent-green:    #34d399;
  --accent-orange:   #fbbf24;
  --accent-cyan:     #22d3ee;

  /* Gradients */
  --gradient-primary:  linear-gradient(135deg, #38bdf8 0%, #818cf8 55%, #a78bfa 100%);
  --gradient-card:     linear-gradient(145deg, rgba(56,189,248,0.035) 0%, rgba(167,139,250,0.035) 100%);

  /* Borders */
  --border-color:    rgba(255,255,255,0.055);
  --border-subtle:   rgba(255,255,255,0.03);
  --border-glow:     rgba(56,189,248,0.22);

  /* Shadows */
  --shadow-sm:       0 2px 8px rgba(0,0,0,0.35);
  --shadow-card:     0 4px 28px rgba(0,0,0,0.45);
  --shadow-glow:     0 0 40px rgba(56,189,248,0.09);

  /* Layout */
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --nav-height:  64px;
  --max-width:   1200px;
  --transition:  0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-purple); }

img { max-width: 100%; height: auto; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: rgba(56,189,248,0.25);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(56,189,248,0.45); }

/* ============================================
   Background — dot grid + ambient glow
   ============================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: -30%; left: -20%;
  width: 140%; height: 140%;
  background:
    radial-gradient(ellipse at 22% 28%, rgba(56,189,248,0.06)  0%, transparent 42%),
    radial-gradient(ellipse at 78% 72%, rgba(167,139,250,0.05) 0%, transparent 42%),
    radial-gradient(ellipse at 50% 100%, rgba(244,114,182,0.03) 0%, transparent 38%);
  pointer-events: none;
  z-index: 0;
  animation: ambientDrift 24s ease-in-out infinite alternate;
}

@keyframes ambientDrift {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.04) translate(-1%, 1.5%); }
}

/* ============================================
   导航栏 — 全新架构
   ============================================ */

/* 外壳：fixed 容器，不设 overflow */
.nb {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  pointer-events: none; /* 子元素各自开启 */
}

/* 顶栏：毛玻璃在这层，高度 64px */
.nb-bar {
  pointer-events: all;
  height: var(--nav-height);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  padding: 0 28px;
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border-bottom: 1px solid rgba(255,255,255,0.065);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.nb.scrolled .nb-bar {
  background: rgba(7, 11, 20, 0.96);
  border-bottom-color: rgba(56,189,248,0.1);
  box-shadow: 0 4px 36px rgba(0,0,0,0.55);
}

/* Logo */
.nb-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.nb-logo-mark {
  font-size: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.nb-logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

/* 中央导航 */
.nb-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}

.nb-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.nb-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.055);
}

.nb-link.active {
  color: var(--accent-blue);
  background: rgba(56,189,248,0.09);
  font-weight: 500;
}

/* 导航「注意」— 金色脉动（MySQL 说明入口） */
@keyframes nb-attention-pulse {
  0%, 100% {
    color: #e8c547;
    text-shadow: 0 0 8px rgba(234, 179, 8, 0.25);
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0), inset 0 0 0 1px rgba(234, 179, 8, 0.22);
  }
  50% {
    color: #fef08a;
    text-shadow: 0 0 18px rgba(250, 204, 21, 0.55);
    box-shadow: 0 0 22px rgba(250, 204, 21, 0.22), inset 0 0 0 1px rgba(253, 224, 71, 0.45);
  }
}

.nb-attention {
  color: #f0d060;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.22), rgba(180, 83, 9, 0.12)) !important;
  border: 1px solid rgba(234, 179, 8, 0.35);
  animation: nb-attention-pulse 2s ease-in-out infinite;
}

.nb-attention:hover {
  color: #fff7c2;
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.32), rgba(146, 64, 14, 0.18)) !important;
}

.nb-attention.active {
  color: #fef9c3;
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.28), rgba(120, 53, 15, 0.2)) !important;
  border-color: rgba(253, 224, 71, 0.5);
  animation: nb-attention-pulse 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .nb-attention {
    animation: none;
    color: #fde68a;
    text-shadow: none;
    box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.3);
  }
}

/* (旧 SVG chevron 已替换为 Remix Icon .nb-chevron-ri) */

/* 右侧动作按钮组 */
.nb-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 12px;
}

.nb-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.nb-action-btn svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
}

.nb-action-btn:hover {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}

.nb-action-btn.nb-wechat:hover  { color: #34d399; border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.07); }
.nb-action-btn.nb-alipay:hover  { color: #38bdf8; border-color: rgba(56,189,248,0.3); background: rgba(56,189,248,0.07); }

/* 汉堡按钮（移动端） */
.nb-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 6px;
  border: none;
  background: none;
  cursor: pointer;
  margin-left: 8px;
  flex-shrink: 0;
  border-radius: 8px;
  transition: background 0.2s;
}

.nb-toggle:hover { background: rgba(255,255,255,0.06); }

.nb-toggle span {
  display: block;
  width: 100%; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
  transform-origin: center;
}

.nb-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nb-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nb-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ────────────────────────────────────────────
   Mega 下拉面板 — nb 的直接子级，position:absolute
   ──────────────────────────────────────────── */
.nb-mega {
  pointer-events: none;
  position: absolute;
  top: var(--nav-height);
  left: 0; right: 0;
  z-index: 1;
  background: rgba(7, 11, 20, 0.97);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  border-bottom: 1px solid rgba(56,189,248,0.1);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(56,189,248,0.03);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34,1.5,0.64,1);
}

.nb-mega.open {
  pointer-events: all;
  opacity: 1;
  transform: translateY(0);
}

.nb-mega-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 28px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

/* Mega：按大类分组时外层为纵向，内层仍为 3 列网格 */
.nb-mega-inner.nb-mega-inner--grouped {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nb-mega-group-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(148, 163, 184, 0.95);
  margin: 0 0 6px 2px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

.nb-mega-group-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

@media (max-width: 900px) {
  .nb-mega-group-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .nb-mega-group-grid {
    grid-template-columns: 1fr;
  }
}

.nb-mega-inner a,
.nb-mega-group-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: background 0.18s, color 0.18s;
  border: 1px solid transparent;
}

.nb-mega-inner a:hover,
.nb-mega-group-grid a:hover {
  background: rgba(56,189,248,0.07);
  border-color: rgba(56,189,248,0.1);
  color: var(--text-primary);
}

.nb-mega-inner a.active,
.nb-mega-group-grid a.active {
  background: rgba(56,189,248,0.1);
  border-color: rgba(56,189,248,0.18);
  color: var(--accent-blue);
}

i.nb-mega-icon {
  flex-shrink: 0;
  font-size: 1.15rem;
  color: var(--accent-cyan);
  width: 22px;
  text-align: center;
}

.nb-mega-inner a:hover .nb-mega-icon,
.nb-mega-inner a.active .nb-mega-icon,
.nb-mega-group-grid a:hover .nb-mega-icon,
.nb-mega-group-grid a.active .nb-mega-icon { color: var(--accent-blue); }

/* Remix Icon 下拉箭头 */
.nb-chevron-ri {
  font-size: 0.85rem;
  transition: transform 0.22s ease;
  opacity: 0.6;
  vertical-align: -1px;
}

.nb-plugin-btn.mega-open .nb-chevron-ri {
  transform: rotate(180deg);
  opacity: 1;
}

.nb-mega-name {
  font-size: 0.855rem;
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nb-mega-tag {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(56,189,248,0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(56,189,248,0.12);
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Mega 面板价格 */
.nb-mega-price {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-orange);
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Fira Code', 'Consolas', monospace;
  letter-spacing: 0.02em;
}

/* ==========================================
   插件页面 价格徽章
   ========================================== */
.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Fira Code', 'Consolas', monospace;
  color: var(--accent-orange);
  -webkit-text-fill-color: var(--accent-orange);
  background: rgba(251, 191, 36, 0.08);
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 8px;
  letter-spacing: 0.02em;
  vertical-align: middle;
  margin-left: 10px;
  position: relative;
  top: -2px;
  animation: priceGlow 3s ease-in-out infinite;
}

.price-tag.price-tag-lg {
  font-size: 1.15rem;
  padding: 6px 18px;
  border-radius: 10px;
}

@keyframes priceGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(251,191,36,0); }
  50%      { box-shadow: 0 0 12px rgba(251,191,36,0.15); }
}

/* Admin 价格管理 */
.admin-price-section-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-price-section-title:first-of-type {
  margin-top: 0;
}

.admin-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.admin-price-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.admin-price-item:hover {
  border-color: var(--accent-blue);
}

.admin-price-label {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-price-input {
  width: 100px;
  padding: 6px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Fira Code', monospace;
  color: var(--accent-orange);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  text-align: right;
  transition: border-color 0.2s;
}

.admin-price-input:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 2px rgba(251,191,36,0.15);
}

.admin-price-unit {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ==========================================
   首页大屏轮播图 — 电视机边框风格
   ========================================== */
.carousel-section {
  width: 100%;
  padding: 0 24px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

/* 电视机外壳 */
.carousel {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: visible;
  background: linear-gradient(
    145deg,
    #181e2e 0%,
    #10141f 40%,
    #0c101a 100%
  );
  padding: 14px;
  box-shadow:
    0 8px 50px rgba(0,0,0,0.5),
    0 0 0 1px rgba(56,189,248,0.06),
    inset 0 1px 0 rgba(255,255,255,0.04),
    inset 0 -1px 0 rgba(0,0,0,0.3);
  border: 2px solid rgba(56,189,248,0.1);
}

/* 屏幕区域（内圆角） */
.carousel-screen {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,0.6),
    inset 0 0 30px rgba(0,0,0,0.3);
}

/* 屏幕反光效果 */
.carousel-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.04) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255,255,255,0.01) 100%
  );
}

.carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.03);
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(7,11,20,0.85) 0%,
    rgba(7,11,20,0.35) 40%,
    transparent 70%
  );
  display: flex;
  align-items: flex-end;
  padding: 48px 56px;
}

.carousel-text {
  max-width: 650px;
}

.carousel-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  line-height: 1.3;
}

.carousel-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 16px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.carousel-link-btn {
  display: inline-block;
  padding: 8px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: rgba(56,189,248,0.2);
  border: 1px solid rgba(56,189,248,0.35);
  border-radius: 8px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.carousel-link-btn:hover {
  background: rgba(56,189,248,0.35);
  border-color: rgba(56,189,248,0.6);
  transform: translateY(-1px);
}

/* 左右箭头 — 始终可见 */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: 10px;
  background: rgba(12,16,26,0.7);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.7);
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 1;
}

.carousel-arrow:hover {
  background: rgba(56,189,248,0.2);
  border-color: rgba(56,189,248,0.4);
  color: #fff;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 0 16px rgba(56,189,248,0.15);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }

/* 底部控制条（电视机下巴区域） */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px 6px;
  position: relative;
}

/* 指示小点 */
.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(56,189,248,0.2);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  position: relative;
}

.carousel-dot:hover {
  border-color: rgba(56,189,248,0.5);
  background: rgba(56,189,248,0.1);
}

.carousel-dot.active {
  border-color: var(--accent-blue);
  background: var(--accent-blue);
  box-shadow: 0 0 10px rgba(56,189,248,0.4);
  width: 12px;
  border-radius: 50%;
}

/* 计数器 */
.carousel-counter {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Fira Code', monospace;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* 电视指示灯 */
.carousel-power {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(34,211,153,0.5);
  animation: tvPowerBlink 4s ease-in-out infinite;
}

@keyframes tvPowerBlink {
  0%, 90%, 100% { opacity: 1; }
  95%           { opacity: 0.3; }
}

/* 电视机底座 */
.carousel-stand {
  display: flex;
  justify-content: center;
  margin-top: -2px;
  position: relative;
  z-index: -1;
}

.carousel-stand::before {
  content: '';
  display: block;
  width: 180px;
  height: 6px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #181e2e, #10141f);
  border: 1px solid rgba(56,189,248,0.06);
  border-top: none;
}

/* 轮播图响应式 */
@media (max-width: 768px) {
  .carousel-section { padding: 0 12px 40px; }
  .carousel { border-radius: 16px; padding: 10px; }
  .carousel-screen { border-radius: 8px; }
  .carousel-track { aspect-ratio: 16 / 9; }
  .carousel-overlay { padding: 24px 20px; }
  .carousel-title { font-size: 1.2rem; }
  .carousel-desc { font-size: 0.85rem; margin-bottom: 10px; }
  .carousel-arrow { width: 34px; height: 34px; font-size: 1.1rem; border-radius: 8px; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .carousel-controls { padding: 10px 14px 4px; }
  .carousel-dot { width: 10px; height: 10px; }
  .carousel-stand::before { width: 120px; height: 4px; }
}

@media (max-width: 480px) {
  .carousel { padding: 8px; border-radius: 14px; }
  .carousel-track { aspect-ratio: 16 / 10; }
  .carousel-overlay { padding: 16px 14px; }
  .carousel-title { font-size: 1rem; }
  .carousel-desc { font-size: 0.78rem; }
  .carousel-link-btn { font-size: 0.8rem; padding: 6px 16px; }
  .carousel-arrow { width: 30px; height: 30px; font-size: 1rem; }
  .carousel-stand::before { width: 80px; }
}

/* 遮罩层 */
.nb-backdrop {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  z-index: 8999;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  backdrop-filter: blur(2px);
}

.nb-backdrop.show {
  opacity: 1;
  pointer-events: all;
}

/* ────────────────────────────────────────────
   移动端全屏菜单
   ──────────────────────────────────────────── */
.nb-mobile {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 100vw);
  z-index: 9500;
  background: rgba(8, 12, 22, 0.98);
  backdrop-filter: blur(28px);
  border-left: 1px solid rgba(255,255,255,0.07);
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}

.nb-mobile.open {
  transform: translateX(0);
}

.nb-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.nb-mobile-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
}

.nb-mobile-close svg { width: 14px; height: 14px; }
.nb-mobile-close:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

.nb-mobile-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 24px;
}

.nb-mobile-link {
  display: block;
  padding: 13px 16px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s;
  margin-bottom: 2px;
}

.nb-mobile-link:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.nb-mobile-link.active { background: rgba(56,189,248,0.09); color: var(--accent-blue); }

.nb-mobile-link.nb-attention {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nb-mobile-link.nb-attention.active {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.25), rgba(120, 53, 15, 0.15));
  color: #fef9c3;
}

.nb-mobile-section-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 14px 16px 8px;
  font-weight: 700;
  text-align: center;
}

.nb-mobile-plugins {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-bottom: 16px;
}

.nb-mobile-plugin {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.18s;
  border: 1px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nb-mobile-plugin:hover { background: rgba(56,189,248,0.07); border-color: rgba(56,189,248,0.1); color: var(--text-primary); }
.nb-mobile-plugin.active { background: rgba(56,189,248,0.1); color: var(--accent-blue); border-color: rgba(56,189,248,0.18); }

.nb-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px;
  margin-top: 8px;
}

.nb-mobile-pay-btn {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.nb-mobile-pay-btn:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.nb-mobile-pay-btn.wechat { border-color: rgba(52,211,153,0.2); }
.nb-mobile-pay-btn.wechat:hover { background: rgba(52,211,153,0.08); color: #34d399; }
.nb-mobile-pay-btn.alipay { border-color: rgba(56,189,248,0.2); }
.nb-mobile-pay-btn.alipay:hover { background: rgba(56,189,248,0.08); color: var(--accent-blue); }

/* ────────────────────────────────────────────
   响应式
   ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nb-actions .nb-action-btn span { display: none; }
  .nb-action-btn { padding: 7px 9px; }
}

@media (max-width: 768px) {
  .nb-nav    { display: none; }
  .nb-actions { display: none; }
  .nb-toggle { display: flex; }
}

@media (max-width: 480px) {
  .nb-bar { padding: 0 16px; }
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-height);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section    { padding: 100px 0; }
.section-sm { padding: 52px 0; }

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

/* Rotating conic glow */
.hero::before {
  content: '';
  position: absolute;
  width: 900px; height: 900px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(56,189,248,0.035)  45deg,
    transparent 90deg,
    rgba(167,139,250,0.025) 180deg,
    transparent 270deg,
    rgba(56,189,248,0.025)  315deg,
    transparent 360deg
  );
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: spinSlow 50s linear infinite;
  pointer-events: none;
}

/* Floating orb */
.hero::after {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(56,189,248,0.07) 0%, transparent 68%);
  top: 8%; right: 4%;
  border-radius: 50%;
  animation: floatOrb 14s ease-in-out infinite;
  pointer-events: none;
}

@keyframes spinSlow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-22px) scale(1.04); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 20px;
  background: rgba(56,189,248,0.07);
  border: 1px solid rgba(56,189,248,0.18);
  border-radius: 50px;
  font-size: 0.83rem;
  color: var(--accent-cyan);
  margin-bottom: 30px;
  animation: fadeInDown 0.75s ease forwards;
  letter-spacing: 0.025em;
  font-weight: 500;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  flex-shrink: 0;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.14;
  margin-bottom: 24px;
  letter-spacing: -0.035em;
  animation: fadeInUp 0.8s ease 0.15s forwards;
  opacity: 0;
}

.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.88;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.45s forwards;
  opacity: 0;
}

.hero-views {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 24px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(12, 18, 32, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.18);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

.hero-views i {
  color: var(--accent-cyan);
  font-size: 1rem;
  flex-shrink: 0;
}

.hero-views strong {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
}

/* Hero bottom gradient fade */
.hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
  z-index: 1;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.04); opacity: 0.8; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: inherit;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #fff;
  box-shadow: 0 4px 20px rgba(56,189,248,0.22), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(56,189,248,0.32), inset 0 1px 0 rgba(255,255,255,0.2);
  color: #fff;
}

.btn-outline {
  background: rgba(255,255,255,0.025);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: rgba(56,189,248,0.28);
  background: rgba(56,189,248,0.055);
  transform: translateY(-2px);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(56,189,248,0.1);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
  border-radius: 8px;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 68px;
}

.section-header .label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 3.5px;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-header .label::before,
.section-header .label::after {
  content: '';
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.35;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ============================================
   Cards
   ============================================ */
.card-grid   { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

.card {
  background: var(--bg-card);
  background-image: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

/* Top shimmer line */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(56,189,248,0.5) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(56,189,248,0.14);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(56,189,248,0.07);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 18px;
  background: rgba(56,189,248,0.07);
  border: 1px solid rgba(56,189,248,0.1);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.78;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  color: var(--accent-blue);
  font-size: 0.875rem;
  font-weight: 500;
  transition: gap var(--transition), color var(--transition);
}

.card-link:hover { gap: 10px; color: var(--accent-blue); }

/* ============================================
   Page Header (sub-pages)
   ============================================ */
.page-header {
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 300px;
  background: radial-gradient(ellipse, rgba(56,189,248,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-header .icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 0 24px rgba(56,189,248,0.35));
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.82;
}

/* ============================================
   Content Sections
   ============================================ */
.content-block { margin-bottom: 56px; }

.content-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.015em;
}

.content-block h2 .icon { font-size: 1.3rem; }

.content-block h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--accent-blue);
}

.content-block p,
.content-block li {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.9;
}

.content-block ul,
.content-block ol { padding-left: 24px; margin: 12px 0; }
.content-block li { margin-bottom: 8px; }

/* ============================================
   Code Blocks
   ============================================ */
.code-block {
  background: var(--bg-code);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(56,189,248,0.04);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
}

.code-header .lang {
  color: var(--accent-cyan);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.code-header .filename {
  color: var(--text-muted);
  font-family: 'Fira Code', monospace;
}

.code-block pre {
  padding: 20px;
  overflow-x: auto;
  font-family: 'Fira Code', monospace;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-primary);
}

.code-block code { font-family: 'Fira Code', monospace; }

/* Inline code */
.content-block code, p code, li code {
  background: rgba(56,189,248,0.08);
  color: var(--accent-cyan);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'Fira Code', monospace;
  font-size: 0.875em;
  border: 1px solid rgba(56,189,248,0.12);
}

/* Syntax highlighting */
.code-keyword    { color: #c792ea; }
.code-string     { color: #c3e88d; }
.code-comment    { color: #4a5568; font-style: italic; }
.code-function   { color: #82aaff; }
.code-number     { color: #f78c6c; }
.code-class      { color: #ffcb6b; }
.code-tag        { color: #f07178; }
.code-attr       { color: #ffcb6b; }
.code-annotation { color: var(--accent-orange); }
.code-type       { color: var(--accent-cyan); }

/* ============================================
   Callouts
   ============================================ */
.callout {
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0;
  border-left: 3px solid;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.callout-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.callout-content h4 { font-size: 0.93rem; font-weight: 600; margin-bottom: 5px; }
.callout-content p  { font-size: 0.88rem; line-height: 1.7; }

.callout-tip      { background: rgba(52,211,153,0.06); border-color: var(--accent-green); }
.callout-tip .callout-icon { color: var(--accent-green); }
.callout-tip h4   { color: var(--accent-green); }

.callout-info     { background: rgba(56,189,248,0.06); border-color: var(--accent-blue); }
.callout-info .callout-icon { color: var(--accent-blue); }
.callout-info h4  { color: var(--accent-blue); }

.callout-warning  { background: rgba(251,191,36,0.06); border-color: var(--accent-orange); }
.callout-warning .callout-icon { color: var(--accent-orange); }
.callout-warning h4 { color: var(--accent-orange); }

.callout-important { background: rgba(244,114,182,0.06); border-color: var(--accent-pink); }
.callout-important .callout-icon { color: var(--accent-pink); }
.callout-important h4 { color: var(--accent-pink); }

/* ============================================
   Timeline
   ============================================ */
.timeline { position: relative; padding-left: 36px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(56,189,248,0.35), rgba(167,139,250,0.35), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.timeline-item:hover {
  border-color: rgba(56,189,248,0.18);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -27px; top: 26px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 8px rgba(56,189,248,0.5);
}

.timeline-item h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; color: var(--accent-blue); }
.timeline-item h4 { font-size: 0.93rem; margin-bottom: 10px; color: var(--text-primary); }
.timeline-item p, .timeline-item li { color: var(--text-secondary); font-size: 0.9rem; }
.timeline-item ul { list-style: none; padding: 0; }
.timeline-item li { padding: 3px 0 3px 18px; position: relative; }
.timeline-item li::before { content: '›'; position: absolute; left: 0; color: var(--accent-purple); }

/* ============================================
   Steps
   ============================================ */
.steps { counter-reset: step-counter; }

.step {
  counter-increment: step-counter;
  padding: 22px 22px 22px 76px;
  margin-bottom: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  position: relative;
  transition: all var(--transition);
}

.step:hover { border-color: rgba(56,189,248,0.18); }

.step::before {
  content: counter(step-counter);
  position: absolute;
  left: 18px; top: 20px;
  width: 38px; height: 38px;
  background: linear-gradient(135deg, rgba(56,189,248,0.18), rgba(167,139,250,0.18));
  border: 1px solid rgba(56,189,248,0.28);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-blue);
}

.step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.step p   { color: var(--text-secondary); font-size: 0.9rem; }

/* ============================================
   Compare Grid
   ============================================ */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px; margin: 24px 0;
}

.compare-good, .compare-bad {
  padding: 20px; border-radius: var(--radius); border: 1px solid;
}

.compare-good { background: rgba(52,211,153,0.05); border-color: rgba(52,211,153,0.18); }
.compare-bad  { background: rgba(248,113,113,0.05); border-color: rgba(248,113,113,0.18); }

.compare-good h4 { color: var(--accent-green); margin-bottom: 10px; font-size: 0.93rem; }
.compare-bad h4  { color: #f87171;             margin-bottom: 10px; font-size: 0.93rem; }

/* ============================================
   Feature List
   ============================================ */
.feature-list { list-style: none; padding: 0; }

.feature-list li {
  padding: 11px 0 11px 30px;
  position: relative;
  border-bottom: 1px solid rgba(56,189,248,0.045);
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--accent-green);
  font-weight: 700;
}

/* ============================================
   Tabs
   ============================================ */
.tabs { margin: 24px 0; }

.tab-buttons {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.tab-btn {
  padding: 11px 22px;
  background: none; border: none;
  color: var(--text-muted);
  font-size: 0.88rem; font-family: inherit;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap; font-weight: 500;
}

.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--accent-blue); border-bottom-color: var(--accent-blue); }

.tab-content { display: none; padding: 24px 0; animation: fadeIn 0.25s ease; }
.tab-content.active { display: block; }

/* ============================================
   Progress Bar
   ============================================ */
.progress-bar {
  width: 100%; height: 5px;
  background: rgba(56,189,248,0.07);
  border-radius: 3px; overflow: hidden; margin: 10px 0;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width 1s ease;
  box-shadow: 0 0 10px rgba(56,189,248,0.4);
}

/* ============================================
   Stats
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; margin: 28px 0;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  position: relative; overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 1px;
  background: var(--gradient-primary);
}

.stat-number {
  font-size: 2.2rem; font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  letter-spacing: -0.02em;
}

.stat-label { color: var(--text-muted); font-size: 0.84rem; margin-top: 4px; }

/* ============================================
   Roadmap
   ============================================ */
.roadmap {
  display: flex; gap: 10px;
  overflow-x: auto; padding: 16px 0; margin: 20px 0;
}

.roadmap-step {
  flex: 0 0 188px;
  text-align: center; padding: 20px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  position: relative; transition: all var(--transition);
}

.roadmap-step:hover { border-color: rgba(56,189,248,0.18); transform: translateY(-3px); }

.roadmap-step::after {
  content: '→';
  position: absolute; right: -12px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent-purple); font-size: 1rem;
}

.roadmap-step:last-child::after { display: none; }

.roadmap-step .step-num {
  width: 30px; height: 30px;
  background: var(--gradient-primary);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.82rem; color: #fff;
  margin: 0 auto 10px;
  box-shadow: 0 0 12px rgba(56,189,248,0.35);
}

.roadmap-step h4 { font-size: 0.88rem; margin-bottom: 5px; }
.roadmap-step p  { color: var(--text-muted); font-size: 0.76rem; }

/* ============================================
   Accordion
   ============================================ */
.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 5px; overflow: hidden;
}

.accordion-header {
  width: 100%; padding: 14px 18px;
  background: var(--bg-card);
  border: none; color: var(--text-primary);
  font-size: 0.93rem; font-family: inherit; font-weight: 500;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: all var(--transition);
}

.accordion-header:hover { background: rgba(56,189,248,0.04); }

.accordion-header::after {
  content: '+'; font-size: 1.2rem;
  color: var(--accent-blue);
  transition: transform var(--transition);
}

.accordion-item.open .accordion-header::after { transform: rotate(45deg); }

.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.accordion-item.open .accordion-body { max-height: 2000px; }

.accordion-body-inner {
  padding: 16px 18px;
  color: var(--text-secondary); font-size: 0.88rem;
}

/* ============================================
   Table
   ============================================ */
.table-wrapper { overflow-x: auto; margin: 20px 0; }

.styled-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }

.styled-table th, .styled-table td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.styled-table th {
  background: rgba(56,189,248,0.05);
  color: var(--accent-blue); font-weight: 700;
  font-size: 0.76rem; text-transform: uppercase;
  letter-spacing: 0.06em; white-space: nowrap;
}

.styled-table td { color: var(--text-secondary); }
.styled-table tr:hover td { background: rgba(56,189,248,0.025); }

/* ============================================
   Tags / Badges
   ============================================ */
.tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 5px; font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.02em;
}

.tag-blue   { background: rgba(56,189,248,0.1);  color: var(--accent-blue);   border: 1px solid rgba(56,189,248,0.15); }
.tag-purple { background: rgba(167,139,250,0.1); color: var(--accent-purple); border: 1px solid rgba(167,139,250,0.15); }
.tag-green  { background: rgba(52,211,153,0.1);  color: var(--accent-green);  border: 1px solid rgba(52,211,153,0.15); }
.tag-orange { background: rgba(251,191,36,0.1);  color: var(--accent-orange); border: 1px solid rgba(251,191,36,0.15); }
.tag-pink   { background: rgba(244,114,182,0.1); color: var(--accent-pink);   border: 1px solid rgba(244,114,182,0.15); }
.tag-cyan   { background: rgba(34,211,238,0.1);  color: var(--accent-cyan);   border: 1px solid rgba(34,211,238,0.15); }

/* Footer removed */

/* ============================================
   Checklist
   ============================================ */
.checklist { list-style: none; padding: 0; }

.checklist li {
  padding: 9px 0 9px 32px; position: relative;
  color: var(--text-secondary); font-size: 0.93rem;
}

.checklist li::before {
  content: '';
  position: absolute; left: 0; top: 11px;
  width: 18px; height: 18px;
  border: 1.5px solid var(--border-color); border-radius: 4px;
}

.checklist li.done::before { background: var(--accent-green); border-color: var(--accent-green); }
.checklist li.done::after  { content: '✓'; position: absolute; left: 3px; top: 9px; color: #fff; font-size: 0.78rem; font-weight: 700; }

/* ============================================
   Two Column Layout
   ============================================ */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: start;
}

.two-col-reverse { direction: rtl; }
.two-col-reverse > * { direction: ltr; }

/* ============================================
   Scroll Animations
   ============================================ */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .two-col, .compare-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .section    { padding: 64px 0; }
  .page-header { padding: 50px 0 28px; }

  .card-grid, .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }

  .hero { min-height: auto; padding: 60px 20px; }

  .step { padding-left: 64px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .roadmap { flex-direction: column; }
  .roadmap-step { flex: none; }
  .roadmap-step::after { content: '↓'; right: 50%; top: auto; bottom: -12px; transform: translateX(50%); }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Utilities
   ============================================ */
.text-center    { text-align: center; }
.text-left      { text-align: left; }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }  .mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.gap-sm { gap: 8px; } .gap-md { gap: 16px; } .gap-lg { gap: 24px; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

.highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px; margin: 20px 0;
}

/* ============================================
   Contact Card
   ============================================ */
.contact-card {
  max-width: 520px;
  margin: 0 auto 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px; text-align: center;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 75%; height: 1px;
  background: var(--gradient-primary);
  opacity: 0.6;
}

.contact-card:hover {
  border-color: rgba(56,189,248,0.18);
  box-shadow: 0 10px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(56,189,248,0.06);
}

.contact-card-inner {
  display: flex; align-items: center;
  justify-content: center; gap: 20px; flex-wrap: wrap;
}

.contact-qq-icon { font-size: 2.2rem; }
.contact-info { text-align: left; }

.contact-label {
  font-size: 0.73rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 3px; font-weight: 700;
}

.contact-number {
  font-size: 1.7rem; font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-family: 'Fira Code', monospace; letter-spacing: -0.01em;
}

.contact-tip { color: var(--text-muted); font-size: 0.875rem; margin-top: 14px; line-height: 1.65; }

/* ============================================
   Pay Buttons
   ============================================ */
.pay-buttons {
  display: flex; justify-content: center;
  gap: 14px; margin-bottom: 44px;
}

.pay-btn {
  padding: 11px 26px; border: none;
  border-radius: 10px; font-size: 0.93rem; font-weight: 600;
  font-family: inherit; cursor: pointer;
  transition: all var(--transition);
  display: inline-flex; align-items: center;
  gap: 7px; letter-spacing: 0.01em;
}

.pay-btn-wechat {
  background: linear-gradient(135deg, #07c160, #06ad56);
  color: #fff;
  box-shadow: 0 4px 14px rgba(7,193,96,0.22);
}

.pay-btn-wechat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(7,193,96,0.32);
}

.pay-btn-alipay {
  background: linear-gradient(135deg, #1677ff, #0e6ae0);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22,119,255,0.22);
}

.pay-btn-alipay:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22,119,255,0.32);
}

/* (旧 nav-divider / nav-icon-btn 已移除) */

/* ============================================
   Service Cards
   ============================================ */
.service-card { position: relative; }

.service-card.featured {
  border-color: rgba(244,114,182,0.18);
  background: linear-gradient(145deg, rgba(244,114,182,0.04), rgba(167,139,250,0.04));
}

.service-badge {
  position: absolute; top: 14px; right: 14px;
  padding: 3px 10px;
  background: var(--gradient-primary);
  color: #fff; font-size: 0.7rem; font-weight: 700;
  border-radius: 20px; letter-spacing: 0.04em;
}

.service-icon {
  font-size: 2rem; margin-bottom: 14px;
  filter: drop-shadow(0 0 10px rgba(56,189,248,0.2));
}

.service-title-row {
  display: flex; align-items: center;
  gap: 10px; margin-bottom: 10px;
}

.service-title-row h3 { margin-bottom: 0; }

/* ============================================
   Plugin Cards
   ============================================ */
.plugin-card-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 14px;
}

.plugin-features {
  display: flex; flex-wrap: wrap;
  gap: 6px; margin-top: 14px;
}

.plugin-feat {
  padding: 2px 9px;
  background: rgba(56,189,248,0.06);
  border: 1px solid rgba(56,189,248,0.14);
  border-radius: 5px; font-size: 0.74rem;
  color: var(--accent-blue); font-weight: 600;
  letter-spacing: 0.02em;
}

/* ============================================
   Quote Box
   ============================================ */
.quote-box {
  text-align: center; padding: 44px 24px;
  margin-top: 48px; position: relative;
}

.quote-box::before,
.quote-box::after {
  content: '';
  position: absolute; left: 50%;
  transform: translateX(-50%);
  height: 1px; width: 100px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.28), transparent);
}

.quote-box::before { top: 0; }
.quote-box::after  { bottom: 0; }

.quote-box p {
  font-size: 1.08rem; color: var(--text-muted);
  font-style: italic; max-width: 540px;
  margin: 0 auto; line-height: 1.92;
}

/* ============================================
   Doc Layout
   ============================================ */
.doc-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 40px;
  padding-top: 16px; padding-bottom: 80px;
  align-items: start;
}

.plugin-doc-auto-preview {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100% - 40px));
  margin: calc(var(--nav-height) + 28px) auto 0;
  overflow: hidden;
  border: 1px solid rgba(56,189,248,0.16);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: 0 24px 70px rgba(0,0,0,0.34);
}

.plugin-doc-auto-preview + .page-header {
  padding-top: 36px;
}

.plugin-doc-auto-preview img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.doc-sidebar { position: sticky; top: calc(var(--nav-height) + 20px); }

.doc-nav {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 18px 14px;
  backdrop-filter: blur(16px);
}

.doc-nav-title {
  font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 3px;
  font-weight: 700; margin-bottom: 10px; padding-left: 8px;
}

.doc-nav-link {
  display: block; padding: 7px 10px;
  font-size: 0.845rem; color: var(--text-secondary);
  border-radius: 6px; transition: all var(--transition);
  border-left: 2px solid transparent;
}

.doc-nav-link:hover {
  color: var(--text-primary);
  background: rgba(56,189,248,0.05);
}

.doc-nav-link.active {
  color: var(--accent-blue);
  background: rgba(56,189,248,0.08);
  border-left-color: var(--accent-blue);
}

.doc-content { min-width: 0; }

/* MySQL 说明页 — 分层色块与侧栏强调 */
.mysql-doc-page .page-header--mysql::before {
  background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(234, 179, 8, 0.14) 0%, rgba(56, 189, 248, 0.06) 42%, transparent 72%);
}

.mysql-doc-page .page-header--mysql .icon {
  filter: drop-shadow(0 0 20px rgba(250, 204, 21, 0.35));
}

/* MySQL 说明页 — 文首红色提示（代管库说明） */
.mysql-doc-page .mysql-red-notice {
  margin: 0 0 22px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(248, 113, 113, 0.55);
  background: linear-gradient(165deg, rgba(127, 29, 29, 0.42) 0%, rgba(69, 10, 10, 0.35) 100%);
  box-shadow: 0 4px 24px rgba(220, 38, 38, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mysql-doc-page .mysql-red-notice p {
  margin: 0;
  color: #fca5a5;
  font-size: 0.95rem;
  line-height: 1.85;
}

.mysql-doc-page .mysql-red-notice strong {
  color: #fecaca;
  font-weight: 700;
}

.mysql-doc-page .mysql-red-notice code {
  background: rgba(0, 0, 0, 0.35);
  color: #ffe4e6;
  border: 1px solid rgba(248, 113, 113, 0.35);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'Fira Code', monospace;
  font-size: 0.88em;
}

.mysql-doc-page .doc-nav {
  border-color: rgba(234, 179, 8, 0.12);
  background: linear-gradient(165deg, rgba(12, 18, 32, 0.85), rgba(120, 53, 15, 0.06));
}

.mysql-doc-page .doc-nav-link[href="#notice"] {
  border-left-color: rgba(234, 179, 8, 0.35);
}

.mysql-doc-page .doc-nav-link[href="#notice"]:hover {
  color: #fcd34d;
  background: rgba(180, 83, 9, 0.1);
}

.mysql-doc-page .doc-nav-link[href="#notice"].active {
  color: #fef08a;
  background: rgba(180, 83, 9, 0.22);
  border-left-color: #fde047;
}

.mysql-doc-page .doc-tier {
  position: relative;
  padding: 26px 28px 30px;
  margin-bottom: 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  overflow: hidden;
}

.mysql-doc-page .doc-tier::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  opacity: 0.95;
}

.mysql-doc-page .doc-tier::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.55;
}

.mysql-doc-page .doc-tier-notice {
  border-color: rgba(251, 191, 36, 0.22);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.18) 0%, rgba(12, 18, 32, 0.72) 55%, rgba(180, 83, 9, 0.08) 100%);
}

.mysql-doc-page .doc-tier-notice::before {
  background: linear-gradient(180deg, #fde047, #d97706);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.35);
}

.mysql-doc-page .doc-tier-notice::after {
  background: radial-gradient(ellipse 90% 50% at 100% 0%, rgba(250, 204, 21, 0.08), transparent 55%);
}

.mysql-doc-page .doc-tier-notice h2 .icon { color: #fbbf24; }

.mysql-doc-page .doc-tier-why {
  border-color: rgba(56, 189, 248, 0.18);
  background: linear-gradient(160deg, rgba(14, 116, 144, 0.12) 0%, rgba(12, 18, 32, 0.72) 50%, rgba(56, 189, 248, 0.05) 100%);
}

.mysql-doc-page .doc-tier-why::before {
  background: linear-gradient(180deg, #38bdf8, #0284c7);
}

.mysql-doc-page .doc-tier-why::after {
  background: radial-gradient(ellipse 80% 45% at 0% 100%, rgba(56, 189, 248, 0.1), transparent 50%);
}

.mysql-doc-page .doc-tier-why h2 .icon { color: var(--accent-blue); }

.mysql-doc-page .doc-tier-why .feature-list li { border-bottom-color: rgba(56, 189, 248, 0.08); }
.mysql-doc-page .doc-tier-why .feature-list li::before { color: #38bdf8; }

.mysql-doc-page .doc-tier-benefits {
  border-color: rgba(52, 211, 153, 0.18);
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.14) 0%, rgba(12, 18, 32, 0.72) 48%, rgba(52, 211, 153, 0.05) 100%);
}

.mysql-doc-page .doc-tier-benefits::before {
  background: linear-gradient(180deg, #34d399, #059669);
}

.mysql-doc-page .doc-tier-benefits::after {
  background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(52, 211, 153, 0.09), transparent 55%);
}

.mysql-doc-page .doc-tier-benefits h2 .icon { color: var(--accent-green); }

.mysql-doc-page .doc-tier-benefits .styled-table thead {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.12), rgba(56, 189, 248, 0.06));
}

.mysql-doc-page .doc-tier-benefits .styled-table th {
  color: #a7f3d0;
  border-bottom-color: rgba(52, 211, 153, 0.2);
}

.mysql-doc-page .doc-tier-benefits .styled-table tr:hover td {
  background: rgba(52, 211, 153, 0.04);
}

.mysql-doc-page .doc-tier-network {
  border-color: rgba(167, 139, 250, 0.2);
  background: linear-gradient(150deg, rgba(76, 29, 149, 0.14) 0%, rgba(12, 18, 32, 0.72) 50%, rgba(167, 139, 250, 0.06) 100%);
}

.mysql-doc-page .doc-tier-network::before {
  background: linear-gradient(180deg, #a78bfa, #7c3aed);
}

.mysql-doc-page .doc-tier-network::after {
  background: radial-gradient(ellipse 85% 50% at 100% 100%, rgba(167, 139, 250, 0.1), transparent 52%);
}

.mysql-doc-page .doc-tier-network h2 .icon { color: var(--accent-purple); }

.mysql-doc-page .doc-tier-yaml {
  border-color: rgba(34, 211, 238, 0.16);
  background: linear-gradient(155deg, rgba(22, 78, 99, 0.12) 0%, rgba(12, 18, 32, 0.75) 55%, rgba(34, 211, 238, 0.04) 100%);
}

.mysql-doc-page .doc-tier-yaml::before {
  background: linear-gradient(180deg, #22d3ee, #0891b2);
}

.mysql-doc-page .doc-tier-yaml::after {
  background: radial-gradient(ellipse 60% 50% at 0% 0%, rgba(34, 211, 238, 0.08), transparent 50%);
}

.mysql-doc-page .doc-tier-yaml h2 .icon { color: var(--accent-cyan); }

.mysql-doc-page .doc-tier-yaml .feature-list li { border-bottom-color: rgba(34, 211, 238, 0.07); }
.mysql-doc-page .doc-tier-yaml .feature-list li::before { color: #22d3ee; }

.mysql-doc-page .doc-tier-deploy {
  border-color: rgba(148, 163, 184, 0.15);
  background: linear-gradient(140deg, rgba(30, 41, 59, 0.55) 0%, rgba(12, 18, 32, 0.78) 45%, rgba(56, 189, 248, 0.06) 100%);
}

.mysql-doc-page .doc-tier-deploy::before {
  background: linear-gradient(180deg, #94a3b8, #38bdf8);
}

.mysql-doc-page .doc-tier-deploy::after {
  background: radial-gradient(ellipse 75% 55% at 50% 100%, rgba(56, 189, 248, 0.08), transparent 55%);
}

.mysql-doc-page .doc-tier-deploy h2 .icon { color: #7dd3fc; }

.mysql-doc-page .doc-tier-deploy .feature-list li { border-bottom-color: rgba(148, 163, 184, 0.08); }
.mysql-doc-page .doc-tier-deploy .feature-list li::before { color: #94a3b8; }

.mysql-doc-page .doc-tier .callout {
  position: relative;
  z-index: 1;
}

.mysql-doc-page .doc-tier > h2,
.mysql-doc-page .doc-tier > p,
.mysql-doc-page .doc-tier > ul,
.mysql-doc-page .doc-tier > .table-wrapper,
.mysql-doc-page .doc-tier > .callout {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-sidebar { position: static; display: none; }
  .plugin-doc-auto-preview {
    width: calc(100% - 24px);
    margin-top: calc(var(--nav-height) + 16px);
    border-radius: 14px;
  }

  .plugin-doc-auto-preview img {
    max-height: 260px;
  }
}

/* ============================================
   Gallery
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  transition: all var(--transition);
}

.gallery-item:hover {
  transform: translateY(-3px);
  border-color: rgba(56,189,248,0.18);
  box-shadow: 0 10px 32px rgba(0,0,0,0.45);
}

.gallery-img-wrap {
  width: 100%; aspect-ratio: 16/10;
  overflow: hidden; background: var(--bg-code);
}

.gallery-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img-wrap img { transform: scale(1.06); }

.gallery-caption {
  padding: 12px 14px; font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
  backdrop-filter: blur(10px);
}

.lightbox-overlay.active { opacity: 1; pointer-events: all; }

.lightbox-close {
  position: absolute; top: 20px; right: 22px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; color: #fff;
  font-size: 1.3rem; width: 38px; height: 38px;
  cursor: pointer; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}

.lightbox-close:hover { background: rgba(255,255,255,0.14); }

.lightbox-content {
  max-width: 90vw; max-height: 90vh;
  text-align: center; display: flex;
  flex-direction: column; align-items: center;
}

.lightbox-content img {
  max-width: 90vw; max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 16px 64px rgba(0,0,0,0.7);
}

.lightbox-title {
  color: rgba(255,255,255,0.55);
  margin-top: 14px; font-size: 0.875rem;
}

/* ============================================
   Admin Login
   ============================================ */
.admin-login-box {
  background: rgba(12, 18, 32, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px 36px; max-width: 400px; width: 100%;
  text-align: center; backdrop-filter: blur(20px);
}

.admin-form { text-align: left; }
.form-group { margin-bottom: 14px; }

.form-label {
  display: block; font-size: 0.84rem;
  color: var(--text-secondary); margin-bottom: 6px; font-weight: 500;
}

.form-input {
  width: 100%; padding: 11px 14px;
  background: rgba(7,11,20,0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px; color: var(--text-primary);
  font-size: 0.93rem; font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: rgba(56,189,248,0.38);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.1);
}

/* ============================================
   Admin Upload
   ============================================ */
.upload-drop-zone {
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 56px 24px; text-align: center;
  cursor: pointer; transition: all var(--transition);
  background: rgba(56,189,248,0.015);
}

.upload-drop-zone:hover,
.upload-drop-zone.drag-over {
  border-color: rgba(56,189,248,0.38);
  background: rgba(56,189,248,0.04);
}

.upload-icon { font-size: 2.8rem; margin-bottom: 12px; }
.upload-drop-zone p { color: var(--text-secondary); font-size: 0.88rem; }

.upload-preview-row {
  display: flex; gap: 20px;
  align-items: flex-start; margin-top: 16px;
}

.upload-preview-img {
  width: 200px; height: 130px;
  object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--border-color); flex-shrink: 0;
}

/* ============================================
   Admin Gallery List
   ============================================ */
.admin-gallery-list { display: flex; flex-direction: column; gap: 9px; }

.admin-gallery-item {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius); transition: all var(--transition);
}

.admin-gallery-item:hover { border-color: rgba(56,189,248,0.14); }

.admin-gallery-thumb {
  width: 76px; height: 50px;
  border-radius: 6px; overflow: hidden;
  flex-shrink: 0; background: var(--bg-code);
}

.admin-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-gallery-info { flex: 1; min-width: 0; }

.admin-gallery-title {
  font-weight: 500; font-size: 0.88rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.admin-gallery-meta { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }
.admin-gallery-actions { display: flex; gap: 5px; flex-shrink: 0; }

.admin-act-btn {
  width: 33px; height: 33px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(56,189,248,0.05);
  border: 1px solid var(--border-color);
  border-radius: 7px; color: var(--text-secondary);
  font-size: 0.85rem; cursor: pointer;
  transition: all var(--transition);
}

.admin-act-btn:hover {
  background: rgba(56,189,248,0.1);
  border-color: rgba(56,189,248,0.28);
  color: var(--text-primary);
}

.admin-act-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.admin-act-btn.admin-act-danger:hover {
  background: rgba(248,113,113,0.1);
  border-color: rgba(248,113,113,0.3);
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(10px);
  z-index: 9000; display: flex;
  align-items: center; justify-content: center; padding: 24px;
}

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px; max-width: 420px; width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.65);
}

/* ============================================
   Toast
   ============================================ */
.copy-toast {
  position: fixed; bottom: 36px; left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: var(--accent-green);
  color: #fff; padding: 10px 24px;
  border-radius: 8px; font-size: 0.875rem; font-weight: 500;
  z-index: 10000; opacity: 0; pointer-events: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(52,211,153,0.35);
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   Admin Responsive
   ============================================ */
@media (max-width: 768px) {
  .admin-gallery-item { flex-wrap: wrap; }
  .admin-gallery-actions { width: 100%; justify-content: flex-end; }
  .upload-preview-row { flex-direction: column; }
  .upload-preview-img { width: 100%; height: auto; aspect-ratio: 16/10; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* ============================================
   粒子背景画布
   ============================================ */
#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: particlesFadeIn 2s ease 0.5s forwards;
}

@keyframes particlesFadeIn {
  to { opacity: 1; }
}

/* ============================================
   3D 入场动画 — 卡片 & 区块
   ============================================ */

/* 升级 reveal：带透视 3D 倾斜入场 */
.reveal {
  opacity: 0;
  transform: perspective(800px) rotateX(10deg) translateY(28px);
  transform-origin: center bottom;
  transition:
    opacity   0.72s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.72s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: perspective(800px) rotateX(0deg) translateY(0);
}

/* 卡片网格：子卡片错开延迟入场 */
.card-3d {
  opacity: 0;
  transform: perspective(600px) rotateX(14deg) translateY(32px) scale(0.97);
  transform-origin: center bottom;
  transition:
    opacity   0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-3d.card-3d-visible {
  opacity: 1;
  transform: perspective(600px) rotateX(0deg) translateY(0) scale(1);
}

/* 页面标题 3D 入场 */
.page-header .icon,
.page-header h1,
.page-header p {
  opacity: 0;
  transform: perspective(600px) rotateX(8deg) translateY(18px);
  animation: headerEnter3d 0.65s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

.page-header h1 { animation-delay: 0.08s; }
.page-header p  { animation-delay: 0.18s; }

@keyframes headerEnter3d {
  to {
    opacity: 1;
    transform: perspective(600px) rotateX(0deg) translateY(0);
  }
}

/* ============================================
   按钮点击波纹 & 按压反馈
   ============================================ */

/* 确保 btn 可以裁剪波纹 */
.btn {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* 按压下沉感 */
.btn:active {
  transform: translateY(1px) scale(0.975) !important;
  transition: transform 0.08s ease !important;
}

.btn-primary:active {
  box-shadow: 0 2px 10px rgba(56,189,248,0.18) !important;
}

.btn-outline:active {
  box-shadow: 0 1px 6px rgba(56,189,248,0.1) !important;
}

/* 波纹元素 */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
  transform: scale(0);
  animation: btnRipple 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes btnRipple {
  0%   { transform: scale(0); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

/* pay-btn 和 nav-icon-btn 也有波纹 */
.pay-btn {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.pay-btn:active {
  transform: translateY(0) scale(0.97) !important;
  transition: transform 0.08s ease !important;
}


/* 卡片链接箭头弹性过渡 */
.card-link {
  transition: gap 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), color var(--transition);
}

/* 徽章入场脉冲 */
@keyframes badgePulse {
  0%   { box-shadow: 0 0 0 0 rgba(56,189,248,0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(56,189,248,0); }
  100% { box-shadow: 0 0 0 0 rgba(56,189,248,0); }
}

.hero-badge {
  animation: fadeInDown 0.75s ease forwards, badgePulse 2.5s ease 1.5s infinite;
}
