/* ===================================================================
   飞猫云官网 (flycat.my) - 完整布局与响应式样式
   =================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--pixel-bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* 像素背景画布 */
#pixel-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* 页面主要容器 */
.page-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 18, 36, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid #000;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.6);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  background: #192342;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.brand-icon-box svg {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

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

.brand-title {
  font-family: var(--font-pixel), var(--font-sans);
  font-size: 18px;
  color: var(--jade-green);
  text-shadow: 2px 2px 0px #000;
  letter-spacing: 1px;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

.nav-item a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-item a:hover {
  color: var(--jade-green);
  background: rgba(44, 232, 157, 0.1);
  border-bottom: 2px solid var(--jade-green);
}

.nav-cta-btn {
  font-size: 13px !important;
  padding: 10px 18px !important;
}

/* 移动端菜单按钮 */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  padding: 8px;
  color: var(--text-main);
  cursor: pointer;
}

/* Hero 首屏 */
.hero-section {
  padding: 90px 0 60px;
  text-align: center;
  position: relative;
}

.hero-badge-wrap {
  margin-bottom: 24px;
}

.hero-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  text-shadow: 3px 3px 0 #000;
  letter-spacing: 0.5px;
}

.hero-title .gradient-text {
  background: linear-gradient(90deg, #2ce89d, #00d2d3, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(2px 2px 0 #000);
}

.hero-desc {
  max-width: 760px;
  margin: 0 auto 36px;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
}

.hero-desc strong {
  color: #fff;
  font-weight: 600;
}

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

.hero-stats-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

.stat-item {
  text-align: center;
  padding: 12px;
}

.stat-value {
  font-family: var(--font-pixel);
  font-size: 26px;
  color: var(--celestial-gold);
  margin-bottom: 6px;
  text-shadow: 2px 2px 0 #000;
}

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

/* 核心板块公共标题 */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  margin-bottom: 12px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* 核心优势板块 */
.features-section {
  padding: 80px 0;
}

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

.feature-card {
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    inset -3px -3px 0px 0px #0d1222,
    inset 3px 3px 0px 0px #2ce89d,
    6px 6px 0px 0px #000;
}

.feature-icon-box {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c2748;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
}

.feature-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
  color: #fff;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 节点延迟和状态板块 */
.nodes-section {
  padding: 80px 0;
  background: rgba(10, 14, 28, 0.6);
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
}

.nodes-monitor-frame {
  padding: 28px;
}

.monitor-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #232d4e;
  padding-bottom: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.monitor-status-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-pixel);
  font-size: 15px;
  color: var(--jade-green);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: var(--jade-green);
  box-shadow: 0 0 10px var(--jade-green);
  border: 1px solid #000;
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

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

.node-item {
  background: #0f152b;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  padding: 16px;
  position: relative;
  transition: all 0.2s ease;
}

.node-item:hover {
  background: #172142;
  border-color: var(--jade-green);
}

.node-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.node-country {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}

.node-flag {
  font-size: 18px;
}

.node-ping-val {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--jade-green);
}

.node-meter-wrap {
  margin: 10px 0;
}

.node-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* 套餐价格板块 */
.pricing-section {
  padding: 80px 0;
}

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

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 30px 22px;
  position: relative;
  transition: transform 0.2s ease;
}

.pricing-card.featured {
  transform: translateY(-10px);
  border-color: #fbc531;
}

.pricing-card:hover {
  transform: translateY(-8px);
}

.pricing-ribbon {
  position: absolute;
  top: -12px;
  right: 16px;
}

.pricing-realm-title {
  font-family: var(--font-pixel);
  font-size: 15px;
  color: #fff;
  margin-bottom: 6px;
}

.pricing-realm-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-price-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px dashed #283457;
}

.currency-sym {
  font-size: 20px;
  font-weight: bold;
  color: var(--celestial-gold);
}

.price-num {
  font-family: var(--font-pixel);
  font-size: 34px;
  color: var(--celestial-gold);
  text-shadow: 2px 2px 0 #000;
}

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

.pricing-features-list {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}

.pricing-features-list li {
  font-size: 13.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cfd9ea;
}

.pixel-check {
  color: var(--jade-green);
  font-weight: bold;
  font-size: 14px;
}

.pricing-btn {
  width: 100%;
}

/* 用户评价板块 */
.reviews-section {
  padding: 80px 0;
  background: rgba(10, 14, 28, 0.6);
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
}

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

.review-card {
  padding: 24px;
}

.review-user-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  background: #1f2a4f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.review-user-info h4 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 2px;
}

.review-user-role {
  font-size: 12px;
  color: var(--jade-green);
}

.review-stars {
  color: var(--celestial-gold);
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: 2px;
}

.review-comment {
  font-size: 14px;
  color: #d1d9e6;
  line-height: 1.7;
}

/* 知识库板块 */
.kb-section {
  padding: 80px 0;
}

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

.kb-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.kb-card:hover {
  transform: translateY(-5px);
  border-color: var(--jade-green);
}

.kb-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.kb-category {
  font-size: 11px;
}

.kb-read-time {
  font-size: 12px;
  color: var(--text-muted);
}

.kb-card h3 {
  font-size: 17px;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 12px;
  flex-grow: 1;
}

.kb-card:hover h3 {
  color: var(--jade-green);
}

.kb-excerpt {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.kb-read-more {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--jade-green);
}

/* 常见问题板块 */
.faq-section {
  padding: 80px 0;
  background: rgba(10, 14, 28, 0.6);
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  cursor: pointer;
  padding: 20px 24px;
  transition: all 0.2s ease;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.faq-toggle-icon {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--jade-green);
  transition: transform 0.2s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 350px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #263354;
}

/* 页脚 */
.footer {
  background: #090c19;
  border-top: 4px solid #000;
  padding: 60px 0 30px;
  margin-top: auto;
}

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

.footer-brand p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.8;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 16px;
  font-family: var(--font-pixel), var(--font-sans);
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--jade-green);
}

.footer-bottom {
  border-top: 2px solid #1a223e;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

/* 文章详情页样式 */
.article-container {
  max-width: 860px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.article-content {
  padding: 36px 40px;
}

.article-header {
  border-bottom: 2px dashed #2a3761;
  padding-bottom: 24px;
  margin-bottom: 30px;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.article-breadcrumb a {
  color: var(--jade-green);
  text-decoration: none;
}

.article-header h1 {
  font-size: 28px;
  line-height: 1.4;
  margin-bottom: 16px;
  color: #fff;
}

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

.article-body {
  font-size: 16px;
  line-height: 1.85;
  color: #d1d8e0;
}

.article-body h2 {
  font-size: 22px;
  color: var(--celestial-gold);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #232f52;
}

.article-body h3 {
  font-size: 18px;
  color: var(--jade-green);
  margin: 24px 0 12px;
}

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

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

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

.article-body code {
  background: #0c1022;
  border: 1px solid #2b3964;
  padding: 2px 6px;
  font-family: monospace;
  color: #2ce89d;
  font-size: 14px;
}

.article-body pre {
  background: #090d1f;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  padding: 18px;
  overflow-x: auto;
  margin: 20px 0;
  color: #a8b4d0;
  font-family: monospace;
  font-size: 13.5px;
}

.article-cta-box {
  background: linear-gradient(135deg, #142823 0%, #171b38 100%);
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 28px;
  margin: 40px 0;
  text-align: center;
}

.article-cta-box h3 {
  color: var(--celestial-gold);
  font-size: 20px;
  margin-bottom: 10px;
}

.article-cta-box p {
  color: #c4d0e6;
  font-size: 14px;
  margin-bottom: 18px;
}

.article-nav-links {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px dashed #263459;
  gap: 16px;
}

.article-nav-links a {
  color: var(--jade-green);
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-nav-links a:hover {
  text-decoration: underline;
}

/* 浮动返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
}

/* 响应式断点 */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nodes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-card.featured {
    transform: none;
  }
  .kb-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 74px;
    left: 0;
    width: 100%;
    background: #0f142b;
    border-bottom: 3px solid #000;
    flex-direction: column;
    padding: 20px;
    display: none;
    box-shadow: 0 10px 10px rgba(0,0,0,0.5);
  }
  .nav-menu.show {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-stats-board {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .nodes-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .kb-grid {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .article-content {
    padding: 24px 18px;
  }
}
