/* ============================================================
   各页面区块样式
   ============================================================ */

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__glow-1,
.hero__glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.hero__glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79,142,247,0.15) 0%, transparent 70%);
  top: -150px;
  right: -100px;
}

.hero__glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,212,255,0.1) 0%, transparent 70%);
  bottom: 0;
  left: -80px;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.hero__title-gradient {
  display: block;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--color-text-sub);
  line-height: 1.8;
  margin-bottom: var(--space-10);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========== STATS 统计带 ========== */
.stats {
  padding-block: var(--space-16);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-2);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.stats__item {
  text-align: center;
}

.stats__number {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stats__label {
  font-size: var(--text-sm);
  color: var(--color-text-sub);
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
}

/* ========== 产品卡片 ========== */
.product-card {
  padding: var(--space-8);
  cursor: pointer;
}

.product-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: var(--space-6);
  flex-shrink: 0;
}

.product-card__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.product-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.product-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-sub);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.product-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.product-card__feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-sub);
}

.product-card__feature::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  transition: var(--transition-fast);
}

.product-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.product-card:hover .product-card__link svg {
  transform: translateX(4px);
}

/* 产品颜色主题 */
.product-card--pos  .product-card__icon { background: rgba(79,142,247,0.15); }
.product-card--tour .product-card__icon { background: rgba(56,239,125,0.12); }
.product-card--hotel .product-card__icon { background: rgba(247,183,49,0.12); }
.product-card--pos  .product-card__tag  { background: rgba(79,142,247,0.12); color: var(--color-primary); }
.product-card--tour .product-card__tag  { background: rgba(56,239,125,0.12); color: var(--color-success); }
.product-card--hotel .product-card__tag { background: rgba(247,183,49,0.12); color: var(--color-warning); }

/* ========== 服务卡片 ========== */
.service-card {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.service-card__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

.service-card__icon {
  font-size: 2rem;
}

.service-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-sub);
  line-height: 1.8;
  flex: 1;
}

/* ========== WHY US ========== */
.why-card {
  padding: var(--space-8);
  text-align: center;
}

.why-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(79,142,247,0.15), rgba(0,212,255,0.1));
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto var(--space-6);
  transition: var(--transition-base);
}

.why-card:hover .why-card__icon {
  box-shadow: var(--glow-primary);
  border-color: var(--color-primary);
}

.why-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.why-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-sub);
  line-height: 1.8;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  padding-block: var(--space-24);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(79,142,247,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-banner__title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.cta-banner__sub {
  font-size: var(--text-lg);
  color: var(--color-text-sub);
  margin-bottom: var(--space-10);
}

.cta-banner__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--color-bg-2);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-16) var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--color-text-sub);
  line-height: 1.8;
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
}

.footer__col-title {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-sub);
  transition: var(--transition-fast);
}

.footer__link:hover { color: var(--color-primary); }

.footer__qr {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.footer__qr img { width: 100%; height: 100%; object-fit: cover; }

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__icp a {
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.footer__icp a:hover { color: var(--color-primary); }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
