@import url('https://cdn.jsdelivr.net/npm/remixicon@4.6.0/fonts/remixicon.css');

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

:root {
  --primary: #0066ff;
  --primary-dark: #0044cc;
  --accent: #00d4ff;
  --dark: #0a0e27;
  --dark2: #111633;
  --text: #333;
  --text-light: #666;
  --text-white: #fff;
  --bg-light: #f5f7fa;
  --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--text-white);
  overflow-x: hidden;
  opacity: 0;
  animation: bodyFadeIn 0.6s ease forwards;
}

@keyframes bodyFadeIn {
  to { opacity: 1; }
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==================== 导航栏 ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: height var(--transition);
  height: 72px;
  background: transparent;
  display: flex;
  justify-content: center;
}

.navbar.scrolled {
  height: 60px;
  background: transparent;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: auto;
  min-width: 100%;
  max-width: 1200px;
  padding: 0 1.5rem;
  transition: all var(--nav-transition);
}

.navbar.scrolled .nav-inner {
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  border-radius: 50px;
  min-width: 0;
  max-width: 800px;
  padding: 0 2.5rem;
}

.navbar.scrolled .nav-inner {
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  border-radius: 50px;
  width: auto;
  min-width: 600px;
  max-width: 800px;
  padding: 0 2.5rem;
}

.nav-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  opacity: 1;
  transform: translateX(0);
  max-width: 240px;
  transition: opacity var(--nav-transition), transform var(--nav-transition), max-width var(--nav-transition), margin var(--nav-transition), padding var(--nav-transition);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 2px;
  cursor: pointer;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.nav-logo .logo-img {
  height: 1.8rem;
  width: auto;
  margin-right: 0.5rem;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: all var(--transition);
}

.nav-center a {
  color: var(--text-white);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: color var(--transition);
}

.nav-center a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-center a:hover::after,
.nav-center a.active::after {
  width: 100%;
}

.nav-center a:hover {
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  opacity: 1;
  transform: translateX(0);
  max-width: 150px;
  transition: opacity var(--nav-transition), transform var(--nav-transition), max-width var(--nav-transition), margin var(--nav-transition), padding var(--nav-transition);
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--text-white);
  border-radius: 50px;
  color: var(--text-white);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-buy:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

/* 滚动后导航栏：LOGO和按钮淡出+滑向中间 */
.navbar.scrolled .nav-left {
  opacity: 0;
  transform: translateX(60px);
  max-width: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.navbar.scrolled .nav-right {
  opacity: 0;
  transform: translateX(-60px);
  max-width: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.scrolled-logo,
.scrolled-buy {
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--nav-transition), transform var(--nav-transition), margin var(--nav-transition);
}

.scrolled-logo {
  margin-right: 0;
  transform: translateX(-60px);
}

.scrolled-buy {
  margin-left: 0;
  transform: translateX(60px);
}

.navbar.scrolled .scrolled-logo {
  opacity: 1;
  pointer-events: auto;
  margin-right: 1.5rem;
  transform: translateX(0);
}

.navbar.scrolled .scrolled-buy {
  opacity: 1;
  pointer-events: auto;
  margin-left: 1.5rem;
  transform: translateX(0);
}

.scrolled-logo .nav-logo {
  font-size: 1.2rem;
}

.scrolled-logo .nav-logo .logo-img {
  height: 1.5rem;
}

.scrolled-buy .btn-buy {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

/* 汉堡菜单 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 手机端菜单 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(15px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
}

.mobile-menu a {
  color: var(--text-white);
  font-size: 1.3rem;
  font-weight: 500;
  padding: 0.75rem 2rem;
  transition: color var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--accent);
}

/* ==================== 页面内容区 ==================== */
.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

/* ==================== 英雄区 ==================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  animation: heroBreath 10s ease-in-out infinite alternate;
}

@keyframes heroBreath {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.06) rotate(0.3deg); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.85) 0%, rgba(0, 40, 100, 0.6) 50%, rgba(10, 14, 39, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-white);
  padding: 0 1.5rem;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 3px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--primary);
  color: var(--text-white);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.hero-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.6);
  animation: scrollBounce 2s ease-in-out infinite;
  font-size: 1.5rem;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ==================== 核心优势区块 ==================== */
.advantages {
  padding: 5rem 0;
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.section-title .title-line {
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 0.75rem auto 0;
  border-radius: 3px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.adv-card {
  background: var(--text-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.adv-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.adv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.adv-card .adv-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-white);
}

.adv-card:nth-child(1) .adv-icon { background: linear-gradient(135deg, #667eea, #764ba2); }
.adv-card:nth-child(2) .adv-icon { background: linear-gradient(135deg, #f093fb, #f5576c); }
.adv-card:nth-child(3) .adv-icon { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.adv-card:nth-child(4) .adv-icon { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.adv-card:nth-child(5) .adv-icon { background: linear-gradient(135deg, #1a97df, #4060f1); }
.adv-card:nth-child(6) .adv-icon { background: linear-gradient(135deg, #ff6a00, #ee0979); }

.adv-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.adv-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

.adv-card .adv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.adv-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  background: color-mix(in srgb, var(--card-color, var(--primary)) 8%, var(--bg-light));
  border-radius: 6px;
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--card-color, var(--primary)) 70%, var(--text-light));
  transition: all 0.2s ease;
  cursor: default;
}

.adv-tag i {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--card-color, var(--primary)) 60%, var(--text-light));
}

.adv-tag:hover {
  background: color-mix(in srgb, var(--card-color, var(--primary)) 14%, var(--bg-light));
  transform: translateY(-1px);
}

/* 告警渠道卡片 */
.alert-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.alert-channel-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  background: var(--bg-light);
  border-radius: 10px;
  transition: all 0.25s ease;
  cursor: default;
}

.alert-channel-item:hover {
  background: #f0f4ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.alert-channel-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--channel-color) 12%, transparent);
  transition: all 0.25s ease;
}

.alert-channel-icon i {
  font-size: 1.05rem;
  color: var(--channel-color);
  transition: transform 0.25s ease;
}

.alert-channel-item:hover .alert-channel-icon {
  background: color-mix(in srgb, var(--channel-color) 20%, transparent);
}

.alert-channel-item:hover .alert-channel-icon i {
  transform: scale(1.15);
}

.alert-channel-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.alert-channel-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

.alert-channel-desc {
  font-size: 0.7rem;
  color: var(--text-light);
  line-height: 1.3;
}

/* ==================== 实时数据演示 ==================== */
.realtime-demo {
  padding: 5rem 0;
  background: var(--bg-light);
}

.realtime-demo-inner {
  background: var(--text-white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
}

.realtime-demo-inner h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.realtime-demo-inner .demo-hint {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.realtime-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.realtime-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 1.5rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.realtime-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent);
  border-radius: 12px 12px 0 0;
}

.realtime-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.realtime-card.rt-over-upper {
  border-color: #e74c3c;
  animation: rtAlertPulse 1.5s ease-in-out infinite;
}

.realtime-card.rt-over-lower {
  border-color: #f39c12;
  animation: rtAlertPulse 1.5s ease-in-out infinite;
}

@keyframes rtAlertPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231,76,60,0); }
  50% { box-shadow: 0 0 12px 2px rgba(231,76,60,0.2); }
}

.realtime-card.rt-over-lower {
  animation-name: rtAlertPulseWarn;
}

@keyframes rtAlertPulseWarn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243,156,18,0); }
  50% { box-shadow: 0 0 12px 2px rgba(243,156,18,0.2); }
}

.rt-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.rt-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-white);
  background: var(--card-accent);
}

.rt-card-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
}

.rt-card-value {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.rt-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

.rt-unit {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
}

.realtime-card.rt-over-upper .rt-value {
  color: #e74c3c;
}

.realtime-card.rt-over-lower .rt-value {
  color: #f39c12;
}

.rt-card-limits {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
}

.rt-limit {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--text-light);
}

.rt-limit i {
  font-size: 0.9rem;
}

.rt-limit-upper i {
  color: #e74c3c;
}

.rt-limit-lower i {
  color: #f39c12;
}

.rt-limit em {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}

/* 波形曲线区域 */
.realtime-chart-wrap {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 1.5rem;
}

.rt-chart-switches {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.rt-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 50px;
  background: var(--text-white);
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.rt-switch:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.rt-switch.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

.rt-switch.active[data-type="voltage"] {
  background: #667eea;
  border-color: #667eea;
}

.rt-switch.active[data-type="current"] {
  background: #f5576c;
  border-color: #f5576c;
}

.rt-switch.active[data-type="power"] {
  background: #43e97b;
  border-color: #43e97b;
}

.rt-chart-container {
  width: 100%;
  height: 260px;
  position: relative;
  background: var(--text-white);
  border-radius: 8px;
  overflow: hidden;
}

.rt-chart-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==================== 数据查询演示 ==================== */
.data-demo {
  padding: 5rem 0;
  background: var(--text-white);
}

.data-demo-inner {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
}

.data-demo-inner h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.data-demo-inner .demo-hint {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.data-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.data-controls label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

.data-controls input[type="datetime-local"] {
  margin-top: 0.3rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
}

.data-btn {
  padding: 0.55rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.data-btn-primary {
  background: var(--primary);
  color: var(--text-white);
}

.data-btn-primary:hover {
  background: var(--primary-dark);
}

.data-btn-secondary {
  background: var(--text-white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.data-btn-secondary:hover {
  background: var(--primary);
  color: var(--text-white);
}

.data-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th {
  background: var(--dark);
  color: var(--text-white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 500;
}

.data-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #e8e8e8;
  color: var(--text);
}

.data-table tr:hover td {
  background: #f0f4ff;
}

/* 告警历史小部件 */
.alert-history {
  margin-top: 2rem;
  background: var(--text-white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}

.alert-history h4 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-history h4 i {
  color: #e74c3c;
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background: #fff5f5;
  border-left: 3px solid #e74c3c;
}

.alert-item.warn {
  background: #fff8e6;
  border-left-color: #f39c12;
}

.alert-item .alert-time {
  font-size: 0.8rem;
  color: var(--text-light);
  white-space: nowrap;
}

.alert-item .alert-msg {
  font-size: 0.85rem;
  color: var(--text);
}

/* ==================== 产品页英雄区 ==================== */
.products-hero {
  position: relative;
  height: auto;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #070b24 0%, #111633 30%, #0a1628 60%, #060d1e 100%);
  padding: 100px 0 3rem;
}

.products-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* 点阵网格背景 */
.products-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(0, 212, 255, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
}

.products-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 102, 255, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(118, 75, 162, 0.08) 0%, transparent 40%);
}

/* 浮动科技图标 */
.products-float-icon {
  position: absolute;
  font-size: 2rem;
  color: rgba(0, 212, 255, 0.12);
  pointer-events: none;
}

.products-float-icon:nth-child(1) {
  top: 15%;
  left: 10%;
  font-size: 2.8rem;
  animation: floatOrbit1 12s ease-in-out infinite;
  color: rgba(0, 102, 255, 0.15);
}

.products-float-icon:nth-child(2) {
  top: 20%;
  right: 12%;
  font-size: 3.2rem;
  animation: floatOrbit2 15s ease-in-out infinite;
  color: rgba(0, 212, 255, 0.10);
}

.products-float-icon:nth-child(3) {
  bottom: 25%;
  left: 8%;
  font-size: 2.2rem;
  animation: floatOrbit3 10s ease-in-out infinite;
  color: rgba(118, 75, 162, 0.15);
}

.products-float-icon:nth-child(4) {
  bottom: 20%;
  right: 10%;
  font-size: 2.5rem;
  animation: floatOrbit4 14s ease-in-out infinite;
  color: rgba(0, 102, 255, 0.10);
}

@keyframes floatOrbit1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -40px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

@keyframes floatOrbit2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-25px, -30px) rotate(-5deg); }
  50% { transform: translate(10px, -50px) rotate(3deg); }
  75% { transform: translate(30px, -10px) rotate(-2deg); }
}

@keyframes floatOrbit3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.15); }
}

@keyframes floatOrbit4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(-30px, -20px) rotate(8deg) scale(1.1); }
  66% { transform: translate(15px, 35px) rotate(-5deg); }
}

/* 数据流粒子 */
.data-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
}

.data-particle:nth-child(5) {
  top: 30%;
  left: 20%;
  animation: particleFlow1 4s ease-in-out infinite 0s;
}

.data-particle:nth-child(6) {
  top: 60%;
  left: 70%;
  animation: particleFlow1 5s ease-in-out infinite 1s;
}

.data-particle:nth-child(7) {
  top: 45%;
  left: 50%;
  animation: particleFlow1 6s ease-in-out infinite 2s;
}

.data-particle:nth-child(8) {
  top: 75%;
  left: 30%;
  animation: particleFlow1 4.5s ease-in-out infinite 1.5s;
}

@keyframes particleFlow1 {
  0% { transform: translate(0, 0) scale(0); opacity: 0; }
  20% { opacity: 0.8; transform: translate(15px, -20px) scale(1); }
  40% { opacity: 0.6; transform: translate(30px, -40px) scale(0.8); }
  60% { opacity: 0.3; transform: translate(45px, -25px) scale(0.5); }
  80% { opacity: 0.1; transform: translate(55px, -10px) scale(0.3); }
  100% { transform: translate(70px, 0) scale(0); opacity: 0; }
}

/* 英雄区内容 */
.products-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 800px;
}

.products-hero-content .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease 0.2s both;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.products-hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #88ccff 40%, #00d4ff 70%, #a78bfa 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 6s ease-in-out infinite, fadeInUp 0.8s ease 0.4s both;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

.products-hero-content .hero-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.products-hero-content .hero-tagline strong {
  color: rgba(255,255,255,0.8);
}

/* 统计条 */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
  margin-top: 1rem;
  padding: 1.5rem 2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease 0.9s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
}

.stat-number span {
  color: var(--accent);
  font-size: 1.2rem;
  margin-left: 2px;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.2rem;
}

.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.1);
}

/* 向下滚动指示器 */
.hero-scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem;
  letter-spacing: 2px;
  animation: fadeInUp 1s ease 1.5s both;
  cursor: pointer;
  transition: color 0.3s;
}

.hero-scroll-down:hover {
  color: rgba(255,255,255,0.6);
}

.hero-scroll-down .scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.3);
  border-bottom: 2px solid rgba(255,255,255,0.3);
  transform: rotate(45deg);
  animation: scrollBounce2 2s ease-in-out infinite;
}

@keyframes scrollBounce2 {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.4; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

/* 手机端适配 */
@media (max-width: 768px) {
  .products-hero {
    height: auto;
    min-height: auto;
    padding: 5rem 0 2rem;
  }

  .products-hero-content h1 {
    font-size: 2.2rem;
  }

  .products-hero-content .hero-tagline {
    font-size: 0.95rem;
  }

  .stats-bar {
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 1rem 0;
    padding: 1.25rem;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
  }

  .products-float-icon {
    display: none;
  }
}

@media (max-width: 480px) {
  .products-hero-content h1 {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }
}

/* ==================== 产品页面 ==================== */
.products-section {
  padding: 5rem 0;
  background: var(--bg-light);
  min-height: 100vh;
}

.product-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  row-gap: 0.6rem;
}

.product-tab {
  padding: 0.45rem 1.2rem;
  border: 1.5px solid #ddd;
  border-radius: 50px;
  background: var(--text-white);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.product-tab:hover,
.product-tab.active {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--text-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card-linkable {
  cursor: pointer;
}

.product-card-linkable:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.product-card .product-img {
  width: 100%;
  aspect-ratio: 500 / 306;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 3rem;
  overflow: hidden;
}

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

.product-card .product-body {
  padding: 1.25rem;
}

.product-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.product-card .product-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.product-tag {
  padding: 0.2rem 0.6rem;
  background: #eef2ff;
  color: var(--primary);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ==================== 软件页面 ==================== */
.software-section {
  padding: 5rem 0;
  background: var(--dark);
  color: var(--text-white);
  min-height: 100vh;
  padding-top: 100px;
}

.software-section .section-title h2 {
  color: var(--text-white);
}

.software-section .section-title p {
  color: rgba(255,255,255,0.6);
}

.download-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.dl-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.download-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.download-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.download-card .dl-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.download-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.download-card p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

/* 亮暗主题切换开关 */
.theme-switch-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  margin-top: 1rem;
}

.theme-label {
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s ease, opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  user-select: none;
}

.theme-label-dark {
  color: var(--accent);
  opacity: 1;
}

.theme-label-light {
  color: rgba(255,255,255,0.4);
  opacity: 0.6;
}

/* 亮色主题下标签颜色 */
.software-section.light-theme .theme-label-dark {
  color: rgba(0,0,0,0.35);
  opacity: 0.6;
}

.software-section.light-theme .theme-label-light {
  color: var(--primary);
  opacity: 1;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  bottom: 2px;
  background: var(--accent);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.theme-switch input:checked + .theme-slider {
  background: rgba(0, 102, 255, 0.15);
  border-color: rgba(0, 102, 255, 0.3);
}

.theme-switch input:checked + .theme-slider::before {
  transform: translateX(24px);
  background: var(--primary);
}

/* 亮色主题 - 导航栏强制深色背景（仅未滚动时） */
.navbar.navbar-forced-dark:not(.scrolled) {
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar.navbar-forced-dark:not(.scrolled) .nav-inner {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-radius: 0;
  min-width: 100%;
  max-width: 1200px;
  padding: 0 1.5rem;
}

/* 滚动后由 .scrolled 自带深色背景，无需额外覆盖 */

/* 亮色主题 - 软件页面 */
.software-section.light-theme {
  background: var(--bg-light);
  color: var(--text);
}

.software-section.light-theme .section-title h2 {
  color: var(--dark);
}

.software-section.light-theme .section-title p {
  color: var(--text-light);
}

.software-section.light-theme .section-title .title-line {
  background: var(--primary);
}

.software-section.light-theme .download-card {
  background: var(--text-white);
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.software-section.light-theme .download-card:hover {
  background: var(--text-white);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.software-section.light-theme .download-card h4 {
  color: var(--dark);
}

.software-section.light-theme .download-card p {
  color: var(--text-light);
}

.software-section.light-theme .download-card .dl-icon {
  color: var(--primary);
}

.software-section.light-theme .preview-section h3 {
  color: var(--dark);
}

.software-section.light-theme .phone-mockup {
  background: #d1d1d1;
  border-color: #c0c0c0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.software-section.light-theme .phone-mockup::before {
  background: #d1d1d1;
}

.software-section.light-theme .phone-screen {
  background: #fff;
}

.software-section.light-theme .desktop-mockup {
  background: #e8e8e8;
  border-color: #d0d0d0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.software-section.light-theme .desktop-screen {
  background: #fff;
}

.software-section.light-theme .app-screenshot-label,
.software-section.light-theme .pc-screenshot-label {
  background: rgba(0, 0, 0, 0.65);
}

.preview-section {
  margin-top: 2rem;
}

.preview-section h3 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

/* 滚动轨道容器 */
.scroll-track-wrap {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.scroll-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}

.scroll-left {
  animation: scrollLeft 30s linear infinite;
}

.scroll-right {
  animation: scrollRight 35s linear infinite;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* 手机 Mockup */
.phone-mockup {
  width: 200px;
  min-width: 200px;
  background: #1a1f3a;
  border-radius: 28px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

/* 灵动岛 */
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: #1a1f3a;
  border-radius: 20px;
  z-index: 2;
}

.phone-mockup:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.phone-screen {
  background: #0f1225;
  border-radius: 24px;
  padding: 0.75rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 手机截图展示 */
.phone-screen-img {
  padding: 0;
  min-height: auto;
  overflow: hidden;
  display: block;
}

.app-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  object-fit: cover;
}

/* 截图标签 - 电脑端始终显示 */
.phone-mockup-img {
  position: relative;
}

.app-screenshot-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
  opacity: 0;
}

/* 桌面端：鼠标悬停时显示标签 */
@media (hover: hover) {
  .phone-mockup-img:hover .app-screenshot-label {
    opacity: 1;
  }
}

/* 手机端：标签默认隐藏，点击后显示 */
@media (max-width: 768px) {
  .app-screenshot-label {
    opacity: 0;
    pointer-events: auto;
  }

  .phone-mockup-img.label-visible .app-screenshot-label {
    opacity: 1;
  }
}

.phone-screen .app-header {
  display: flex;
  gap: 4px;
  margin-bottom: 0.6rem;
}

.app-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

.app-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.app-device-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.6);
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.app-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.app-status.online { background: #43e97b; }
.app-status.offline { background: #e74c3c; }

.app-data-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.app-label {
  color: rgba(255,255,255,0.5);
}

.app-value {
  color: var(--accent);
  font-weight: 600;
}

.app-mini-chart {
  flex: 1;
  margin-top: 0.5rem;
  background: linear-gradient(0deg, rgba(0,212,255,0.15), transparent);
  border-radius: 6px;
  min-height: 50px;
}

.app-chart-lg {
  flex: 1;
  margin-top: 0.3rem;
  background: linear-gradient(0deg, rgba(0,102,255,0.2), transparent);
  border-radius: 6px;
  min-height: 100px;
  clip-path: polygon(0 100%, 5% 50%, 15% 70%, 25% 30%, 35% 50%, 45% 20%, 55% 40%, 65% 15%, 75% 45%, 85% 25%, 95% 55%, 100% 35%, 100% 100%);
}

.app-time-tabs {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.55rem;
  color: rgba(255,255,255,0.4);
}

.app-time-tabs span {
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.app-time-tabs span.active {
  background: var(--primary);
  color: var(--text-white);
}

.app-alert-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.55rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.app-alert-row.danger { color: #ff6b6b; }
.app-alert-row.warn { color: #ffd93d; }
.app-alert-row.ok { color: #6bff9e; }

.app-date-row {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.5);
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.app-export-btn {
  background: var(--primary);
  color: var(--text-white);
  font-size: 0.6rem;
  text-align: center;
  padding: 0.35rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.app-export-btn.secondary {
  background: rgba(255,255,255,0.1);
  margin-top: 0.3rem;
}

/* 电脑 Mockup */
.desktop-mockup {
  width: 480px;
  min-width: 480px;
  background: #1a1f3a;
  border-radius: 12px;
  padding: 10px;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.desktop-mockup:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.desktop-screen {
  background: #0f1225;
  border-radius: 8px;
  display: flex;
  min-height: 220px;
  overflow: hidden;
}

/* 电脑端截图展示 */
.desktop-screen-img {
  padding: 0;
  min-height: auto;
  overflow: hidden;
  display: block;
  position: relative;
}

.pc-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* 电脑端截图标签 - 电脑端悬停显示 */
.desktop-mockup-img {
  position: relative;
}

.pc-screenshot-label {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
  opacity: 0;
}

/* 桌面端：鼠标悬停时显示标签 */
@media (hover: hover) {
  .desktop-mockup-img:hover .pc-screenshot-label {
    opacity: 1;
  }
}

/* 手机端：标签默认隐藏，点击后显示 */
@media (max-width: 768px) {
  .pc-screenshot-label {
    opacity: 0;
    pointer-events: auto;
  }

  .desktop-mockup-img.label-visible .pc-screenshot-label {
    opacity: 1;
  }
}

.desktop-sidebar {
  width: 35%;
  background: rgba(255,255,255,0.04);
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem;
}

.ds-logo {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
}

.ds-logo .logo-img {
  height: 0.7rem;
  width: auto;
  margin-right: 0.25rem;
  vertical-align: middle;
  object-fit: contain;
}

.ds-nav {
  font-size: 0.5rem;
  color: rgba(255,255,255,0.4);
  padding: 0.25rem 0.3rem;
  border-radius: 3px;
  margin-bottom: 0.15rem;
}

.ds-nav.active {
  background: rgba(0,102,255,0.2);
  color: var(--accent);
}

.desktop-main {
  flex: 1;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
}

.dm-title {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.dm-cards {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.dm-stat {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  padding: 0.35rem 0.3rem;
  font-size: 0.45rem;
  color: rgba(255,255,255,0.5);
}

.dm-stat-val {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.dm-chart {
  flex: 1;
  background: linear-gradient(0deg, rgba(0,102,255,0.15), transparent);
  border-radius: 4px;
  min-height: 60px;
  clip-path: polygon(0 100%, 8% 40%, 20% 65%, 32% 25%, 44% 50%, 56% 15%, 68% 45%, 80% 20%, 92% 55%, 100% 30%, 100% 100%);
}

.dm-chart-lg {
  flex: 1;
  background: linear-gradient(0deg, rgba(0,212,255,0.15), transparent);
  border-radius: 4px;
  min-height: 80px;
  clip-path: polygon(0 100%, 5% 55%, 15% 75%, 25% 35%, 35% 60%, 45% 20%, 55% 45%, 65% 10%, 75% 40%, 85% 25%, 95% 55%, 100% 40%, 100% 100%);
}

.dm-filter {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.dm-input {
  flex: 1;
  height: 18px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.1);
}

.dm-btn {
  font-size: 0.45rem;
  background: var(--primary);
  color: var(--text-white);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
}

.dm-table-head, .dm-table-row {
  display: flex;
  font-size: 0.45rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dm-table-head {
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}

.dm-table-head span, .dm-table-row span {
  flex: 1;
}

.dm-table-row {
  color: rgba(255,255,255,0.6);
}

.dm-table-row .online { color: #43e97b; }
.dm-table-row .offline { color: #e74c3c; }

.dm-alert {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.5rem;
  padding: 0.35rem 0.4rem;
  border-radius: 4px;
  margin-bottom: 0.3rem;
}

.dm-alert.danger { background: rgba(231,76,60,0.15); color: #ff6b6b; }
.dm-alert.warn { background: rgba(243,156,18,0.15); color: #ffd93d; }
.dm-alert.info { background: rgba(0,102,255,0.15); color: var(--accent); }

/* ==================== 模态弹窗 ==================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: var(--text-white);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-content h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.modal-content p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.modal-btn {
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.modal-btn.taobao {
  background: #ff6a00;
  color: var(--text-white);
}

.modal-btn.taobao:hover {
  background: #e55d00;
}

.modal-btn.jd {
  background: #e4393c;
  color: var(--text-white);
}

.modal-btn.jd:hover {
  background: #c62f32;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-light);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all var(--transition);
}

.modal-close:hover {
  background: #eee;
}

/* ==================== 页脚 ==================== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  display: inline-flex;
  align-items: center;
  color: var(--text-white);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  white-space: nowrap;
}

.footer-brand h3 .logo-img {
  height: 1.6rem;
  width: auto;
  margin-right: 0.5rem;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--text-white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ==================== 文档页面 ==================== */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  padding-top: 72px;
}

.docs-sidebar {
  background: var(--bg-light);
  border-right: 1px solid #e8e8e8;
  padding: 2rem 1.5rem;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
}

.docs-sidebar h3 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

.docs-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text-light);
  border-radius: 6px;
  margin-bottom: 0.2rem;
  transition: all var(--transition);
}

.docs-nav a:hover,
.docs-nav a.active {
  background: rgba(0, 102, 255, 0.08);
  color: var(--primary);
}

.docs-nav .nav-group-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 1px;
  padding: 1rem 0.75rem 0.3rem;
  font-weight: 600;
}

.docs-content {
  padding: 2.5rem 3rem;
  max-width: 800px;
}

.docs-content h1 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bg-light);
}

.docs-content h2 {
  font-size: 1.4rem;
  color: var(--dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.docs-content h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.docs-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1rem;
}

.docs-content ul, .docs-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.docs-content li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 0.25rem;
  list-style: disc;
}

.docs-content ol li {
  list-style: decimal;
}

.docs-content code {
  background: #f0f2f5;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: "Consolas", "Monaco", monospace;
  color: #e74c3c;
}

.docs-content pre {
  background: #1a1f3a;
  color: #e0e0e0;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.docs-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.docs-content .info-box {
  background: #eef6ff;
  border-left: 3px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text);
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.docs-content th {
  background: var(--bg-light);
  padding: 0.65rem 1rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid #ddd;
}

.docs-content td {
  padding: 0.6rem 1rem;
  border: 1px solid #ddd;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .container {
    padding: 0 0.75rem;
  }

  .nav-left,
  .nav-right,
  .nav-center {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-logo {
    display: flex !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .mobile-buy {
    display: flex !important;
  }

  .navbar.scrolled .scrolled-logo,
  .navbar.scrolled .scrolled-buy {
    opacity: 0;
    pointer-events: none;
    transform: translateX(0);
  }

  .hero-content h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .data-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .data-controls input[type="datetime-local"] {
    width: 100%;
  }

  .data-btn {
    width: 100%;
    text-align: center;
  }

  .data-demo-inner {
    padding: 1.25rem 0.75rem;
  }

  .alert-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .alert-item .alert-time {
    font-size: 0.72rem;
    white-space: normal;
  }

  .alert-item .alert-msg {
    font-size: 0.82rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .download-cards {
    display: block;
    margin-bottom: 2rem;
  }

  .dl-row {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 1rem;
  }

  .phone-mockup {
    width: 160px;
    min-width: 160px;
  }

  .phone-screen {
    min-height: 260px;
  }

  .phone-screen-img {
    min-height: auto;
  }

  .desktop-mockup {
    width: 300px;
    min-width: 300px;
  }

  .desktop-screen {
    min-height: 180px;
  }

  .desktop-screen-img {
    min-height: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: relative;
    top: 0;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
  }

  .docs-content {
    padding: 1.5rem;
  }

  .product-tabs {
    gap: 0.35rem;
    row-gap: 0.45rem;
  }

  .product-tab {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
  }

  .alert-channels {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .alert-channel-item {
    padding: 0.45rem 0.6rem;
  }

  .realtime-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .realtime-demo-inner {
    padding: 1.25rem 0.75rem;
  }

  .rt-value {
    font-size: 1.5rem;
  }

  .rt-chart-container {
    height: 200px;
  }

  .rt-card-limits {
    flex-direction: column;
    gap: 0.3rem;
  }
}

@media (min-width: 769px) {
  .mobile-logo,
  .mobile-buy {
    display: none !important;
  }
}

/* 手机端导航栏内部布局 */
.nav-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .nav-mobile-bar {
    display: flex;
    position: relative;
  }

  .nav-inner {
    display: none;
  }

  .navbar.scrolled {
    background: rgba(10, 14, 39, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  }

  .navbar.scrolled .nav-mobile-bar {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    width: 100%;
    margin: 0;
    padding: 0 1rem;
  }
}

.mobile-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  display: none;
  align-items: center;
  letter-spacing: 2px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  white-space: nowrap;
}

.mobile-logo .logo-img {
  height: 1.5rem;
  width: auto;
  margin-right: 0.4rem;
  object-fit: contain;
  flex-shrink: 0;
}

.mobile-buy .btn-buy {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.mobile-buy {
  display: none;
  align-items: center;
}

/* 全平台图标行 */
.platform-icons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.platform-icon {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--platform-color, var(--primary)) 10%, transparent);
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--platform-color, var(--primary)) 75%, var(--dark));
  transition: all 0.25s ease;
  cursor: default;
}

.platform-icon i {
  font-size: 1rem;
  color: var(--platform-color, var(--primary));
  transition: transform 0.25s ease;
}

.platform-icon span {
  font-weight: 500;
  line-height: 1;
}

.platform-icon:hover {
  background: color-mix(in srgb, var(--platform-color, var(--primary)) 18%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--platform-color, var(--primary)) 15%, transparent);
}

.platform-icon:hover i {
  transform: scale(1.15);
}

/* 全屏淡入动画 */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 选择框样式 */
select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--text-white);
}
