/* ============================================
   星陌加速 - 全站样式表
   蓝色大气扁平化 · 侧边栏布局
   ============================================ */

/* Bootstrap Icons（本地自托管） */
@import url("bootstrap-icons.css");

/* ---------- CSS 变量 ---------- */
:root {
  /* 蓝色系 */
  --blue-deep: #0D47A1;
  --blue-dark: #1565C0;
  --blue-main: #1976D2;
  --blue: #2196F3;
  --blue-light: #64B5F6;
  --blue-lighter: #BBDEFB;
  --blue-bg: #E3F2FD;
  --blue-50: #F5F9FF;

  /* 辅助色 */
  --green: #00C853;
  --orange: #FF9800;
  --red: #F44336;
  --teal: #00ACC1;

  /* 基础 */
  --bg: #F0F4F8;
  --white: #FFFFFF;
  --text: #1A2332;
  --text-light: #607D8B;
  --text-lighter: #90A4AE;
  --border: #E3E8EE;
  --border-blue: #BBDEFB;
  --sidebar-w: 240px;
  --banner-h: 400px;

  /* 扁平化阴影（极淡） */
  --shadow: 0 1px 3px rgba(13, 71, 161, 0.06);
  --shadow-hover: 0 2px 12px rgba(13, 71, 161, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Bootstrap Icons 渲染微调：确保与文字基线对齐、可缩放 */
.bi { vertical-align: -.125em; }

/* ============================================
   侧边栏
   ============================================ */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--blue-deep) 0%, var(--blue-dark) 100%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform .3s ease;
}

/* 侧边栏 Logo */
.sidebar-logo {
  padding: 24px 24px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo .logo-img {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.sidebar-logo .logo-text {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* 侧边栏导航 */
.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.sidebar-nav .nav-label {
  padding: 12px 24px 6px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  transition: all .2s;
  position: relative;
  border-left: 3px solid transparent;
}

.sidebar-link .s-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.sidebar-link.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-left-color: var(--blue-light);
}

.sidebar-link.active::after {
  content: '';
  position: absolute;
  right: 24px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
}

/* 侧边栏底部 */
.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-footer .sf-status {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0;
}

.sidebar-footer .sf-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* 侧边栏二维码显示区（导航下方） */
.sidebar-qr {
  margin: 0 16px 14px;
  padding: 14px 12px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-qr .sq-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sidebar-qr .sq-box {
  width: 116px;
  height: 116px;
  margin: 0 auto 8px;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sidebar-qr .sq-box img { width: 100%; height: 100%; display: block; }

.sidebar-qr .sq-id {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.sidebar-qr .sq-tip {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

/* 侧边栏遮罩（移动端） */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
}

/* 移动端顶栏 */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--blue-deep);
  z-index: 1001;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.mobile-topbar .mt-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-topbar .mt-title {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-topbar .mt-title .logo-img-sm {
  height: 24px;
  width: auto;
  display: block;
  border-radius: 5px;
}

/* ============================================
   主内容区
   ============================================ */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  transition: margin-left .3s ease;
}

/* ============================================
   Banner (400px 固定)
   ============================================ */
.banner {
  height: var(--banner-h);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

/* 蓝色渐变背景 */
.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 50%, var(--blue-light) 100%);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* 各页面不同蓝色调 */
.banner.deep::before { background: linear-gradient(135deg, #0D47A1 0%, #1565C0 50%, #1976D2 100%); background-size: 200% 200%; }
.banner.bright::before { background: linear-gradient(135deg, #1565C0 0%, #2196F3 50%, #64B5F6 100%); background-size: 200% 200%; }
.banner.sky::before { background: linear-gradient(135deg, #1976D2 0%, #42A5F5 50%, #90CAF9 100%); background-size: 200% 200%; }
.banner.ocean::before { background: linear-gradient(135deg, #0D47A1 0%, #00ACC1 50%, #26C6DA 100%); background-size: 200% 200%; }
.banner.royal::before { background: linear-gradient(135deg, #1A237E 0%, #283593 50%, #3949AB 100%); background-size: 200% 200%; }

/* 装饰几何图形（扁平化） */
.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(255,255,255,0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(255,255,255,0.06) 0%, transparent 40%);
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 24px;
  animation: bannerFadeUp .8s ease;
}

@keyframes bannerFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.banner h1 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.banner p {
  font-size: 17px;
  opacity: .9;
  margin-bottom: 28px;
  font-weight: 400;
}

.banner-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 按钮（扁平化） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 34px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--white);
  color: var(--blue-deep);
}
.btn-primary:hover { background: var(--blue-bg); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn-solid {
  background: var(--blue-main);
  color: #fff;
}
.btn-solid:hover { background: var(--blue-dark); }

.btn-accent {
  background: var(--blue);
  color: #fff;
}
.btn-accent:hover { background: var(--blue-main); }

/* ============================================
   通用 Section
   ============================================ */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-title {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--blue-deep);
}

.section-subtitle {
  text-align: center;
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 44px;
}

/* ============================================
   首页: 功能卡片（扁平化）
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all .25s;
}

.feature-card:hover {
  border-color: var(--blue-light);
  background: var(--blue-50);
}

.feature-icon {
  width: 56px; height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 18px;
  color: #fff;
  background: var(--blue-main);
  transition: transform .25s;
}
.feature-card:hover .feature-icon { transform: scale(1.08); }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

/* 不同卡片图标颜色 */
.feature-card:nth-child(2) .feature-icon { background: var(--blue); }
.feature-card:nth-child(3) .feature-icon { background: var(--blue-light); }
.feature-card:nth-child(4) .feature-icon { background: var(--teal); }
.feature-card:nth-child(5) .feature-icon { background: var(--blue-dark); }
.feature-card:nth-child(6) .feature-icon { background: var(--blue-main); }
.feature-card:nth-child(7) .feature-icon { background: var(--blue); }
.feature-card:nth-child(8) .feature-icon { background: var(--blue-light); }

/* ---------- 首页: 快速入口 ---------- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.quick-card {
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: all .25s;
  cursor: pointer;
  background: var(--blue-main);
}
.quick-card:nth-child(2) { background: var(--blue); }
.quick-card:nth-child(3) { background: var(--blue-dark); }

.quick-card:hover { transform: translateY(-4px); }

.quick-card::after {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.quick-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.quick-card p { font-size: 13px; opacity: .85; margin-bottom: 18px; }
.quick-card .arrow { font-size: 22px; transition: transform .2s; }
.quick-card:hover .arrow { transform: translateX(6px); }

/* ---------- 首页: 数据统计 ---------- */
.stats-bar {
  background: var(--blue-deep);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 60%);
}

.stat-item {
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}

.stat-num {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  opacity: .75;
}

/* ============================================
   套餐价格区域（横向集中展示）
   ============================================ */

/* 天卡/周卡/月卡切换 */
.duration-tabs {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-bottom: 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.duration-tab {
  padding: 10px 30px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-light);
  transition: all .2s;
}

.duration-tab.active {
  background: var(--blue-main);
  color: #fff;
}

/* 价格卡片（扁平化 · 横向集中展示） */
.price-cards {
  display: grid;
  gap: 18px;
  margin-bottom: 36px;
  align-items: stretch;
}

.price-cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.price-cards.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 22px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all .25s;
  position: relative;
  overflow: hidden;
}

.price-card:hover {
  border-color: var(--blue-light);
  background: var(--blue-50);
}

.price-card.recommended {
  border: 2px solid var(--blue-main);
  background: var(--blue-50);
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 14px 32px rgba(13, 71, 161, .18);
}

.price-badge {
  position: absolute;
  top: 14px; right: -30px;
  background: var(--blue-main);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 34px;
  transform: rotate(45deg);
}

.price-card .plan-name {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--blue-deep);
}

.price-card .plan-tag {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 22px;
}

.price-card .plan-price {
  font-size: 44px;
  font-weight: 800;
  color: var(--blue-main);
  line-height: 1;
  margin-bottom: 4px;
}

.price-card .plan-price .currency {
  font-size: 20px;
  vertical-align: top;
}

.price-card .plan-price .unit {
  font-size: 15px;
  color: var(--text-light);
  font-weight: 500;
}

.price-card .price-duration {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 22px;
}

.price-features {
  text-align: left;
  margin-bottom: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.price-features li {
  padding: 7px 0;
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 800;
  font-size: 14px;
}

.price-features li.disabled { opacity: .4; }
.price-features li.disabled::before { content: '✕'; color: var(--text-lighter); }

.price-card .btn {
  width: 100%;
  justify-content: center;
}

/* 套餐信息面板 */
.plan-info-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.plan-info-panel h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--blue-deep);
}

.plan-info-panel p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

.plan-info-panel .info-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.info-tag {
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background: var(--blue-bg);
  color: var(--blue-dark);
}

/* ============================================
   下载页面
   ============================================ */
.download-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.download-group {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  transition: border-color .25s;
}

.download-group:hover { border-color: var(--blue-light); }

.download-group-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-deep);
}

.download-group-sub {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.dg-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  background: var(--blue-main);
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.device-grid.mobile-grid { grid-template-columns: repeat(3, 1fr); }

.dl-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  transition: all .25s;
}
.dl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(13,71,161,.12);
  border-color: var(--blue-light);
}

.dl-logo {
  flex: 0 0 56px;
  width: 56px; height: 56px;
  border-radius: 12px;
  background: #f1f5fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.dl-logo img { width: 100%; height: 100%; object-fit: contain; }

.dl-info { flex: 1; min-width: 0; }
.dl-name { font-size: 16px; font-weight: 700; color: var(--text); }
.dl-desc { font-size: 12px; color: var(--text-light); margin-top: 3px; }

.dl-btn {
  flex: 0 0 auto;
  padding: 9px 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  background: var(--blue-main);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
}
.dl-btn:hover { background: var(--blue-deep); }

/* 手机端卡片：垂直布局，Logo+名称在上，下载按钮在下 */
.mobile-card {
  flex-direction: column;
  text-align: center;
  gap: 14px;
  padding: 24px 18px;
}
.mobile-card .dl-logo {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
}
.mobile-card .dl-info {
  text-align: center;
}
.mobile-card .dl-btn {
  width: 100%;
  text-align: center;
}

/* 下载步骤 */
.download-steps {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.dl-step {
  text-align: center;
  position: relative;
}

.dl-step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue-main);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.dl-step:nth-child(2) .dl-step-num { background: var(--blue); }
.dl-step:nth-child(3) .dl-step-num { background: var(--blue-dark); }
.dl-step:nth-child(4) .dl-step-num { background: var(--teal); }

.dl-step h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.dl-step p { font-size: 12px; color: var(--text-light); }

/* 客户端分类区块 */
.client-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 10px;
}

.client-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}

.client-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.client-badge.dynamic {
  background: linear-gradient(135deg, var(--blue-main), var(--blue));
}

.client-badge.static {
  background: linear-gradient(135deg, #2B6CB0, #38A169);
}

.client-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--blue-deep);
  margin: 0;
}

.client-section-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-left: auto;
}

/* 移动端下描述换行 */
@media (max-width: 600px) {
  .client-section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .client-section-desc { margin-left: 0; }
}

/* ============================================
   服务器列表页面
   ============================================ */
.server-iframe-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
}

.server-iframe-wrapper iframe {
  width: 100%;
  height: 700px;
  border: none;
  display: block;
}

/* 服务器地区列表（API 驱动） */
.server-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 8px 0 28px;
}
.ss-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
}
.ss-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--blue-main);
  line-height: 1.1;
}
.ss-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }

.region-toolbar { margin-bottom: 22px; }
.region-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  max-width: 560px;
  transition: border-color .2s;
}
.region-search:focus-within { border-color: var(--blue-main); }
.rs-icon { font-size: 16px; opacity: .55; }
.region-search input {
  border: none; outline: none; flex: 1;
  font-size: 14px; color: var(--text); background: transparent;
}
.region-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.region-chip {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 14px; font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all .2s;
}
.region-chip:hover { border-color: var(--blue-light); color: var(--blue-main); }
.region-chip.active {
  background: var(--blue-main); color: #fff; border-color: var(--blue-main);
}

.region-list { min-height: 200px; }
.region-loading { text-align: center; color: var(--text-light); padding: 40px; }
.region-loading code { background: #f1f5fb; padding: 1px 6px; border-radius: 4px; color: var(--blue-deep); }

.region-group { margin-bottom: 30px; }
.region-group-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; color: var(--blue-deep);
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--blue-main);
}
.region-group-title .rg-count {
  font-size: 12px; font-weight: 600; color: var(--text-light);
  background: #f1f5fb; padding: 2px 10px; border-radius: 12px;
}

.node-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 14px;
}
.node-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
  transition: all .2s;
}
.node-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(13,71,161,.1);
  border-color: var(--blue-light);
}
.node-top { display: flex; align-items: center; gap: 10px; }
.node-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.node-dot.on { background: #2ecc71; box-shadow: 0 0 0 3px rgba(46,204,113,.18); }
.node-dot.off { background: #b0b8c4; }
.node-name { font-size: 16px; font-weight: 700; color: var(--text); }
.node-meta { font-size: 12px; color: var(--text-light); }
.node-meta code {
  background: #f1f5fb; padding: 1px 6px; border-radius: 4px;
  color: var(--blue-deep); font-weight: 600;
}
.node-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.node-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 10px; }
.node-badge.online { background: rgba(46,204,113,.14); color: #1e8e4f; }
.node-badge.offline { background: rgba(176,184,196,.22); color: #6b7280; }
.node-badge.hybrid { background: rgba(13,71,161,.1); color: var(--blue-main); }

/* 实时更新状态条 */
.region-updatebar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 10px 16px;
  background: var(--blue-50, #eef4ff);
  border: 1px solid var(--blue-light, #cfe0ff);
  border-radius: 8px;
}
.ru-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-deep);
}
.ru-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 0 rgba(46,204,113,.6);
  animation: ru-pulse 1.8s infinite;
}
@keyframes ru-pulse {
  0% { box-shadow: 0 0 0 0 rgba(46,204,113,.55); }
  70% { box-shadow: 0 0 0 8px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}
.ru-time { font-size: 13px; color: var(--text-light); }
.ru-time #last-updated { color: var(--blue-main); font-weight: 700; }
.ru-refresh {
  margin-left: auto;
  padding: 7px 18px;
  border-radius: 6px;
  border: 1px solid var(--blue-main);
  background: var(--blue-main);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.ru-refresh:hover { background: var(--blue-deep); border-color: var(--blue-deep); }

/* 节点表格（列表） */
.region-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.region-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 14px;
  min-width: 560px;
}
.region-table thead th {
  position: sticky;
  top: 0;
  background: var(--blue-deep, #0d47a1);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 13px 18px;
  white-space: nowrap;
}
.region-table tbody td {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.region-table tbody tr:nth-child(even) { background: #f7faff; }
.region-table tbody tr:hover { background: #eef4ff; }
.rt-prov { font-weight: 700; color: var(--blue-deep); white-space: nowrap; }
.rt-area-name { font-weight: 700; }
.rt-area-en { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.rt-tag code {
  display: inline-block;
  background: #e8f0fe;
  color: #1565C0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: .3px;
}
.rt-ip { white-space: nowrap; }
.rt-ip code {
  display: inline-block;
  background: #f1f5fb;
  padding: 3px 9px;
  border-radius: 5px;
  color: var(--blue-deep);
  font-weight: 600;
  margin-right: 8px;
}
.copy-btn {
  border: 1px solid var(--blue-light, #cfe0ff);
  background: #fff;
  color: var(--blue-main);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: all .15s;
}
.copy-btn:hover { background: var(--blue-main); color: #fff; border-color: var(--blue-main); }
.copy-btn.copied { background: #2ecc71; border-color: #2ecc71; color: #fff; }

/* 静态节点列表：运营商标签 */
.rt-isp { white-space: nowrap; }
.isp-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  margin: 0 4px 4px 0;
  background: rgba(13,71,161,.1);
  color: var(--blue-main);
}
.isp-tag:nth-child(2) { background: rgba(46,204,113,.16); color: #1e8e4f; }
.isp-tag:nth-child(3) { background: rgba(245,166,35,.16); color: #c77700; }



.region-source {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
}
.region-source code {
  background: #f1f5fb; padding: 1px 6px; border-radius: 4px; color: var(--blue-deep);
}

/* ============================================
   帮助文档页面
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item:hover { border-color: var(--blue-light); }
.faq-item.open { border-color: var(--blue-main); }

.faq-question {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color .2s;
  color: var(--text);
}

.faq-question:hover { color: var(--blue-main); }
.faq-item.open .faq-question { color: var(--blue-main); }

.faq-question .faq-icon {
  font-size: 20px;
  transition: transform .3s;
  color: var(--blue-main);
  flex-shrink: 0;
}
.faq-item.open .faq-question .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 24px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 24px 20px;
}

.help-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.help-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue-main);
  transition: all .25s;
}
.help-card:nth-child(2) { border-top-color: var(--blue); }
.help-card:nth-child(3) { border-top-color: var(--teal); }

.help-card:hover {
  border-color: var(--blue-light);
  background: var(--blue-50);
}

.help-card .hc-icon { font-size: 36px; margin-bottom: 14px; }
.help-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--blue-deep); }
.help-card p { font-size: 13px; color: var(--text-light); margin-bottom: 14px; }

/* 联系我们：微信二维码 + QQ */
.contact-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: stretch;
  margin-top: 12px;
}

.qr-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-card .qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #07C160;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.qr-box {
  width: 200px;
  height: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(13, 71, 161, .08);
}

.qr-box img { width: 100%; height: 100%; display: block; }

.qr-card .qr-id {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 800;
  color: var(--blue-deep);
}

.qr-card .qr-tip {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-light);
}

.contact-rows {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.contact-item:last-child { border-bottom: none; }

.contact-item .ci-icon {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  overflow: hidden;
}
.contact-item .ci-icon img {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: block;
}

.contact-item .ci-body { display: flex; flex-direction: column; }
.contact-item .ci-label { font-size: 13px; color: var(--text-light); }
.contact-item .ci-value { font-size: 16px; font-weight: 800; color: var(--blue-deep); }
.contact-item .ci-value a { color: var(--blue-main); text-decoration: none; }
.contact-item .ci-value a:hover { text-decoration: underline; }

/* 页脚联系方式列 */
.footer-col .fc-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-col .fc-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.footer-col .fc-row .fc-k { color: rgba(255,255,255,0.55); }
.footer-col .fc-row .fc-v { color: #fff; font-weight: 700; }
.footer-col .fc-row .fc-v a { color: #fff; text-decoration: none; }
.footer-col .fc-row .fc-v a:hover { text-decoration: underline; }

/* ============================================
   页脚
   ============================================ */
.footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.7);
  padding: 46px 24px 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand .sidebar-logo {
  padding: 0;
  border: none;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  padding: 4px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--blue-light); }

.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ============================================
   动画工具类
   ============================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 968px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 30px rgba(0,0,0,0.2);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar.open ~ .sidebar-overlay { display: block; }

  .mobile-topbar { display: flex; }
  .main-content { margin-left: 0; padding-top: 56px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: 1fr; }
  .download-steps { grid-template-columns: repeat(2, 1fr); }
  .price-cards.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .price-cards.cols-3 { grid-template-columns: 1fr; }
  .plan-info-panel { grid-template-columns: 1fr; }
  .help-cards { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .device-grid.mobile-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .banner h1 { font-size: 30px; }
  .banner p { font-size: 14px; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .device-grid { grid-template-columns: 1fr; }
  .dl-card { flex-wrap: wrap; gap: 14px; }
  .download-steps { grid-template-columns: 1fr; }
  .server-stats { grid-template-columns: repeat(2, 1fr); }
  .price-cards.cols-5 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
  .footer-inner .footer-brand { grid-column: 1 / -1; }
  .stats-bar { padding: 32px 16px; }
  .stat-num { font-size: 30px; }
  .banner h1 { font-size: 24px; letter-spacing: 1px; }
  .section { padding: 44px 14px; }
  .section-title { font-size: 24px; }

  /* 节点表格转卡片布局，避免横向滚动 */
  .region-table-wrap { border: none; overflow: visible; }
  .region-table { min-width: 0; }
  .region-table thead { display: none; }
  .region-table,
  .region-table tbody,
  .region-table tr,
  .region-table td { display: block; width: 100%; }
  .region-table tbody tr {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 8px 14px;
    background: var(--white);
  }
  .region-table tbody tr:nth-child(even) { background: var(--white); }
  .region-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: none;
    padding: 8px 0;
    text-align: right;
  }
  .region-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-light);
    font-size: 12px;
    text-align: left;
    flex-shrink: 0;
  }
  .rt-prov,
  .rt-area-name { text-align: right; }
  .rt-ip { white-space: normal; }
  .rt-ip code { margin-right: 0; }
  .rt-isp { flex-wrap: wrap; justify-content: flex-end; }
}
