/* ==========================================================================
   flybit - 极速全球网络专线加速器 样式表
   ========================================================================== */

/* 1. 基础重置与变量声明 */
:root {
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --color-bg: #090d16;
  --color-bg-card: #111827;
  --color-bg-card-hover: #172134;
  --color-border: #1e293b;
  --color-border-glow: rgba(0, 153, 255, 0.3);
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  --color-primary-start: #0099ff;
  --color-primary-end: #00b4d8;
  --color-accent: #38bdf8;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background: 
    radial-gradient(circle at 50% 0%, rgba(0, 153, 255, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(0, 180, 216, 0.08) 0%, transparent 50%),
    var(--color-bg);
}

/* 容器通用类 */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   2. 系统服务异常警示弹窗 (严格按照设计规范)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

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

.modal-card {
  position: relative;
  background: #ffffff;
  color: #1e293b;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  max-width: 440px;
  width: 100%;
  padding: 34px 28px 28px;
  text-align: center;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

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

/* 右上角关闭按钮 */
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  color: #64748b;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  user-select: none;
}

.modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

/* 警告标题与图标 */
.modal-header {
  margin-bottom: 16px;
}

.modal-icon {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 10px;
  display: inline-block;
  animation: modalIconPulse 2s ease-in-out infinite;
}

@keyframes modalIconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.modal-title {
  font-size: 21px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.3px;
  text-align: center;
}

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

.modal-announcement {
  background: #fff8f0;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 16px;
  font-size: 13.5px;
  line-height: 1.68;
  color: #431407;
  text-align: justify;
  letter-spacing: 0.2px;
  margin: 0;
  word-break: break-word;
}

/* 核心行动按钮 (CTA 药丸按钮) */
.modal-footer {
  width: 100%;
}

.modal-cta-btn {
  display: 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: 15.5px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(0, 153, 255, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.modal-cta-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 153, 255, 0.45);
}

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

/* ==========================================================================
   3. 通用按钮组件
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13.5px;
}

.btn-lg {
  padding: 14px 34px;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-start) 0%, var(--color-primary-end) 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 153, 255, 0.35);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

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

.btn-glow {
  background: linear-gradient(135deg, var(--color-primary-start) 0%, var(--color-primary-end) 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 153, 255, 0.3);
}

.btn-glow:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 16px rgba(0, 153, 255, 0.5);
}

/* ==========================================================================
   4. 顶部导航 (Header)
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(9, 13, 22, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.logo-symbol {
  font-size: 22px;
  color: #38bdf8;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

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

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

.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* ==========================================================================
   5. 主视觉区 (Hero)
   ========================================================================== */
.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: 999px;
  background: rgba(0, 153, 255, 0.1);
  border: 1px solid rgba(0, 153, 255, 0.25);
  font-size: 13px;
  font-weight: 500;
  color: #38bdf8;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #00e676;
  box-shadow: 0 0 8px #00e676;
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

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

.hero-subtitle {
  max-width: 680px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px 36px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  width: 100%;
  max-width: 820px;
}

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

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 12.5px;
  color: var(--color-text-dim);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 34px;
  background: var(--color-border);
}

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

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

.section-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 15px;
  color: var(--color-text-muted);
}

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

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 153, 255, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.feature-card:hover::before {
  opacity: 1;
}

.card-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(0, 153, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.card-icon {
  font-size: 26px;
}

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

.card-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

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

.card-points li {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-action {
  margin-top: auto;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.card-link span {
  transition: transform 0.2s ease;
}

.card-link:hover {
  color: #7dd3fc;
}

.card-link:hover span {
  transform: translateX(4px);
}

/* ==========================================================================
   7. 专线监控与运行状态 (Status Section)
   ========================================================================== */
.status-section {
  padding: 40px 0 80px;
}

.status-box {
  background: linear-gradient(180deg, #111827 0%, #0d121d 100%);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 36px;
}

.status-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.status-heading {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.status-sub {
  font-size: 13.5px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-size: 13px;
  font-weight: 600;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.status-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.node-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

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

.node-name {
  font-weight: 500;
  color: #e2e8f0;
  flex-grow: 1;
}

.node-tag {
  font-size: 11px;
  background: rgba(0, 153, 255, 0.15);
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 4px;
}

.node-ping {
  font-weight: 600;
  color: #10b981;
  font-size: 12px;
}

.status-box-cta {
  text-align: center;
}

/* ==========================================================================
   8. 页脚 (Footer)
   ========================================================================== */
.footer {
  border-top: 1px solid var(--color-border);
  background: #060910;
  padding: 50px 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand .brand-logo {
  font-size: 20px;
  margin-bottom: 8px;
}

.footer-slogan {
  font-size: 13px;
  color: var(--color-text-dim);
  max-width: 380px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

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

.footer-link.highlight {
  color: #38bdf8;
  font-weight: 600;
}

.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: 12.5px;
  color: var(--color-text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   9. 响应式布局优化 (移动端优先自适应)
   ========================================================================== */
@media (max-width: 992px) {
  .status-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

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

  .status-list {
    grid-template-columns: 1fr;
  }

  .status-box {
    padding: 24px 18px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-card {
    padding: 28px 20px 22px;
    border-radius: 14px;
  }

  .modal-title {
    font-size: 19px;
  }

  .modal-announcement {
    font-size: 13px;
    padding: 14px;
  }
}
