/* ===== 赛瑞拓生物科技 官网样式 ===== */

:root {
  --primary: #0d1b3e;
  --primary-light: #1a3a6b;
  --accent: #ff6f00;
  --accent-hover: #e65100;
  --bg-light: #f7f9fc;
  --text: #333;
  --text-light: #888;
  --border: #e0e0e0;
  --white: #fff;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif; color: var(--text); line-height: 1.6; }
body.nav-open { overflow: hidden; }
a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
article table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
article th, article td { padding: 10px 14px; border: 1px solid #e0e0e0; text-align: left; vertical-align: top; }
article th { background: #f0f4f8; font-weight: 600; color: #0d1b3e; }
article tr:nth-child(even) { background: #fafbfc; }
article td:first-child { white-space: nowrap; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 按钮 ===== */
.btn { display: inline-block; padding: 10px 24px; border-radius: 4px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all 0.3s; text-align: center; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--white); }

/* ===== 头部 ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.header-spacer { height: 110px; }
.header-top { border-bottom: 1px solid var(--border); padding: 10px 0; }
.header-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 36px; }
.logo-text { font-size: 20px; font-weight: 700; color: var(--primary); display: flex; align-items: baseline; gap: 6px; }
.logo-sub { font-size: 12px; font-weight: 400; color: var(--text-light); letter-spacing: 1px; }

/* 搜索 */
.header-search { position: relative; flex: 1; max-width: 500px; }
.search-input { width: 100%; padding: 8px 16px; border: 1px solid var(--border); border-radius: 20px; font-size: 14px; outline: none; transition: border-color 0.3s; }
.search-input:focus { border-color: var(--accent); }
.search-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-light); cursor: pointer; }
.search-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: #fafafa; border: 1px solid #e8e8e8; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); display: none; max-height: 400px; overflow-y: auto; z-index: 100; }
.search-dropdown.active { display: block; }
.search-dropdown-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: background 0.2s; }
.search-dropdown-item:hover { background: var(--bg-light); }
.search-dropdown-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.search-dropdown-item .item-title { font-size: 14px; font-weight: 500; }
.search-dropdown-item .item-catalog { font-size: 12px; color: var(--text-light); }
.search-dropdown-header { padding: 10px 16px 6px; font-size: 12px; color: var(--text-light); font-weight: 600; letter-spacing: 0.5px; border-bottom: 1px solid #f0f0f0; }
.search-dropdown-header .star-icon { color: var(--accent); margin-right: 2px; }
.recommend-item { display: flex; align-items: center; gap: 10px; padding: 9px 16px; cursor: pointer; transition: background 0.2s, color 0.2s; border-bottom: 1px solid #f5f5f5; text-decoration: none; }
.recommend-item:last-child { border-bottom: none; }
.recommend-item:hover { background: #fff4e5; }
.recommend-num { width: 22px; font-size: 14px; text-align: right; flex-shrink: 0; line-height: 1; }
.recommend-name { font-size: 14px; color: #222; font-weight: 600; }
.recommend-item:hover .recommend-name { color: var(--accent); }

.header-phone { display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 15px; white-space: nowrap; }
.header-phone i { font-size: 18px; }

/* ===== 导航栏 ===== */
.header-nav {
  border-bottom: 1px solid var(--border);
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu > li.has-dropdown {
  position: relative;
}
.nav-menu > li {
  /* 默认不给 position，子项按需设置 */
}
.nav-menu > li.has-mega-menu {
  position: static;
}
.nav-menu > li.active {
  position: relative;
}
.nav-menu > li.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
}
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s, background 0.3s;
  white-space: nowrap;
  position: relative;
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  color: var(--accent);
  background: rgba(255, 111, 0, 0.04);
}
.nav-menu > li > a i.fa-chevron-down {
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.3s;
}
.nav-menu > li:hover > a i.fa-chevron-down {
  transform: rotate(-180deg);
}

/* ===== 普通下拉菜单 ===== */
.has-dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-radius: 0 0 10px 10px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1050;
}
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li {
  list-style: none;
}
.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 14px;
  color: #444;
  transition: all 0.2s;
}
.dropdown-menu li a i {
  width: 18px;
  font-size: 14px;
  color: var(--accent);
  text-align: center;
}
.dropdown-menu li a:hover {
  background: #fef6f0;
  color: var(--accent);
  padding-left: 26px;
}
.dropdown-menu li:not(:last-child) {
  border-bottom: 1px solid #f5f5f5;
}

/* ===== Mega Menu 大型面板 ===== */
.has-mega-menu > a {
  position: relative;
}

.header-nav .container {
  position: relative;
}

.mega-panel {
  position: absolute;
  /* 相对于 .header-nav .container 定位 */
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: calc(100vw - 40px);
  max-width: 880px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  box-shadow: 0 12px 40px rgba(0,0,0,0.13);
  border-radius: 0 0 10px 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1050;
  max-height: 80vh;
  overflow-y: auto;
}
.has-mega-menu:hover .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===== 血清 Banner（紧凑） ===== */
.mega-banner {
  padding: 10px 20px;
  background: linear-gradient(135deg, #fef0e6 0%, #fde2d0 100%);
  border-bottom: 1px solid #f5d5c0;
}
.mega-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mega-banner-text {
  font-size: 13px;
  color: #6b3a20;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mega-banner-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  border-radius: 10px;
  white-space: nowrap;
}
.mega-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 14px;
  transition: all 0.2s;
  white-space: nowrap;
}
.mega-banner-btn:hover {
  background: var(--accent);
  color: var(--white);
  gap: 6px;
}

/* ===== 分类列网格（紧凑） ===== */
.mega-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.mega-col {
  padding: 8px 10px 12px;
  border-right: 1px solid #f0f0f0;
}
.mega-col:last-child {
  border-right: none;
}

/* 列标题 */
.mega-col-header {
  font-size: 13px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0 6px 6px;
  margin-bottom: 4px;
  border-bottom: 1px solid #e8e8e8;
}

/* ===== 每个分组（紧凑） ===== */
.mega-group {
  margin-bottom: 8px;
}
.mega-group:last-child {
  margin-bottom: 0;
}
.mega-group-title {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  border-radius: 4px;
  transition: all 0.2s;
}
.mega-group-title:hover {
  background: var(--bg-light);
  color: var(--accent);
}
.mega-group-title i {
  font-size: 10px;
  color: #ccc;
  transition: all 0.2s;
  margin-left: auto;
}
.mega-group-title:hover i {
  color: var(--accent);
  transform: translateX(3px);
}

/* HOT 徽标 */
.mega-title-hot {
  color: var(--accent) !important;
}
.mega-hot-badge {
  display: inline-block;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  background: #e53935;
  border-radius: 8px;
  line-height: 16px;
  margin-left: 2px;
  animation: mega-pulse 2s infinite;
}
@keyframes mega-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* 子分类链接（紧凑） */
.mega-group-links {
  padding: 1px 0 2px 2px;
}
.mega-group-links a {
  display: block;
  padding: 2px 6px;
  font-size: 13px;
  color: #666;
  border-radius: 3px;
  transition: all 0.15s;
  line-height: 1.6;
}
.mega-group-links a:hover {
  background: #f0f4ff;
  color: var(--accent);
  padding-left: 12px;
}

/* ===== 三级嵌套展开（种属 → 组织来源） ===== */
.mega-group-links {
  position: relative;
}
.nested-trigger-wrap {
  position: relative;
  display: block;
}
.nested-trigger {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 4px 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--primary) !important;
  border-radius: 4px;
  transition: all 0.15s;
  line-height: 1.6;
}
.nested-trigger::after {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 8px;
  color: #ccc;
  transition: all 0.2s;
  margin-left: auto;
  flex-shrink: 0;
}
.nested-trigger:hover {
  background: #f0f4ff;
  color: var(--accent) !important;
}
.nested-trigger:hover::after {
  color: var(--accent);
  transform: translateX(2px);
}

/* 三级菜单浮出面板 */
.nested-flyout {
  position: absolute;
  left: calc(100% + 4px);
  top: -8px;
  min-width: 540px;
  max-width: 700px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.13);
  border-radius: 0 8px 8px 8px;
  padding: 10px 14px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1060;
  column-count: 3;
  column-gap: 8px;
}
.nested-trigger-wrap:hover .nested-flyout {
  opacity: 1;
  visibility: visible;
}

/* 三级菜单中的每一项 */
.nested-flyout a {
  display: inline-block;
  padding: 3px 10px;
  margin: 1px 0;
  font-size: 13px;
  color: #444;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1.6;
  border-radius: 3px;
  break-inside: avoid;
}
.nested-flyout a:hover {
  background: #f0f4ff;
  color: var(--accent) !important;
}

/* 三级菜单标题/分割线（可选） */
.nested-flyout-header {
  display: block;
  padding: 4px 16px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #eee;
  margin-bottom: 4px;
}

/* Mega Panel：不裁剪子元素，确保三级菜单浮出不被剪掉 */
.mega-panel {
  overflow: visible !important;
  max-height: none !important;
}

/* 特色子分类（带图标强调） */
.mega-group-link-accent {
  color: var(--accent) !important;
  font-weight: 500;
}
.mega-group-link-accent:hover {
  background: #fef6f0 !important;
}

/* 技术服务列的底部 CTA */
.mega-group-cta {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}
.mega-cta-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: #fff8f3;
  border-radius: 6px;
  transition: all 0.2s;
}
.mega-cta-link:hover {
  background: var(--accent);
  color: var(--white);
  gap: 10px;
}

/* ===== 技术服务页面样式 ===== */
.services-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .services-overview { grid-template-columns: 1fr; }
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 24px 28px;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(255,111,0,0.1);
  transform: translateY(-3px);
}
.service-card-icon {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 16px;
}
.service-card-body h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 10px;
}
.service-card-body p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  flex: 1;
}
.service-card-arrow {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  transition: gap 0.3s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.service-card:hover .service-card-arrow { gap: 10px; }
.hot-badge {
  display: inline-block;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  background: #e53935;
  border-radius: 8px;
  line-height: 18px;
  vertical-align: middle;
  margin-left: 4px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-sub-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-light);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.25s;
  text-decoration: none;
}
.service-sub-card:hover {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(255,111,0,0.08);
}
.service-sub-icon {
  font-size: 24px;
  color: var(--accent);
  flex-shrink: 0;
  width: 40px;
  text-align: center;
  padding-top: 2px;
}
.service-sub-body { flex: 1; }
.service-sub-body h4 {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 6px;
}
.service-sub-body p {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
}
.service-info-box ul li { font-size: 14px; }

/* ===== 汉堡菜单按钮 ===== */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
  transition: all 0.3s;
  flex-shrink: 0;
}
.hamburger-btn:hover {
  border-color: var(--accent);
}
.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== 首页 ===== */

/* Hero Banner */
/* ===== Hero 轮播 Banner ===== */
.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

/* 幻灯片容器 */
.hero-slides-wrapper {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

/* 背景装饰图案（SVG 用 base64 也行，这里用伪元素实现网格点阵效果） */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 25px 25px, rgba(255,255,255,0.5) 1px, transparent 0);
  background-size: 50px 50px;
}
.hero-pattern-cells {
  opacity: 0.08;
  background-image:
    radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.6) 2px, transparent 2px);
  background-size: 40px 40px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 60px 0;
}
.hero-content h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}
.hero-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.hero-content .subtitle {
  font-size: 13px;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== 轮播箭头 ===== */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}
.slider-arrow:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.5);
}
.slider-arrow-left { left: 24px; }
.slider-arrow-right { right: 24px; }

/* ===== 轮播导航点 ===== */
.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.3s;
}
.slider-dots .dot.active {
  background: #fff;
  transform: scale(1.25);
}
.slider-dots .dot:hover {
  background: rgba(255,255,255,0.6);
}

/* 区块通用 */
.section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title .sub-label { color: var(--accent); font-size: 13px; letter-spacing: 2px; font-weight: 600; margin-bottom: 8px; text-transform: uppercase; }
.section-title h2 { font-size: 28px; color: var(--primary); font-weight: 700; }

/* 产品精选 */
.featured-products { background: var(--bg-light); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.product-card-image { height: 200px; background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text-light); overflow: hidden; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 20px; }
.product-card-body h3 { font-size: 18px; color: var(--primary); margin-bottom: 4px; font-weight: 600; }
.product-card-body .en-name { font-size: 12px; color: var(--text-light); margin-bottom: 12px; }
.product-card-body .catalog { font-size: 13px; color: #666; margin-bottom: 6px; }
.product-card-body .species-tag { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; background: #e8f0fe; color: #1565c0; margin-bottom: 12px; }
.product-card-body .btn { width: 100%; }
.product-card .card-title-link { color: var(--primary); text-decoration: none; }
.product-card .card-title-link:hover { color: var(--accent); }
.product-card .card-desc-links { font-size: 14px; color: #666; line-height: 1.8; }
.product-card .card-desc-links a { color: #555; text-decoration: underline; text-decoration-color: #ccc; text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
.product-card .card-desc-links a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* 核心优势 */
.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.advantage-card { text-align: center; padding: 30px 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform 0.3s; }
.advantage-card:hover { transform: translateY(-4px); }
.advantage-card i { font-size: 36px; color: var(--accent); margin-bottom: 16px; }
.advantage-card h4 { font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.advantage-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* 热门资讯 */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-section h3 { font-size: 18px; color: var(--primary); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.news-item { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.news-item:last-child { border-bottom: none; }
.news-item a { display: block; font-size: 14px; line-height: 1.5; color: #444; }
.news-item a:hover { color: var(--accent); }
.news-item .date { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* CTA */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); text-align: center; padding: 60px 0; }
.cta-section h2 { font-size: 26px; color: var(--white); margin-bottom: 12px; }
.cta-section p { color: #bbdefb; margin-bottom: 28px; font-size: 15px; }

/* ===== 产品汇总页 ===== */
.page-header { padding: 30px 0; background: var(--bg-light); }
.page-header h1 { font-size: 28px; color: var(--primary); }
.page-header .breadcrumb { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.page-header .breadcrumb a { color: var(--text-light); }
.page-header .breadcrumb a:hover { color: var(--accent); }

.filter-bar { padding: 20px 0; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filter-bar select, .filter-bar input { padding: 8px 14px; border: 1px solid var(--border); border-radius: 20px; font-size: 13px; outline: none; }
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--accent); }

.product-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 20px 0 40px; }
.pagination { display: flex; justify-content: center; gap: 8px; padding: 20px 0 40px; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; }
.pagination a:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.pagination .active { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ===== 产品详情页 ===== */
.product-detail { padding: 40px 0; }
.product-detail-main { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product-image-area { background: var(--bg-light); border-radius: var(--radius); padding: 40px; display: flex; align-items: center; justify-content: center; min-height: 400px; }
.product-info-area h1 { font-size: 24px; color: var(--primary); margin-bottom: 4px; }
.product-info-area .en-name { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.product-info-area .info-row { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.product-info-area .info-row .label { color: var(--text-light); font-size: 14px; min-width: 80px; }
.product-info-area .info-row .value { font-size: 14px; color: var(--text); }

.product-tabs { margin-top: 40px; }
.tab-nav { display: flex; border-bottom: 2px solid var(--border); }
.tab-nav button { padding: 12px 24px; background: none; border: none; font-size: 15px; cursor: pointer; color: #666; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.3s; }
.tab-nav button.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-content { padding: 24px 0; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel p { font-size: 14px; line-height: 1.8; color: #555; }
.tab-panel .info-table { width: 100%; border-collapse: collapse; }
.tab-panel .info-table td { padding: 10px 16px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.tab-panel .info-table td:first-child { color: var(--text-light); width: 140px; }

/* ===== 页脚 ===== */
.site-footer { background: var(--primary); color: #ccc; padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footer-col h4 { color: var(--white); font-size: 16px; margin-bottom: 16px; }
.footer-col p, .footer-col li { font-size: 13px; line-height: 2; }
.footer-col a { color: #aaa; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 40px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 12px; }

/* ===== 后台样式 ===== */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; background: var(--primary); color: var(--white); padding: 20px 0; }
.admin-sidebar h2 { padding: 0 20px 20px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar a { display: block; padding: 12px 20px; color: #bbb; font-size: 14px; transition: all 0.3s; }
.admin-sidebar a:hover, .admin-sidebar a.active { color: var(--white); background: rgba(255,255,255,0.1); }
.admin-main { flex: 1; padding: 30px; background: #f5f5f5; }
.admin-main h1 { font-size: 24px; color: var(--primary); margin-bottom: 20px; }
.admin-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.admin-card { background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-card .num { font-size: 32px; font-weight: 700; color: var(--accent); }
.admin-card .label { font-size: 14px; color: var(--text-light); }

.admin-table { width: 100%; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th, .admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.admin-table th { background: var(--bg-light); font-weight: 600; color: var(--primary); }
.admin-table td .btn-sm { padding: 4px 12px; font-size: 12px; }
.admin-form { background: var(--white); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 800px; }
.admin-form .form-group { margin-bottom: 16px; }
.admin-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.admin-form input, .admin-form select, .admin-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; outline: none; font-family: inherit; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: var(--accent); }
.admin-form textarea { min-height: 200px; resize: vertical; }
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-form .current-image { max-width: 200px; margin: 8px 0; border-radius: 4px; }
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg-light); }
.login-box { background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); width: 360px; }
.login-box h1 { text-align: center; margin-bottom: 24px; font-size: 22px; }
.login-box .form-group { margin-bottom: 16px; }
.login-box input { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; }
.login-box .error { color: #e74c3c; font-size: 13px; margin-bottom: 12px; text-align: center; }

/* ===== 移动端响应式 ===== */

/* 电脑端：隐藏手机菜单和遮罩层 */
.mobile-nav-overlay { display: none; }

/* 平板及以下 */
@media (max-width: 1024px) {
  .mega-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  /* 显示汉堡按钮 */
  .hamburger-btn { display: flex; }
  .header-phone { display: none; }
  
  .header-top-inner {
    gap: 12px;
  }
  .header-search {
    flex: 1;
    max-width: none;
  }
  
  /* 导航变为手机菜单 */
  .header-nav {
    position: fixed;
    top: 61px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    border-bottom: none;
    z-index: 2000;
    transition: opacity 0.3s ease;
  }
  .header-nav.active {
    max-height: 100vh;
    opacity: 1;
  }
  .header-nav .container {
    padding: 0;
    height: 100%;
  }
  .nav-menu {
    flex-direction: column;
    background: var(--white);
    max-height: calc(100vh - 61px);
    overflow-y: auto;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    padding: 8px 0;
  }
  .nav-menu > li {
    border-bottom: 1px solid #f0f0f0;
  }
  .nav-menu > li:last-child {
    border-bottom: none;
  }
  .nav-menu > li > a {
    padding: 14px 20px;
    font-size: 15px;
  }
  .nav-menu > li.active::after {
    display: none;
  }
  .nav-menu > li.active > a {
    border-left: 3px solid var(--accent);
    padding-left: 17px;
  }
  
  /* 手机端：移除 hover 效果，使用点击展开 */
  .has-mega-menu {
    position: relative;
  }
  .mega-panel {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    border: none;
    border-top: none;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0;
  }
  .has-mega-menu:hover .mega-panel {
    transform: none;
  }
  .mega-panel.open {
    max-height: 2000px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .mega-banner {
    padding: 8px 14px;
  }
  .mega-banner-text {
    font-size: 12px;
  }
  .mega-cols {
    grid-template-columns: 1fr 1fr;
  }
  .mega-col {
    padding: 6px 10px 10px;
    border-right: none;
  }
  .mega-col-header {
    font-size: 11px;
  }
  .mega-group {
    margin-bottom: 6px;
  }
  .mega-group-title {
    font-size: 12px;
    padding: 4px 6px;
  }
  .mega-group-links a {
    padding: 3px 6px;
    font-size: 12px;
  }
  
  /* 手机端：三级菜单改为向下展开 */
  .mega-panel {
    overflow: hidden !important;
    max-height: 0 !important;
  }
  .mega-panel.open {
    overflow: hidden !important;
    max-height: 2000px !important;
  }
  .nested-flyout {
    position: static;
    min-width: auto;
    border: none;
    border-left: none;
    border-top: 1px solid #f0f0f0;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0;
    background: #fafafa;
  }
  .nested-trigger-wrap:hover .nested-flyout {
    max-height: 0;
    padding: 0;
  }
  .nested-flyout.open {
    max-height: 500px;
    padding: 6px 0;
  }
  .nested-trigger::after {
    transition: transform 0.3s;
  }
  .nested-trigger.active::after {
    transform: rotate(90deg);
  }
  
  .has-dropdown {
    position: relative;
  }
  .dropdown-menu {
    position: static;
    min-width: auto;
    border: none;
    border-top: none;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0;
    background: #fafafa;
  }
  .has-dropdown:hover .dropdown-menu {
    transform: none;
  }
  .dropdown-menu.open {
    max-height: 500px;
    padding: 4px 0;
  }
  .dropdown-menu li a {
    padding: 10px 30px;
    font-size: 14px;
  }
  .dropdown-menu li a:hover {
    padding-left: 36px;
  }
  
  .nav-menu > li > a .fa-chevron-down {
    margin-left: auto;
  }
  .nav-menu > li:not(.active) > a .fa-chevron-down {
    transition: transform 0.3s;
  }
  .nav-menu > li:not(.active) > a .fa-chevron-down.rotated {
    transform: rotate(-180deg);
  }
  
  /* 鼠标悬浮效果在手机端移除 */
  .has-mega-menu:hover .mega-panel,
  .has-dropdown:hover .dropdown-menu {
    max-height: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 600px) {
  .header-search { display: none; }
  .header-top-inner {
    gap: 8px;
  }
  .mega-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-slider { min-height: 380px; }
  .hero-content h1 { font-size: 28px; }
  .hero-content p { font-size: 15px; }
  .slider-arrow { width: 36px; height: 36px; font-size: 14px; }
  .slider-arrow-left { left: 12px; }
  .slider-arrow-right { right: 12px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-list { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail-main { grid-template-columns: 1fr; }
  .admin-sidebar { width: 60px; }
  .admin-sidebar a span { display: none; }
  .hero-content h1 { font-size: 28px; }
}
@media (max-width: 480px) {
  .product-list { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== ����������ʽ ===== */
article h2 { font-size: 22px; color: var(--primary); margin: 32px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
article h3 { font-size: 18px; color: var(--primary); margin: 24px 0 12px; }
article h4 { font-size: 16px; color: var(--primary); margin: 20px 0 10px; }
article p { margin-bottom: 14px; }
article ul, article ol { margin: 10px 0 14px 20px; }
article li { margin-bottom: 6px; line-height: 1.8; }
article strong { color: var(--primary); }
article a { color: var(--accent); }
article hr { margin: 30px 0; border: none; border-top: 1px solid var(--border); }
article code { background: #f5f5f5; padding: 2px 6px; border-radius: 3px; font-size: 14px; }
