/* ==========================================================================
   【红杏云 hongxingcloud.my】 视觉设计系统
   完全符合图1 专属六色调色板 (无蓝色，纯粹东方红黑质感)
   图1六色：1.暖沙杏 #DEC7B5 | 2.水墨炭黑 #352B30 | 3.红杏中国红 #C83E3D 
            4.珊瑚红 #EF6B5B | 5.柔樱粉 #F7C9CE | 6.雾白/底色 #F8F5F7
   ========================================================================== */

:root {
  /* 调色板 */
  --color-sand: #DEC7B5;         /* 1. 暖沙杏 */
  --color-charcoal: #352B30;     /* 2. 水墨炭黑 */
  --color-red: #C83E3D;          /* 3. 红杏中国红 */
  --color-coral: #EF6B5B;        /* 4. 珊瑚红 */
  --color-pink: #F7C9CE;         /* 5. 柔樱粉 */
  --color-mist: #F8F5F7;         /* 6. 雾白底色 */
  
  --bg-primary: var(--color-mist);
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFBFD;
  
  --border-color: #E8DFE4;
  --border-glow: rgba(200, 62, 61, 0.25);
  
  --text-main: var(--color-charcoal);
  --text-muted: #665760;
  --text-subtle: #96868F;
  
  --accent-red: var(--color-red);
  --accent-coral: var(--color-coral);
  --accent-green-bg: #E8F8F2;
  --accent-green-text: #00A86B;
  
  --btn-primary: var(--color-charcoal);
  --btn-primary-hover: var(--color-red);
  --btn-coral-gradient: linear-gradient(135deg, #EF6B5B 0%, #C83E3D 100%);
  --btn-red-gradient: linear-gradient(135deg, #C83E3D 0%, #EF6B5B 100%);
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(53, 43, 48, 0.05);
  --shadow-md: 0 8px 24px rgba(53, 43, 48, 0.08);
  --shadow-featured: 0 12px 32px rgba(239, 107, 91, 0.25);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

a:hover {
  color: var(--accent-coral);
}

ul, ol {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--color-pink);
  border: 1px solid rgba(200, 62, 61, 0.25);
  border-radius: var(--radius-full);
  color: var(--accent-red);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--color-charcoal);
}

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

.text-center {
  text-align: center;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-coral) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Card Styles */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.glass-card:hover {
  border-color: rgba(200, 62, 61, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-charcoal);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(53, 43, 48, 0.2);
}

.btn-primary:hover {
  background: var(--color-red);
  box-shadow: 0 6px 20px rgba(200, 62, 61, 0.35);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-red {
  background: var(--btn-red-gradient);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(200, 62, 61, 0.35);
}

.btn-red:hover {
  box-shadow: 0 8px 24px rgba(200, 62, 61, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-coral {
  background: var(--btn-coral-gradient);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(239, 107, 91, 0.4);
}

.btn-coral:hover {
  box-shadow: 0 8px 24px rgba(239, 107, 91, 0.55);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-charcoal);
  border: 1px solid var(--color-sand);
}

.btn-secondary:hover {
  background: var(--color-pink);
  border-color: var(--color-red);
  color: var(--color-red);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

/* Header Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-charcoal);
  text-decoration: none;
}

.brand-logo svg {
  width: 44px;
  height: 44px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-red);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-red);
  border-radius: 2px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-charcoal);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding-top: 160px;
  padding-bottom: 90px;
  background: radial-gradient(circle at 50% 10%, rgba(247, 201, 206, 0.4) 0%, rgba(248, 245, 247, 0) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: #E8F8F2;
  border: 1px solid rgba(0, 168, 107, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-green-text);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 168, 107, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 168, 107, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 168, 107, 0); }
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 1.5rem;
  color: var(--color-charcoal);
  letter-spacing: -0.01em;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.trust-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

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

.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-red);
  font-family: var(--font-mono);
}

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

/* Real-Time Node Status Dashboard Widget */
.hero-monitor-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.monitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.monitor-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-charcoal);
}

.monitor-live-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: var(--accent-green-bg);
  color: var(--accent-green-text);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.node-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.node-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

.node-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.node-ping {
  font-family: var(--font-mono);
  color: var(--accent-green-text);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ping-bar {
  width: 50px;
  height: 5px;
  background: #E2D9DE;
  border-radius: 3px;
  overflow: hidden;
}

.ping-bar-fill {
  height: 100%;
  background: var(--accent-green-text);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border: 2px solid var(--accent-coral);
  box-shadow: var(--shadow-featured);
}

.popular-badge {
  position: absolute;
  top: 8px;
  right: 12px;
  background: var(--accent-coral);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.plan-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-charcoal);
  margin-bottom: 0.75rem;
}

.plan-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 0.25rem;
}

.plan-price-num {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--accent-red);
  font-family: var(--font-sans);
}

.plan-price-symbol {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-red);
}

.plan-price-period {
  font-size: 0.95rem;
  color: var(--text-subtle);
}

.plan-usd-equiv {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-bottom: 1.25rem;
}

.value-badge {
  background: var(--accent-green-bg);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.value-badge-label {
  font-size: 0.85rem;
  color: var(--accent-green-text);
  font-weight: 600;
}

.value-badge-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-green-text);
}

.plan-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.feature-check {
  color: var(--accent-green-text);
  font-weight: 900;
}

.plan-card-footer-note {
  background: #FFF7F5;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  color: #D97706;
  margin-top: 1rem;
}

/* 用户评价 (Testimonials) 横向滚动 Carousel - 一屏显示 3 个 */
.testimonials-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.testimonials-slider::-webkit-scrollbar {
  height: 6px;
}

.testimonials-slider::-webkit-scrollbar-track {
  background: var(--border-color);
  border-radius: 3px;
}

.testimonials-slider::-webkit-scrollbar-thumb {
  background: var(--color-sand);
  border-radius: 3px;
}

.testimonials-slider::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

.testimonial-card-item {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 320px;
  scroll-snap-align: start;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.testimonial-card-item:hover {
  border-color: var(--color-coral);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Articles Section Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.article-card {
  background: #FFFFFF;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-bottom: 1rem;
}

.article-tag {
  padding: 0.2rem 0.6rem;
  background: var(--color-pink);
  color: var(--accent-red);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.article-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-charcoal);
  margin-bottom: 0.875rem;
  line-height: 1.4;
}

.article-title a {
  color: var(--color-charcoal);
}

.article-title a:hover {
  color: var(--accent-red);
}

/* FAQ Section */
.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  color: var(--color-charcoal);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-icon {
  font-size: 1.1rem;
  color: var(--accent-red);
  transition: var(--transition);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 350px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Footer Section */
.site-footer {
  background: var(--color-charcoal);
  color: #F4EFF2;
  padding: 5rem 0 2rem 0;
}

.site-footer a {
  color: var(--color-sand);
}

.site-footer a:hover {
  color: #FFFFFF;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: #BDB0B6;
  font-size: 0.95rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  max-width: 360px;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #BDB0B6;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Article Page Layout */
.article-header {
  padding-top: 140px;
  padding-bottom: 40px;
  background: radial-gradient(circle at 50% 0%, rgba(247, 201, 206, 0.3) 0%, rgba(248, 245, 247, 0) 70%);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-subtle);
  margin-bottom: 1.5rem;
}

.article-content-wrapper {
  max-width: 880px;
  margin: 0 auto;
  padding-bottom: 5rem;
}

.article-body {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.8;
}

.article-body h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-charcoal);
  margin: 2.5rem 0 1.25rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.article-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin: 2rem 0 1rem 0;
}

.article-body blockquote {
  background: var(--color-pink);
  border-left: 4px solid var(--accent-red);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
  color: var(--color-charcoal);
}

.article-cta-box {
  background: #FFFFFF;
  border: 2px solid var(--accent-coral);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
  box-shadow: var(--shadow-featured);
}

.article-cta-box h3 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-charcoal);
  margin-bottom: 1rem;
}

/* Comparison Table Styling */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison-table th, .comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.comparison-table th {
  background: var(--color-charcoal);
  color: #FFFFFF;
  font-weight: 700;
}

.comparison-table tr:hover {
  background: var(--bg-primary);
}

/* Responsive */
@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonial-card-item {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-card-item {
    flex: 0 0 85%;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-menu.active {
    display: flex;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.1rem;
  }
}
