/* ==========================================================================
   赛风 (Saifeng) 官方生产级组件与交互看板样式表
   域名：saifeng.my
   包含三大前瞻核心工程交互看板 + 全端组件体系
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 英雄展示区 (Hero Section)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 80px 0 100px 0;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-headline {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item .metric-value {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.metric-item .metric-value span {
  font-size: 0.95rem;
  color: var(--cyan-pulsar);
  font-weight: 600;
}

.metric-item .metric-label {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Hero 右侧拟态终端卡片 */
.hero-visual-card {
  background: rgba(14, 20, 32, 0.9);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), var(--shadow-cyan-glow);
  padding: 24px;
  position: relative;
  backdrop-filter: blur(20px);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dots .dot-red { background: #ef4444; }
.terminal-dots .dot-yellow { background: #f59e0b; }
.terminal-dots .dot-green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.terminal-code {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.8;
}

.terminal-code .kw { color: var(--cyan-pulsar); }
.terminal-code .fn { color: var(--gold-supernova); }
.terminal-code .str { color: #34d399; }
.terminal-code .comment { color: #64748b; }

/* --------------------------------------------------------------------------
   2. 交互看板 1：ShadowFlow 神经流 WebRTC/Zoom 拟态变形模拟器
   -------------------------------------------------------------------------- */
.simulator-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin-top: 20px;
  box-shadow: var(--shadow-lg);
}

.simulator-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 28px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.select-cyber {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font-sans);
  cursor: pointer;
  outline: none;
}

.select-cyber:focus {
  border-color: var(--gold-supernova);
}

.canvas-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.canvas-box {
  background: #05080f;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
}

.canvas-box.highlight {
  border-color: var(--border-gold);
  box-shadow: inset 0 0 20px rgba(255, 208, 0, 0.05);
}

.canvas-box-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.canvas-box-title .status-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.status-badge.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.status-badge.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.scatter-canvas {
  width: 100%;
  height: 220px;
  background: #020408;
  border-radius: var(--radius-sm);
  display: block;
}

.ai-eval-strip {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.eval-meter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eval-meter-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.eval-progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.eval-progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.eval-progress-bar.danger {
  width: 98.4%;
  background: #ef4444;
}

.eval-progress-bar.success {
  width: 100%;
  background: linear-gradient(90deg, var(--gold-supernova), #34d399);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* --------------------------------------------------------------------------
   3. 交互看板 2：eBPF / XDP 内核级网络旁路与零拷贝线速看板
   -------------------------------------------------------------------------- */
.ebpf-stage {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: stretch;
}

.pipeline-compare-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pipeline-card {
  background: #070b13;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

.pipeline-card.active-bypass {
  border-color: var(--cyan-pulsar);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}

.pipeline-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  position: relative;
}

.pipeline-node {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  z-index: 1;
}

.pipeline-node.bypass-skip {
  opacity: 0.3;
  text-decoration: line-through;
  border-style: dashed;
}

.pipeline-node.highlight-gold {
  border-color: var(--gold-supernova);
  color: var(--gold-supernova);
  box-shadow: 0 0 12px var(--gold-glow);
}

.pipeline-node.highlight-cyan {
  border-color: var(--cyan-pulsar);
  color: var(--cyan-pulsar);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.pipeline-arrow {
  height: 2px;
  flex: 1;
  background: var(--border-light);
  position: relative;
}

.pipeline-arrow.fast-track {
  background: linear-gradient(90deg, var(--gold-supernova), var(--cyan-pulsar));
  box-shadow: 0 0 8px var(--cyan-pulsar);
}

.pps-meters-card {
  background: #070b13;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.meter-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.stat-val-huge {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan-pulsar);
}

/* --------------------------------------------------------------------------
   4. 交互看板 3：QUIC Datagram (RFC 9221) 队头阻塞清零与电竞丢包容忍测试台
   -------------------------------------------------------------------------- */
.quic-arena-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin-top: 24px;
}

.loss-controller-box {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 22px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.loss-slider-wrapper {
  flex: 1;
  min-width: 260px;
}

.loss-slider-wrapper input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1e293b;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.loss-slider-wrapper input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-supernova);
  box-shadow: 0 0 12px var(--gold-supernova);
  cursor: pointer;
}

.loss-display-badge {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-supernova);
  min-width: 100px;
  text-align: right;
}

.stream-vs-datagram-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.player-frame {
  background: #020408;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.frame-screen {
  height: 200px;
  background: #000000;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.screen-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.buffer-spinner {
  display: none;
  position: absolute;
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #ef4444;
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.player-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. 套餐价格页与对比表 (Pricing)
   -------------------------------------------------------------------------- */
.billing-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

.switch-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 5px;
  display: flex;
  gap: 6px;
}

.switch-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 22px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.switch-btn.active {
  background: var(--gold-supernova);
  color: #05070b;
}

.save-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-cyan);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(22, 33, 54, 0.9) 0%, rgba(14, 20, 34, 0.95) 100%);
  border: 2px solid var(--gold-supernova);
  box-shadow: 0 0 35px rgba(255, 208, 0, 0.25);
  transform: scale(1.03);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-6px);
}

.card-ribbon {
  position: absolute;
  top: -14px;
  right: 28px;
  background: linear-gradient(135deg, var(--gold-supernova), var(--gold-cyber));
  color: #05070b;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(255, 208, 0, 0.4);
}

.pricing-plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pricing-plan-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  min-height: 44px;
}

.pricing-price-row {
  margin: 24px 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-supernova);
}

.price-num {
  font-family: var(--font-mono);
  font-size: 3.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

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

.pricing-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 34px;
  flex: 1;
}

.pricing-feature-list li {
  font-size: 0.92rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-feature-list li::before {
  content: "✔";
  color: var(--cyan-pulsar);
  font-weight: 900;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   6. FAQ 手风琴 (Accordion)
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.faq-item:hover {
  border-color: var(--border-light);
}

.faq-item.active {
  border-color: var(--border-cyan);
}

.faq-header {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 750;
  color: #ffffff;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--cyan-pulsar);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--gold-supernova);
}

.faq-body {
  display: none;
  padding: 0 26px 24px 26px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 16px;
}

.faq-item.active .faq-body {
  display: block;
}

/* --------------------------------------------------------------------------
   7. 资讯公报中心 (News & Pagination)
   -------------------------------------------------------------------------- */
.news-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  justify-content: center;
}

.filter-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-chip:hover,
.filter-chip.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--cyan-pulsar);
  color: #ffffff;
}

.news-card-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all var(--transition-normal);
}

.news-post-card:hover {
  border-color: var(--border-cyan);
}

.post-meta-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.post-tag {
  background: rgba(255, 208, 0, 0.1);
  color: var(--gold-supernova);
  border: 1px solid rgba(255, 208, 0, 0.3);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.post-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #ffffff;
}

.post-summary {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.post-expandable-content {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.8;
}

.post-expandable-content.expanded {
  display: block;
}

.post-toggle-btn {
  margin-top: 18px;
  background: transparent;
  border: none;
  color: var(--cyan-pulsar);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-toggle-btn:hover {
  text-decoration: underline;
}

.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.page-btn:hover,
.page-btn.active {
  background: var(--gold-supernova);
  color: #05070b;
  border-color: var(--gold-supernova);
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   8. 极客 404 引导态
   -------------------------------------------------------------------------- */
.error-layout {
  min-height: calc(100vh - var(--header-height) - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.error-card {
  max-width: 640px;
  background: var(--bg-surface);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--shadow-cyan-glow);
}

.error-code-badge {
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold-supernova), var(--cyan-pulsar));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   响应式调整
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-headline {
    font-size: 2.6rem;
  }
  .hero-description {
    margin: 0 auto 36px auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .canvas-dual-grid,
  .ebpf-stage,
  .stream-vs-datagram-grid {
    grid-template-columns: 1fr;
  }
  .ai-eval-strip {
    grid-template-columns: 1fr;
  }
}

