/* ===================================================
   在旗科技 · 官网公共样式
   设计理念：清爽、清新、科技感
   =================================================== */

:root {
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --secondary: #7c3aed;
  --accent-green: #059669;
  --accent-cyan: #0891b2;
  --accent-orange: #d97706;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-light: #94a3b8;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --shadow-hover: 0 8px 32px rgba(0,0,0,.12);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── 容器 ──────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 导航栏 ─────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
  white-space: nowrap;
}
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 16px;
}
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
  list-style: none;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: rgba(29,78,216,0.06);
}
.nav-cta {
  margin-left: auto;
  padding: 8px 20px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ── Hero 区块 ──────────────────────────────────────── */
.hero {
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%,
    rgba(29,78,216,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(29,78,216,0.08);
  color: var(--primary);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(29,78,216,0.15);
}
.hero-tag .dot {
  width: 6px; height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 按钮 ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(29,78,216,0.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(29,78,216,0.35); }
.btn-outline {
  background: white;
  color: var(--primary);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}
.btn-outline:hover { border-color: var(--primary-light); transform: translateY(-2px); }

/* ── 章节标题 ─────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: white; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }

/* ── 产品卡片网格 ─────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-color, var(--primary));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(29,78,216,0.15);
}
.product-card:hover::before { transform: scaleX(1); }
.product-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
}
.product-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.product-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.tag {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}
.product-link:hover { gap: 8px; }

/* ── 特性网格 ─────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}
.feature-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* ── 子系统列表 ───────────────────────────────────────── */
.subsystems {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.subsystem-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: var(--transition);
}
.subsystem-item:hover { box-shadow: var(--shadow); border-color: rgba(29,78,216,0.2); }
.subsystem-num {
  width: 28px; height: 28px; min-width: 28px;
  border-radius: 7px;
  background: rgba(29,78,216,0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.subsystem-item h5 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.subsystem-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ── 统计数字 ─────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 48px 0;
}
.stat-item {
  background: white;
  padding: 32px 24px;
  text-align: center;
}
.stat-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 14px; color: var(--text-secondary); font-weight: 500; }

/* ── 价值主张横幅 ─────────────────────────────────────── */
.value-strip {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.value-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 80% 50%,
    rgba(124,58,237,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.value-strip h2 {
  font-size: clamp(24px,3vw,40px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.value-strip p {
  font-size: 18px;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 36px;
}
.value-strip .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.value-strip .btn-primary:hover { background: #f1f5f9; }

/* ── 产品页 Hero（带颜色主题） ───────────────────────── */
.product-hero {
  padding: 80px 0 100px;
  background: linear-gradient(135deg,
    var(--hero-from, #1e3a8a) 0%,
    var(--hero-to, #3b82f6) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.product-hero::after {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
.product-hero::before {
  content: '';
  position: absolute;
  right: 100px; bottom: -150px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.product-hero .hero-tag {
  background: rgba(255,255,255,0.15);
  color: white;
  border-color: rgba(255,255,255,0.25);
}
.product-hero .hero-tag .dot { background: rgba(255,255,255,0.8); }
.product-hero h1 { color: white; }
.product-hero h1 .highlight { -webkit-text-fill-color: rgba(255,255,255,0.9); }
.product-hero p { color: rgba(255,255,255,0.8); }
.product-hero .btn-outline {
  background: rgba(255,255,255,0.15);
  color: white;
  border-color: rgba(255,255,255,0.3);
}
.product-hero .btn-outline:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
}
.product-hero .btn-primary {
  background: white;
  color: var(--hero-from, var(--primary));
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.product-hero .btn-primary:hover { background: #f1f5f9; }

/* ── 面包屑/返回链接 ──────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 32px;
  opacity: 0.7;
}
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }

/* ── 对比表格 ─────────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.compare-table th {
  background: var(--primary);
  color: white;
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}
.compare-table th:first-child { border-radius: var(--radius) 0 0 0; }
.compare-table th:last-child { border-radius: 0 var(--radius) 0 0; }
.compare-table td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--bg); }

/* ── 场景/用户标签 ────────────────────────────────────── */
.use-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.use-case {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.use-case:hover { border-color: var(--primary-light); color: var(--primary); }

/* ── 页脚 ─────────────────────────────────────────────── */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  max-width: 260px;
}
.footer-col h6 {
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: #94a3b8;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.footer-logo { color: white; font-weight: 700; font-size: 16px; }
.footer-tagline {
  font-size: 13px;
  color: #64748b;
  letter-spacing: 0.02em;
}

/* ── 响应式 ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 60px 0 80px; }
  .section { padding: 60px 0; }
  .products-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .subsystems { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ── 色彩工具类 ───────────────────────────────────────── */
.c-blue  { --card-color: #2563eb; }
.c-purple { --card-color: #7c3aed; }
.c-cyan  { --card-color: #0891b2; }
.c-green { --card-color: #059669; }
.c-orange { --card-color: #d97706; }

.icon-bg-blue   { background: rgba(37,99,235,0.1); }
.icon-bg-purple { background: rgba(124,58,237,0.1); }
.icon-bg-cyan   { background: rgba(8,145,178,0.1); }
.icon-bg-green  { background: rgba(5,150,105,0.1); }
.icon-bg-orange { background: rgba(217,119,6,0.1); }

/* ── 分隔线 ───────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ── 亮点列表 ─────────────────────────────────────────── */
.checklist { list-style: none; margin-top: 24px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '✓';
  width: 20px; height: 20px; min-width: 20px;
  border-radius: 50%;
  background: rgba(5,150,105,0.1);
  color: #059669;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

/* ── 两列布局 ─────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse { direction: ltr; }
}

/* ── 可视化占位卡片 ───────────────────────────────────── */
.demo-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border);
}
.demo-topbar {
  display: flex; gap: 8px; margin-bottom: 20px; align-items: center;
}
.demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-title { font-size: 13px; color: var(--text-secondary); margin-left: 4px; font-weight: 500; }
.demo-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
}
.demo-badge {
  padding: 2px 8px; border-radius: 100px;
  font-size: 11px; font-weight: 600;
}
