/* ==========================================================================
   xxyun 官网 (xxyunjc.sbs) 现代极简云服务落地页 - 主样式表
   两栏左侧导航布局 | Bento Grid | 电光蓝点缀 | 深浅灰微渐变
   ========================================================================== */

:root {
  /* 颜色系统 - 电光蓝与极简深灰 */
  --bg-dark: #0b0d10;
  --bg-card: #13171f;
  --bg-card-hover: #1a202c;
  --bg-sidebar: #0f1218;
  --bg-input: #171c26;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(0, 102, 255, 0.35);
  --border-accent: rgba(0, 210, 255, 0.2);

  --electric-blue: #0066ff;
  --electric-cyan: #00d2ff;
  --blue-glow: rgba(0, 102, 255, 0.25);
  --cyan-glow: rgba(0, 210, 255, 0.15);
  
  --text-main: #f0f4f8;
  --text-muted: #8a99ad;
  --text-dim: #5c6b7e;
  
  --accent-green: #10b981;
  --accent-yellow: #f59e0b;
  --accent-purple: #8b5cf6;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --sidebar-width: 270px;
  --topbar-height: 64px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 全局基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  background: radial-gradient(circle at 50% -20%, #151d2a 0%, #0b0d10 60%);
  overflow-x: hidden;
}

/* 链接与按钮通用 */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

/* ==========================================================================
   两栏布局架构 - 左侧导航 + 右侧主内容
   ========================================================================== */

.app-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* 侧边栏 Sidebar */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px;
  z-index: 100;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--electric-blue), var(--electric-cyan));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 0 20px var(--blue-glow);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff, #a5c7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-domain {
  font-size: 12px;
  color: var(--electric-cyan);
  font-family: monospace;
  letter-spacing: 0.5px;
}

/* 侧边栏导航菜单 */
.sidebar-nav {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin: 16px 0 8px 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-item i {
  font-size: 18px;
  width: 20px;
  text-align: center;
  color: var(--text-dim);
  transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
  color: var(--text-main);
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.2);
}

.nav-item:hover i, .nav-item.active i {
  color: var(--electric-cyan);
}

/* 侧边栏底部 CTA */
.sidebar-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.btn-sidebar-cta {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--electric-blue), #0044cc);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px var(--blue-glow);
}

.btn-sidebar-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 102, 255, 0.4);
}

/* ==========================================================================
   右侧主内容区 Main Content
   ========================================================================== */

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* 顶部导航 Topbar */
.topbar {
  height: var(--topbar-height);
  position: sticky;
  top: 0;
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  z-index: 90;
}

.mobile-toggle {
  display: none;
  background: transparent;
  color: var(--text-main);
  font-size: 24px;
}

.topbar-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--accent-green);
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
  background: linear-gradient(135deg, var(--electric-blue), var(--electric-cyan));
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 12px var(--blue-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 210, 255, 0.35);
}

/* 主主体容器 */
.content-body {
  padding: 40px 48px 80px;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
}

/* ==========================================================================
   Hero 板块 (Banner)
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 48px 0 64px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: 30px;
  font-size: 13px;
  color: var(--electric-cyan);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 30%, #94b9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  background: linear-gradient(90deg, var(--electric-cyan), var(--electric-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.6;
  font-weight: 400;
}

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

.btn-hero-main {
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--electric-blue), #0044cc);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 8px 32px var(--blue-glow);
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-hero-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 102, 255, 0.45);
}

.btn-hero-secondary {
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 16px;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-muted);
}

/* 全平台客户端兼容展示区 */
.client-platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px;
  background: rgba(19, 23, 31, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

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

.platform-item i {
  font-size: 20px;
  color: var(--electric-cyan);
}

/* 通用板块标题组件 */
.section-header {
  margin: 64px 0 32px;
  text-align: left;
}

.section-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--electric-cyan);
  margin-bottom: 8px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ==========================================================================
   核心优势 Bento Grid 模块化排版
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--blue-glow);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--electric-cyan);
  font-size: 24px;
  margin-bottom: 20px;
}

.bento-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.bento-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.bento-card-meta {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--electric-cyan);
  font-weight: 600;
}

/* 特效微渐变光晕 */
.bento-glow-bg {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
  pointer-events: none;
}

/* ==========================================================================
   节点延迟和状态板块
   ========================================================================== */

.nodes-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.nodes-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.nodes-stats {
  display: flex;
  gap: 24px;
}

.node-stat-item {
  display: flex;
  flex-direction: column;
}

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

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

.btn-ping-test {
  padding: 10px 20px;
  background: rgba(0, 102, 255, 0.15);
  border: 1px solid var(--border-accent);
  color: var(--electric-cyan);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-ping-test:hover {
  background: var(--electric-blue);
  color: #fff;
}

.nodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.node-item-card {
  background: rgba(11, 13, 16, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.node-item-card:hover {
  border-color: var(--border-color-hover);
  background: rgba(26, 32, 44, 0.8);
}

.node-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flag-icon {
  font-size: 22px;
}

.node-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.node-protocol {
  font-size: 11px;
  color: var(--text-dim);
}

.node-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ping-badge {
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.ping-badge.medium {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-yellow);
}

/* ==========================================================================
   套餐价格板块 (Pricing Cards)
   ========================================================================== */

.pricing-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.switch-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.switch-label.active {
  color: var(--text-main);
  font-weight: 700;
}

.toggle-switch {
  width: 52px;
  height: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 3px;
  cursor: pointer;
  position: relative;
}

.toggle-knob {
  width: 20px;
  height: 20px;
  background: var(--electric-cyan);
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px var(--blue-glow);
}

.toggle-switch.monthly .toggle-knob {
  transform: translateX(0);
}

.toggle-switch.annually .toggle-knob {
  transform: translateX(24px);
}

.discount-pill {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.pricing-card.popular {
  border: 1px solid var(--electric-blue);
  box-shadow: 0 0 30px rgba(0, 102, 255, 0.2);
  background: linear-gradient(180deg, #161c28 0%, #13171f 100%);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--electric-blue), var(--electric-cyan));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.plan-price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.price-symbol {
  font-size: 20px;
  font-weight: 700;
  color: var(--electric-cyan);
}

.price-amount {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-main);
}

.price-period {
  font-size: 13px;
  color: var(--text-dim);
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.plan-features li i {
  color: var(--accent-green);
  font-size: 16px;
}

.btn-plan-cta {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.pricing-card.popular .btn-plan-cta, .btn-plan-cta:hover {
  background: linear-gradient(135deg, var(--electric-blue), #0044cc);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px var(--blue-glow);
}

/* ==========================================================================
   用户评价板块 (Reviews)
   ========================================================================== */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-rating {
  color: #f59e0b;
  margin-bottom: 14px;
  display: flex;
  gap: 4px;
}

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

.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric-blue), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

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

/* ==========================================================================
   常见问题 (FAQ) 板块
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.faq-icon {
  font-size: 18px;
  color: var(--text-dim);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

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

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ==========================================================================
   知识库与教程板块 (8 篇关键字文章)
   ========================================================================== */

.kb-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.kb-filter-btn {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
}

.kb-filter-btn.active, .kb-filter-btn:hover {
  background: rgba(0, 102, 255, 0.15);
  color: var(--electric-cyan);
  border-color: var(--border-accent);
}

.kb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.kb-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}

.kb-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.kb-card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(0, 102, 255, 0.1);
  color: var(--electric-cyan);
  margin-bottom: 14px;
}

.kb-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kb-card-summary {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kb-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.read-more-link {
  color: var(--electric-cyan);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   知识库文章模态弹窗 (Article Reader Modal)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px var(--blue-glow);
}

.modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-sidebar);
}

.modal-title-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.btn-close-modal:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}

.modal-body {
  padding: 36px 40px;
  overflow-y: auto;
  line-height: 1.7;
  color: var(--text-muted);
}

.article-hero-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
}

.article-hero-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-meta-tags {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
  align-items: center;
}

/* 富文本文章排版规则 */
.article-rich-text h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.article-rich-text h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--electric-cyan);
  margin: 24px 0 12px;
}

.article-rich-text p {
  margin-bottom: 16px;
  font-size: 15px;
}

.article-rich-text ul, .article-rich-text ol {
  margin: 0 0 20px 24px;
  font-size: 15px;
}

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

.article-rich-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: rgba(11, 13, 16, 0.6);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.article-rich-text th, .article-rich-text td {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  text-align: left;
  font-size: 14px;
}

.article-rich-text th {
  background: rgba(0, 102, 255, 0.1);
  color: var(--electric-cyan);
  font-weight: 600;
}

.article-callout {
  background: rgba(0, 102, 255, 0.08);
  border-left: 4px solid var(--electric-blue);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-size: 14px;
  color: var(--text-main);
}

.article-rich-text pre {
  background: #090a0d;
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: monospace;
  font-size: 13.5px;
  color: #a5c7ff;
  margin: 20px 0;
}

.article-next {
  margin-top: 40px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-md);
}

.article-next h4 {
  color: var(--electric-cyan);
  margin-bottom: 8px;
}

/* ==========================================================================
   页脚 Footer
   ========================================================================== */

.footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-dim);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--electric-cyan);
}

/* ==========================================================================
   响应式移动端适配 Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
  :root {
    --sidebar-width: 0px;
  }

  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-toggle {
    display: block;
  }

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

  .bento-card.span-2 {
    grid-column: span 2;
  }

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

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

@media (max-width: 768px) {
  .topbar {
    padding: 0 20px;
  }

  .content-body {
    padding: 24px 20px 60px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .bento-grid, .pricing-grid, .reviews-grid, .kb-grid {
    grid-template-columns: 1fr;
  }

  .bento-card.span-2 {
    grid-column: span 1;
  }

  .modal-body {
    padding: 24px 20px;
  }
}
