/* =============== 品牌色变量 =============== */
:root {
  --brand-green: #4db894;
  --brand-blue:  #2b8cef;
  --brand-gradient: linear-gradient(135deg, #4db894, #2b8cef);
  --brand-gradient-soft: linear-gradient(135deg, rgba(77,184,148,0.15), rgba(43,140,239,0.15));

  --brand-green-rgb: 77, 184, 148;
  --brand-blue-rgb:  43, 140, 239;

  --text-primary:   #1a3028;
  --text-secondary: #4a5c55;
  --text-muted:     #889b93;
  --text-inverse:   #ffffff;

  --bg-hero:     #f4f9fb;
  --bg-install:  #eaf3f8;
  --bg-dark:     #0d1d24;
  --bg-darker:   #08131a;

  --border-light: rgba(0,0,0,0.08);
  --border-dark:  rgba(255,255,255,0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html { overflow-x: hidden; }

body { overflow: hidden; width: 100vw; overflow-x: hidden; }

#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
#nav.dark {
  background: rgba(13,29,36,0.88);
  border-bottom-color: var(--border-dark);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: normal; color: var(--text-primary); text-decoration: none; font-family: "Useb Title Black", system-ui, sans-serif; font-size: 24px; letter-spacing: 1px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; background: var(--brand-gradient); padding: 4px; }
#nav.dark .brand { color: var(--text-inverse); }

.links { display: flex; gap: 4px; }
.links a {
  padding: 8px 18px; border-radius: 20px;
  font-size: 14px; color: var(--text-secondary); text-decoration: none;
  transition: all 0.25s;
}
#nav.dark .links a { color: rgba(255,255,255,0.75); }
.links a.active {
  background: var(--brand-gradient); color: var(--text-inverse);
}

.cta {
  padding: 9px 22px; border-radius: 20px;
  background: var(--brand-gradient);
  color: var(--text-inverse); font-size: 14px; font-weight: 600; text-decoration: none;
  box-shadow: 0 4px 14px rgba(var(--brand-blue-rgb), 0.3);
  transition: transform 0.2s;
}
.cta:hover { transform: translateY(-1px); }

#mainSwiper { width: 100%; height: 100vh; }

.swiper-slide {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.slide-content {
  width: 100%; max-width: 1100px;
  padding: 80px 40px;
  text-align: center;
}

/* === Hero === */
.slide-hero { background: var(--bg-hero); }
.slide-hero .hero-left { text-align: center; max-width: 500px; margin: 0 auto; }
.hero-logo { margin-bottom: 20px; text-align: center; }
.hero-logo img { width: 72px; height: 72px; }
.slide-hero h1 {
  font-family: "Useb Title Black", system-ui, sans-serif;
  font-size: 56px; font-weight: normal; line-height: 1.1;
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px;
}
.tagline { font-size: 22px; color: var(--brand-blue); font-weight: 600; margin-bottom: 16px; }
.desc { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 32px; }
.btns { display: flex; gap: 14px; margin-bottom: 20px; justify-content: center; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 24px;
  font-size: 15px; font-weight: 600; text-decoration: none; text-align: center;
  transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
  width: auto; line-height: 1;
  position: relative;
}
.btn-primary {
  background: var(--brand-gradient);
  color: var(--text-inverse);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -1px 0 rgba(0,0,0,0.08),
    0 8px 20px rgba(var(--brand-blue-rgb), 0.3);
  text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 -1px 0 rgba(0,0,0,0.08),
    0 12px 28px rgba(var(--brand-blue-rgb), 0.4);
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.15),
    0 4px 12px rgba(var(--brand-blue-rgb), 0.25);
}
.btn-outline {
  border: 1.5px solid rgba(var(--brand-blue-rgb), 0.5);
  color: var(--brand-blue);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 6px 18px rgba(var(--brand-blue-rgb), 0.12);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.85);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 10px 24px rgba(var(--brand-blue-rgb), 0.18);
}
.note { font-size: 13px; color: var(--text-muted); }

.scroll-tip {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: var(--text-muted);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* === Features === */
.slide-features { background: var(--bg-dark); color: var(--text-inverse); }
.section-title {
  font-size: 36px; font-weight: 800; margin-bottom: 48px;
  letter-spacing: -0.5px;
}
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 32px 24px; border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(var(--brand-green-rgb), 0.12);
  border-color: rgba(var(--brand-blue-rgb), 0.3);
}
.f-icon { font-size: 36px; margin-bottom: 14px; line-height: 1; color: var(--brand-green); }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* === Download === */
.slide-download { background: var(--bg-install); color: var(--text-primary); }
.dl-layout {
  display: flex; align-items: center; gap: 48px;
}
.dl-row {
  display: flex; flex-direction: column; gap: 16px; flex: 1;
}
.dl-card {
  padding: 22px 24px; border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border-light);
  text-decoration: none; color: inherit;
  transition: all 0.3s;
  display: flex; align-items: center; gap: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.dl-card:hover {
  transform: translateY(-4px);
  background: #fff;
  border-color: var(--brand-blue);
  box-shadow: 0 10px 30px rgba(var(--brand-blue-rgb), 0.15);
}
.dl-icon { font-size: 36px; color: var(--brand-blue); flex-shrink: 0; }
.dl-info { flex: 1; text-align: left; }
.dl-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.dl-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: 0; }
.dl-btn {
  display: inline-block; padding: 8px 22px; border-radius: 16px;
  background: var(--brand-gradient);
  color: var(--text-inverse);
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}

.qr-row { flex-shrink: 0; }
.qr-box {
  background: #fff; padding: 20px; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  text-align: center;
}
.qr-box img { width: 160px; height: 160px; display: block; margin-bottom: 10px; }
.qr-box p { font-size: 13px; color: var(--text-secondary); font-weight: 600; }

/* === Install === */
.slide-install {
  background: var(--bg-dark);
  color: var(--text-inverse);
  flex-direction: column;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
}
.slide-install .section-title { color: var(--text-inverse); white-space: nowrap; margin-top: 60px; }
.slide-install .slide-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.install-wrap {
  max-width: 800px; margin: 0 auto;
  background: #fff; border-radius: 20px;
  padding: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.install-wrap img { width: 100%; border-radius: 12px; display: block; }

/* === Footer inside install === */
.site-footer {
  width: 100%;
  padding: 24px 40px 18px;
  background: var(--bg-darker);
  border-top: 1px solid var(--border-dark);
  text-align: center;
}
.site-footer .footer-brand img { width: 32px; height: 32px; margin-bottom: 6px; }
.site-footer .footer-brand h3 { font-size: 20px; font-weight: normal; font-family: "Useb Title Black", system-ui, sans-serif; color: var(--text-inverse); margin-bottom: 2px; letter-spacing: 1px; }
.site-footer .footer-brand p { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 10px; }
.site-footer .footer-copy { font-size: 11px; color: rgba(255,255,255,0.5); }

/* === Zoomable image === */
.install-wrap { cursor: zoom-in; }
.zoomable { cursor: zoom-in; transition: transform 0.2s; }
.zoom-hint {
  text-align: center; font-size: 12px; color: var(--text-muted);
  margin-top: 10px; user-select: none;
}

/* === Lightbox === */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center;
  padding: 20px; cursor: zoom-out;
  animation: fadeIn 0.2s ease;
}
.lightbox.active { display: flex; }
.lightbox-inner { position: relative; max-width: 100%; max-height: 100%; }
.lightbox img {
  max-width: 100%; max-height: 90vh;
  border-radius: 8px; display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  object-fit: contain;
}
.lightbox-close {
  position: absolute; top: -40px; right: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.15); color: var(--text-inverse);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* === Pagination === */
.swiper-pagination { right: 24px !important; width: 12px !important; }
.swiper-pagination-bullet {
  width: 10px; height: 10px;
  background: #ffffff;
  border: 1.5px solid #ffffff;
  opacity: 1;
}
.swiper-pagination-bullet-active {
  background: var(--brand-gradient) !important;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(var(--brand-blue-rgb), 0.25);
  opacity: 1;
}
.slide-hero .swiper-pagination-bullet,
.slide-download .swiper-pagination-bullet {
  background: #555555;
  border-color: #555555;
}
.slide-hero .swiper-pagination-bullet-active,
.slide-download .swiper-pagination-bullet-active {
  background: var(--brand-blue) !important;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(var(--brand-blue-rgb), 0.25);
}

/* === Mobile === */
@media (max-width: 768px) {
  #nav {
    padding: calc(env(safe-area-inset-top) + 0px) 16px 0 16px;
    height: calc(56px + env(safe-area-inset-top));
  }
  #nav .links { display: none; }
  #nav .cta { padding: 7px 16px; font-size: 13px; }
  .brand img { width: 28px; height: 28px; padding: 3px; }
  .brand span { font-size: 20px; }

  .swiper-pagination { right: 6px !important; }
  .swiper-pagination-bullet { width: 8px; height: 8px; }

  .slide-content { padding: 20px 32px 20px 18px; max-width: 100%; }
  .section-title { font-size: 22px; margin-bottom: 20px; }

  .slide-hero {
    background: var(--bg-hero) url('../../image/bg.png') center/cover no-repeat;
  }
  .slide-hero .slide-content { padding-top: 10px; }
  .slide-hero .hero-left { text-align: center; }
  .slide-hero h1 { font-size: 28px; margin-bottom: 6px; }
  .slide-hero .tagline { font-size: 14px; margin-bottom: 8px; }
  .slide-hero .desc { font-size: 13px; margin-bottom: 18px; line-height: 1.5; }
  .hero-logo img { width: 52px; height: 52px; }
  .hero-logo { margin-bottom: 12px; }
  .btns { flex-direction: column; gap: 10px; align-items: stretch; }
  .btns .btn { width: 100%; padding: 12px; font-size: 14px; }
  .scroll-tip { display: none; }
  .slide-hero .note { font-size: 11px; margin-top: 12px; }

  .feature-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature-card { padding: 14px 10px; }
  .feature-card h3 { font-size: 14px; margin-bottom: 4px; }
  .feature-card p { font-size: 11px; line-height: 1.4; }
  .f-icon { font-size: 28px; margin-bottom: 4px; }

  .dl-layout { flex-direction: column; gap: 24px; }
  .dl-row { flex-direction: column; gap: 10px; width: 100%; }
  .dl-card { padding: 14px 12px; display: flex; align-items: center; gap: 12px; }
  .dl-card h3 { font-size: 15px; }
  .dl-card p { font-size: 12px; margin-bottom: 4px; }
  .dl-btn { padding: 6px 14px; font-size: 12px; }
  .dl-icon { font-size: 28px; margin-bottom: 0; }
  .qr-row { padding: 14px; }
  .qr-box img { width: 90px; height: 90px; }

  .slide-install { display: flex; }
  .slide-install .slide-content { padding: 16px 24px 16px 16px; flex: 1; }
  .slide-install .section-title { margin-top: 0; font-size: 20px; margin-bottom: 12px; }
  .install-wrap { max-width: 100%; padding: 8px; border-radius: 10px; }
  .install-wrap img { border-radius: 6px; max-height: 55vh; object-fit: contain; }

  .site-footer { padding: 12px 16px 10px; }
  .site-footer .footer-brand img { width: 24px; height: 24px; margin-bottom: 2px; }
  .site-footer .footer-brand h3 { font-size: 13px; }
  .site-footer .footer-brand p { font-size: 10px; margin-bottom: 4px; }
  .site-footer .footer-copy { font-size: 9px; }
}

/* === Channels Slide === */
.slide-channels {
  background: var(--bg-dark); color: var(--text-inverse);
}
.slide-channels .section-title { color: var(--text-inverse); }
.section-sub {
  font-size: 15px; color: rgba(255,255,255,0.7);
  margin-bottom: 40px; line-height: 1.8;
}
.section-sub .ch-count {
  color: var(--brand-green); font-size: 22px;
  font-weight: 800; margin: 0 3px;
  text-shadow: 0 0 20px rgba(var(--brand-green-rgb), 0.4);
}

.ch-categories {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin-bottom: 40px;
}
.ch-cat {
  padding: 28px 20px 22px; border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center; position: relative;
  transition: all 0.3s;
  overflow: hidden;
}
.ch-cat::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top, rgba(var(--brand-green-rgb), 0.12), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.ch-cat:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--brand-green-rgb), 0.4);
  background: rgba(var(--brand-green-rgb), 0.08);
}
.ch-cat:hover::before { opacity: 1; }
.cat-icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 28px; color: #fff;
  position: relative; z-index: 1;
}
.cat-cctv { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.cat-sat  { background: linear-gradient(135deg, #3498db, #2980b9); }
.cat-sport{ background: linear-gradient(135deg, #f39c12, #e67e22); }
.cat-agg  { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.ch-cat h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; position: relative; z-index: 1; }
.ch-cat p { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 12px; position: relative; z-index: 1; }
.ch-badge {
  display: inline-block; padding: 4px 12px;
  font-size: 11px; font-weight: 700;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  color: var(--brand-green);
  border: 1px solid rgba(var(--brand-green-rgb), 0.35);
  position: relative; z-index: 1;
}

.ch-actions { display: flex; gap: 14px; justify-content: center; align-items: center; }
.ch-actions .btn-primary i { margin-right: 6px; }

/* === Sources Download Slide === */
.slide-sources { background: var(--bg-install); color: var(--text-primary); }
.slide-sources .section-sub { color: var(--text-secondary); }

.src-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin-bottom: 30px;
}
.src-card {
  display: flex; flex-direction: column;
  padding: 22px 20px; border-radius: 18px;
  background: #fff; text-decoration: none; color: inherit;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  position: relative; overflow: hidden;
  transition: all 0.3s;
}
.src-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-blue);
  box-shadow: 0 12px 32px rgba(var(--brand-blue-rgb), 0.18);
}
.src-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.src-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-gradient);
  color: #fff; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.src-meta h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.src-meta p { font-size: 11px; color: var(--text-muted); margin-bottom: 0; }
.src-info {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-light);
  font-size: 11px; color: var(--text-muted);
}
.src-format {
  padding: 2px 8px; border-radius: 4px;
  background: rgba(var(--brand-green-rgb), 0.12);
  color: var(--brand-green); font-weight: 700;
  font-size: 10px;
}
.src-dl {
  position: absolute; top: 14px; right: 14px;
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--brand-blue);
  font-weight: 700; opacity: 0.7;
  transition: opacity 0.2s;
}
.src-card:hover .src-dl { opacity: 1; }
.src-dl i { font-size: 14px; }

.src-tip {
  font-size: 12px; color: var(--text-muted);
  background: rgba(255,255,255,0.6);
  padding: 10px 20px; border-radius: 20px;
  display: inline-block;
}

.slide-sources .swiper-pagination-bullet { background: #555; border-color: #555; }
.slide-sources .swiper-pagination-bullet-active {
  background: var(--brand-blue) !important;
  border-color: var(--brand-blue);
}

/* === Mobile additions === */
@media (max-width: 768px) {
  .section-sub { font-size: 13px; margin-bottom: 24px; line-height: 1.6; }
  .section-sub .ch-count { font-size: 18px; }
  .ch-categories { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 28px; }
  .ch-cat { padding: 18px 12px 16px; border-radius: 14px; }
  .cat-icon { width: 42px; height: 42px; font-size: 20px; margin-bottom: 8px; border-radius: 10px; }
  .ch-cat h4 { font-size: 14px; margin-bottom: 4px; }
  .ch-cat p { font-size: 10px; line-height: 1.5; margin-bottom: 8px; }
  .ch-badge { font-size: 9px; padding: 2px 8px; }
  .ch-actions .btn { font-size: 13px; padding: 10px 16px; }

  .src-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
  .src-card { padding: 14px 12px; border-radius: 14px; }
  .src-icon { width: 38px; height: 38px; font-size: 18px; border-radius: 10px; }
  .src-meta h3 { font-size: 14px; }
  .src-meta p { font-size: 10px; }
  .src-info { font-size: 10px; }
  .src-tip { font-size: 10px; padding: 8px 14px; }
}

@media (max-width: 380px) {
  .ch-categories { grid-template-columns: 1fr 1fr; }
  .src-grid { grid-template-columns: 1fr; }
}