/* ==========================================================================
   西部数据官网 (West Data Cloud) - 节点卡片横排布局版 (指令: 帮我换成横排的)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

:root {
  --bg-main: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --border-light: rgba(226, 232, 240, 0.9);
  --border-active: rgba(14, 165, 233, 0.45);
  
  --primary-blue: #0284c7;
  --primary-blue-hover: #0369a1;
  --sky-blue: #38bdf8;
  --accent-cyan: #06b6d4;
  --soft-blue-bg: #f0f9ff;
  
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  
  --gradient-red: linear-gradient(135deg, #e11d48 0%, #f43f5e 50%, #ff2a5f 100%);
  --gradient-blue: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  --gradient-card-blue: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.95) 100%);
  
  --shadow-sm: 0 4px 14px rgba(14, 165, 233, 0.06);
  --shadow-md: 0 12px 36px -6px rgba(14, 165, 233, 0.12);
  --shadow-lg: 0 24px 50px -10px rgba(2, 132, 199, 0.18);
  --shadow-red: 0 10px 30px rgba(225, 29, 72, 0.35);
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
}

#globe-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

#cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
}

.cloud-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.floating-cloud {
  position: absolute;
  background: radial-gradient(circle, rgba(255,255,255,0.85) 0%, rgba(224,242,254,0.45) 60%, rgba(255,255,255,0) 100%);
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.65;
  animation: floatCloud 40s linear infinite;
}

.cloud-1 { top: 12%; width: 500px; height: 200px; animation-duration: 45s; }
.cloud-2 { top: 45%; width: 650px; height: 240px; animation-duration: 60s; animation-delay: -20s; }
.cloud-3 { top: 75%; width: 550px; height: 220px; animation-duration: 50s; animation-delay: -35s; }

@keyframes floatCloud {
  0% { transform: translateX(-100%) translateY(0); }
  50% { transform: translateX(50vw) translateY(-25px); }
  100% { transform: translateX(110vw) translateY(0); }
}

.red-gradient-text {
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 900;
}

.blue-highlight {
  color: var(--primary-blue);
  font-weight: 700;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 85px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--soft-blue-bg);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-full);
  color: var(--primary-blue);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 4px 10px rgba(2, 132, 199, 0.25));
  transition: var(--transition-fast);
}

.brand-logo:hover .logo-icon {
  transform: scale(1.08) rotate(5deg);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
}

.btn-primary {
  background: var(--gradient-red);
  color: #ffffff;
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(225, 29, 72, 0.42);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary-blue);
  border: 1px solid rgba(2, 132, 199, 0.35);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--soft-blue-bg);
  transform: translateY(-2px);
}

.btn-recommend {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
}

.btn-recommend:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.45);
}

/* ==========================================================================
   Hero 区：节点卡片【横排】版本 (指令: 帮我换成横排的)
   ========================================================================== */
.hero-section {
  padding-top: 150px;
  padding-bottom: 90px;
  text-align: center;
}

.hero-stacked-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-text-block {
  margin-bottom: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: var(--soft-blue-bg);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.badge-pulse {
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.badge-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.hero-h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  max-width: 880px;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 720px;
}

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

/* 节点卡片【横排】大尺寸面板 (Horizontal Side-by-side Grid) */
.hero-nodes-matched-card {
  width: 100%;
  max-width: 1140px;
  background: var(--gradient-card-blue);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 20px 60px -10px rgba(2, 132, 199, 0.16), 0 0 30px rgba(56, 189, 248, 0.12);
  position: relative;
  overflow: hidden;
  text-align: left;
  animation: cardFloatRotate 12s ease-in-out infinite alternate;
  transform-style: preserve-3d;
}

@keyframes cardFloatRotate {
  0% { transform: perspective(1000px) rotateX(1deg) rotateY(-1deg) translateY(0); }
  50% { transform: perspective(1000px) rotateX(-1deg) rotateY(1deg) translateY(-6px); }
  100% { transform: perspective(1000px) rotateX(1deg) rotateY(-1deg) translateY(3px); }
}

.matched-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.matched-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
}

.live-status-tag-blue {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #059669;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

/* 4 个节点【横向并排 Grid】(Horizontal 4-Column Layout) */
.matched-node-grid-horizontal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.matched-node-item-horizontal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  min-height: 125px;
}

.matched-node-item-horizontal:hover {
  background: var(--soft-blue-bg);
  border-color: var(--sky-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.node-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.node-flag-circle {
  width: 38px;
  height: 38px;
  background: var(--soft-blue-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
  flex-shrink: 0;
}

.node-name-text {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.3;
}

.node-sub-text {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 2px;
}

.node-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed rgba(226, 232, 240, 0.8);
}

.signal-bar-group {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.signal-bar {
  width: 3.5px;
  background: #10b981;
  border-radius: 2px;
}

.signal-bar:nth-child(1) { height: 5px; }
.signal-bar:nth-child(2) { height: 9px; }
.signal-bar:nth-child(3) { height: 13px; }
.signal-bar:nth-child(4) { height: 16px; }

.ping-tag-blue {
  font-family: monospace;
  font-weight: 800;
  color: var(--primary-blue);
  font-size: 0.88rem;
  background: var(--soft-blue-bg);
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   H2 / 套餐 / FAQ / 文章 / 页脚
   ========================================================================== */
.h2-highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.review-highlight-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.9) 100%);
  border: 2px solid rgba(2, 132, 199, 0.18);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: 0 16px 40px rgba(2, 132, 199, 0.08);
}

.review-highlight-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.star-rating-group { display: flex; gap: 4px; color: #fbbf24; font-size: 1.1rem; }
.review-slider-wrapper { overflow: hidden; position: relative; min-height: 220px; }
.review-track { display: flex; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.review-slide { min-width: 100%; }
.review-bubble-featured { background: #ffffff; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-sm); }
.review-text { font-size: 1.05rem; color: var(--text-dark); line-height: 1.75; margin-bottom: 20px; font-weight: 500; }
.review-user-info { display: flex; align-items: center; gap: 14px; }
.avatar-glow { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; box-shadow: var(--shadow-red); }
.verified-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; color: #10b981; font-weight: 700; background: rgba(16, 185, 129, 0.1); padding: 2px 8px; border-radius: var(--radius-full); }

.speedtest-dashboard-box { background: #ffffff; border: 2px solid rgba(56, 189, 248, 0.25); border-radius: var(--radius-lg); padding: 38px; box-shadow: 0 16px 40px rgba(14, 165, 233, 0.1); }
.speed-gauge-card { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); border-radius: var(--radius-md); padding: 20px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; border: 1px solid rgba(56, 189, 248, 0.3); }
.speed-number-val { font-size: 2.2rem; font-weight: 900; color: var(--primary-blue); line-height: 1; }
.speed-unit-text { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; }
.speed-items-container { display: flex; flex-direction: column; gap: 12px; }
.speed-item-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--bg-main); border-radius: var(--radius-md); border: 1px solid var(--border-light); }
.speed-bar-bg { width: 90px; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.speed-bar-fill { height: 100%; background: var(--gradient-blue); width: 92%; border-radius: 4px; }

.pricing-carousel-container { position: relative; overflow-x: auto; padding: 20px 5px 40px 5px; scroll-behavior: smooth; }
.pricing-track { display: flex; gap: 24px; width: max-content; }
.pricing-card { width: 320px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 36px 28px; box-shadow: var(--shadow-md); transition: var(--transition-normal); display: flex; flex-direction: column; }
.pricing-card:hover { transform: translateY(-8px); border-color: var(--sky-blue); box-shadow: var(--shadow-lg); }
.pricing-card.featured { border: 2px solid var(--primary-blue); background: linear-gradient(180deg, rgba(240, 249, 255, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%); }
.popular-badge { position: absolute; top: -14px; right: 24px; background: var(--gradient-red); color: #fff; font-size: 0.8rem; font-weight: 800; padding: 4px 14px; border-radius: var(--radius-full); box-shadow: var(--shadow-red); }
.plan-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.plan-price { font-size: 2.2rem; font-weight: 900; color: var(--primary-blue); margin-bottom: 20px; }
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--text-light); }
.plan-features { list-style: none; margin-bottom: 30px; flex-grow: 1; display: flex; flex-direction: column; gap: 12px; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--text-muted); }
.check-icon { color: #10b981; font-weight: 900; }

.faq-grid-parallel { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.faq-item-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 24px 28px; box-shadow: var(--shadow-sm); cursor: pointer; transition: var(--transition-fast); }
.faq-item-card:hover { border-color: var(--sky-blue); }
.faq-question-title { display: flex; align-items: center; justify-content: space-between; font-size: 1.1rem; font-weight: 800; }
.faq-toggle-icon { font-size: 1.3rem; color: var(--primary-blue); transition: transform 0.3s ease; }
.faq-answer-content { margin-top: 14px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; display: none; }
.faq-item-card.active .faq-answer-content { display: block; }
.faq-item-card.active .faq-toggle-icon { transform: rotate(45deg); }

.h6-protection-banner { background: linear-gradient(135deg, rgba(2, 132, 199, 0.06) 0%, rgba(6, 182, 212, 0.08) 100%); border: 1px solid rgba(2, 132, 199, 0.2); border-radius: var(--radius-lg); padding: 50px 40px; text-align: center; box-shadow: var(--shadow-md); }
.h6-title { font-size: 2.2rem; font-weight: 900; margin-bottom: 16px; }
.h6-unlock-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.unlock-pill { background: #ffffff; border: 1px solid var(--border-light); border-radius: var(--radius-full); padding: 10px 22px; font-size: 0.95rem; font-weight: 700; color: var(--text-dark); box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 8px; }

.articles-vertical-container { display: flex; flex-direction: column; gap: 24px; max-width: 960px; margin: 0 auto; }
.article-card-row { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); transition: var(--transition-normal); display: flex; flex-direction: column; gap: 16px; }
.article-card-row:hover { transform: translateY(-4px); border-color: var(--sky-blue); box-shadow: var(--shadow-md); }
.article-meta-tags { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: var(--text-light); }
.article-tag { background: var(--soft-blue-bg); color: var(--primary-blue); padding: 4px 12px; border-radius: var(--radius-full); font-weight: 700; }
.article-title-h3 { font-size: 1.4rem; font-weight: 800; color: var(--text-dark); cursor: pointer; }
.article-title-h3:hover { color: var(--primary-blue); }
.article-excerpt { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }
.read-article-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-blue); font-weight: 700; font-size: 0.95rem; background: none; border: none; cursor: pointer; }

.article-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(8px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.article-modal.active { display: flex; }
.article-modal-content { background: #ffffff; width: 100%; max-width: 900px; max-height: 85vh; border-radius: var(--radius-lg); padding: 40px; overflow-y: auto; position: relative; }
.modal-close-btn { position: absolute; top: 20px; right: 24px; font-size: 2rem; background: none; border: none; cursor: pointer; color: var(--text-light); }
.article-full-body { margin-top: 24px; color: #334155; font-size: 1.05rem; line-height: 1.9; }
.article-full-body h4 { font-size: 1.3rem; margin: 24px 0 12px 0; color: var(--text-dark); }
.article-full-body p { margin-bottom: 16px; }

.site-footer { background: rgba(255, 255, 255, 0.92); border-top: 1px solid var(--border-light); padding: 50px 0 30px 0; margin-top: 60px; text-align: center; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 800; }
.footer-copyright { font-size: 0.85rem; color: var(--text-light); }

.pbn-links-wrapper { margin-top: 16px; padding-top: 16px; border-top: 1px dashed rgba(203, 213, 225, 0.6); display: flex; align-items: center; justify-content: center; gap: 20px; font-size: 0.82rem; color: var(--text-light); }
.pbn-links-label { font-weight: 600; opacity: 0.7; }
.pbn-link-item { color: var(--text-light); text-decoration: none; transition: var(--transition-fast); }
.pbn-link-item:hover { color: var(--primary-blue); text-decoration: underline; }

@media (max-width: 992px) {
  .hero-h1 { font-size: 2.4rem; }
  .matched-node-grid-horizontal { grid-template-columns: repeat(2, 1fr); }
  .h2-highlight-grid, .faq-grid-parallel { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .nav-links { display: none; }
  .hero-h1 { font-size: 1.85rem; }
  .matched-node-grid-horizontal { grid-template-columns: 1fr; }
  .pricing-card { width: 280px; padding: 28px 20px; }
}
