/* ============================================================
   YCloud 官网 - 样式表
   设计风格：白色科技主题，科技蓝/青色点缀
   ============================================================ */

/* ==================== CSS 变量 ==================== */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f7f9fc;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f4fa;
  --bg-input: #f5f7fa;
  --border-color: #e2e8f0;
  --border-hover: #0066ff;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #a0aec0;
  --accent: #0066ff;
  --accent-light: #00a8ff;
  --accent-gradient: linear-gradient(135deg, #0066ff, #00a8ff);
  --accent-gradient-reverse: linear-gradient(135deg, #00a8ff, #0066ff);
  --glow-color: rgba(0, 102, 255, 0.08);
  --glow-strong: rgba(0, 102, 255, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.08);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
}

/* ==================== 基础重置 ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ==================== 容器 ==================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== 渐变文字 ==================== */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(0, 102, 255, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 102, 255, 0.04);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius);
}

.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: var(--radius);
}

/* ==================== 导航栏 ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 1001;
}

.logo-img {
  display: block;
  width: 108px;
  height: 50px;
  object-fit: contain;
  border-radius: 4px;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: rgba(0, 102, 255, 0.05);
}

.nav-link .arrow {
  font-size: 10px;
  transition: transform var(--transition);
}

/* 下拉菜单 */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all var(--transition);
}

.dropdown-menu a:hover {
  color: var(--accent);
  background: rgba(0, 102, 255, 0.05);
}

/* 导航操作区 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==================== Hero 区域 ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background: linear-gradient(180deg, #f0f6ff 0%, #ffffff 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 102, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black 30%, transparent 70%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}

.hero-glow-1 {
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(0, 102, 255, 0.08);
}

.hero-glow-2 {
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: rgba(0, 168, 255, 0.06);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(0, 102, 255, 0.06);
  border: 1px solid rgba(0, 102, 255, 0.15);
  border-radius: 100px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-title .gradient-text {
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero 视觉元素 */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
}

/* ==================== Live Dashboard ==================== */
.live-dashboard {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.12);
  border-radius: 100px;
  letter-spacing: 1px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.live-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.live-stat {
  text-align: center;
}

.live-stat-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.live-stat-val {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.live-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 清除旧动画相关 */
.hero-globe,
.hero-shield,
.hero-nodes,
.shield-outer,
.shield-inner,
.shield-ring,
.node,
.node-lines {
  display: none;
}

/* ==================== 通用 Section ==================== */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0, 102, 255, 0.06);
  border: 1px solid rgba(0, 102, 255, 0.12);
  border-radius: 100px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--text-primary);
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==================== 产品卡片 ==================== */
.products {
  background: var(--bg-secondary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card {
  position: relative;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card-link:hover .product-card {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-lg), 0 0 40px var(--glow-color);
}

.product-card-link:hover .product-card::before {
  opacity: 1;
}

.card-icon {
  margin-bottom: 20px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  min-height: 60px;
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.card-features span {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.1);
  border-radius: 100px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: all var(--transition);
}

.card-link span {
  transition: transform var(--transition);
}

.card-link:hover span {
  transform: translateX(4px);
}

/* ==================== 定价区域 ==================== */
.pricing {
  background: var(--bg-primary);
}

.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.pricing-tab {
  padding: 10px 32px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.pricing-tab.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.25);
}

.pricing-tab:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent);
}

.pricing-grid {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pricing-grid.active {
  display: grid;
}

.pricing-card {
  position: relative;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  text-align: center;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 40px var(--glow-color);
}

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 40px var(--glow-color);
  transform: scale(1.03);
}

.pricing-card.popular:hover {
  transform: scale(1.03) translateY(-6px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--accent-gradient);
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.pricing-plan {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.pricing-price {
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.pricing-period {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
  padding: 0;
}

.pricing-features li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li span:first-child {
  color: var(--text-muted);
}

.pricing-features li span:last-child {
  font-weight: 600;
  color: var(--text-primary);
}

/* ==================== 优势区域 ==================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.advantage-card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.advantage-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.advantage-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.1);
  border-radius: var(--radius);
}

.advantage-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.advantage-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==================== 全球基础设施 ==================== */
.infrastructure {
  background: var(--bg-secondary);
}

.infra-map {
  margin-bottom: 50px;
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 440px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 0 40px rgba(0, 102, 255, 0.04);
}

.map-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 35%, rgba(0, 102, 255, 0.09) 0%, transparent 55%),
    radial-gradient(circle at 70% 55%, rgba(0, 168, 255, 0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.map-bg-world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.22;
  filter: grayscale(1) sepia(1) saturate(4000%) hue-rotate(190deg) brightness(0.9) contrast(1.1);
  pointer-events: none;
  z-index: 1;
}

.map-overlay-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.net-line {
  stroke-dasharray: 2 10;
  animation: netDash 3s linear infinite;
}

@keyframes netDash {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -36; }
}

.infra-stats-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  text-align: center;
}

.infra-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.infra-value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.infra-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==================== 服务承诺 ==================== */
.promises {
  padding: 80px 0;
}

.promises-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.promise-card {
  text-align: center;
  padding: 36px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.promise-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.promise-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.promise-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.promise-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== CTA 区域 ==================== */
.cta-section {
  background: var(--accent-gradient);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
}

.cta-content .gradient-text {
  background: linear-gradient(135deg, #ffffff, #e0eeff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-section .btn-primary:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.cta-section .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-section .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* ==================== 页脚 ==================== */
.footer {
  background: #1a202c;
  border-top: none;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo .logo-img {
  width: auto;
  height: 36px;
}

.footer-about p {
  font-size: 13px;
  color: #8892b0;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #e8edf5;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 13px;
  color: #8892b0;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8892b0;
}

.footer-contact ul li svg {
  flex-shrink: 0;
  color: #5a6380;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  font-size: 13px;
  color: #5a6380;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: #5a6380;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

/* ==================== 登录/注册弹窗 ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 32px;
  background: #fff;
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: all var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.modal-header {
  margin-bottom: 32px;
}

.modal-tabs {
  display: flex;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 4px;
}

.modal-tab {
  flex: 1;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.modal-tab.active {
  background: var(--accent-gradient);
  color: #fff;
}

/* 表单 */
.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 14px 12px 44px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  outline: none;
  transition: all var(--transition);
}

.input-wrapper input::placeholder {
  color: var(--text-muted);
}

.input-wrapper input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.08);
}

.toggle-password {
  position: absolute;
  right: 14px;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.toggle-password:hover {
  color: var(--text-secondary);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-label a {
  color: var(--accent);
}

.forgot-link {
  font-size: 13px;
  color: var(--accent);
  transition: opacity var(--transition);
}

.forgot-link:hover {
  opacity: 0.8;
}

.form-error {
  min-height: 20px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #e53e3e;
  text-align: center;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 102, 255, 0.04);
}

.form-tip {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}

.form-tip a {
  color: var(--accent);
  font-weight: 500;
}

/* ==================== 服务选择面板 ==================== */
.service-panel {
  display: none;
  text-align: center;
  padding: 10px 0;
}

.service-panel.active {
  display: block;
}

.service-panel-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.service-panel-title {
  font-size: 20px;
  font-weight: 700;
  color: #16a34a;
  margin-bottom: 8px;
}

.service-panel-user {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.service-panel-user strong {
  color: var(--text-primary);
}

.service-panel-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.service-panel-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-service {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  font-family: inherit;
  text-align: left;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-service:hover {
  transform: translateY(-2px);
}

.btn-service-scdn {
  border-color: rgba(0, 102, 255, 0.2);
}

.btn-service-scdn:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.12);
}

.btn-service-cdn {
  border-color: rgba(0, 168, 255, 0.2);
}

.btn-service-cdn:hover {
  border-color: var(--accent-light);
  box-shadow: 0 8px 25px rgba(0, 168, 255, 0.12);
}

.btn-service-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  color: var(--accent);
}

.btn-service-scdn .btn-service-icon {
  background: rgba(0, 102, 255, 0.06);
}

.btn-service-cdn .btn-service-icon {
  background: rgba(0, 168, 255, 0.06);
}

.btn-service-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-service-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-service-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-service-arrow {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.btn-service:hover .btn-service-arrow {
  transform: translateX(4px);
}

.btn-service-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}

.btn-service-back:hover {
  color: var(--accent);
}

/* ==================== Toast ==================== */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  transition: transform var(--transition);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  border-color: rgba(0, 230, 118, 0.3);
}

.toast.error {
  border-color: rgba(229, 62, 62, 0.3);
}

.toast-msg {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ==================== 滚动动画 ==================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== 响应式设计 ==================== */

/* 平板 (≤1024px) */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    height: 350px;
    order: -1;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promises-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* 手机 (≤768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  section {
    padding: 60px 0;
  }

  .container {
    padding: 0 16px;
  }

  /* 移动端导航 */
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 80px 24px 40px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 1000;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 18px;
    padding: 14px 20px;
    width: 100%;
    text-align: center;
    justify-content: center;
    color: var(--text-primary);
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: center;
    padding: 0;
  }

  .dropdown-menu a {
    font-size: 15px;
    padding: 10px 20px;
  }

  .dropdown:hover .dropdown-menu {
    transform: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 40px) 0 60px;
  }

  .hero-visual {
    height: 250px;
  }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-item {
    flex: 1;
    min-width: 100px;
  }

  .stat-value {
    font-size: 22px;
  }

  /* Products */
  .products-grid {
    grid-template-columns: 1fr;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.popular {
    transform: scale(1);
  }

  .pricing-card.popular:hover {
    transform: translateY(-6px);
  }

  /* Advantages */
  .advantages-grid {
    grid-template-columns: 1fr;
  }

  /* Promises */
  .promises-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Infrastructure */
  .infra-stats-row {
    flex-wrap: wrap;
    gap: 30px;
  }

  .map-container {
    height: 280px;
  }

  .infra-value {
    font-size: 28px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-about p {
    max-width: 100%;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-contact ul li {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  /* Modal */
  .modal-container {
    margin: 16px;
    padding: 28px 20px;
    max-width: 100%;
  }

  .nav-actions .btn {
    display: none;
  }
}

/* 小屏手机 (≤480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section-title {
    font-size: 24px;
  }

  .promises-grid {
    grid-template-columns: 1fr;
  }

  .infra-stats-row {
    gap: 20px;
  }

  .map-container {
    height: 220px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}
