/* ==========================================================================
   咸鱼加速器 - 官方推广落地页样式表
   ========================================================================== */

/* 1. CSS 变量与设计系统 */
:root {
  --primary-color: #0099ff;
  --primary-gradient: linear-gradient(135deg, #0099ff 0%, #00b4d8 100%);
  --primary-hover-gradient: linear-gradient(135deg, #00aaff 0%, #00c4e8 100%);
  --accent-cyan: #00f2fe;
  --bg-dark-base: #0a0f1d;
  --bg-dark-card: rgba(18, 26, 44, 0.75);
  --bg-dark-hover: rgba(28, 38, 64, 0.85);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 153, 255, 0.3);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --transition-smooth: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
}

/* 2. 全局重置与排版 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark-base);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 153, 255, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 35%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(0, 102, 255, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

img, svg {
  display: block;
}

/* 3. 布局容器 */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* 4. 按钮系统 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
  text-align: center;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 153, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(0, 153, 255, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-color: var(--border-light);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-hero {
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 14px 34px;
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 153, 255, 0.45);
  border-radius: var(--radius-pill);
}

.btn-hero:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
  box-shadow: 0 12px 30px rgba(0, 153, 255, 0.6);
}

.btn-hero .btn-arrow {
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.btn-hero:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 153, 255, 0.5);
  color: #ffffff;
  transform: translateY(-2px);
}

/* 5. 顶部导航栏 (Header) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 15, 29, 0.85);
  border-bottom: 1px solid var(--border-light);
  height: 72px;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.logo-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 6px rgba(0, 153, 255, 0.4));
}

.logo-text {
  background: linear-gradient(135deg, #ffffff 60%, #a5f3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 6. 主视觉区 (Hero Section) */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(0, 153, 255, 0.12);
  border: 1px solid rgba(0, 153, 255, 0.25);
  color: #7dd3fc;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseDot 2s infinite ease-in-out;
}

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

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.highlight-text {
  background: linear-gradient(135deg, #0099ff 0%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

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

.network-status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px 24px;
  background: rgba(18, 26, 44, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-indicator.online {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-val {
  color: #e5e7eb;
  font-weight: 500;
}

.status-val.highlight {
  color: #38bdf8;
  font-weight: 600;
}

.status-divider {
  width: 1px;
  height: 14px;
  background: var(--border-light);
}

/* 7. 核心优势卡片 (Features Section) */
.features-section {
  padding: 70px 0;
  position: relative;
}

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

.section-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

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

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

.feature-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--bg-dark-hover);
  border-color: var(--border-glow);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 153, 255, 0.15);
}

.feature-card:hover::before {
  background: var(--primary-gradient);
}

.card-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.card-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.icon-speed {
  background: rgba(0, 153, 255, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(0, 153, 255, 0.3);
}

.icon-devices {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.icon-security {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags li {
  font-size: 0.8rem;
  color: #93c5fd;
  background: rgba(0, 153, 255, 0.08);
  border: 1px solid rgba(0, 153, 255, 0.18);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

/* 8. 专线集群与服务保障横幅 */
.nodes-banner-section {
  padding: 40px 0 80px;
}

.banner-box {
  background: linear-gradient(135deg, rgba(14, 23, 42, 0.95) 0%, rgba(20, 32, 60, 0.95) 100%);
  border: 1px solid rgba(0, 153, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.banner-box::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 153, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.banner-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.banner-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.banner-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.65;
}

.btn-banner {
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 13px 28px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 153, 255, 0.4);
  white-space: nowrap;
}

.btn-banner:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 8px 26px rgba(0, 153, 255, 0.55);
}

/* 9. 页脚 (Footer) */
.site-footer {
  background-color: #060a13;
  border-top: 1px solid var(--border-light);
  padding: 60px 0 32px;
  color: var(--text-muted);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 340px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-slogan {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.footer-links-group {
  display: flex;
  gap: 60px;
}

.col-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 16px;
}

.col-list li {
  margin-bottom: 10px;
}

.col-list a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.col-list a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   10. 系统服务异常警示弹窗 (严格还原设计图规范)
   ========================================================================== */

/* 遮罩层 (Backdrop) */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  
  /* 严格还原规范: backdrop-filter: blur(8px); background: rgba(0, 0, 0, 0.45); */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.45);

  /* 丝滑淡入过渡控制 */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 弹窗卡片 (Modal Container) */
.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  padding: 32px 28px 28px;
  text-align: center;
  
  /* 弹出微动效 */
  transform: scale(0.92) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.is-visible .modal-card {
  transform: scale(1) translateY(0);
}

/* 轻量关闭按钮“✕” */
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: #9ca3af;
  border-radius: 50%;
  transition: all 0.2s ease;
  user-select: none;
}

.modal-close:hover {
  color: #1f2937;
  background: rgba(0, 0, 0, 0.06);
}

.modal-close:focus {
  outline: 2px solid #0099ff;
  outline-offset: 2px;
}

/* 弹窗头部：警告图标与标题 */
.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.warning-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  margin-bottom: 12px;
}

.warning-icon {
  font-size: 26px;
  line-height: 1;
}

.modal-title {
  font-size: 1.32rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.2px;
}

/* 公告正文 (方案一文案) */
.modal-body {
  margin-bottom: 24px;
}

.announcement-text {
  font-size: 0.93rem;
  line-height: 1.7;
  color: #4b5563;
  text-align: left;
  letter-spacing: 0.2px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  padding: 14px 16px;
  word-break: break-word;
}

/* 核心行动按钮 (CTA) */
.modal-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.modal-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0099ff 0%, #00b4d8 100%);
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 153, 255, 0.38);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.modal-cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(0, 153, 255, 0.5);
  color: #ffffff;
}

.modal-cta-btn:active {
  transform: translateY(0);
  filter: brightness(1.02);
}

/* ==========================================================================
   11. 响应式适配 (移动端优先留白与无横滚)
   ========================================================================== */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .banner-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
  }

  .banner-actions {
    width: 100%;
  }

  .btn-banner {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 64px;
  }

  .main-nav {
    display: none;
  }

  .hero-section {
    padding: 50px 0 40px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .btn-hero, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .network-status-bar {
    flex-direction: column;
    gap: 8px;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    width: 100%;
  }

  .status-divider {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links-group {
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* 移动端弹窗自适应留白 */
  .modal-backdrop {
    padding: 16px;
  }

  .modal-card {
    padding: 28px 20px 22px;
    max-width: 100%;
  }

  .announcement-text {
    font-size: 0.88rem;
    padding: 12px;
  }

  .modal-title {
    font-size: 1.22rem;
  }
}
