/* ========================================
   青岛睿立博生物科技有限公司 - 企业官网
   设计系统 & 全局样式
   ======================================== */

/* --- 变量 --- */
:root {
  --primary: #1f7a3a;
  --primary-light: #2d9650;
  --primary-dark: #155c2a;
  --secondary: #4ca667;
  --secondary-light: #6cba83;
  --accent: #16a085;
  --accent-light: #1abc9c;

  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;

  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-lighter: #f1f5f9;
  --bg-dark: #0f172a;

  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --max-width: 1200px;
  --header-height: 72px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* --- 重置 --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-light);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- 导航栏 --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 56px;
}

.nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  position: relative;
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- 页脚 --- */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand .logo-icon {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.footer h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-contact li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--secondary);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom .beian {
  margin-top: 6px;
}

.footer-bottom .beian a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom .beian a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* --- 页面头部横幅 --- */
.page-banner {
  padding: calc(var(--header-height) + 80px) 0 64px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-banner .subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto;
}

/* --- 区块通用样式 --- */
.section {
  padding: 88px 0;
}

.section-gray {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: rgba(13, 79, 139, 0.06);
  border-radius: 20px;
}

/* --- 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 14px rgba(13, 79, 139, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 79, 139, 0.4);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(13, 79, 139, 0.04);
  color: var(--primary);
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

.btn-lg {
  padding: 15px 36px;
  font-size: 1rem;
}

/* ========================================
   首页样式
   ======================================== */

/* 英雄区域 */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #f0f7ff 0%, #e8f4f4 40%, #f5faf0 100%);
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 163, 163, 0.08) 0%, transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 174, 96, 0.06) 0%, transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(13, 79, 139, 0.08);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  width: 100%;
  max-width: 440px;
}

.hero-card .icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.hero-card .icon-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-light);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.hero-card .icon-item .icon-dot {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.icon-dot.blue { background: rgba(13, 79, 139, 0.12); color: var(--primary); }
.icon-dot.teal { background: rgba(0, 163, 163, 0.12); color: var(--secondary); }
.icon-dot.green { background: rgba(39, 174, 96, 0.12); color: var(--accent); }
.icon-dot.orange { background: rgba(230, 126, 34, 0.12); color: #e67e22; }

.hero-stats {
  display: flex;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero-stats .stat h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-stats .stat p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* 业务领域 */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  display: block;
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card .card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.card-icon.blue { background: rgba(13, 79, 139, 0.08); }
.card-icon.teal { background: rgba(0, 163, 163, 0.08); }
.card-icon.green { background: rgba(39, 174, 96, 0.08); }
.card-icon.purple { background: rgba(142, 68, 173, 0.08); }
.card-icon.orange { background: rgba(230, 126, 34, 0.08); }

/* 为什么选择我们 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: rgba(13, 79, 139, 0.06);
  color: var(--primary);
}

.feature-text h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.feature-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 72px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
}

/* ========================================
   关于我们页面
   ======================================== */

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-xl);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.about-image .about-logo {
  position: absolute;
  inset: auto;
  left: 50%;
  top: 72%;
  transform: translate(-50%, -50%);
  width: 12%;
  height: auto;
  z-index: 2;
}

.about-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.about-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* 发展历程 */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item .year {
  flex: 1;
  text-align: right;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  padding-top: 4px;
}

.timeline-item:nth-child(even) .year {
  text-align: left;
}

.timeline-item .dot-wrapper {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-top: 8px;
}

.timeline-item .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--primary);
  z-index: 1;
}

.timeline-item .content {
  flex: 1;
  background: var(--bg-light);
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.timeline-item .content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-item .content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* 资质荣誉 */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cert-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cert-card .cert-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cert-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cert-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========================================
   产品服务页面
   ======================================== */

.product-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.product-nav button {
  padding: 10px 24px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}

.product-nav button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.product-nav button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: flex-start;
  margin-bottom: 72px;
  padding: 48px;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  transition: all 0.4s ease;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail:last-child {
  margin-bottom: 0;
}

.service-detail:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-detail .service-image {
  height: 280px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: sticky;
  top: 96px;
}

.service-image.micro {
  background: linear-gradient(135deg, rgba(13, 79, 139, 0.08), rgba(13, 79, 139, 0.15));
}

.service-image.species {
  background: linear-gradient(135deg, rgba(0, 163, 163, 0.08), rgba(0, 163, 163, 0.15));
}

.service-image.gmo {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.08), rgba(39, 174, 96, 0.15));
}

.service-image.animal {
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.08), rgba(230, 126, 34, 0.15));
}

.service-image.pine {
  background: linear-gradient(135deg, rgba(142, 68, 173, 0.08), rgba(142, 68, 173, 0.15));
}

.service-image.custom {
  background: linear-gradient(135deg, rgba(31, 122, 58, 0.08), rgba(31, 122, 58, 0.15));
}

.service-detail .service-info h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-detail .service-info .tag,
.service-detail .service-head-text .tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.tag.blue { background: rgba(13, 79, 139, 0.08); color: var(--primary); }
.tag.teal { background: rgba(0, 163, 163, 0.08); color: var(--secondary); }
.tag.green { background: rgba(39, 174, 96, 0.08); color: var(--accent); }
.tag.orange { background: rgba(230, 126, 34, 0.08); color: #e67e22; }
.tag.purple { background: rgba(142, 68, 173, 0.08); color: #8e44ad; }

.service-detail .service-info p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.service-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.service-points li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ========================================
   产品规格列表 / 配套设备
   ======================================== */
.product-section {
  margin-top: 28px;
}

.product-intro {
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
  font-size: 0.95rem;
}

.product-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}

/* ========================================
   顶部横排版式（图标 + 标题/介绍，目录全宽）
   ======================================== */
.service-detail.top-layout {
  display: block;
  padding: 44px;
  direction: ltr;
}

.service-detail.top-layout > * {
  direction: ltr;
}

.service-detail.top-layout .service-head {
  display: grid;
  grid-template-columns: 20% 1fr;
  gap: 30px;
  align-items: center;
  padding-bottom: 26px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.service-detail.top-layout .service-icon {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.7rem;
  border-radius: 20px;
}

.service-detail.top-layout .service-icon.micro {
  background: linear-gradient(135deg, rgba(13, 79, 139, 0.1), rgba(13, 79, 139, 0.22));
}

.service-detail.top-layout .service-icon.species {
  background: linear-gradient(135deg, rgba(0, 163, 163, 0.1), rgba(0, 163, 163, 0.22));
}

.service-detail.top-layout .service-icon.gmo {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(39, 174, 96, 0.22));
}

.service-detail.top-layout .service-icon.animal {
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.1), rgba(230, 126, 34, 0.22));
}

.service-detail.top-layout .service-icon.pine {
  background: linear-gradient(135deg, rgba(142, 68, 173, 0.1), rgba(142, 68, 173, 0.22));
}

.service-detail.top-layout .service-icon.custom {
  background: linear-gradient(135deg, rgba(31, 122, 58, 0.1), rgba(31, 122, 58, 0.22));
}

.service-detail.top-layout .service-head-text {
  flex: 1;
  min-width: 0;
}

.service-detail.top-layout .service-head-text .tag {
  margin-bottom: 8px;
}

.service-detail.top-layout h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text-primary);
}

.service-detail.top-layout .product-intro {
  margin: 0;
}

/* 目录全宽：大屏 3 列 / 中屏 2 列 / 小屏 1 列 */
@media (min-width: 1025px) {
  .service-detail.top-layout .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .service-detail.top-layout .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* 配套设备卡不拉全宽 */
.service-detail.top-layout .equipment-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 460px));
  justify-content: start;
}

@media (max-width: 640px) {
  .service-detail.top-layout {
    padding: 26px 20px;
  }
  .service-detail.top-layout .service-head {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 14px;
  }
  .service-detail.top-layout .service-icon {
    width: 88px;
    height: 88px;
    aspect-ratio: auto;
    font-size: 2.4rem;
  }
}

.product-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: white;
  -webkit-overflow-scrolling: touch;
}

/* 产品目录：双列卡片网格（紧凑展示） */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: #f6faf7;
  border: 1px solid #e4eee6;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.product-item:hover {
  border-color: var(--primary);
  background: #eef7f0;
}

.product-item .p-name {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.45;
}

.product-item .p-spec {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(31, 122, 58, 0.08);
  border: 1px solid rgba(31, 122, 58, 0.22);
  border-radius: 20px;
  padding: 2px 10px;
  white-space: nowrap;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.product-table thead {
  background: var(--primary);
  color: white;
}

.product-table th {
  padding: 13px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.product-table td {
  padding: 12px 18px;
  border-top: 1px solid var(--border-color);
  color: var(--text-primary);
  line-height: 1.7;
}

.product-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.product-table tbody tr:nth-child(even) {
  background: rgba(31, 122, 58, 0.03);
}

.product-table tbody tr:hover {
  background: rgba(31, 122, 58, 0.08);
}

.product-table-wrap .product-table-note {
  padding: 10px 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.equipment-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all 0.25s;
}

.equipment-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(31, 122, 58, 0.08);
  transform: translateY(-2px);
}

.equipment-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: var(--radius-sm);
  font-size: 1.6rem;
  flex-shrink: 0;
}

.equipment-info h4 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.equipment-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .product-table th,
  .product-table td {
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  .equipment-card {
    padding: 14px 18px;
  }
}

/* ========================================
   联系我们页面
   ======================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border);
}

.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-light);
  transition: all 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(13, 79, 139, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.info-card .info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(13, 79, 139, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--primary);
}

.info-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.info-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.map-placeholder {
  margin-top: 48px;
  background: var(--bg-light);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
}

/* 成功提示 */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

.form-success .success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--accent);
}

.form-success h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-success p {
  color: var(--text-secondary);
}

/* ========================================
   动画
   ======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   响应式
   ======================================== */

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-detail {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 32px;
  }

  .service-detail .service-image {
    position: static;
    height: 180px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .service-detail:nth-child(even) {
    direction: ltr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .page-banner h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 80px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav a {
    font-size: 1.1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-card {
    padding: 24px;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .timeline::before {
    left: 24px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
    gap: 12px;
    padding-left: 48px;
  }

  .timeline-item .year,
  .timeline-item:nth-child(even) .year {
    text-align: left;
  }

  .timeline-item .dot-wrapper {
    position: absolute;
    left: 19px;
    padding-top: 6px;
  }

  .certs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .page-banner h1 {
    font-size: 1.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    position: relative;
  }
}
