/* Rola IP - 现代代理 SaaS 风格扩展样式 */

:root {
  --xt-primary: #28ABE3;
  --xt-primary-dark: #1a8fbe;
  --xt-navy: #0b1d33;
  --xt-navy-light: #122a47;
  --xt-gradient: linear-gradient(135deg, #0b1d33 0%, #1a3a5c 50%, #0e2847 100%);
  --xt-card-shadow: 0 8px 32px rgba(11, 29, 51, 0.12);
  --xt-radius: 16px;
}

/* ===== 现代导航 ===== */
.navigation.fixed-top {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}
.navigation .navbar-brand .brand-text {
  font-family: "Catamaran", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--xt-navy);
}
/* 导航菜单居中：Logo 居左，菜单项在剩余空间水平居中 */
@media (min-width: 992px) {
  .navigation .xt-navbar {
    position: relative;
  }
  .navigation .xt-nav-collapse {
    flex-grow: 1;
    justify-content: center;
  }
  .navigation .xt-nav-menu {
    align-items: center;
    gap: 4px;
  }
}
.navigation .xt-nav-menu .nav-link {
  font-weight: 500;
  color: #333 !important;
  position: relative;
  padding: 10px 16px !important;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
/* 悬停反馈 */
.navigation .xt-nav-menu .nav-link:hover {
  color: var(--xt-primary) !important;
  background: rgba(40, 171, 227, 0.08);
}
/* 点击瞬间反馈 */
.navigation .xt-nav-menu .nav-link:active {
  transform: scale(0.97);
  background: rgba(40, 171, 227, 0.16);
}
/* 键盘聚焦可见态 */
.navigation .xt-nav-menu .nav-link:focus-visible {
  outline: 2px solid var(--xt-primary);
  outline-offset: 2px;
}
/* 当前页高亮：底色 + 底部指示条 */
.navigation .xt-nav-menu .nav-item.active > .nav-link {
  color: var(--xt-primary) !important;
  background: rgba(40, 171, 227, 0.12);
  font-weight: 600;
}
.navigation .xt-nav-menu .nav-item.active > .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--xt-primary);
}
.navigation .btn-nav-cta {
  background: var(--xt-primary);
  color: #fff !important;
  border-radius: 40px;
  padding: 8px 22px !important;
  margin-left: 8px;
}
.navigation .btn-nav-cta:hover {
  background: var(--xt-primary-dark);
  color: #fff !important;
}
.navigation .btn-nav-cta:active {
  transform: scale(0.97);
  background: var(--xt-primary-dark);
}
/* 移动端菜单项居中堆叠 */
@media (max-width: 991px) {
  .navigation .xt-nav-collapse {
    text-align: center;
  }
  .navigation .xt-nav-menu {
    width: 100%;
    align-items: center;
    padding: 8px 0 16px;
  }
  .navigation .xt-nav-menu .nav-item {
    width: 100%;
    max-width: 280px;
  }
  .navigation .xt-nav-menu .nav-link {
    display: block;
    width: 100%;
  }
  .navigation .btn-nav-cta {
    margin-left: 0;
    margin-top: 4px;
  }
}

/* ===== Hero 分栏布局 ===== */
.xt-hero {
  background: var(--xt-gradient);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
/* 背景浮动光点动画 */
.xt-hero::before,
.xt-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: xt-float 8s ease-in-out infinite;
}
.xt-hero::before {
  width: 400px;
  height: 400px;
  background: var(--xt-primary);
  top: -100px;
  right: -100px;
}
.xt-hero::after {
  width: 300px;
  height: 300px;
  background: #5bc0f0;
  bottom: -80px;
  left: -80px;
  animation-delay: -4s;
}
@keyframes xt-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
.xt-hero .container { position: relative; z-index: 2; }
.xt-hero h1 {
  color: #fff;
  font-size: 2.8rem;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.xt-hero h1 .highlight {
  color: var(--xt-primary);
  background: linear-gradient(90deg, #28ABE3, #5bc0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.xt-hero .lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.xt-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2rem;
}
.xt-hero-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
}
.xt-hero-actions .btn-main {
  margin-right: 12px;
  margin-bottom: 8px;
}
.xt-hero-actions .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  border-radius: 40px;
  padding: 10px 32px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: transparent;
  transition: all 0.3s;
}
.xt-hero-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.xt-hero-img-wrap {
  position: relative;
  animation: xt-hero-img-float 6s ease-in-out infinite;
}
@keyframes xt-hero-img-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.xt-hero-img-wrap img {
  border-radius: var(--xt-radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  width: 100%;
}
/* Hero 图片光晕 */
.xt-hero-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(40, 171, 227, 0.3) 0%, transparent 70%);
  border-radius: var(--xt-radius);
  z-index: -1;
  animation: xt-pulse-glow 3s ease-in-out infinite;
}
@keyframes xt-pulse-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ===== 数据统计条 ===== */
.xt-stats-bar {
  background: #fff;
  padding: 0;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}
.xt-stats-inner {
  background: #fff;
  border-radius: var(--xt-radius);
  box-shadow: var(--xt-card-shadow);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 32px 24px;
}
.xt-stat-item {
  text-align: center;
  padding: 12px 20px;
  flex: 1;
  min-width: 140px;
}
.xt-stat-item .num {
  font-family: "Catamaran", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--xt-primary);
  line-height: 1;
}
.xt-stat-item .num span { font-size: 1.2rem; }
.xt-stat-item .label {
  color: #666;
  font-size: 0.9rem;
  margin-top: 6px;
}

/* ===== 产品卡片 ===== */
.xt-products {
  padding: 100px 0;
  background: #f8fafc;
}
.xt-product-card {
  background: #fff;
  border-radius: var(--xt-radius);
  padding: 36px 28px;
  box-shadow: var(--xt-card-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  height: 100%;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.xt-product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--xt-primary), #5bc0f0);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.xt-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(40, 171, 227, 0.18);
  border-color: rgba(40, 171, 227, 0.2);
}
.xt-product-card:hover::before { transform: scaleX(1); }
.xt-product-card .icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(40, 171, 227, 0.15), rgba(40, 171, 227, 0.05));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: var(--xt-primary);
}
.xt-product-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--xt-navy);
}
.xt-product-card p { font-size: 0.95rem; margin-bottom: 16px; }
.xt-product-card .tag {
  display: inline-block;
  background: rgba(40, 171, 227, 0.1);
  color: var(--xt-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* ===== 交替特性区块（SOAX 风格） ===== */
.xt-feature-alt {
  padding: 80px 0;
}
.xt-feature-alt:nth-child(even) { background: #f8fafc; }
.xt-feature-alt img {
  border-radius: var(--xt-radius);
  box-shadow: var(--xt-card-shadow);
  width: 100%;
}
.xt-feature-alt h2 {
  color: var(--xt-navy);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.xt-feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.xt-feature-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  color: #555;
  font-size: 1rem;
}
.xt-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--xt-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ===== 价格方案 ===== */
.xt-pricing {
  padding: 100px 0;
  background: var(--xt-gradient);
  position: relative;
}
.xt-pricing .title h2,
.xt-pricing .title p { color: #fff; }
.xt-pricing-card {
  background: #fff;
  border-radius: var(--xt-radius);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: transform 0.3s;
  height: 100%;
}
.xt-pricing-card:hover { transform: translateY(-6px); }
.xt-pricing-card.popular {
  border: 2px solid var(--xt-primary);
  transform: scale(1.04);
}
.xt-pricing-card.popular:hover { transform: scale(1.04) translateY(-6px); }
.xt-pricing-card .popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--xt-primary);
  color: #fff;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.xt-pricing-card h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 8px;
}
.xt-pricing-card .price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--xt-primary);
  line-height: 1;
}
.xt-pricing-card .price-unit {
  font-size: 1rem;
  color: #888;
  font-weight: 400;
}
.xt-pricing-card .price-desc {
  color: #666;
  font-size: 0.9rem;
  margin: 12px 0 24px;
}
.xt-pricing-card ul {
  text-align: left;
  margin-bottom: 28px;
}
.xt-pricing-card ul li {
  padding: 8px 0;
  color: #555;
  font-size: 0.95rem;
  border-bottom: 1px solid #f0f0f0;
}
.xt-pricing-card ul li i {
  color: var(--xt-primary);
  margin-right: 8px;
}

/* ===== 地区标签 ===== */
.xt-locations {
  padding: 80px 0;
  background: #fff;
}
.xt-location-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 2rem;
}
.xt-location-chip {
  background: #f0f7fc;
  border: 1px solid rgba(40, 171, 227, 0.25);
  color: var(--xt-navy);
  padding: 10px 24px;
  border-radius: 40px;
  font-size: 0.95rem;
  transition: all 0.3s;
  cursor: default;
}
.xt-location-chip:hover {
  background: var(--xt-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== 代码集成区块 ===== */
.xt-code-section {
  padding: 80px 0;
  background: var(--xt-navy);
}
.xt-code-section h2 { color: #fff; }
.xt-code-section p { color: rgba(255, 255, 255, 0.75); }
.xt-code-block {
  background: #0a1628;
  border-radius: 12px;
  padding: 24px;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: #a8d8ea;
  overflow-x: auto;
  border: 1px solid rgba(40, 171, 227, 0.2);
  position: relative;
}
.xt-code-block .comment { color: #5a7a8a; }
.xt-code-block .keyword { color: #ff79c6; }
.xt-code-block .string { color: #50fa7b; }
.xt-code-block .func { color: #8be9fd; }

/* ===== 应用场景网格 ===== */
.xt-usecases {
  padding: 80px 0;
  background: #f8fafc;
}
.xt-usecase-item {
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s;
  height: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.xt-usecase-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--xt-card-shadow);
}
.xt-usecase-item i {
  font-size: 2rem;
  color: var(--xt-primary);
  margin-bottom: 14px;
  display: block;
}
.xt-usecase-item h4 {
  font-size: 1rem;
  color: var(--xt-navy);
  margin-bottom: 8px;
}
.xt-usecase-item p { font-size: 0.85rem; margin: 0; }

/* ===== FAQ 手风琴 ===== */
.xt-faq { padding: 80px 0; }
.xt-faq-item {
  border: 1px solid #e8edf2;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.xt-faq-item.active {
  box-shadow: var(--xt-card-shadow);
  border-color: rgba(40, 171, 227, 0.3);
}
.xt-faq-q {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--xt-navy);
  background: #fff;
  transition: background 0.3s;
  margin: 0;
  font-size: 1rem;
}
.xt-faq-q:hover { background: #f8fafc; }
.xt-faq-q .arrow {
  transition: transform 0.3s;
  color: var(--xt-primary);
  font-size: 1.2rem;
}
.xt-faq-item.active .xt-faq-q .arrow { transform: rotate(180deg); }
.xt-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
  color: #666;
  line-height: 1.7;
}
.xt-faq-item.active .xt-faq-a {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ===== 滚动入场动画 ===== */
.xt-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.xt-reveal.xt-visible {
  opacity: 1;
  transform: translateY(0);
}
.xt-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.xt-reveal-left.xt-visible { opacity: 1; transform: translateX(0); }
.xt-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.xt-reveal-right.xt-visible { opacity: 1; transform: translateX(0); }

/* ===== 客户评价（现代卡片） ===== */
.xt-testimonials {
  padding: 80px 0;
  background: #fff;
}
.xt-testimonial-card {
  background: #f8fafc;
  border-radius: var(--xt-radius);
  padding: 32px;
  height: 100%;
  position: relative;
}
.xt-testimonial-card .stars {
  color: #f5a623;
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.xt-testimonial-card .quote {
  color: #444;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.xt-testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.xt-testimonial-card .author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.xt-testimonial-card .author h5 {
  margin: 0;
  font-size: 1rem;
  color: var(--xt-navy);
}
.xt-testimonial-card .author span {
  font-size: 0.85rem;
  color: #888;
}

/* ===== CTA 横幅 ===== */
.xt-cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--xt-primary) 0%, #1a8fbe 100%);
  text-align: center;
}
.xt-cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.xt-cta-banner p { color: rgba(255, 255, 255, 0.9); margin-bottom: 2rem; font-size: 1.1rem; }
.xt-cta-banner .btn-main {
  background: #fff;
  color: var(--xt-primary);
  border-color: #fff;
}
.xt-cta-banner .btn-main:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--xt-primary-dark);
}

/* ===== 信任标识 ===== */
.xt-trust-bar {
  padding: 40px 0;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.xt-trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
}
.xt-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 0.9rem;
}
.xt-trust-item i { color: var(--xt-primary); font-size: 1.3rem; }

/* ===== 响应式 ===== */
@media (max-width: 991px) {
  .xt-hero { padding: 100px 0 60px; min-height: auto; }
  .xt-hero h1 { font-size: 2rem; }
  .xt-hero-img-wrap { margin-top: 40px; }
  .xt-pricing-card.popular { transform: none; }
  .xt-stats-inner { margin: 0 16px; }
}
