/* 开放平台首页 — 行业标准布局 */
.landing {
  min-height: 100vh;
  background: #fff;
  color: var(--text);
}

/* ── 顶栏 ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.header-brand:hover {
  color: var(--text);
}

.header-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.header-menu a {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.header-menu a:hover {
  color: var(--primary-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-link {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}

.header-link:hover {
  color: var(--primary-dark);
}

.brand-logo-nav {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

/* ── Hero ── */
.hero-banner {
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 20px;
  font-family: var(--font-display);
}

.hero-sub {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

/* Hero 右侧：视频 + 数据可视化 */
.hero-mockup {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 340px;
}

.mockup-panel {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(13, 13, 13, 0.08);
}

.mockup-video {
  inset: 0 48px 48px 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
}

.mockup-dot.live {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
  animation: mockup-pulse 2s ease-in-out infinite;
}

@keyframes mockup-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.mockup-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--gradient);
  color: var(--text);
}

.mockup-video-screen {
  flex: 1;
  min-height: 160px;
  border-radius: 10px;
  background: linear-gradient(145deg, #1a1a1a 0%, #2d3748 100%);
  position: relative;
  overflow: hidden;
}

.mockup-court {
  position: absolute;
  inset: 16px 24px;
  border: 1px solid rgba(167, 232, 38, 0.35);
  border-radius: 4px;
}

.mockup-court::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(167, 232, 38, 0.25);
}

.mockup-court::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(167, 232, 38, 0.25);
}

.mockup-track-line {
  position: absolute;
  top: 30%;
  left: 20%;
  width: 55%;
  height: 40%;
  border: 2px solid transparent;
  border-top-color: var(--primary);
  border-radius: 50%;
  transform: rotate(-15deg);
  opacity: 0.7;
}

.mockup-track-dot {
  position: absolute;
  top: 28%;
  left: 72%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(167, 232, 38, 0.8);
}

.mockup-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
}

.mockup-timeline {
  height: 4px;
  background: #eee;
  border-radius: 2px;
  overflow: hidden;
}

.mockup-timeline-bar {
  width: 62%;
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
}

.mockup-stats {
  right: 0;
  top: 24px;
  width: 148px;
  padding: 14px;
}

.mockup-stats-head {
  font-size: 11px;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

.mockup-stat-row {
  margin-bottom: 12px;
}

.mockup-stat-val {
  display: block;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.2;
}

.mockup-stat-val small {
  font-size: 14px;
}

.mockup-stat-label {
  font-size: 11px;
  color: var(--text-subtle);
}

.mockup-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
}

.mockup-bars span {
  flex: 1;
  background: var(--gradient);
  border-radius: 2px 2px 0 0;
  min-height: 4px;
}

.mockup-api {
  right: 0;
  bottom: 0;
  width: 132px;
  padding: 12px 14px;
  text-align: center;
}

.mockup-api-label {
  display: block;
  font-size: 11px;
  color: var(--text-subtle);
  margin-bottom: 4px;
}

.mockup-api-val {
  display: block;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text);
}

.mockup-api-trend {
  font-size: 11px;
  color: var(--success);
  font-weight: 500;
}

/* ── 快捷入口 ── */
.quick-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.quick-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 20px;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}

.quick-item:last-child {
  border-right: none;
}

.quick-item:hover {
  background: #f8fafc;
}

.quick-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.quick-icon.green { background: var(--brand-tint); }
.quick-icon.blue { background: rgba(64, 248, 193, 0.15); }
.quick-icon.orange { background: rgba(167, 232, 38, 0.2); }
.quick-icon.purple { background: rgba(13, 13, 13, 0.06); }

.quick-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text);
}

.quick-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── 内容区块 ── */
.section-block {
  padding: 64px 24px;
}

.section-block.section-gray {
  background: #f8fafc;
  border-top: 1px solid var(--border);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 36px;
  font-family: var(--font-display);
}

/* ── 产品 Tab ── */
.product-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.product-tab {
  padding: 10px 24px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: all 0.2s;
  position: relative;
}

.product-tab:hover {
  color: var(--text);
  background: #f1f5f9;
}

.product-tab.active {
  color: var(--text);
  font-weight: 600;
}

.product-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

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

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s, border-color 0.25s;
  display: block;
}

.product-card:hover {
  border-color: rgba(167, 232, 38, 0.5);
  box-shadow: 0 8px 24px rgba(167, 232, 38, 0.12);
}

.product-card-icon.green {
  background: var(--gradient);
  color: var(--text);
}

.product-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--text);
}

.product-card-icon.blue {
  background: linear-gradient(135deg, #40f8c1, #a7e826);
}

.product-card-icon.orange {
  background: linear-gradient(135deg, #d9f99d, #a7e826);
}

/* 产品线 Tab */
.product-line-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.product-line-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.product-line-card:hover {
  border-color: rgba(167, 232, 38, 0.5);
  box-shadow: 0 8px 24px rgba(167, 232, 38, 0.1);
}

.product-line-card:hover .product-line-arrow {
  color: var(--primary-dark);
  transform: translateX(4px);
}

.product-line-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.product-line-body {
  flex: 1;
  min-width: 0;
}

.product-line-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.product-line-head h3 {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-display);
}

.product-line-badge {
  font-size: 12px;
  padding: 2px 10px;
  background: var(--brand-tint);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
}

.product-line-body > p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.product-line-features {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.product-line-features li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}

.product-line-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.product-line-arrow {
  flex-shrink: 0;
  align-self: center;
  font-size: 22px;
  color: var(--text-subtle);
  transition: transform 0.2s, color 0.2s;
}

.product-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-tags span {
  font-size: 12px;
  padding: 3px 10px;
  background: #f1f5f9;
  color: var(--text-muted);
  border-radius: 4px;
}

/* ── 接入流程 ── */
.flow-steps {
  list-style: none;
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 0;
}

.flow-steps li {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.flow-steps li:last-child {
  border-bottom: none;
}

.flow-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flow-steps strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.flow-steps p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── 关于 ── */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-copy h2 {
  font-size: 24px;
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.about-copy p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-copy a {
  color: var(--primary-dark);
}

.about-stats {
  display: grid;
  gap: 16px;
}

.about-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.about-stat strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.about-stat span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── 页脚 ── */
.site-footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: 14px;
  color: #94a3b8;
  text-decoration: none;
}

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

.footer-copy {
  font-size: 13px;
  color: #64748b;
}

/* ── 右侧浮窗 ── */
.float-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  box-shadow: -2px 0 12px rgba(15, 23, 42, 0.06);
  overflow: visible;
}

.float-contact-wrap {
  position: relative;
}

.contact-qr-popover {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  text-align: center;
  width: 152px;
  z-index: 160;
}

.contact-qr-popover .contact-qr {
  width: 120px;
  height: 120px;
  margin: 0 auto 8px;
  display: block;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  object-fit: contain;
}

.contact-qr-popover p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.float-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 10px;
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
  min-width: 56px;
  width: 100%;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
}

button.float-item {
  border: none;
  border-bottom: 1px solid var(--border);
}

.float-item:last-child {
  border-bottom: none;
}

.float-item span {
  font-size: 18px;
}

.float-item em {
  font-style: normal;
}

.float-item:hover {
  background: #f8fafc;
  color: var(--primary-dark);
}

/* ── 响应式 ── */
@media (max-width: 960px) {
  .header-menu {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-visual {
    min-height: 300px;
    max-width: 360px;
    margin: 0 auto;
  }

  .hero-mockup {
    height: 300px;
    max-width: 360px;
  }

  .mockup-video {
    inset: 0 40px 40px 0;
  }

  .mockup-stats {
    width: 130px;
    padding: 10px;
  }

  .mockup-api {
    width: 118px;
  }

  .quick-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-item:nth-child(2) {
    border-right: none;
  }

  .product-cards {
    grid-template-columns: 1fr;
  }

  .product-line-card {
    flex-direction: column;
    padding: 24px;
  }

  .product-line-arrow {
    display: none;
  }

  .about-block {
    grid-template-columns: 1fr;
  }

  .float-sidebar {
    display: none;
  }
}

@media (max-width: 560px) {
  .quick-inner {
    grid-template-columns: 1fr;
  }

  .quick-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .header-actions .header-link {
    display: none;
  }
}
