/**
 * Nova theme — inspired by modern IDC cloud homepage layout
 * Brand: 59云 (customize CSS variables below)
 */
:root {
  --nova-primary: #3b82f6;
  --nova-primary-dark: #1d4ed8;
  --nova-primary-hover: #2563eb;
  --nova-primary-light: #93c5fd;
  --nova-accent: #3b82f6;
  --nova-accent-hover: #2563eb;
  --nova-text: #111827;
  --nova-text-muted: #6b7280;
  --nova-bg: #f5f7fa;
  --nova-card: #ffffff;
  --nova-border: #e5e7eb;
  --nova-radius: 12px;
  --nova-shadow: 0 8px 30px rgba(59, 130, 246, 0.08);
}

body#index {
  background: var(--nova-bg);
  color: var(--nova-text);
}

/* top announcement bar */
.nova-topbar {
  background: linear-gradient(90deg, #1e40af, #2563eb);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  width: 100%;
}

.nova-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 20px;
  min-height: 44px;
  box-sizing: border-box;
}

.nova-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.nova-topbar-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  opacity: 0.95;
}

.nova-topbar-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
}

.nova-topbar-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  white-space: nowrap;
}

.nova-topbar-desc {
  font-size: 12px;
  opacity: 0.92;
  line-height: 1.45;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nova-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 16px;
}

.nova-topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 6px;
  background: #fff;
  color: #1e40af;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.nova-topbar-btn:hover,
.nova-topbar-btn:focus {
  background: #f8fafc;
  color: #1d4ed8;
  text-decoration: none;
  transform: translateY(-1px);
}

.nova-topbar-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: color 0.2s;
}

.nova-topbar-close:hover,
.nova-topbar-close:focus {
  color: #fff;
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
}

@media (max-width: 768px) {
  .nova-topbar-inner {
    flex-wrap: wrap;
    padding: 10px 16px 12px;
  }

  .nova-topbar-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .nova-topbar-title,
  .nova-topbar-desc {
    white-space: normal;
  }

  .nova-topbar-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .nova-topbar-right {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }
}

/* header override — all nova theme pages */
html[theme-color="nova"] .nav-shadow {
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

html[theme-color="nova"] .nav-header {
  height: 88px;
}

html[theme-color="nova"] .nav-header .nav-left .nav-icon img {
  width: auto;
  height: 60px;
  max-width: 260px;
  margin-right: 48px;
  object-fit: contain;
}

html[theme-color="nova"] .nav-menu .nav-item {
  height: 88px;
  font-size: 18px;
  padding: 0 26px;
}

html[theme-color="nova"] .nav-header .nav-right .control {
  font-size: 16px;
}

html[theme-color="nova"] .nav-header .nav-item {
  color: var(--nova-text);
  font-weight: 500;
}

html[theme-color="nova"] .nav-header .btn-normal {
  background: var(--nova-primary);
  border-color: var(--nova-primary);
}

html[theme-color="nova"] .nav-header .btn-normal:hover {
  background: var(--nova-primary-hover);
  border-color: var(--nova-primary-hover);
}

html[theme-color="nova"] .nav-cont {
  top: 88px;
}

html[theme-color="nova"] .nav-header .login-in {
  height: 88px;
}

html[theme-color="nova"] .nav-header .login-in .login-menu {
  top: 88px;
}

/* hero carousel */
.nova-hero {
  position: relative;
  background: #f8f9fb;
  overflow: hidden;
}

.nova-hero-stage {
  position: relative;
  height: 520px;
  overflow: hidden;
}

.nova-hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  z-index: 0;
}

.nova-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.nova-hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.35) 60%, rgba(255,255,255,0.55) 100%);
  pointer-events: none;
  z-index: 1;
}

.nova-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px clamp(20px, 6vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.nova-hero-text {
  max-width: 760px;
  text-align: center;
  animation: novaHeroFadeIn 0.7s ease both;
}

.nova-hero-slide.is-active .nova-hero-text {
  animation: novaHeroFadeIn 0.7s ease both;
}

@keyframes novaHeroFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.nova-hero .section-content {
  max-width: none;
  padding: 0;
  margin: 0;
}

.nova-hero-eyebrow {
  display: inline-block;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.nova-hero h1 {
  color: #111827;
  font-size: 42px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 16px;
}

.nova-hero .hero-desc {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 28px;
}

.nova-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* arrows */
.nova-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  color: #1d4ed8;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nova-hero-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.nova-hero-prev { left: 24px; }
.nova-hero-next { right: 24px; }

/* dots */
.nova-hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.nova-hero-dots button {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  border: none;
  background: rgba(29, 78, 216, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, width 0.3s ease;
}

.nova-hero-dots button.is-active {
  background: #1d4ed8;
  width: 48px;
}

/* stats bar below carousel */
.nova-hero-stats-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: clamp(32px, 6vw, 80px);
  padding: 28px 20px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.nova-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nova-hero-stat strong {
  color: #111827;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.nova-hero-stat span {
  color: #6b7280;
  font-size: 13px;
  margin-top: 6px;
}

/* CSS 服务器机柜图形 */
.nova-server-rack {
  position: relative;
  z-index: 2;
  width: 240px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nova-server-unit {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  margin-bottom: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.nova-server-unit:last-child {
  margin-bottom: 0;
}

.nova-server-unit span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1d5db;
}

.nova-server-unit span:nth-child(1) {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.nova-server-unit span:nth-child(2) {
  background: #3b82f6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.5);
}

.nova-server-unit span:nth-child(3) {
  background: #e5e7eb;
}

.nova-server-unit i {
  margin-left: auto;
  width: 40px;
  height: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  border-radius: 2px;
}

.nova-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.nova-orb-1 {
  width: 200px;
  height: 200px;
  top: -40px;
  right: -60px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 70%);
}

.nova-orb-2 {
  width: 160px;
  height: 160px;
  bottom: -30px;
  left: -50px;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.15), transparent 70%);
}

.nova-orb-2 {
  width: 160px;
  height: 160px;
  bottom: -30px;
  left: -50px;
  background: radial-gradient(circle, rgba(26, 107, 181, 0.22), transparent 70%);
}

.nova-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.nova-btn-primary {
  background: var(--nova-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.28);
}

.nova-btn-primary:hover {
  background: var(--nova-primary-hover);
  color: #fff;
}

.nova-btn-outline {
  border: 1px solid #d1d5db;
  color: #374151;
  background: #fff;
}

.nova-btn-outline:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

/* section common */
.nova-section {
  padding: 72px 0;
}

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

.nova-section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--nova-text);
  margin-bottom: 12px;
}

.nova-section-title p {
  color: var(--nova-text-muted);
  font-size: 16px;
}

/* product cards */
.nova-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1100px) {
  .nova-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.nova-product-card {
  background: var(--nova-card);
  border: 1px solid var(--nova-border);
  border-radius: var(--nova-radius);
  padding: 28px 24px 24px;
  box-shadow: var(--nova-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nova-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.12);
}

.nova-region-flag {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

/* 首页地区卡片：国旗 + 标题 + 描述居中 */
.nova-product-card:has(.nova-region-flag) {
  text-align: center;
}

.nova-product-card:has(.nova-region-flag) h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.nova-product-card:has(.nova-region-flag) .card-desc {
  margin-left: auto;
  margin-right: auto;
  max-width: 260px;
  line-height: 1.6;
}

.nova-product-card:has(.nova-region-flag) .nova-spec-list {
  text-align: left;
}

.nova-product-card:has(.nova-region-flag) .nova-spec-list li {
  font-size: 13px;
  padding: 6px 0;
}

.nova-product-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.nova-product-card .card-desc {
  color: var(--nova-text-muted);
  font-size: 13px;
  margin-bottom: 20px;
  min-height: 40px;
}

.nova-spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.nova-spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--nova-border);
  font-size: 14px;
}

.nova-spec-list li span:first-child {
  color: var(--nova-text-muted);
}

.nova-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 10px;
  text-align: center;
  margin-bottom: 16px;
}

.nova-price .amount {
  font-size: 36px;
  font-weight: 700;
  color: var(--nova-primary);
  line-height: 1;
}

.nova-price .unit {
  font-size: 14px;
  color: var(--nova-text-muted);
}

.nova-price-original {
  font-size: 14px;
  color: var(--nova-text-muted);
  text-decoration: line-through;
  line-height: 1;
}

.nova-price-discount {
  font-size: 14px;
  font-weight: 600;
  color: #dc2626;
  line-height: 1;
}

.nova-price-note {
  flex: 0 0 100%;
  font-size: 12px;
  color: var(--nova-text-muted);
  line-height: 1.3;
}

/* features */
.nova-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.nova-feature-card {
  background: var(--nova-card);
  border-radius: var(--nova-radius);
  padding: 28px 22px;
  border: 1px solid var(--nova-border);
}

.nova-feature-card img {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

.nova-advantage-grid .nova-feature-card {
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nova-advantage-grid .nova-feature-card:hover {
  border-color: var(--nova-primary);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}

.nova-advantage-grid .nova-feature-card h4 {
  color: var(--nova-text);
  transition: color 0.2s ease;
}

.nova-advantage-grid .nova-feature-card:hover h4 {
  color: var(--nova-primary);
}

.nova-feature-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.nova-advantage-grid .nova-feature-card p {
  text-align: left;
}

.nova-feature-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.nova-feature-card p {
  color: var(--nova-text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.nova-feature-card a {
  color: var(--nova-primary);
  font-size: 14px;
  font-weight: 600;
}

/* homepage feature cards (same hover behavior as cloud advantages) */
.nova-feature-grid:not(.nova-advantage-grid) .nova-feature-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nova-feature-grid:not(.nova-advantage-grid) .nova-feature-card img {
  display: block;
  margin: 0 auto 16px;
}

.nova-feature-grid:not(.nova-advantage-grid) .nova-feature-card h4 {
  color: var(--nova-text);
  transition: color 0.2s ease;
}

.nova-feature-grid:not(.nova-advantage-grid) .nova-feature-card:hover {
  border-color: var(--nova-primary);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}

.nova-feature-grid:not(.nova-advantage-grid) .nova-feature-card:hover h4 {
  color: var(--nova-primary);
}

/* datacenter */
.nova-dc-section {
  background: #f6f8fb;
  padding-bottom: 36px;
}

.nova-section.nova-partners {
  padding-top: 28px;
  padding-bottom: 40px;
  background: #f6f8fb;
}

.nova-partners .nova-section-title {
  margin-bottom: 36px;
}

.nova-dc-map-wrap {
  position: relative;
  max-width: 1060px;
  margin: 0 auto 40px;
  padding: 12px;
  background: #f6f8fb;
  border-radius: var(--nova-radius);
}

.nova-dc-map {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.nova-map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0.35;
  transition: opacity 0.3s;
  pointer-events: none;
}

.nova-map-marker.is-active {
  opacity: 1;
  z-index: 3;
}

.nova-map-dot {
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--nova-primary-light);
  box-shadow: 0 0 8px rgba(26, 107, 181, 0.75);
  position: relative;
  z-index: 2;
}

.nova-map-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 2px solid var(--nova-primary);
  border-radius: 50%;
  opacity: 0.5;
  animation: nova-map-pulse 2s ease-out infinite;
}

.nova-map-pulse-delay {
  animation-delay: 1s;
}

.nova-map-marker.is-active .nova-map-dot {
  background: var(--nova-primary);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.9);
}

.nova-map-marker.is-active .nova-map-pulse {
  border-color: var(--nova-primary-light);
}

/* 全站 nova 主题：覆盖 default 橘色按钮/高亮 */
html[theme-color="nova"] .btn-normal,
html[theme-color="nova"] .btn2.btn-normal {
  background: var(--nova-primary) !important;
  border-color: var(--nova-primary) !important;
  color: #fff !important;
}

html[theme-color="nova"] .btn-normal:hover,
html[theme-color="nova"] .btn2.btn-normal:hover {
  background: var(--nova-primary-hover) !important;
  border-color: var(--nova-primary-hover) !important;
  color: #fff !important;
}

html[theme-color="nova"] .btn-normal-light:hover {
  border-color: var(--nova-primary) !important;
  color: var(--nova-primary) !important;
}

html[theme-color="nova"] .nav-menu .nav-item:hover {
  border-bottom-color: var(--nova-primary) !important;
}

html[theme-color="nova"] a.link-rule,
html[theme-color="nova"] .link-rule {
  color: var(--nova-primary);
}

html[theme-color="nova"] a.link-rule:hover,
html[theme-color="nova"] .link-rule:hover {
  color: var(--nova-primary-hover);
}

.nova-map-label {
  display: block;
  margin-top: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--nova-text);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.nova-map-marker.nova-map-label-left .nova-map-label {
  position: absolute;
  top: 50%;
  right: calc(100% + 6px);
  left: auto;
  margin: 0;
  transform: translateY(-50%);
}

.nova-map-marker.nova-map-label-right .nova-map-label {
  position: absolute;
  top: 50%;
  left: calc(100% + 6px);
  margin: 0;
  transform: translateY(-50%);
}

.nova-map-marker.nova-map-label-top .nova-map-label {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
}

@keyframes nova-map-pulse {
  0% {
    transform: scale(0.3);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.nova-region-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.nova-region-tabs button {
  border: 1px solid var(--nova-border);
  background: #fff;
  padding: 8px 22px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--nova-text-muted);
}

.nova-region-tabs button.active {
  background: var(--nova-primary);
  border-color: var(--nova-primary);
  color: #fff;
}

.nova-dc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.nova-dc-card {
  border: 1px solid var(--nova-border);
  border-radius: 10px;
  padding: 18px;
  background: var(--nova-bg);
}

.nova-dc-card h5 {
  font-size: 15px;
  margin-bottom: 8px;
}

.nova-dc-card p {
  font-size: 12px;
  color: var(--nova-text-muted);
  line-height: 1.6;
  margin: 4px 0;
}

.nova-dc-panel {
  display: none;
}

.nova-dc-panel.active {
  display: block;
}

/* partners marquee */
.nova-partners .hz-img-box {
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.nova-partners .hz-img-track {
  display: flex;
  width: max-content;
  animation: nova-partner-scroll 36s linear infinite;
}

.nova-partners .hz-img-box:hover .hz-img-track {
  animation-play-state: paused;
}

.nova-partners .hz-img-track ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nova-partners .hz-img-track li {
  flex: 0 0 auto;
  padding: 0 28px;
}

.nova-partners .hz-img-track a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 64px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--nova-border);
  border-radius: var(--nova-radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nova-partners .hz-img-track a:hover {
  border-color: var(--nova-primary);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}

.nova-partners .hz-img-track img {
  display: block;
  max-width: 140px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.9;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.nova-partners .hz-img-track a:hover img {
  filter: none;
  opacity: 1;
}

@keyframes nova-partner-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.nova-cta-section {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: #fff;
}

.nova-cta-section .nova-cta-inner {
  text-align: center;
  padding: 80px 20px;
  max-width: 1440px;
  margin: 0 auto;
}

.nova-cta-section h3 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #fff;
}

.nova-cta-section p {
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.92;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.92);
}

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

/* legacy alias */
.nova-cta {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  width: 100%;
  box-sizing: border-box;
}

.nova-cta h3 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.nova-cta p {
  opacity: 0.92;
  font-size: 18px;
  margin-bottom: 32px;
}

/* footer nova */
.nova-footer {
  background: #0a1628;
  color: rgba(255, 255, 255, 0.75);
  padding-top: 0;
  overflow: hidden;
}

.nova-footer .section-content {
  padding-left: 20px;
  padding-right: 20px;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
}

.nova-footer a {
  color: rgba(255, 255, 255, 0.75);
  word-break: break-word;
}

.nova-footer a:hover {
  color: #fff;
}

.nova-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
  padding: 48px 0 40px;
  align-items: start;
}

.nova-footer-grid > div {
  min-width: 0;
}

.nova-footer-grid > div:first-child p {
  font-size: 14px;
  line-height: 1.8;
  margin-top: 12px;
  word-break: break-word;
}

.nova-footer h5 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}

.nova-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nova-footer li {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.nova-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0 24px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

.nova-footer-bottom .footer-icp-sep {
  margin-left: 12px;
}

@media (max-width: 1100px) {
  .nova-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .nova-footer-grid > div:first-child {
    grid-column: 1 / -1;
    max-width: 520px;
  }
}

@media (max-width: 768px) {
  .nova-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
    padding: 36px 0 28px;
  }

  .nova-footer-grid > div:first-child {
    grid-column: 1 / -1;
    max-width: none;
  }

  .nova-footer h5 {
    margin-bottom: 12px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .nova-footer .section-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nova-footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 28px 0 20px;
  }

  .nova-footer-grid > div {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nova-footer-grid > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .nova-footer-grid > div:first-child {
    padding-top: 0;
  }

  .nova-footer-bottom {
    font-size: 12px;
    padding: 14px 0 20px;
  }

  .nova-footer-bottom .footer-icp-sep {
    display: block;
    margin-left: 0;
    margin-top: 6px;
  }
}

/* =========================
   Nova inner pages (product)
   cloud.html / dedicated.html first
========================= */
body.nova-product-page {
  background: var(--nova-bg);
  color: var(--nova-text);
}

body.nova-product-page .section.banner,
body.nova-product-page .server-banner.product-banner {
  display: none;
}

body.nova-product-page .nova-product-hero {
  position: relative;
  background: #f8f9fb center/cover no-repeat;
  color: #111827;
  min-height: 420px;
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

body.nova-product-page .nova-product-hero--cloud {
  background-image: url('/web/nova/assets/img/index/cloud-banner.jpg');
}

body.nova-product-page .nova-product-hero--dedicated {
  background-image: url('/web/nova/assets/img/index/dedicated-banner.jpg');
}

body.nova-product-page .nova-product-hero[style*="background-image"] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.nova-product-page .nova-product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.45) 45%, rgba(255,255,255,0.15) 100%);
  pointer-events: none;
  z-index: 1;
}

body.nova-product-page .nova-product-hero::after {
  display: none;
}

body.nova-product-page .nova-product-hero .section-content {
  position: relative;
  z-index: 2;
  padding: 64px clamp(40px, 8vw, 140px);
  max-width: 640px;
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

body.nova-product-page .nova-product-hero h1 {
  font-size: 40px;
  margin: 0 0 14px;
  font-weight: 700;
  color: #111827;
}

body.nova-product-page .nova-product-hero p {
  max-width: 760px;
  line-height: 1.8;
  color: #4b5563;
  margin: 0 0 26px;
}

body.nova-product-page .nova-product-hero .nova-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

body.nova-product-page .nova-product-hero .nova-btn-primary {
  background: var(--nova-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.28);
}

body.nova-product-page .nova-product-hero .nova-btn-primary:hover {
  background: var(--nova-primary-hover);
  color: #fff;
}

body.nova-product-page .server-banner.product-banner {
  min-height: 320px;
  height: auto;
  padding: 64px 0;
  background: #f8f9fb;
}

body.nova-product-page .server-banner .section-content {
  position: relative;
}

body.nova-product-page .server-banner .section-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 50%, rgba(59, 130, 246, 0.06), transparent 50%);
  pointer-events: none;
}

body.nova-product-page .server-banner h1,
body.nova-product-page .server-banner .server-banner-desc {
  position: relative;
  z-index: 2;
  color: #111827;
}

body.nova-product-page .server-banner h1 {
  font-size: 36px;
  font-weight: 700;
}

body.nova-product-page .server-banner .server-banner-desc {
  max-width: 760px;
  line-height: 1.8;
  color: #4b5563;
}

body.nova-product-page .product-hot,
body.nova-product-page .product-cloud,
body.nova-product-page .product-efficient {
  background: var(--nova-bg);
}

body.nova-product-page .section-title h2 {
  color: var(--nova-text);
  font-size: 32px;
  font-weight: 700;
}

body.nova-product-page .section-title .section-desc {
  color: var(--nova-text-muted);
}

/* 产品卡片 */
body.nova-product-page .product-item,
body.nova-product-page .cloud-box {
  position: relative;
  border: 1px solid var(--nova-border);
  border-radius: var(--nova-radius);
  box-shadow: var(--nova-shadow);
  background: #fff;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

body.nova-product-page .product-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.12);
}

body.nova-product-page .product-item:hover h4 {
  color: var(--nova-primary) !important;
}

body.nova-product-page .product-item-top {
  background: linear-gradient(180deg, rgba(12,74,140,.06), rgba(12,74,140,.01));
  border-bottom: 1px solid var(--nova-border);
  border-radius: var(--nova-radius) var(--nova-radius) 0 0;
}

body.nova-product-page .product-item-top h4 {
  font-size: 22px;
  color: var(--nova-text);
}

/* 角标 */
body.nova-product-page .product-active-text {
  background: rgba(59, 130, 246, 0.1);
  color: var(--nova-primary);
  border-radius: 40px 0 0 40px;
}

/* 地区选择标签 */
body.nova-product-page .product-country {
  background: #fff;
  border: 1px solid var(--nova-border);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.06);
  height: 56px;
}

body.nova-product-page .product-country .country-item {
  color: var(--nova-text-muted);
  font-size: 15px;
  border-radius: 8px;
  transition: 0.2s;
}

body.nova-product-page .product-country .country-item:hover {
  color: var(--nova-primary);
}

body.nova-product-page .product-country .country-item.active {
  background: rgba(59, 130, 246, 0.08);
  color: var(--nova-primary);
  font-weight: 600;
}

/* 时长选择按钮 */
body.nova-product-page .config-time > span {
  border: 1px solid var(--nova-border) !important;
  border-radius: 6px !important;
  color: var(--nova-text-muted) !important;
}

body.nova-product-page .config-time > span.active {
  background: rgba(59, 130, 246, 0.08) !important;
  border: 1px solid var(--nova-primary) !important;
  color: var(--nova-primary) !important;
}

body.nova-product-page .config-time > span:hover {
  border: 1px solid var(--nova-primary) !important;
  color: var(--nova-primary) !important;
}

/* 产品标签 */
body.nova-product-page .product-text-item {
  background: rgba(59, 130, 246, 0.05) !important;
  border: 1px solid rgba(59, 130, 246, 0.1) !important;
  border-radius: 6px !important;
  color: var(--nova-primary) !important;
}

/* 价格 */
body.nova-product-page .product-price-box .price {
  color: var(--nova-primary) !important;
}

body.nova-product-page .product-price-box .price .font24 {
  font-size: 28px;
  font-weight: 700;
}

/* 购买按钮 */
body.nova-product-page .product-btn {
  border-radius: 8px !important;
  background: var(--nova-primary) !important;
  color: #fff !important;
  font-weight: 600;
  transition: 0.2s;
}

body.nova-product-page .product-btn:hover {
  background: var(--nova-primary-dark) !important;
}

body.nova-product-page .shop-car-btn {
  border: 1px solid var(--nova-primary) !important;
  border-radius: 8px !important;
}

/* 产品优势卡片 */
body.nova-product-page .cloud-box {
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

body.nova-product-page .cloud-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.12);
}

body.nova-product-page .cloud-box h4 {
  color: var(--nova-text);
  font-size: 18px;
}

body.nova-product-page .cloud-box .cloud-box-cont > div {
  color: var(--nova-text-muted);
  line-height: 1.7;
}

/* 活动卡片 */
body.nova-product-page .product-event .event-item {
  border-top: 4px solid var(--nova-primary);
  border-radius: var(--nova-radius);
  box-shadow: var(--nova-shadow);
}

body.nova-product-page .product-event .event-item:hover .event-name {
  color: var(--nova-primary) !important;
}

body.nova-product-page .product-event .event-btn {
  background: var(--nova-primary) !important;
  border-radius: 8px !important;
  font-weight: 600;
}

body.nova-product-page .product-event .event-btn:hover {
  background: var(--nova-primary-dark) !important;
}

/* 更多链接 */
body.nova-product-page .more-pro .link-rule,
body.nova-product-page .product-des .link-rule {
  color: var(--nova-primary);
}

body.nova-product-page .more-pro .link-rule:hover,
body.nova-product-page .product-des .link-rule:hover {
  color: var(--nova-primary-dark);
}

/* swiper 标签栏 */
body.nova-product-page .gallery-thumbs .title.active,
body.nova-product-page .gallery-thumbs .title.swiper-slide-thumb-active {
  color: var(--nova-primary) !important;
  border-bottom: 2px solid var(--nova-primary) !important;
}

body.nova-product-page .gallery-thumbs .title:hover {
  color: var(--nova-primary);
  border-bottom: 2px solid var(--nova-primary);
}

@media (max-width: 768px) {
  body.nova-product-page .nova-product-hero {
    min-height: 360px;
  }

  body.nova-product-page .nova-product-hero .section-content {
    padding: 48px 32px;
    max-width: 100%;
    text-align: left;
  }

  body.nova-product-page .nova-product-hero h1 {
    font-size: 30px;
  }

  body.nova-product-page .server-banner.product-banner {
    min-height: 220px;
    padding: 40px 0;
  }

  body.nova-product-page .server-banner h1 {
    font-size: 28px;
  }

  body.nova-product-page .section-title h2 {
    font-size: 26px;
  }
}

/* float tools */
#index .aside-tools .tools-item img {
  filter: none;
}

/* hide default index sections we replaced */
#index .section.banner,
#index .register-advert,
#index .section-promise {
  display: none !important;
}

@media (max-width: 992px) {
  .nova-hero-stage { height: 460px; }
  .nova-hero-inner { padding: 24px 32px; }
  .nova-hero h1 { font-size: 30px; }
  .nova-hero .hero-desc { font-size: 15px; }
  .nova-hero-arrow { display: none; }
  .nova-hero-stats-bar { gap: 24px; padding: 20px 16px; }
  .nova-hero-stat strong { font-size: 22px; }
  html[theme-color="nova"] .nav-header {
    height: 72px;
  }
  html[theme-color="nova"] .nav-menu .nav-item {
    height: 72px;
    font-size: 16px;
    padding: 0 16px;
  }
  html[theme-color="nova"] .nav-cont,
  html[theme-color="nova"] .nav-header .login-in .login-menu {
    top: 72px;
  }
  .nova-product-grid,
  .nova-feature-grid { grid-template-columns: 1fr; }
  .nova-dc-grid { grid-template-columns: repeat(2, 1fr); }
  .nova-dc-map-wrap {
    margin-bottom: 28px;
    padding: 8px;
  }
  .nova-map-label {
    font-size: 10px;
    padding: 1px 5px;
  }
}

@media (max-width: 576px) {
  .nova-hero-stage { height: 380px; }
  .nova-hero-inner { padding: 16px 20px; }
  .nova-hero-eyebrow { font-size: 11px; padding: 4px 12px; margin-bottom: 12px; }
  .nova-hero h1 { font-size: 24px; }
  .nova-hero .hero-desc { font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
  .nova-hero-actions .nova-btn { padding: 10px 20px; font-size: 14px; }
  .nova-hero-dots { bottom: 14px; }
  .nova-hero-dots button { width: 20px; }
  .nova-hero-dots button.is-active { width: 36px; }
  .nova-hero-stats-bar {
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 12px;
  }
  .nova-hero-stat strong { font-size: 20px; }
  .nova-cta-section h3,
  .nova-cta h3 { font-size: 26px; }
  .nova-cta-section p,
  .nova-cta p { font-size: 16px; }
  .nova-cta-section .nova-cta-inner {
    padding: 56px 20px;
  }
  .nova-dc-grid { grid-template-columns: 1fr; }
}

/* ── Mobile navigation (all nova pages) ── */
.nova-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nova-nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--nova-text, #333);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nova-mobile-only {
  display: none;
}

html[theme-color="nova"] .nav-shadow.nav-open .nova-nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

html[theme-color="nova"] .nav-shadow.nav-open .nova-nav-toggle span:nth-child(2) {
  opacity: 0;
}

html[theme-color="nova"] .nav-shadow.nav-open .nova-nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  html[theme-color="nova"] .nav-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    height: auto !important;
    min-height: 56px;
    padding: 8px 12px !important;
  }

  html[theme-color="nova"] .nav-header .nav-left {
    display: contents;
  }

  html[theme-color="nova"] .nav-icon {
    grid-column: 1;
    grid-row: 1;
  }

  html[theme-color="nova"] .nav-header .nav-left .nav-icon img {
    width: auto !important;
    height: 44px !important;
    max-width: 180px !important;
    margin-right: 0 !important;
    object-fit: contain;
  }

  html[theme-color="nova"] .nav-menu {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--nova-border, #e3eaf3);
    padding: 4px 0 8px;
  }

  html[theme-color="nova"] .nav-shadow.nav-open .nav-menu {
    display: flex;
  }

  html[theme-color="nova"] .nav-menu a {
    display: block;
    width: 100%;
  }

  html[theme-color="nova"] .nav-menu .nav-item {
    height: 48px;
    width: 100%;
    padding: 0 16px;
    font-size: 15px;
    white-space: nowrap;
    border-bottom: none;
    box-sizing: border-box;
  }

  html[theme-color="nova"] .nav-menu .nav-item:hover {
    background: #f4f7fb;
    border-bottom: none;
  }

  html[theme-color="nova"] .nova-mobile-only {
    display: block;
    border-top: 1px solid var(--nova-border, #e3eaf3);
    margin-top: 4px;
    padding-top: 4px;
  }

  html[theme-color="nova"] .nav-right {
    grid-column: 2;
    grid-row: 1;
  }

  html[theme-color="nova"] .nav-right .control {
    display: none;
  }

  html[theme-color="nova"] .nav-right .no-login .btn-normal-light,
  html[theme-color="nova"] .nav-right .no-login .btn-normal {
    padding: 6px 12px;
    font-size: 13px;
  }

  html[theme-color="nova"] .nav-right .no-login .mr-10 {
    margin-right: 6px !important;
  }

  html[theme-color="nova"] .nova-nav-toggle {
    display: flex;
    grid-column: 3;
    grid-row: 1;
  }

  html[theme-color="nova"] .nav-cont {
    display: none !important;
  }

  html[theme-color="nova"] .nav-header .login-in {
    height: auto !important;
    padding: 0 8px !important;
  }

  #index .nova-hero-inner {
    padding: 24px 20px;
    justify-content: center;
  }

  #index .nova-hero-text {
    max-width: 100%;
    text-align: center;
  }

  #index .nova-hero-actions {
    justify-content: center;
  }
}

/* =========================
   Product list page (nova)
   ========================= */
.nova-product-list-section {
  background: var(--nova-bg);
}

.nova-product-tabs {
  margin-bottom: 40px;
}

.nova-product-tabs .nova-tab-flag-btn,
.nova-region-tabs .nova-tab-flag-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 8px 10px;
}

.nova-tab-flag {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
}

.nova-product-tabs button.active .nova-tab-flag,
.nova-region-tabs button.active .nova-tab-flag {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
}

.nova-product-panel {
  display: none;
}

.nova-product-panel.active {
  display: grid;
}

.nova-index-product-section .nova-index-product-tabs {
  margin-bottom: 32px;
}

.nova-index-product-section .nova-index-product-tabs button {
  font-size: 14px;
}

.nova-index-filter {
  margin-bottom: 8px;
}

.nova-index-product-section .nova-index-cat-tabs,
.nova-index-product-section .nova-index-prod-tabs {
  justify-content: center;
}

.nova-index-product-section .nova-index-cat-tabs {
  margin-bottom: 16px;
}

.nova-index-product-section .nova-index-cat-tabs .nova-tab-flag-btn {
  padding: 8px 22px;
}

.nova-index-product-section .nova-index-prod-tabs {
  margin-bottom: 32px;
}

.nova-index-second-wrap {
  display: none;
}

.nova-index-second-wrap.active {
  display: block;
}

.nova-index-second-wrap .nova-index-product-panel {
  display: none;
}

.nova-index-second-wrap .nova-index-product-panel.active {
  display: grid;
}

.nova-cloud-card {
  position: relative;
  text-align: left;
  overflow: hidden;
}

.nova-card-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: var(--nova-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.nova-cloud-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.nova-card-btn {
  width: 100%;
  margin-top: 4px;
}

.nova-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.nova-product-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 1.2;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.nova-product-tag-0 {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
}

.nova-product-tag-1 {
  color: #059669;
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.18);
}

.nova-product-tag-2 {
  color: #d97706;
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.18);
}

.nova-card-ribbon {
  position: absolute;
  top: 12px;
  right: -28px;
  z-index: 2;
  width: 100px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 22px;
  color: #fff;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.nova-card-ribbon-new {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.nova-card-ribbon-hot {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
