/* ========== CSS Variables ========== */
:root {
  /* 背景层 */
  --bg: #f8fafc;
  --bg2: rgba(255, 255, 255, 0.72);
  --bg3: rgba(255, 255, 255, 0.5);
  --bg-solid: #ffffff;

  /* 文字 */
  --ink: #1e293b;
  --muted: #64748b;
  --ink-light: #94a3b8;

  /* 边框 */
  --rule: rgba(59, 130, 246, 0.12);
  --rule-strong: rgba(59, 130, 246, 0.25);

  /* 强调色 - 科技蓝渐变 */
  --accent: #3b82f6;
  --accent2: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #3b82f6, #06b6d4);
  --accent-soft: rgba(59, 130, 246, 0.08);

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(59, 130, 246, 0.06);
  --shadow-md: 0 4px 16px rgba(59, 130, 246, 0.08);
  --shadow-lg: 0 12px 36px rgba(59, 130, 246, 0.12);

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* 布局 */
  --max-width: 1200px;
  --nav-height: 68px;
}

/* ========== Reset & Base ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  min-height: 100vh;
  position: relative;
}

/* 背景渐变层 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(59, 130, 246, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 90%, rgba(6, 182, 212, 0.06), transparent 60%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(99, 102, 241, 0.04), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent2);
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
}

.nav-brand .logo,
.nav-brand .logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-name-en {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 下拉菜单 */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.dropdown-toggle:hover {
  border-color: var(--rule-strong);
  background: var(--accent-soft);
}

.dropdown-toggle .caret {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.dropdown.open .dropdown-toggle .caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--bg2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  padding: 8px;
  z-index: 1001;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.dropdown-item.active {
  background: var(--accent-gradient);
  color: white;
}

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-select-wrapper {
  position: relative;
}

#product-search {
  width: 240px;
  padding: 8px 36px 8px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--bg2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.9rem;
  color: var(--ink);
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

#product-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#product-search::placeholder {
  color: var(--ink-light);
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ink-light);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 50%;
  transition: all 0.15s ease;
  display: none;
}

.search-clear:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.search-clear.visible {
  display: block;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 1001;
  padding: 6px;
}

.search-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-item:hover,
.search-item.selected {
  background: var(--accent-soft);
}

.search-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.search-item-cat {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.search-empty {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* 按钮 */
.btn-primary {
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 9px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  font-family: inherit;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg2);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 9px 22px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-secondary:hover {
  border-color: var(--rule-strong);
  background: var(--accent-soft);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 8px;
}

/* ========== 主内容区 ========== */
.main-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 32px) 24px 48px;
  min-height: calc(100vh - var(--nav-height));
}

/* 页面过渡动画 */
.page {
  animation: pageIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ========== 首页 - Hero区域 ========== */
.hero {
  padding: 48px 0 32px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.hero-slogan {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 32px;
  letter-spacing: 2px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

/* ========== 公司介绍 ========== */
.section {
  padding: 48px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* 核心优势卡片 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--rule-strong);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ========== 产品类别卡片 ========== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--bg2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  padding: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  background: var(--accent-gradient);
  opacity: 0.06;
  border-radius: 50%;
  transform: translate(40%, -40%);
  transition: all 0.4s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--rule-strong);
}

.category-card:hover::before {
  transform: translate(20%, -20%) scale(1.2);
  opacity: 0.1;
}

.category-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.category-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.category-name-en {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

.category-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.category-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.category-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 100px;
  font-weight: 500;
}

.category-arrow {
  position: absolute;
  bottom: 28px;
  right: 32px;
  color: var(--accent);
  font-size: 1.25rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
  z-index: 1;
}

.category-card:hover .category-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ========== 应用领域 ========== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.app-item {
  background: var(--bg2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: all 0.25s ease;
}

.app-item:hover {
  border-color: var(--rule-strong);
  background: var(--accent-soft);
}

.app-icon {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

.app-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

/* ========== 面包屑 ========== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.breadcrumb-sep {
  color: var(--ink-light);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* ========== 产品类型页 ========== */
.category-header {
  margin-bottom: 32px;
}

.category-page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.category-page-title-en {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 16px;
}

.category-page-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 800px;
}

/* 系列筛选栏 */
.series-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 16px 20px;
  background: var(--bg2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}

.series-filter-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.series-select {
  flex: 1;
  max-width: 360px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--bg-solid);
  font-size: 0.9rem;
  color: var(--ink);
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.series-select:focus {
  border-color: var(--accent);
}

/* 系列卡片列表 */
.series-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.series-card {
  background: var(--bg2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
}

.series-card:hover {
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-md);
}

.series-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.series-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

.series-highlight {
  font-size: 0.75rem;
  padding: 4px 12px;
  background: var(--accent-gradient);
  color: white;
  border-radius: 100px;
  font-weight: 500;
  white-space: nowrap;
}

.series-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.series-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.product-mini-card {
  background: var(--bg3);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-mini-image-wrapper {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border-radius: 8px;
  overflow: hidden;
}

.product-mini-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-mini-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.product-mini-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.product-mini-summary {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== 产品详情页 ========== */
.product-header {
  margin-bottom: 32px;
}

.product-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-model {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "JetBrains Mono", Consolas, monospace;
  margin-bottom: 16px;
}

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

.product-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  background: var(--bg3);
  border: 1px solid var(--rule);
  border-radius: 100px;
  color: var(--muted);
}

/* 产品概览 */
.product-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.product-image-card {
  background: var(--bg2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.product-image {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 12px;
}

.product-placeholder {
  text-align: center;
}

.product-placeholder-icon {
  font-size: 5rem;
  margin-bottom: 16px;
  opacity: 0.6;
}

.product-placeholder-text {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-summary-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
}

.product-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

/* 关键指标 */
.key-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.metric-card {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--muted);
}

/* 产品详情区块 */
.product-section {
  margin-bottom: 40px;
}

.product-section-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--rule);
  position: relative;
}

.product-section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

/* 参数表格 */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
}

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

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}

.spec-table th {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table tr:hover td {
  background: var(--accent-soft);
}

.spec-param {
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  width: 35%;
}

.spec-value {
  color: var(--muted);
}

/* 功能特性 */
.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.feature-item:hover {
  border-color: var(--rule-strong);
  background: var(--accent-soft);
}

.feature-check {
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-text {
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.5;
}

/* 应用场景 */
.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-tag {
  padding: 8px 18px;
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--ink);
  transition: all 0.2s ease;
}

.app-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ========== 页脚 ========== */
.footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0;
  margin-top: 48px;
  background: var(--bg2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.footer-brand-en {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--ink);
}

.footer-col-item {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-light);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.375rem;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-solid);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    overflow-y: auto;
  }

  .nav-menu.mobile-open {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .search-box {
    flex-direction: column;
    width: 100%;
  }

  #product-search {
    width: 100%;
  }

  .search-dropdown {
    position: fixed;
    top: auto;
    left: 24px;
    right: 24px;
    max-height: 40vh;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    max-width: 260px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 20px 14px;
  }

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

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

  .series-filter {
    flex-direction: column;
    align-items: flex-start;
  }

  .series-select {
    max-width: 100%;
    width: 100%;
  }

  .key-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .features-list {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .main-container {
    padding: calc(var(--nav-height) + 20px) 16px 32px;
  }

  .section {
    padding: 32px 0;
  }

  .product-title,
  .category-page-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .category-card {
    padding: 24px;
  }

  .key-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .spec-table th,
  .spec-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

/* ========== 选型器样式 ========== */
.selector-hero {
  text-align: center;
  padding: 48px 24px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.selector-hero .hero-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 16px;
}

/* 筛选标签栏 */
.filter-bar {
  background: var(--bg2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.filter-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-label {
  flex-shrink: 0;
  width: 80px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  padding-top: 6px;
}

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

.filter-tag {
  padding: 6px 14px;
  font-size: 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--bg3);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.filter-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.filter-tag.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* 筛选结果摘要 */
.filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 4px;
}

.filter-count {
  font-size: 0.9rem;
  color: var(--muted);
}

.filter-clear-btn {
  font-size: 0.85rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-clear-btn:hover {
  background: var(--accent-soft);
  text-decoration: underline;
}

/* 产品网格 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(6, 182, 212, 0.03));
  overflow: hidden;
}

.product-card-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-placeholder {
  font-size: 2.5rem;
  color: var(--muted);
}

.product-card-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card-cat {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.product-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.product-card-summary {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-card-link {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 8px;
  transition: gap 0.2s ease;
}

.product-card:hover .product-card-link {
  text-decoration: underline;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-text {
  font-size: 1rem;
}

/* ========== 选型器响应式 ========== */
@media (max-width: 768px) {
  .filter-group {
    flex-direction: column;
    gap: 6px;
  }

  .filter-label {
    width: auto;
    padding-top: 0;
  }

  .filter-tags {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-tag {
    flex-shrink: 0;
  }

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

  .selector-hero {
    padding: 32px 16px 16px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    gap: 12px;
  }

  .product-card-image {
    height: 160px;
  }

  .product-card-body {
    padding: 12px 16px 16px;
  }
}
