/* ========== 全局样式 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0050a0;
  --primary-dark: #003d80;
  --primary-light: #0066c8;
  --accent: #00a0e9;
  --text: #1a1a1a;
  --text-light: #666;
  --text-lighter: #999;
  --bg: #ffffff;
  --bg-light: #f5f7fa;
  --bg-gray: #f0f2f5;
  --border: #e5e7eb;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 4px;
  --radius-lg: 8px;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== 顶部导航 ========== */
.top-bar {
  background: linear-gradient(90deg, #001f3f 0%, #003366 100%);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: rgba(255,255,255,0.85); margin: 0 8px; }
.top-bar a:hover { color: #fff; }
.lang-switch { display: inline-flex; gap: 6px; align-items: center; }
.lang-switch button { color: rgba(255,255,255,0.85); font-size: 12px; padding: 2px 4px; }
.lang-switch button.active { color: #fff; font-weight: 600; }
.lang-switch .sep { opacity: 0.5; }

/* ========== 主导航 ========== */
.header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--primary); }
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px; letter-spacing: -1px;
  box-shadow: 0 4px 12px rgba(0,80,160,0.3);
}
.logo-text { line-height: 1.1; }
.logo-text .sub { display: block; font-size: 11px; color: var(--text-light); font-weight: 400; margin-top: 2px; letter-spacing: 0.5px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav > li > a {
  display: block;
  padding: 10px 18px;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  position: relative;
  border-radius: 4px;
}
.nav > li > a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
}
.nav > li > a:hover, .nav > li.active > a { color: var(--primary); }
.nav > li > a:hover::after, .nav > li.active > a::after { width: 60%; }

.nav .dropdown {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border-top: 2px solid var(--primary);
}
.nav > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav .dropdown li a {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}
.nav .dropdown li a:hover { background: var(--bg-light); color: var(--primary); padding-left: 24px; }

.menu-toggle { display: none; font-size: 24px; padding: 8px; color: var(--text); }

/* ========== Hero 区 ========== */
.hero {
  position: relative;
  height: 580px;
  background: linear-gradient(135deg, #001f3f 0%, #003366 50%, #0050a0 100%);
  overflow: hidden;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(0,160,233,0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,80,160,0.4) 0%, transparent 50%),
    linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.05) 49%, rgba(255,255,255,0.05) 51%, transparent 52%);
  background-size: cover, cover, 40px 40px;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M0 0h50v50H0z' fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'/%3E%3Cpath d='M50 50h50v50H50z' fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 100px 100px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
}
.hero-content { max-width: 700px; }
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0,160,233,0.2);
  border: 1px solid rgba(0,160,233,0.4);
  border-radius: 100px;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #fff 0%, #7fdbff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 24px;
  opacity: 0.95;
}
.hero p {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 600px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,160,233,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,160,233,0.6); color: #fff; }
.btn-outline {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.6); color: #fff; }

.hero-graphic {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  pointer-events: none;
  opacity: 0.85;
}
.chip-svg { width: 100%; height: 100%; }

.hero-keys {
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-keys .container { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-keys .label { color: rgba(255,255,255,0.7); font-size: 13px; }
.hero-keys a {
  padding: 4px 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  font-size: 13px;
  color: #fff;
  transition: var(--transition);
}
.hero-keys a:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

/* ========== 通用区段 ========== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 2px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-light);
  margin-top: 20px;
}

/* ========== 产品展示 ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.product-image {
  height: 200px;
  background: linear-gradient(135deg, #e8f1f9 0%, #d4e4f4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(45deg, rgba(0,80,160,0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0,80,160,0.05) 25%, transparent 25%);
  background-size: 20px 20px;
}
.product-image svg { position: relative; z-index: 1; }
.product-info { padding: 24px; }
.product-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.product-cat {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  background: rgba(0,80,160,0.08);
  padding: 2px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.product-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
}
.product-link::after { content: '→'; transition: var(--transition); }
.product-link:hover::after { transform: translateX(4px); }

/* ========== 应用领域 ========== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.app-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.app-card:hover::before { transform: scaleX(1); }
.app-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: var(--transition);
}
.app-card:hover .app-icon { transform: rotate(5deg) scale(1.05); }
.app-name { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.app-desc { font-size: 12px; color: var(--text-light); }

/* ========== 关于我们 ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-content h3 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.about-content .label {
  display: inline-block;
  font-size: 13px;
  color: var(--primary);
  background: rgba(0,80,160,0.08);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  font-weight: 500;
}
.about-content p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-light);
  margin-bottom: 16px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item .num {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-item .label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
  background: none;
  padding: 0;
  display: block;
}
.about-visual {
  position: relative;
  height: 460px;
  background: linear-gradient(135deg, #001f3f 0%, #0050a0 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.about-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.05) 50%, transparent 51%);
  background-size: 30px 30px;
}
.about-visual .company-name {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}
.about-visual .company-name .big {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(90deg, #fff 0%, #7fdbff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-visual .company-name .small {
  font-size: 18px;
  letter-spacing: 8px;
  opacity: 0.8;
  margin-top: 8px;
}

/* ========== 质量管理 ========== */
.quality-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.quality-banner h3 { font-size: 24px; margin-bottom: 8px; }
.quality-banner p { opacity: 0.9; font-size: 14px; }
.quality-banner .btn { background: #fff; color: var(--primary); font-weight: 600; }
.quality-banner .btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* ========== 新闻资讯 ========== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-image {
  height: 180px;
  background: linear-gradient(135deg, #001f3f 0%, #0050a0 100%);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.news-image::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.06) 49%, rgba(255,255,255,0.06) 51%, transparent 52%);
  background-size: 20px 20px;
}
.news-image svg { position: relative; z-index: 1; opacity: 0.7; }
.news-info { padding: 20px; }
.news-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  background: rgba(0,160,233,0.1);
  padding: 2px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.news-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 45px;
}
.news-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-lighter); }
.news-date { display: flex; align-items: center; gap: 4px; }
.news-card a:hover .news-title { color: var(--primary); }

/* ========== 合作伙伴 ========== */
.partners {
  background: var(--bg-gray);
  padding: 40px 0;
}
.partners-title {
  text-align: center;
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 24px;
  letter-spacing: 1px;
}
.partner-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-items: center;
}
.partner-logo {
  background: #fff;
  height: 80px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  color: var(--text-light);
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.partner-logo:hover { color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ========== 页脚 ========== */
.footer {
  background: linear-gradient(180deg, #001f3f 0%, #00152a 100%);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; line-height: 1.8; opacity: 0.7; }
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 24px; height: 2px;
  background: var(--accent);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; opacity: 0.7; }
.footer-col ul li a:hover { opacity: 1; color: #fff; padding-left: 4px; }
.contact-item { font-size: 13px; line-height: 1.8; margin-bottom: 12px; }
.contact-item strong { color: #fff; display: block; margin-bottom: 2px; font-size: 14px; }
.tab-btns { display: flex; gap: 4px; margin-bottom: 16px; }
.tab-btns button {
  padding: 6px 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  transition: var(--transition);
}
.tab-btns button.active { background: var(--accent); color: #fff; }
.tab-content { display: none; }
.tab-content.active { display: block; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--accent); }

/* ========== 内页 Banner ========== */
.page-banner {
  height: 280px;
  background: linear-gradient(135deg, #001f3f 0%, #0050a0 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.04) 50%, transparent 51%);
  background-size: 30px 30px;
}
.page-banner h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
}
.page-banner .breadcrumb { font-size: 14px; opacity: 0.8; position: relative; }
.page-banner .breadcrumb a:hover { color: #fff; }
.page-banner .breadcrumb .sep { margin: 0 8px; opacity: 0.6; }

/* ========== 产品分类导航 ========== */
.product-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.cat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.cat-card.active, .cat-card:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.cat-icon {
  width: 60px; height: 60px;
  margin: 0 auto 12px;
  background: rgba(0,80,160,0.08);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  transition: var(--transition);
}
.cat-card.active .cat-icon, .cat-card:hover .cat-icon {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.cat-name { font-size: 17px; font-weight: 600; }
.cat-count { font-size: 12px; opacity: 0.7; margin-top: 4px; }

/* ========== 产品筛选 ========== */
.product-filters {
  background: #fff;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-label { font-size: 13px; color: var(--text-light); font-weight: 500; }
.filter-options { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn {
  padding: 4px 12px;
  font-size: 12px;
  background: var(--bg-light);
  color: var(--text);
  border-radius: 4px;
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: #fff; }

/* ========== 时间线 ========== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
}
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px; top: 4px;
  width: 14px; height: 14px;
  background: #fff;
  border: 3px solid var(--primary);
  border-radius: 50%;
  z-index: 1;
}
.timeline-year {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.timeline-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.timeline-desc { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ========== FAQ 折叠 ========== */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { box-shadow: var(--shadow); border-color: var(--primary); }
.faq-question {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  user-select: none;
}
.faq-question::before {
  content: 'Q';
  display: inline-block;
  width: 28px; height: 28px;
  line-height: 28px;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  margin-right: 14px;
  flex-shrink: 0;
}
.faq-question span { flex: 1; }
.faq-toggle {
  width: 24px; height: 24px;
  position: relative;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-toggle::before, .faq-toggle::after {
  content: '';
  position: absolute;
  background: var(--text-light);
  transition: var(--transition);
}
.faq-toggle::before { top: 11px; left: 4px; width: 16px; height: 2px; }
.faq-toggle::after { top: 4px; left: 11px; width: 2px; height: 16px; }
.faq-item.open .faq-toggle::after { transform: rotate(90deg); opacity: 0; }
.faq-item.open .faq-toggle::before { background: var(--primary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px 66px;
  color: var(--text-light);
  line-height: 1.8;
  font-size: 14px;
}
.faq-item.open .faq-answer { max-height: 500px; }

/* ========== 联系页 ========== */
.contact-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.contact-tab {
  padding: 12px 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}
.contact-tab.active, .contact-tab:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,80,160,0.3);
}
.contact-pane { display: none; }
.contact-pane.active { display: block; }
.contact-info {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.contact-block h4 { color: var(--primary); font-size: 18px; margin-bottom: 12px; }
.contact-block p { color: var(--text-light); line-height: 1.8; margin-bottom: 8px; font-size: 14px; }
.contact-block p strong { color: var(--text); display: inline-block; min-width: 70px; }

.map-placeholder {
  height: 240px;
  background: linear-gradient(135deg, #e8f1f9 0%, #d4e4f4 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  margin-top: 16px;
}
.map-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(0deg, transparent 49%, rgba(0,80,160,0.1) 50%, transparent 51%),
    linear-gradient(90deg, transparent 49%, rgba(0,80,160,0.1) 50%, transparent 51%);
  background-size: 40px 40px;
}
.map-pin {
  position: relative;
  z-index: 1;
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  padding: 8px 16px;
  border-radius: 100px;
  box-shadow: var(--shadow);
}

/* ========== 资质荣誉 ========== */
.honor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.honor-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.honor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.honor-icon {
  width: 60px; height: 60px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(255,170,0,0.3);
}
.honor-name { font-size: 14px; font-weight: 600; line-height: 1.5; }

/* ========== 新闻列表 ========== */
.news-list { max-width: 900px; margin: 0 auto; }
.news-list-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.news-list-item:hover { background: var(--bg-light); padding-left: 16px; padding-right: 16px; border-radius: var(--radius); border-bottom-color: transparent; }
.news-list-date {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 8px;
  align-self: flex-start;
}
.news-list-date .day { font-size: 28px; font-weight: 800; line-height: 1; }
.news-list-date .year { font-size: 12px; opacity: 0.85; margin-top: 4px; }
.news-list-content { flex: 1; }
.news-list-tag { display: inline-block; font-size: 12px; color: var(--primary); background: rgba(0,80,160,0.08); padding: 2px 10px; border-radius: 100px; margin-bottom: 8px; }
.news-list-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.news-list-desc { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ========== 面包屑 ========== */
.breadcrumb-bar {
  background: var(--bg-light);
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-light);
}
.breadcrumb-bar a { color: var(--text-light); }
.breadcrumb-bar a:hover { color: var(--primary); }
.breadcrumb-bar .sep { margin: 0 8px; color: var(--text-lighter); }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .product-grid, .app-grid, .news-grid, .product-categories, .honor-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-logos { grid-template-columns: repeat(4, 1fr); }
  .about-grid, .contact-info { grid-template-columns: 1fr; gap: 30px; }
  .about-visual { height: 320px; }
  .hero h1 { font-size: 36px; }
  .hero h2 { font-size: 22px; }
  .hero-graphic { display: none; }
  .section-title { font-size: 28px; }
  .nav > li > a { padding: 10px 12px; font-size: 14px; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    top: 72px; right: -100%;
    width: 280px; height: calc(100vh - 72px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    transition: right 0.3s;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }
  .nav.open { right: 0; }
  .nav > li { width: 100%; }
  .nav > li > a { padding: 12px 0; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border-top: none;
    background: var(--bg-light);
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    padding: 0;
  }
  .nav > li:hover .dropdown { transform: none; }
  .nav > li:hover .dropdown { max-height: 500px; }
  .hero { height: auto; padding: 60px 0 40px; }
  .hero h1 { font-size: 30px; }
  .hero h2 { font-size: 20px; }
  .section { padding: 50px 0; }
  .product-grid, .app-grid, .news-grid, .product-categories, .honor-grid, .footer-grid, .partner-logos { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 16px; }
  .hero-keys .container { font-size: 12px; }
  .header .container { height: 60px; }
  .logo { font-size: 16px; }
  .logo-icon { width: 36px; height: 36px; font-size: 13px; }
  .page-banner { height: 200px; }
  .page-banner h1 { font-size: 28px; }
}

@media (max-width: 480px) {
  .product-grid, .app-grid, .news-grid, .product-categories, .honor-grid, .footer-grid, .partner-logos { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .quality-banner { padding: 24px; }
  .news-list-item { flex-direction: column; gap: 12px; }
  .news-list-date { width: 100%; display: flex; gap: 12px; justify-content: center; align-items: center; padding: 8px; }
  .news-list-date .day { font-size: 18px; }
  .news-list-date .year { margin: 0; }
}

/* ========== 动画 ========== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

/* ========== 搜索 ========== */
.site-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-light);
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  margin-left: 12px;
  margin-right: 8px;
  flex-shrink: 0;
}
.site-search-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.search-modal {
  background: #fff;
  border-radius: 12px;
  width: 92%;
  max-width: 720px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.2s;
}
.search-overlay.open .search-modal {
  transform: translateY(0);
}
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
}
.search-input-icon {
  color: var(--text-light);
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 16px;
  padding: 0 14px;
  background: transparent;
  color: var(--text);
}
.search-input::placeholder {
  color: var(--text-lighter);
}
.search-close-btn {
  border: 0;
  background: transparent;
  font-size: 16px;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: var(--transition);
}
.search-close-btn:hover {
  background: var(--bg-gray);
  color: var(--text);
}
.search-categories {
  display: flex;
  gap: 8px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.search-cat-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}
.search-cat-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.search-cat-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  min-height: 200px;
}
.search-hint, .search-empty, .search-count {
  text-align: center;
  color: var(--text-lighter);
  font-size: 13px;
  padding: 32px 18px;
}
.search-result-item {
  display: flex;
  gap: 12px;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--text);
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.search-result-item:hover, .search-result-item:focus {
  background: var(--bg-light);
  border-left-color: var(--primary);
  outline: 0;
}
.search-result-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  line-height: 1.2;
}
.search-result-body {
  flex: 1;
  min-width: 0;
}
.search-result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
}
.search-result-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  color: #fff;
}
.badge-news { background: #00a0e9; }
.badge-product { background: #0050a0; }
.badge-document { background: #ff8800; }
.search-result-date { color: var(--text-lighter); font-size: 11px; }
.search-footer {
  border-top: 1px solid var(--border);
  padding: 10px 18px;
  font-size: 11px;
  color: var(--text-lighter);
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--bg-light);
}
.search-footer kbd {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 6px;
  font-family: monospace;
  font-size: 10px;
}
@media (max-width: 768px) {
  .search-modal { width: 96%; max-height: 90vh; }
  .site-search-btn { width: 32px; height: 32px; margin-left: 6px; }
}

/* ========== 产品搜索结果行 (含规格书 PDF) ========== */
.sp-section-title {
  padding: 12px 18px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-lighter);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}
.sp-section-title:first-child {
  border-top: none;
}
.sp-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}
.sp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.sp-row:hover {
  background: var(--bg-light);
  border-left-color: var(--primary);
}
.sp-left {
  flex: 1;
  min-width: 0;
}
.sp-model {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  font-family: 'SFMono-Regular', 'Consolas', 'Menlo', monospace;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sp-cat {
  display: inline-block;
  padding: 1px 6px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: 0.5px;
}
.sp-params {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.sp-chip {
  display: inline-block;
  padding: 2px 7px;
  background: #f3f6fa;
  color: #2c3e50;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
  font-family: 'SFMono-Regular', 'Consolas', 'Menlo', monospace;
  white-space: nowrap;
}
.sp-chip sub {
  font-size: 8px;
  vertical-align: -2px;
}
.sp-chip.sp-vds { background: #e8f4ff; border-color: #b8dafa; color: #0050a0; }
.sp-chip.sp-rds { background: #fff0e8; border-color: #f7c8a8; color: #c54a00; }
.sp-chip.sp-pkg { background: #f0e8ff; border-color: #d4b8fa; color: #5530a0; }
.sp-chip.sp-id  { background: #e8ffe8; border-color: #a8e0a8; color: #1a7a1a; }
.sp-chip.sp-empty {
  background: transparent;
  border: none;
  color: var(--text-lighter);
  font-family: var(--font-sans);
  font-weight: 400;
}
.sp-right {
  flex-shrink: 0;
}
.sp-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #ff4e00 0%, #ff7700 100%);
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(255, 78, 0, 0.2);
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.sp-pdf-btn:hover {
  background: linear-gradient(135deg, #e64400 0%, #e66600 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 78, 0, 0.3);
}
.sp-pdf-btn svg {
  flex-shrink: 0;
}
.sp-pdf-btn.sp-pdf-na {
  background: #ddd;
  color: #888 !important;
  cursor: default;
  box-shadow: none;
}
.sp-pdf-btn.sp-pdf-na:hover {
  transform: none;
  box-shadow: none;
}

/* ========== 静态 Header 搜索框 (PC 端可见) ========== */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
  background: #f3f6fa;
  border: 1.5px solid #e2e8f0;
  border-radius: 22px;
  padding: 0 12px;
  margin: 0 14px;
  height: 38px;
  flex: 0 1 360px;
  min-width: 220px;
  max-width: 380px;
  transition: all 0.2s ease;
}
.header-search:hover, .header-search:focus-within {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 80, 160, 0.08);
}
.header-search-icon {
  flex-shrink: 0;
  color: var(--text-lighter);
  margin-right: 8px;
}
.header-search:focus-within .header-search-icon {
  color: var(--primary);
}
.header-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: var(--text);
  padding: 0;
  font-family: inherit;
  min-width: 0;
}
.header-search-input::placeholder {
  color: var(--text-lighter);
  font-size: 12.5px;
}
.header-search-kbd {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-family: monospace;
  color: var(--text-lighter);
  margin-left: 6px;
  display: none;
}
@media (min-width: 1100px) {
  .header-search-kbd { display: inline-block; }
}
@media (max-width: 1099px) {
  .header-search {
    flex: 0 1 240px;
    min-width: 180px;
  }
  .header-search-kbd { display: none; }
}
@media (max-width: 860px) {
  .header-search {
    flex: 0 1 180px;
    min-width: 140px;
  }
}
@media (max-width: 720px) {
  .header-search {
    display: none;  /* mobile: use magnifier button + bottom sheet */
  }
}

/* ========== 浮层下拉结果面板 ========== */
.search-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  max-height: 70vh;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.search-panel.open {
  display: flex;
}
.search-panel-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.search-panel .search-categories {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
  flex-shrink: 0;
}
.search-panel .search-cat-btn {
  padding: 4px 12px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.15s;
}
.search-panel .search-cat-btn:hover { background: #f3f6fa; }
.search-panel .search-cat-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.search-panel .search-results {
  flex: 1;
  overflow-y: auto;
  min-height: 200px;
  max-height: 60vh;
  padding: 4px 0;
}
.search-panel .search-count {
  padding: 8px 16px 4px;
  font-size: 11px;
  color: var(--text-lighter);
  font-weight: 600;
}
.search-panel .search-hint,
.search-panel .search-empty {
  padding: 32px 18px;
  text-align: center;
  color: var(--text-lighter);
  font-size: 13px;
}
.search-panel .search-footer {
  border-top: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 11px;
  color: var(--text-lighter);
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fafbfc;
  flex-shrink: 0;
}
.search-panel .search-footer kbd {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 6px;
  font-family: monospace;
  font-size: 10px;
  color: var(--text);
}

/* ========== 静态 Header 搜索框 - 内联下拉 (PC 端直接可见) ========== */
.header-search { position: relative; }

.search-categories {
  display: none;
  gap: 4px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
  flex-shrink: 0;
}
.header-search .search-categories {
  display: flex;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  border: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s;
}
.header-search.search-open .search-categories {
  opacity: 1;
  pointer-events: auto;
}
.search-cat-btn {
  padding: 4px 12px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.15s;
}
.search-cat-btn:hover { background: #f3f6fa; }
.search-cat-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.search-results-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  max-height: 70vh;
  overflow-y: auto;
  padding: 0 0 8px;
}
.header-search.search-open .search-results-dropdown {
  display: block;
}
/* When both .search-categories and .search-results-dropdown are positioned,
   stack them visually by giving the results a top offset to make room */
.header-search.search-open .search-results-dropdown {
  top: calc(100% + 44px);
}
.search-count {
  padding: 10px 16px 4px;
  font-size: 11px;
  color: var(--text-lighter);
  font-weight: 600;
}
.search-hint, .search-empty {
  padding: 32px 18px;
  text-align: center;
  color: var(--text-lighter);
  font-size: 13px;
}

/* Product row (chip + PDF) */
.sp-section-title {
  padding: 10px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-lighter);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sp-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 12px;
}
.sp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid #f0f3f7;
  transition: background 0.12s;
}
.sp-row:last-child { border-bottom: none; }
.sp-row:hover { background: #f8fafc; }
.sp-left { flex: 1; min-width: 0; }
.sp-model {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-cat {
  display: inline-block;
  background: #eef4fb;
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.sp-params {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.sp-chip {
  display: inline-block;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 10px;
  background: #f3f6fa;
  color: var(--text-light);
  white-space: nowrap;
}
.sp-chip.sp-vds { background: #e7f3ec; color: #1f7a3a; }
.sp-chip.sp-rds { background: #fff3e0; color: #b35900; }
.sp-chip.sp-pkg { background: #f0ecfb; color: #5a3fa6; }
.sp-chip.sp-id  { background: #fde7e7; color: #b53030; }
.sp-chip.sp-empty { background: #f3f6fa; color: var(--text-lighter); font-style: italic; }
.sp-right { flex-shrink: 0; }
.sp-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ff6a00;
  color: #fff !important;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none !important;
  transition: all 0.15s;
  white-space: nowrap;
}
.sp-pdf-btn:hover {
  background: #ff8c33;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(255, 106, 0, 0.3);
}

/* News / Doc results (older style) */
.search-result-item {
  display: block;
  padding: 10px 16px;
  border-bottom: 1px solid #f0f3f7;
  text-decoration: none;
  color: var(--text);
  transition: background 0.12s;
}
.search-result-item:hover { background: #f8fafc; }
.search-result-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-desc {
  font-size: 11.5px;
  color: var(--text-light);
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result-meta { display: flex; gap: 8px; align-items: center; font-size: 10.5px; }
.search-result-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-product  { background: #e7f3ec; color: #1f7a3a; }
.badge-news     { background: #fde7e7; color: #b53030; }
.badge-document { background: #f0ecfb; color: #5a3fa6; }
.search-result-date { color: var(--text-lighter); }

/* mobile search button (only on small screens) */
.header-search-mobile {
  display: none;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.2s;
}
.header-search-mobile:hover {
  background: #f3f6fa;
  border-color: var(--primary);
  color: var(--primary);
}
@media (max-width: 720px) {
  .header-search-mobile { display: inline-flex; }
}

/* mobile full-screen search */
.mobile-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  padding-top: 60px;
}
.mobile-search-overlay.open {
  display: flex;
}
.mobile-search-overlay-inner {
  background: #fff;
  width: 100%;
  max-width: 100%;
  border-radius: 0 0 16px 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.mobile-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f3f6fa;
  border-radius: 12px;
  margin-bottom: 8px;
}
.mobile-search-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  padding: 8px 0;
  color: var(--text);
}
.mobile-search-input-wrap input::placeholder { color: var(--text-lighter); }
.mobile-search-close {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}
.mobile-search-results {
  overflow-y: auto;
  flex: 1;
  min-height: 200px;
}

/* ========== 浪总指定的 searchInput 样式 ========== */
#searchInput {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  padding: 0 4px;
  min-width: 0;
}
#searchInput::placeholder {
  color: var(--text-lighter);
  font-size: 13px;
}
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  max-height: 70vh;
  overflow-y: auto;
  display: none;
  padding: 4px 0;
}
.search-open .search-results-dropdown,
.header-search.search-open .search-results-dropdown {
  display: block;
}
.search-results-dropdown .search-hint,
.search-results-dropdown .search-empty,
.search-results-dropdown .search-count {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-lighter);
}
