/* ========================================
   企业官网 - 主样式表
   简约商务风格，配色通过 CSS 变量可调
   ======================================== */

:root {
  /* === 配色变量 — 后台可直接修改 === */
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --secondary: #475569;
  --accent: #f59e0b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #1e293b;
  --text: #1f2937;
  --text-light: #64748b;
  --text-inverse: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
}

/* === 基础重置 === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
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.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === 工具类 === */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--text-inverse); }
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}
.section-dark .section-title h2 { color: var(--text-inverse); }
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.section-title p {
  color: var(--text-light);
  margin-top: 1rem;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--text-inverse);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--text-inverse);
}
.btn-white {
  background: #fff;
  color: var(--primary);
}
.btn-white:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* === 图片占位符 === */
.img-placeholder {
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.img-placeholder::before {
  content: '📷';
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}
.img-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   1. 顶部工具栏
   ======================================== */
.top-bar {
  background: var(--bg-dark);
  color: var(--text-inverse);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.top-bar-left {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.top-bar-left a {
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.top-bar-left a:hover { color: #fff; }

/* 语言切换器 */
.lang-switcher {
  display: flex;
  align-items: center;
}
.lang-select {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: background 0.2s;
}
.lang-select:hover { background: rgba(255,255,255,0.25); }
.lang-select option { color: #333; background: #fff; }

/* RTL 支持 */
[dir="rtl"] .top-bar .container { flex-direction: row-reverse; }
[dir="rtl"] .top-bar-left { flex-direction: row-reverse; }
[dir="rtl"] .nav-menu { flex-direction: row-reverse; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .footer-contact-item { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .about-section { direction: rtl; }
[dir="rtl"] .hero-cta { flex-direction: row-reverse; }
[dir="rtl"] .nav-dropdown { left: auto; right: 0; }
[dir="rtl"] .stat-card { direction: rtl; }

/* ========================================
   2. 导航栏
   ======================================== */
.navbar {
  background: var(--bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  height: 72px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
}
.nav-brand-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}
/* 下拉菜单 */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
  padding: 0.5rem 0;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--text);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.nav-dropdown a:hover {
  background: var(--primary-light);
  color: var(--primary);
  padding-left: 1.5rem;
}
/* 汉堡菜单按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========================================
   3. Hero 轮播
   ======================================== */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-inverse);
}
.hero-slide.active {
  opacity: 1;
}
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--primary-dark);
}
.hero-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 700px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  opacity: 0.9;
  margin-bottom: 2rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
/* 轮播指示器 */
.hero-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.hero-dot.active {
  background: #fff;
  transform: scale(1.2);
}
/* 编号指示 */
.hero-counter {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  z-index: 10;
}
.hero-counter .current { color: #fff; font-weight: 700; }

/* ========================================
   4. 关于我们 + 数据指标
   ======================================== */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}
.about-text .about-label {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.about-text p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.about-image {
  height: 400px;
  border-radius: var(--radius-lg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
}
.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* ========================================
   5. 产品分类
   ======================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.product-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-card-image {
  height: 220px;
  overflow: hidden;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-image img {
  transform: scale(1.05);
}
.product-card-body {
  padding: 1.25rem;
  text-align: center;
}
.product-card-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.product-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* ========================================
   6. 生产技术
   ======================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.tech-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.tech-card-num {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 2;
}
.tech-card-image {
  height: 200px;
  overflow: hidden;
}
.tech-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tech-card-body {
  padding: 1.25rem;
}
.tech-card-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.tech-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ========================================
   7. 为什么选择我们
   ======================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.why-card {
  padding: 2rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform var(--transition);
}
.why-card:hover {
  transform: translateY(-4px);
}
.why-card-image {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}
.why-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform var(--transition);
}
.why-card:hover .why-card-image img {
  transform: scale(1.05);
}
.why-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.why-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-inverse);
}
.why-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}

/* ========================================
   8. 定制方案
   ======================================== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.solution-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.solution-card-image {
  height: 200px;
  overflow: hidden;
}
.solution-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.solution-card-body {
  padding: 1.5rem;
}
.solution-card-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.solution-card-body p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ========================================
   9. 认证证书
   ======================================== */
.certs-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  -webkit-overflow-scrolling: touch;
}
.certs-slider::-webkit-scrollbar {
  height: 6px;
}
.certs-slider::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
.cert-item {
  flex: 0 0 200px;
  scroll-snap-align: start;
  text-align: center;
}
.cert-item-image {
  height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 0.75rem;
}
.cert-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cert-item p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ========================================
   10. 新闻资讯
   ======================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.news-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.news-card-image {
  height: 180px;
  overflow: hidden;
}
.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card-body {
  padding: 1.25rem;
}
.news-date {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.news-card-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}
.news-card-body h3:hover {
  color: var(--primary);
}

/* ========================================
   11. CTA 行动号召
   ======================================== */
.cta-section {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  color: var(--text-inverse);
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--primary-dark);
  background-image: url('/uploads/cta/cta-bg.jpg');
  opacity: 0.3;
}
.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.cta-content {
  position: relative;
  z-index: 2;
}
.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.cta-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* ========================================
   12. 页脚
   ======================================== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.footer-contact-item .icon {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.footer-subscribe {
  margin-top: 1rem;
}
.footer-subscribe-form {
  display: flex;
  gap: 0.5rem;
}
.footer-subscribe-form input {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.9rem;
}
.footer-subscribe-form input::placeholder {
  color: rgba(255,255,255,0.4);
}
.footer-subscribe-form button {
  padding: 0.6rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition);
}
.footer-subscribe-form button:hover {
  background: var(--primary-dark);
}
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  transition: background var(--transition);
}
.footer-social a:hover {
  background: var(--primary);
}
.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ========================================
   浮动留言按钮
   ======================================== */
.float-message {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
}
.float-message-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.float-message-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,99,235,0.5);
}
.float-message-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 320px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: none;
}
.float-message-panel.active { display: block; }
.float-message-panel h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.float-message-panel textarea {
  width: 100%;
  height: 80px;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  resize: none;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.float-message-panel input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* ========================================
   响应式适配
   ======================================== */
@media (max-width: 1024px) {
  .about-section { grid-template-columns: 1fr; }
  .about-image { height: 300px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.4s ease;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 1rem;
    display: none;
  }
  .nav-item.dropdown-open .nav-dropdown {
    display: block;
  }
  .hero { height: 60vh; min-height: 400px; }
  .section { padding: 3rem 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-message-panel { width: 280px; right: -1rem; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .products-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.8rem; }
  .section-title h2 { font-size: 1.5rem; }
  .footer-subscribe-form { flex-direction: column; }
  .product-detail-main { flex-direction: column; }
  .product-list-grid { grid-template-columns: 1fr; }
  .product-related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   产品列表页
   ======================================== */
.product-page-section {
  min-height: 60vh;
}

.product-page-hero {
  position: relative;
  height: 260px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary-dark);
}
.product-page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.product-page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,64,175,0.8), rgba(37,99,235,0.6));
}
.product-page-hero-content {
  position: relative;
  z-index: 1;
  color: var(--text-inverse);
}
.product-page-hero-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.product-page-hero-content p {
  font-size: 1rem;
  opacity: 0.9;
}

.product-breadcrumb {
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}
.product-breadcrumb a {
  color: var(--text-light);
}
.product-breadcrumb a:hover {
  color: var(--primary);
}
.product-breadcrumb span {
  margin: 0 0.3rem;
}

.product-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem 1.5rem 0;
}
.product-category-tabs a {
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--bg-alt);
  color: var(--text);
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.product-category-tabs a:hover,
.product-category-tabs a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.product-list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem 1.5rem 4rem;
}
.product-list-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.product-list-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-list-card-image {
  height: 200px;
  overflow: hidden;
  background: var(--bg-alt);
}
.product-list-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.product-list-card:hover .product-list-card-image img {
  transform: scale(1.08);
}
.product-list-card-body {
  padding: 1rem 1.2rem 1.2rem;
}
.product-list-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.product-list-card-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-specs-tag {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 4px;
}

.product-card-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.product-empty {
  text-align: center;
  padding: 6rem 0;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ========================================
   产品详情页
   ======================================== */
.product-detail-section {
  min-height: 60vh;
}

.product-detail-main {
  display: flex;
  gap: 3rem;
  padding: 3rem 1.5rem;
}
.product-detail-image {
  flex: 0 0 480px;
  max-width: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
}
.product-detail-image img {
  width: 100%;
  height: auto;
  display: block;
}
.product-detail-info {
  flex: 1;
}
.product-detail-info h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.product-detail-cat {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.product-detail-specs,
.product-detail-desc {
  margin-bottom: 1.5rem;
}
.product-detail-specs h3,
.product-detail-desc h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.product-detail-specs p,
.product-detail-desc p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.95rem;
}

.product-related {
  padding: 0 1.5rem 4rem;
}
.product-related h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--primary);
}
.product-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .product-list-grid { grid-template-columns: repeat(3, 1fr); }
  .product-related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .product-list-grid { grid-template-columns: repeat(2, 1fr); }
  .product-related-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-main { flex-direction: column; }
  .product-detail-image { flex: none; max-width: 100%; }
}
