/* ============================
   GlobalProxy - 商用IP代理网站
   设计系统与全局样式
   ============================ */

/* --- CSS 变量 --- */
:root {
  /* 主色调 */
  --primary: #00E5FF;
  --primary-dark: #00B8D4;
  --secondary: #6366F1;
  --accent: #818CF8;
  
  /* 背景色 */
  --bg-dark: #0B1220;
  --bg-darker: #070B14;
  --bg-card: #0F172A;
  --bg-card-hover: #162033;
  --bg-glass: rgba(15, 23, 42, 0.7);
  
  /* 边框色 */
  --border: #1e3553;
  --border-light: #2a4565;
  --border-glow: rgba(0, 229, 255, 0.3);
  
  /* 文字色 */
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-dark: #334155;
  
  /* 功能色 */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  
  /* 间距 */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 80px;
  --space-3xl: 120px;
  
  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(0, 229, 255, 0.15);
  --shadow-glow-lg: 0 0 80px rgba(0, 229, 255, 0.2);
  
  /* 字体 */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* 动画 */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 全局重置 --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* --- 容器 --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- 滚动条 --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

/* ============================
   按钮组件
   ============================ */
.btn-primary,
.btn-outline,
.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #0B1220;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.35);
}

.btn-outline {
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 229, 255, 0.08);
}

.btn-white {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

.btn-text {
  color: var(--text-secondary);
}

.btn-text:hover {
  color: var(--primary);
}

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

.btn-lg {
  padding: 14px 30px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ============================
   导航栏
   ============================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition);
  padding: 18px 0;
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}

.logo-mark {
  width: 32px;
  height: 32px;
}

.logo-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 450;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================
   Hero 首屏
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at top center, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px var(--space-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 100px;
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(0, 229, 255, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.trust-item svg {
  color: var(--success);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--primary), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.5); transform-origin: top; }
}

/* ============================
   数据统计条
   ============================ */
.stats-section {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.stat-card {
  text-align: center;
  padding: var(--space-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.1);
  border-radius: var(--radius-md);
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ============================
   通用 section 样式
   ============================ */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  padding: 6px 14px;
  background: rgba(0, 229, 255, 0.08);
  border-radius: 100px;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================
   产品服务介绍
   ============================ */
.products-section {
  background: var(--bg-dark);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card.featured {
  border-color: rgba(0, 229, 255, 0.3);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.05) 0%, var(--bg-card) 100%);
}

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #0B1220;
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
}

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--primary);
}

.product-icon svg {
  width: 28px;
  height: 28px;
}

.icon-datacenter {
  background: rgba(99, 102, 241, 0.12);
  color: var(--secondary);
}

.icon-static {
  background: rgba(129, 140, 248, 0.12);
  color: var(--accent);
}

.icon-mobile {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.icon-cloud {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
}

.icon-proxy {
  background: rgba(236, 72, 153, 0.12);
  color: #EC4899;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.product-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-features {
  margin-bottom: 24px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 5px 0;
}

.check-dot {
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
}

.product-link:hover {
  gap: 10px;
}

.product-link svg {
  transition: transform var(--transition);
}

/* ============================
   核心功能特性
   ============================ */
.features-section {
  background: var(--bg-darker);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition);
}

.feature-item:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-item h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================
   使用场景
   ============================ */
.usecases-section {
  background: var(--bg-dark);
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.usecase-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.usecase-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.usecase-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(0, 229, 255, 0.15));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.usecase-icon svg {
  width: 24px;
  height: 24px;
}

.usecase-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.usecase-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================
   价格套餐
   ============================ */
.pricing-section {
  background: var(--bg-darker);
}

.pricing-toggle {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  margin: 0 auto 48px;
  display: flex;
  width: fit-content;
}

.toggle-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toggle-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #0B1220;
  font-weight: 600;
}

.save-badge {
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  transition: all var(--transition);
}

.pricing-footer-note {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-footer-note a {
  color: var(--primary);
}

.pricing-footer-note a:hover {
  text-decoration: underline;
}

.pricing-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.06) 0%, var(--bg-card) 100%);
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
  z-index: 2;
}

.pricing-card.popular:hover {
  box-shadow: var(--shadow-glow-lg);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #0B1220;
  font-size: 13px;
  font-weight: 700;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  margin-bottom: 24px;
}

.pricing-header h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pricing-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-price {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.currency {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-right: 2px;
}

.amount {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.custom-price {
  font-size: 32px;
}

.period {
  font-size: 15px;
  color: var(--text-muted);
  margin-left: 6px;
}

.pricing-traffic {
  text-align: center;
  margin-bottom: 28px;
}

.traffic-value {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.traffic-label {
  font-size: 13px;
  color: var(--text-muted);
}

.pricing-features {
  margin-bottom: 28px;
  min-height: 240px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-features li svg {
  color: var(--success);
  flex-shrink: 0;
}

.pricing-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
}

.pricing-features li.disabled svg {
  color: var(--text-muted);
}

.pricing-btn {
  padding: 14px;
  font-size: 15px;
}

/* ============================
   节点覆盖地图
   ============================ */
.nodes-section {
  background: var(--bg-dark);
}

.map-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
}

.world-map {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  overflow: hidden;
  min-height: 450px;
}

.map-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.map-node {
  position: absolute;
  cursor: pointer;
  z-index: 10;
}

.node-dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  position: relative;
  z-index: 2;
  transition: transform var(--transition);
}

.node-md {
  width: 12px;
  height: 12px;
}

.node-lg {
  width: 14px;
  height: 14px;
}

.map-node:hover .node-dot {
  transform: scale(1.5);
}

.node-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: node-pulse 2s ease-out infinite;
}

.pulse-lg {
  width: 40px;
  height: 40px;
}

@keyframes node-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

.node-tooltip {
  position: absolute;
  background: var(--bg-darker);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
  box-shadow: var(--shadow-glow);
  min-width: 160px;
}

.node-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-region {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--primary);
}

.tooltip-stats {
  display: flex;
  gap: 20px;
}

.tooltip-stat {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.nodes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.node-region-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.node-region-item:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.region-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.region-china { background: #ff3860; color: #ff3860; box-shadow: 0 0 10px rgba(255,56,96,0.6); }
.region-asia { background: var(--primary); color: var(--primary); }
.region-europe { background: var(--secondary); color: var(--secondary); }
.region-na { background: var(--accent); color: var(--accent); }
.region-sa { background: #F59E0B; color: #F59E0B; }
.region-africa { background: #EF4444; color: #EF4444; }
.region-oceania { background: #10B981; color: #10B981; }

.region-info {
  flex: 1;
}

.region-name {
  display: block;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 2px;
}

.region-count {
  font-size: 13px;
  color: var(--text-muted);
}

.region-ping {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--success);
  font-weight: 500;
}

.nodes-cta {
  margin-top: 8px;
  padding: 12px 20px;
  font-size: 14px;
}

/* ============================
   API 与文档
   ============================ */
.api-section {
  background: var(--bg-darker);
}

.api-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.api-info h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.api-info p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.api-protocol-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.proto-tag {
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.proto-tag.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 229, 255, 0.1);
}

.api-features {
  margin-bottom: 32px;
}

.api-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-secondary);
}

.api-features li svg {
  color: var(--success);
  flex-shrink: 0;
}

.code-block-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.code-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
  padding: 0 8px;
}

.code-tab {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  font-family: var(--font-mono);
}

.code-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.code-tab:hover {
  color: var(--text-primary);
}

.code-block {
  padding: 24px;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #94A3B8;
}

/* API 文档新增样式 */
.api-sub-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 48px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.api-sub-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.api-list-wrap {
  margin-top: 20px;
}

.api-table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}

.api-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-primary);
  background: rgba(0, 229, 255, 0.06);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.api-table td {
  padding: 14px 18px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  line-height: 1.6;
}

.api-table tbody tr:hover {
  background: rgba(0, 229, 255, 0.03);
}

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

.api-method {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  margin-right: 6px;
}

.api-method.get {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}

.api-method.post {
  background: rgba(59, 130, 246, 0.12);
  color: #3B82F6;
}

.api-docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: 28px;
}

.api-doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: border-color var(--transition);
}

.api-doc-card:hover {
  border-color: rgba(0, 229, 255, 0.25);
}

.api-doc-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.api-doc-table-wrap {
  overflow-x: auto;
}

.api-doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.api-doc-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 0.3px;
}

.api-doc-table td {
  padding: 10px 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  line-height: 1.55;
}

.api-doc-table code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(0, 229, 255, 0.08);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
}

.api-errors-wrap {
  margin-top: 8px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.error-code.ok {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

@media (max-width: 768px) {
  .api-docs-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================
   客户评价
   ============================ */
.testimonials-section {
  background: var(--bg-dark);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.testimonial-card.featured-testimonial {
  border-color: var(--border-glow);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.04) 0%, var(--bg-card) 100%);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  color: #F59E0B;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.avatar-1 {
  background: linear-gradient(135deg, #6366F1, #818CF8);
}

.avatar-2 {
  background: linear-gradient(135deg, #00E5FF, #6366F1);
}

.avatar-3 {
  background: linear-gradient(135deg, #10B981, #00E5FF);
}

.author-name {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

.author-title {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================
   FAQ
   ============================ */
.faq-section {
  background: var(--bg-darker);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  background: var(--bg-card);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item.active {
  border-color: var(--border-glow);
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: all var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  padding: 0 28px 24px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-answer p + p {
  padding-top: 0;
}

/* ============================
   CTA 行动号召区
   ============================ */
.cta-section {
  padding: var(--space-2xl) 0;
  background: var(--bg-dark);
}

.cta-card {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  overflow: hidden;
}

.cta-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-content strong {
  color: var(--primary);
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================
   页脚
   ============================ */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
}

.footer-logo span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.footer-social a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(0, 229, 255, 0.1);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-col ul a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* --- 访客IP显示模块 -- */
.visitor-ip-module {
  display: inline-flex;
  align-items: center;
}

.visitor-ip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: default;
}

.visitor-ip-badge:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.3);
  color: var(--text-primary);
}

.visitor-ip-badge svg {
  color: var(--primary);
  flex-shrink: 0;
}

.visitor-ip-addr {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-weight: 500;
  color: var(--primary);
}

.visitor-ip-loc {
  color: var(--text-muted);
  font-size: 11px;
  border-left: 1px solid var(--border);
  padding-left: 8px;
}

.visitor-ip-skeleton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.6;
}

.visitor-ip-skeleton svg {
  color: var(--primary);
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- 客服模块 -- */
.footer-cs {
  min-width: 0;
}

.cs-wechat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.cs-wechat-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-md);
  color: var(--primary);
}

.cs-wechat-icon svg {
  width: 22px;
  height: 22px;
}

.cs-wechat-info {
  flex: 1;
  min-width: 0;
}

.cs-wechat-id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 10px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  user-select: all;
}

.cs-wechat-id:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--primary);
}

.cs-wechat-id.copied {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--success);
}

.cs-wechat-id .copy-icon {
  opacity: 0.7;
}

.cs-wechat-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.cs-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* QQ 客服列表 */
.qq-cs-list {
  margin: 0;
  padding: 0;
}

.qq-cs-list li {
  margin-bottom: 6px;
}

.qq-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-size: 13px;
}

.qq-item:hover {
  border-color: var(--primary);
  background: rgba(0, 229, 255, 0.06);
  transform: translateX(2px);
}

.qq-num {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-primary);
}

.qq-item:hover .qq-num {
  color: var(--primary);
}

.qq-role {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* --- 备案信息栏 -- */
.icp-bar {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  padding: 14px 0;
}

.icp-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.icp-bar-inner a {
  color: var(--text-muted);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.icp-bar-inner a:hover {
  color: var(--primary);
}

.icp-divider {
  color: var(--border);
  opacity: 0.6;
}

.icp-badge-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.3), rgba(99, 102, 241, 0.3));
  border-radius: 2px;
  position: relative;
  flex-shrink: 0;
}

.icp-badge-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.hide-mobile {
  display: inline;
}

/* ============================
   响应式 - 平板
   ============================ */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  
  .pricing-card.popular {
    transform: none;
  }
  
  .pricing-card.popular:hover {
    transform: translateY(-4px);
  }
  
  .map-container {
    grid-template-columns: 1fr;
  }
  
  .api-content {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
  
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
  
  .footer-cs {
    grid-column: span 2;
  }
}

/* ============================
   响应式 - 手机
   ============================ */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  /* 导航 */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 4px;
    transition: right var(--transition);
    z-index: 999;
  }
  
  .nav-links.open {
    right: 0;
  }
  
  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  
  .nav-links a::after {
    display: none;
  }
  
  .nav-actions .btn-text {
    display: none;
  }
  
  .nav-actions .btn-primary {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }
  
  /* Hero */
  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hide-mobile {
    display: none;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn-primary,
  .hero-cta .btn-outline {
    width: 100%;
  }
  
  .hero-trust {
    gap: 16px;
  }
  
  .hero-scroll-indicator {
    display: none;
  }
  
  /* 数据统计 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  
  .stat-number {
    font-size: 32px;
  }
  
  /* 产品 */
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  /* 功能特性 */
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  /* 使用场景 */
  .usecases-grid {
    grid-template-columns: 1fr;
  }
  
  /* 价格 */
  .toggle-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  /* 节点地图 */
  .world-map {
    min-height: 300px;
    padding: 20px;
  }
  
  /* API 代码 */
  .code-block {
    padding: 16px;
  }
  
  .code-block code {
    font-size: 12px;
  }
  
  /* FAQ */
  .faq-question {
    padding: 18px 20px;
    font-size: 15px;
  }
  
  .faq-answer p {
    padding: 0 20px 20px;
    font-size: 14px;
  }
  
  /* CTA */
  .cta-card {
    padding: 40px 24px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-buttons .btn-primary,
  .cta-buttons .btn-outline {
    width: 100%;
  }
  
  /* 页脚 */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .toggle-btn {
    padding: 10px 12px;
    font-size: 12px;
  }
  
  .save-badge {
    display: none;
  }
}

/* ============================
   滚动动画
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ============================
   云服务器
   ============================ */
.servers-section {
  background: var(--bg-darker);
  position: relative;
  overflow: hidden;
}

.servers-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.servers-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.servers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.server-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.server-card.popular {
  border-color: rgba(0, 229, 255, 0.3);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.06), var(--bg-card) 40%);
}

.server-badge {
  position: absolute;
  top: -1px;
  right: 20px;
  padding: 4px 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #0B1220;
  font-size: 12px;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.server-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(99, 102, 241, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 16px;
}

.server-icon svg {
  width: 28px;
  height: 28px;
}

.server-tag {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.server-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 2px;
}

.server-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.server-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.server-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.server-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.server-price {
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
}

.price-currency {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-right: 2px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 6px;
}

.server-btn {
  width: 100%;
  justify-content: center;
}

/* ============================
   博客资讯
   ============================ */
.blog-section {
  background: var(--bg-dark);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.blog-cover {
  height: 180px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(99, 102, 241, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-cover::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 229, 255, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
  animation: blogCoverFloat 8s ease-in-out infinite;
}

@keyframes blogCoverFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-10%, -5%) rotate(2deg); }
}

.blog-cover-icon {
  width: 56px;
  height: 56px;
  color: var(--primary);
  opacity: 0.7;
  position: relative;
  z-index: 1;
}

.blog-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-category {
  padding: 3px 10px;
  background: rgba(0, 229, 255, 0.12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
  border-radius: 100px;
}

.blog-date {
  font-size: 12px;
  color: var(--text-muted);
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  transition: color var(--transition);
}

.blog-card:hover h3 {
  color: var(--primary);
}

.blog-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
}

.blog-card:hover .blog-read-more svg {
  transform: translateX(4px);
}

.blog-read-more svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

/* ============================
   技术教程模块
   ============================ */
.tutorials-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-primary) 100%);
}

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.tutorial-card {
  display: flex;
  gap: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.tutorial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.tutorial-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 229, 255, 0.1);
}

.tutorial-card:hover::before {
  transform: scaleX(1);
}

.tutorial-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-md);
  color: var(--primary);
}

.tutorial-icon .blog-cover-icon {
  width: 28px;
  height: 28px;
}

.tutorial-card:hover .tutorial-icon {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(99, 102, 241, 0.25));
}

.tutorial-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tutorial-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  background: rgba(0, 229, 255, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
  letter-spacing: 0.02em;
}

.tutorial-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
  transition: color var(--transition);
}

.tutorial-card:hover h3 {
  color: var(--primary);
}

.tutorial-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tutorial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}

.tutorial-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
}

.tutorial-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  transition: gap var(--transition);
}

.tutorial-card:hover .tutorial-read-btn {
  gap: 8px;
}

.tutorial-read-btn svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.tutorial-card:hover .tutorial-read-btn svg {
  transform: translateX(3px);
}

/* ============================
   文章详情页
   ============================ */
.article-page {
  padding-top: 100px;
  padding-bottom: var(--space-2xl);
  min-height: 100vh;
}

.article-breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.article-breadcrumb a {
  color: var(--text-secondary);
}

.article-breadcrumb a:hover {
  color: var(--primary);
}

.article-breadcrumb span {
  margin: 0 8px;
}

.article-header {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.article-header .blog-category {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 14px;
  font-size: 13px;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-meta-item svg {
  width: 16px;
  height: 16px;
}

.article-cover {
  max-width: 900px;
  margin: 0 auto 48px;
  height: 320px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(99, 102, 241, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.article-cover::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at 20% 40%, rgba(0, 229, 255, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 80% 60%, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
}

.article-cover svg {
  width: 80px;
  height: 80px;
  color: var(--primary);
  opacity: 0.5;
  position: relative;
  z-index: 1;
}

.article-content {
  max-width: 760px;
  margin: 0 auto 64px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 16px;
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 32px 0 12px;
}

.article-content p {
  margin-bottom: 18px;
}

.article-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-content ul, .article-content ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

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

.article-content ul li::marker {
  color: var(--primary);
}

.article-content code {
  background: rgba(0, 229, 255, 0.1);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.article-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 20px;
  margin: 24px 0;
  background: rgba(0, 229, 255, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-share {
  max-width: 760px;
  margin: 0 auto 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-share-label {
  font-size: 14px;
  color: var(--text-muted);
}

.article-share-btns {
  display: flex;
  gap: 8px;
}

.share-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.share-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.share-btn svg {
  width: 16px;
  height: 16px;
}

.article-related {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.article-related h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* ============================
   SEO文字区块
   ============================ */
.seo-text-section {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) 0;
}

.seo-text-inner {
  max-width: 900px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
}

.seo-text-inner h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.seo-text-inner p {
  margin-bottom: 16px;
}

.seo-text-inner strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================
   后台管理系统
   ============================ */
.admin-app {
  min-height: 100vh;
  display: flex;
  background: var(--bg-darker);
}

.admin-sidebar {
  width: 240px;
  background: #0A0F1C;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

.admin-logo .logo-mark {
  width: 28px;
  height: 28px;
}

.admin-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 4px;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.admin-nav-item.active {
  background: rgba(0, 229, 255, 0.12);
  color: var(--primary);
}

.admin-nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.admin-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: #0B1220;
  flex-shrink: 0;
}

.admin-user-info {
  flex: 1;
  min-width: 0;
}

.admin-user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-role {
  font-size: 12px;
  color: var(--text-muted);
}

.admin-logout {
  padding: 6px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
}

.admin-logout:hover {
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

.admin-logout svg {
  width: 18px;
  height: 18px;
}

.admin-main {
  flex: 1;
  margin-left: 240px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-header {
  height: 60px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.85);
}

.admin-header-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header-view-site {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
}

.admin-header-view-site:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.admin-header-view-site svg {
  width: 16px;
  height: 16px;
}

.admin-content {
  flex: 1;
  padding: 32px;
}

.admin-page-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.admin-page-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

/* 统计卡片 */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: 32px;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.admin-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.admin-stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 6px;
}

.admin-stat-change {
  font-size: 13px;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 4px;
}

.admin-stat-change.down {
  color: var(--error);
}

.admin-stat-icon {
  float: right;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.1);
  color: var(--primary);
  margin-top: -4px;
}

.admin-stat-icon svg {
  width: 22px;
  height: 22px;
}

/* 数据表格 */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.admin-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.admin-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table td {
  padding: 16px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

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

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table-title {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.admin-table-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.admin-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 100px;
  white-space: nowrap;
}

.admin-badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.admin-badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.admin-badge-info {
  background: rgba(0, 229, 255, 0.15);
  color: var(--primary);
}

.admin-badge-muted {
  background: rgba(100, 116, 139, 0.2);
  color: var(--text-muted);
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-btn-icon {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
}

.admin-btn-icon:hover {
  background: rgba(255, 255, 255, 0.06);
}

.admin-btn-icon.edit:hover {
  color: var(--primary);
  border-color: rgba(0, 229, 255, 0.3);
}

.admin-btn-icon.delete:hover {
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.3);
}

.admin-btn-icon svg {
  width: 15px;
  height: 15px;
}

/* 按钮 */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  font-family: inherit;
}

.admin-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #0B1220;
  font-weight: 600;
}

.admin-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.25);
}

.admin-btn-default {
  background: var(--bg-card);
  border-color: var(--border-light);
  color: var(--text-secondary);
}

.admin-btn-default:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.admin-btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--error);
}

.admin-btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.admin-btn svg {
  width: 16px;
  height: 16px;
}

.admin-btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.admin-btn-sm svg {
  width: 14px;
  height: 14px;
}

/* 访客统计 */
.admin-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0 16px;
}

.admin-section-title h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.admin-card-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.visit-stats-grid .admin-stat-icon svg {
  width: 22px;
  height: 22px;
}

.visit-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 180px;
  padding: 16px 8px 0;
}

.visit-chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.visit-chart-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.visit-chart-bar {
  width: 60%;
  min-height: 4px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(0, 229, 255, 0.3) 100%);
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
  position: relative;
}

.visit-chart-bar::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
  opacity: 0;
  transition: opacity 0.3s;
}

.visit-chart-bar-col:hover .visit-chart-bar::before {
  opacity: 1;
}

.visit-chart-label {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-display);
}

.visit-chart-value {
  font-size: 11px;
  color: var(--primary);
  font-weight: 500;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
}

.visit-ip-code {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  background: rgba(0, 229, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--primary);
  font-size: 13px;
}

.visit-page {
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 8px;
  border-radius: 4px;
}

/* QQ列表管理 */
.qq-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qq-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
}

.qq-item-row:hover {
  border-color: rgba(0, 229, 255, 0.25);
}

.qq-item-fields {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
}

.qq-number-input,
.qq-tag-select {
  margin: 0;
  font-size: 13px;
}

/* 表单 */
.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.admin-form-group {
  margin-bottom: 20px;
}

.admin-form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.admin-form-label .required {
  color: var(--error);
  margin-left: 2px;
}

.admin-input, .admin-textarea, .admin-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all var(--transition);
}

.admin-input:focus, .admin-textarea:focus, .admin-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.admin-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.admin-input::placeholder, .admin-textarea::placeholder {
  color: var(--text-muted);
}

/* 弹窗 */
.admin-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.admin-modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.admin-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.admin-modal-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.admin-modal-close svg {
  width: 20px;
  height: 20px;
}

.admin-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.admin-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

/* 富文本工具栏 */
.rte-toolbar {
  display: flex;
  gap: 2px;
  padding: 8px;
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  flex-wrap: wrap;
}

.rte-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 14px;
}

.rte-btn:hover, .rte-btn.active {
  background: rgba(0, 229, 255, 0.12);
  color: var(--primary);
}

.rte-btn svg {
  width: 16px;
  height: 16px;
}

.rte-editor {
  min-height: 280px;
  padding: 16px;
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.7;
  outline: none;
  overflow-y: auto;
}

.rte-editor:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.rte-editor p {
  margin-bottom: 10px;
}

.rte-editor h2 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 20px 0 10px;
}

.rte-editor h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 16px 0 8px;
}

.rte-editor ul, .rte-editor ol {
  padding-left: 24px;
  margin-bottom: 10px;
}

.rte-editor a {
  color: var(--primary);
  text-decoration: underline;
}

.rte-divider {
  width: 1px;
  background: var(--border);
  margin: 4px 4px;
}

/* 后台登录页 */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-darker);
  position: relative;
  overflow: hidden;
}

.admin-login-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
}

.admin-login-page::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  bottom: -200px;
  left: -200px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.admin-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

.admin-login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 8px;
}

.admin-login-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.admin-login-error {
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  color: var(--error);
  font-size: 14px;
  margin-bottom: 16px;
}

.admin-login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.admin-login-footer a {
  color: var(--primary);
}

/* Toast */
.admin-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-item {
  min-width: 280px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  animation: toastIn 0.3s ease-out;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast-item.success {
  border-color: rgba(16, 185, 129, 0.4);
}

.toast-item.error {
  border-color: rgba(239, 68, 68, 0.4);
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-item.success .toast-icon { color: var(--success); }
.toast-item.error .toast-icon { color: var(--error); }

/* 最近活动列表 */
.admin-activity-list {
  padding: 12px 24px 24px;
}

.admin-activity-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.admin-activity-item:last-child {
  border-bottom: none;
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 6px;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
  font-size: 14px;
  color: var(--text-secondary);
}

.activity-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 响应式 - 后台 */
@media (max-width: 1024px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tutorials-grid {
    grid-template-columns: 1fr;
  }
  
  .servers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition);
  }
  
  .admin-sidebar.open {
    transform: translateX(0);
  }
  
  .admin-main {
    margin-left: 0;
  }
  
  .admin-content {
    padding: 20px;
  }
  
  .admin-header {
    padding: 0 20px;
  }
  
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-form-row {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .tutorials-grid {
    grid-template-columns: 1fr;
  }
  
  .tutorial-card {
    padding: 20px;
    gap: 14px;
  }
  
  .tutorial-icon {
    width: 44px;
    height: 44px;
  }
  
  .tutorial-icon .blog-cover-icon {
    width: 22px;
    height: 22px;
  }
  
  .servers-grid {
    grid-template-columns: 1fr;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .article-cover {
    height: 200px;
  }

  .admin-mobile-toggle {
    display: flex;
  }
}
