/* ==============================================================================
   红杏云 (HongXing Cloud) 官方专属主题 - hxy.lol
   Crimson Apricot Cloud · Modern High-Converting Visual Identity
   ============================================================================== */
:root {
  --hx-bg: #0C0609;
  --hx-surface: #170C13;
  --hx-surface-card: #1F101A;
  --hx-surface-card-hover: #2B1524;
  --hx-border: rgba(244, 63, 94, 0.22);
  --hx-border-glow: rgba(244, 63, 94, 0.55);
  --hx-primary: #E11D48;
  --hx-coral: #FF4D6D;
  --hx-apricot: #FFA07A;
  --hx-gold: #F59E0B;
  --hx-green: #10B981;
  --hx-text: #FFFFFF;
  --hx-text-secondary: #FCE7F3;
  --hx-text-muted: #A3889B;
  --hx-grad-primary: linear-gradient(135deg, #FF4D6D 0%, #E11D48 55%, #9F1239 100%);
  --hx-grad-glow: linear-gradient(135deg, rgba(255, 77, 109, 0.25) 0%, rgba(225, 29, 72, 0.05) 100%);
  --hx-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(225, 29, 72, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--hx-bg);
  color: var(--hx-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(225, 29, 72, 0.16) 0%, transparent 60%),
    radial-gradient(circle at 100% 50%, rgba(255, 77, 109, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 0% 80%, rgba(159, 18, 57, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= Navbar ================= */
.hx-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(14, 7, 12, 0.88);
  border-bottom: 1px solid var(--hx-border);
  height: 72px;
  display: flex;
  align-items: center;
}
.hx-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.hx-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #FFF;
}
.hx-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(225, 29, 72, 0.4);
}
.hx-brand-text {
  display: flex;
  flex-direction: column;
}
.hx-brand-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #FFF 30%, #FF85A2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hx-brand-sub {
  font-size: 11px;
  color: var(--hx-coral);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hx-official-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: 20px;
  font-size: 12px;
  color: #FDA4AF;
  font-weight: 600;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hx-coral);
  box-shadow: 0 0 8px var(--hx-coral);
  animation: pulseAnim 2s infinite;
}
@keyframes pulseAnim {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 8px rgba(255, 77, 109, 0); }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(255, 77, 109, 0); }
}

.hx-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.hx-nav-item {
  color: var(--hx-text-secondary);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.2s;
  padding: 6px 4px;
  position: relative;
}
.hx-nav-item:hover, .hx-nav-item.active {
  color: #FFF;
}
.hx-nav-item.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--hx-coral);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--hx-coral);
}

.hx-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--hx-grad-primary);
  color: #FFF;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.4);
  transition: all 0.25s;
  cursor: pointer;
}
.hx-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(225, 29, 72, 0.6);
  color: #FFF;
}

.hx-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(225, 29, 72, 0.1);
  border: 1px solid var(--hx-border);
  color: #FDA4AF;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.hx-btn-secondary:hover {
  background: rgba(225, 29, 72, 0.2);
  border-color: var(--hx-coral);
  color: #FFF;
}

/* ================= Hero Section ================= */
.hx-hero {
  padding: 55px 0 45px;
  text-align: center;
}
.hx-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: 30px;
  font-size: 13px;
  color: var(--hx-coral);
  font-weight: 700;
  margin-bottom: 20px;
}
.hx-hero h1 {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #FFFFFF 20%, #FFE4E6 60%, #FF85A2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hx-hero p {
  max-width: 840px;
  margin: 0 auto 30px;
  font-size: 16.5px;
  color: var(--hx-text-secondary);
  line-height: 1.8;
}
.hx-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* ================= Telemetry Dashboard ================= */
.hx-telemetry-panel {
  background: var(--hx-surface);
  border: 1px solid var(--hx-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--hx-shadow);
  margin-bottom: 50px;
  text-align: left;
}
.hx-telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hx-border);
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.hx-telemetry-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: #FFF;
}
.hx-telemetry-stats {
  font-size: 13px;
  color: var(--hx-coral);
  font-weight: 600;
}
.hx-node-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.hx-node-card {
  background: var(--hx-surface-card);
  border: 1px solid var(--hx-border);
  border-radius: 10px;
  padding: 16px;
  transition: all 0.25s;
}
.hx-node-card:hover {
  border-color: var(--hx-border-glow);
  transform: translateY(-2px);
}
.hx-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.hx-node-name {
  font-size: 14px;
  font-weight: 800;
  color: #FFF;
}
.hx-node-ping {
  font-size: 12px;
  color: var(--hx-green);
  font-weight: 700;
}
.hx-node-info {
  font-size: 12px;
  color: var(--hx-text-muted);
  line-height: 1.5;
}
.hx-node-speed {
  margin-top: 8px;
  font-size: 11px;
  color: var(--hx-coral);
  font-weight: 600;
}

/* ================= Features Grid ================= */
.section-header {
  text-align: center;
  margin-bottom: 36px;
}
.section-tag {
  font-size: 13px;
  color: var(--hx-coral);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.section-title {
  font-size: 28px;
  font-weight: 900;
  color: #FFF;
  margin-bottom: 10px;
}
.section-subtitle {
  font-size: 14.5px;
  color: var(--hx-text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.hx-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 55px;
}
.hx-feature-card {
  background: var(--hx-surface);
  border: 1px solid var(--hx-border);
  border-radius: 14px;
  padding: 26px;
  transition: all 0.25s;
}
.hx-feature-card:hover {
  border-color: var(--hx-border-glow);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.15);
}
.hx-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid var(--hx-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.hx-feature-card h3 {
  font-size: 18.5px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 10px;
}
.hx-feature-card p {
  font-size: 14px;
  color: var(--hx-text-secondary);
  line-height: 1.7;
}

/* ================= Client Ecosystem ================= */
.hx-client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 55px;
}
.hx-client-card {
  background: var(--hx-surface);
  border: 1px solid var(--hx-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.25s;
}
.hx-client-card:hover {
  border-color: var(--hx-border-glow);
  transform: translateY(-3px);
}
.hx-client-card h4 {
  font-size: 16px;
  font-weight: 800;
  color: #FFF;
  margin: 10px 0 6px;
}
.hx-client-card p {
  font-size: 12.5px;
  color: var(--hx-text-muted);
  line-height: 1.5;
}

/* ================= FAQ Accordion ================= */
.hx-faq-section {
  background: var(--hx-surface);
  border: 1px solid var(--hx-border);
  border-radius: 16px;
  padding: 34px;
  margin-bottom: 55px;
}
.hx-faq-item {
  border-bottom: 1px solid var(--hx-border);
  padding: 18px 0;
}
.hx-faq-item:last-child {
  border-bottom: none;
}
.hx-faq-question {
  font-size: 16.5px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 8px;
}
.hx-faq-answer {
  font-size: 14px;
  color: var(--hx-text-secondary);
  line-height: 1.8;
}

/* ================= Articles Grid ================= */
.hx-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 55px;
}
.hx-article-card {
  background: var(--hx-surface);
  border: 1px solid var(--hx-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s;
}
.hx-article-card:hover {
  border-color: var(--hx-border-glow);
  transform: translateY(-3px);
}
.hx-article-tag {
  font-size: 12px;
  color: var(--hx-coral);
  font-weight: 700;
  margin-bottom: 8px;
}
.hx-article-card h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 10px;
}
.hx-article-card p {
  font-size: 13.5px;
  color: var(--hx-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.hx-article-link {
  font-size: 13px;
  color: var(--hx-coral);
  font-weight: 700;
  text-decoration: none;
}
.hx-article-link:hover {
  text-decoration: underline;
}

/* ================= Footer ================= */
.hx-footer {
  background: #080407;
  border-top: 1px solid var(--hx-border);
  padding: 45px 0 25px;
  margin-top: 50px;
  font-size: 13.5px;
}
.hx-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 25px;
}
.hx-footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.hx-footer-nav a {
  color: var(--hx-text-secondary);
  text-decoration: none;
  font-weight: 600;
}
.hx-footer-nav a:hover {
  color: var(--hx-coral);
}
.hx-footer-copy {
  text-align: center;
  color: var(--hx-text-muted);
  font-size: 13px;
  line-height: 1.8;
}

/* Ecosystem Links Bar */
.site-ecosystem-bar {
  background: rgba(225, 29, 72, 0.04);
  border: 1px solid var(--hx-border);
  border-radius: 10px;
  padding: 16px 22px;
  margin-bottom: 25px;
}
.ecosystem-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--hx-coral);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.ecosystem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-link {
  font-size: 12px;
  color: var(--hx-text-secondary);
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid var(--hx-border);
  padding: 5px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}
.footer-link:hover, .footer-link.current {
  background: var(--hx-primary);
  color: #FFF;
  border-color: var(--hx-primary);
}

/* Quick Jump Dock */
.quick-jump-dock {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}
.quick-jump-dock.visible {
  opacity: 1;
  pointer-events: auto;
}
.jump-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.jump-top {
  background: var(--hx-surface);
  border: 1px solid var(--hx-border);
  color: #FFF;
}
.jump-official {
  background: var(--hx-grad-primary);
  color: #FFF;
}

/* Responsive */
@media (max-width: 992px) {
  .hx-hero h1 { font-size: 32px; }
  .hx-node-grid { grid-template-columns: repeat(2, 1fr); }
  .hx-client-grid { grid-template-columns: repeat(2, 1fr); }
  .hx-articles-grid { grid-template-columns: 1fr; }
  .hx-features-grid { grid-template-columns: 1fr; }
  .hx-official-badge { display: none; }
}
@media (max-width: 768px) {
  .hx-nav-links { display: none; }
  .hx-hero h1 { font-size: 26px; }
  .hx-node-grid { grid-template-columns: 1fr; }
  .hx-client-grid { grid-template-columns: 1fr; }
  .hx-footer-top { flex-direction: column; text-align: center; }
}
