/* ============================================
   景沿生物 - 官网样式
   专业学术风 | 深蓝/白主调
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --c-primary: #0B3D6E;
  --c-primary-light: #1565C0;
  --c-accent: #0097A7;
  --c-accent-light: #26C6DA;
  --c-bg: #FFFFFF;
  --c-bg-alt: #F5F8FC;
  --c-bg-dark: #0A2A4A;
  --c-text: #1A2332;
  --c-text-light: #5A6B7D;
  --c-text-muted: #8E9AAB;
  --c-border: #E2E8F0;
  --c-white: #FFFFFF;
  --c-success: #2E7D32;
  --c-error: #C62828;

  --shadow-sm: 0 2px 8px rgba(11, 61, 110, 0.06);
  --shadow-md: 0 4px 16px rgba(11, 61, 110, 0.10);
  --shadow-lg: 0 12px 40px rgba(11, 61, 110, 0.14);

  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --nav-height: 68px;

  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* 表面/组件层（深色模式用） */
  --c-surface: #FFFFFF;
  --c-surface-2: #F5F8FC;
  --c-nav-bg: rgba(255, 255, 255, 0.98);
  --c-on-surface: var(--c-text);
}

/* ---- 深色模式变量覆盖 ---- */
[data-theme="dark"] {
  --c-bg: #0B1626;
  --c-bg-alt: #0F1D30;
  --c-text: #E6EDF5;
  --c-text-light: #A6B6C8;
  --c-text-muted: #7286A0;
  --c-border: #21344B;
  --c-surface: #132338;
  --c-surface-2: #182C47;
  --c-nav-bg: rgba(8, 14, 26, 0.96);
  --c-on-surface: #E6EDF5;
  --c-primary: #4A9FE0;
  --c-primary-light: #79B8EA;
  --c-accent: #2EC4D6;
  --c-accent-light: #67D9E8;
  --c-bg-dark: #07101E;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
}
/* 深色模式下特定组件微调（浅色填充按钮改用深字以保证对比） */
[data-theme="dark"] .btn-primary { color: #07101E; }
[data-theme="dark"] .floating-cta { color: #07101E; }
[data-theme="dark"] .toast { background: #1B2D47; color: #E6EDF5; }

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 15px; }

/* ---- Container ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---- Section Header ---- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--c-accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--c-accent);
  border-radius: 2px;
}
.section-subtitle {
  margin-top: 20px;
  font-size: 16px;
  color: var(--c-text-light);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-primary);
  color: var(--c-white);
}
.btn-primary:hover {
  background: var(--c-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--c-shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--c-white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--c-white);
}

/* ---- Navbar ---- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--c-nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  z-index: 1000;
  transition: var(--transition);
}
#navbar.scrolled {
  box-shadow: var(--shadow-sm);
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-primary);
}
.logo-icon {
  width: 36px;
  height: 36px;
  color: var(--c-accent);
}
.logo-img {
  height: 56px;
  width: auto;
  display: block;
}

/* 主题自适应 logo：浅色导航用彩色版，深色导航与深色页脚用反白版 */
.logo-img.logo-white { display: none; }
[data-theme="dark"] .nav-logo .logo-img.logo-color { display: none; }
[data-theme="dark"] .nav-logo .logo-img.logo-white { display: block; }
/* 页脚背景恒为深色，始终使用反白版 */
.footer-brand .footer-logo .logo-img.logo-color { display: none; }
.footer-brand .footer-logo .logo-img.logo-white { display: block; }
.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #122371;
}
.logo-text em {
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
  color: var(--c-text-muted);
  margin-left: 4px;
  letter-spacing: 0.5px;
}
.nav-menu {
  display: flex;
  gap: 8px;
}
.nav-link {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--c-primary);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--c-accent);
  border-radius: 1px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- 主题切换按钮 ---- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--c-text);
  background: transparent;
  border: 1px solid var(--c-border);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--c-primary);
  border-color: var(--c-accent-light);
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---- Hero ---- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: var(--nav-height) 24px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero_gene_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,42,74,0.88) 0%, rgba(11,61,110,0.80) 40%, rgba(21,101,192,0.72) 70%, rgba(0,151,167,0.66) 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,0.02) 60px, rgba(255,255,255,0.02) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,0.02) 60px, rgba(255,255,255,0.02) 61px);
}
.hero-content {
  max-width: 720px;
  animation: heroFadeIn 1s ease-out;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--c-accent-light);
  background: rgba(38, 198, 218, 0.12);
  border: 1px solid rgba(38, 198, 218, 0.3);
  border-radius: 20px;
  margin-bottom: 28px;
}
#hero h1 {
  font-size: 44px;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.3;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-eng-name {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.hero-tagline {
  font-size: 20px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  letter-spacing: 1px;
}
.hero-scroll span {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; height: 20px; }
  50% { opacity: 1; height: 36px; }
}

/* ---- About ---- */
#about {
  padding: 100px 0;
  background: var(--c-bg);
}
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}
.about-text p {
  font-size: 16px;
  color: var(--c-text-light);
  line-height: 1.9;
  margin-bottom: 20px;
}
.about-text p:last-child { margin-bottom: 0; }
/* Poster preview in About section */
.about-poster {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-poster-link { display: block; }
.about-poster-img { width: 100%; height: auto; display: block; }
.poster-preview {
  display: block;
  text-decoration: none;
  color: #fff;
  transition: var(--transition);
}
.poster-preview:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.poster-preview-inner {
  background: linear-gradient(160deg, #0A2A4A 0%, #0B3D6E 40%, #006978 100%);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.poster-preview-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(38,198,218,0.10) 0%, transparent 50%),
    radial-gradient(circle at 85% 85%, rgba(38,198,218,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.pp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  position: relative;
}
.pp-logo svg {
  width: 32px;
  height: 32px;
  color: #26C6DA;
}
.pp-logo span {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.pp-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
  background: linear-gradient(90deg, #fff, #26C6DA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}
.pp-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  letter-spacing: 1px;
  position: relative;
}
.pp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
  position: relative;
}
.pp-item {
  text-align: center;
  padding: 10px 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
}
.pp-footer {
  display: flex;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.pp-footer em {
  font-style: normal;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  transition: var(--transition);
}
.poster-preview:hover .pp-footer em {
  color: #26C6DA;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--c-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  transition: var(--transition);
}
.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-accent-light);
}
.stat-number {
  font-size: 30px;
  font-weight: 700;
  color: var(--c-primary);
}
.stat-platforms {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--c-primary);
}
.stat-number em {
  font-style: normal;
  font-size: 16px;
  font-weight: 500;
  color: var(--c-accent);
  margin-left: 2px;
}
.stat-label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--c-text-light);
}

/* ---- Products ---- */
#products {
  padding: 100px 0;
  background: var(--c-bg-alt);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--c-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-accent-light);
}
.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.product-icon {
  width: 56px;
  height: 56px;
  color: var(--c-primary);
  background: var(--c-bg-alt);
  border-radius: 12px;
  padding: 10px;
  transition: var(--transition);
}
.product-card:hover .product-icon {
  color: var(--c-white);
  background: var(--c-accent);
}
.product-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  color: var(--c-accent);
  background: rgba(0, 151, 167, 0.1);
  border-radius: 12px;
}
.product-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 8px;
}
.product-desc {
  font-size: 14px;
  color: var(--c-text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}
.product-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.product-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.6;
}
.product-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--c-accent);
  border-radius: 50%;
  transition: var(--transition);
}
.product-list li:hover::before {
  background: var(--c-primary);
  transform: scale(1.3);
}
.product-list li a {
  color: var(--c-text);
  transition: var(--transition);
}
.product-list li a:hover {
  color: var(--c-accent);
}
.product-apps {
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
}
.product-apps span {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-bottom: 8px;
  display: block;
}
.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.app-tags em {
  font-style: normal;
  font-size: 12px;
  padding: 3px 10px;
  background: var(--c-bg-alt);
  color: var(--c-text-light);
  border-radius: 10px;
}
.btn-inquiry {
  margin-top: auto;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary);
  background: var(--c-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  transition: var(--transition);
}
.btn-inquiry:hover {
  background: var(--c-primary);
  color: var(--c-white);
  border-color: var(--c-primary);
}
.product-coming {
  text-align: center;
  justify-content: center;
  align-items: center;
  border-style: dashed;
  background: transparent;
}
.product-coming .product-icon {
  margin: 0 auto 16px;
  color: var(--c-text-muted);
  background: transparent;
}
.product-coming h3 {
  color: var(--c-text-light);
}
.coming-soon {
  margin-top: 8px;
  font-size: 14px;
  color: var(--c-text-muted);
  letter-spacing: 1px;
}

/* ---- Section Banner ---- */
.section-banner {
  position: relative;
  height: 320px;
  overflow: hidden;
}
.section-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 61, 110, 0.85) 0%, rgba(21, 101, 192, 0.75) 50%, rgba(0, 151, 167, 0.55) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}
.banner-overlay p {
  color: var(--c-white);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.8;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.banner-overlay p:nth-child(2) {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
}

/* ---- Advantages ---- */
#advantages {
  padding: 100px 0;
  background: var(--c-surface);
}
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.advantage-item {
  padding: 36px 28px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  transition: var(--transition);
}
.advantage-item:hover {
  background: var(--c-surface);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.adv-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--c-white);
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  border-radius: 14px;
  padding: 12px;
}
.advantage-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 12px;
}
.advantage-item p {
  font-size: 14px;
  color: var(--c-text-light);
  line-height: 1.7;
}

/* ---- Cases ---- */
#cases {
  padding: 100px 0;
  background: var(--c-bg-alt);
}
.page-cases {
  padding-top: calc(var(--nav-height) + 60px);
  min-height: 100vh;
}
/* 案例布局：左侧纵向产品目录（吸顶跟随滚动）+ 右侧卡片 */
.cases-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.cases-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  flex: 0 0 220px;
  align-self: flex-start;
  max-height: calc(100vh - var(--nav-height) - 48px);
  overflow-y: auto;
  padding-right: 6px;
}
.sidebar-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-text-light);
  text-transform: uppercase;
  padding: 0 14px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--c-border);
}
.cases-content {
  flex: 1 1 auto;
  min-width: 0;
}
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.cases-cta {
  text-align: center;
  margin-top: 48px;
  padding: 40px;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
}
.cases-cta p {
  font-size: 18px;
  color: var(--c-text-light);
  margin-bottom: 20px;
}
.case-card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  border: 1px solid var(--c-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
}
.case-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--c-accent-light, rgba(0, 151, 167, 0.25));
}
.case-main {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.case-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  color: var(--c-accent);
  background: rgba(0, 151, 167, 0.1);
  border-radius: 12px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.case-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}
.case-authors {
  font-size: 12.5px;
  color: var(--c-accent);
  background: rgba(0, 151, 167, 0.08);
  border-left: 3px solid var(--c-accent);
  padding: 6px 12px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 14px;
  line-height: 1.6;
}
.case-summary {
  font-size: 13px;
  color: var(--c-text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}
.case-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.case-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.case-detail-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-muted);
  flex-shrink: 0;
  width: 64px;
}
.case-detail-item p {
  font-size: 13px;
  color: var(--c-text);
  line-height: 1.5;
}
.case-result {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
}
.case-result span {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-text-muted);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}
.case-result p {
  font-size: 13px;
  color: var(--c-text-light);
  line-height: 1.6;
}
.case-footer {
  margin-top: 14px;
}
.case-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-accent);
  text-decoration: none;
  transition: var(--transition);
}
.case-link:hover {
  color: var(--c-accent-dark, var(--c-accent));
  transform: translateX(3px);
}
.case-source {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-border);
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-text-muted);
}
.case-source span {
  display: inline-block;
  font-weight: 600;
  color: var(--c-text-muted);
  margin-right: 6px;
}
/* 技术路线：核心突出 · 流程化展示 */
.case-route {
  width: 100%;
  margin-top: 2px;
  background: linear-gradient(135deg, rgba(0, 151, 167, 0.10), rgba(0, 151, 167, 0.04));
  border: 1px solid rgba(0, 151, 167, 0.22);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.case-route-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.case-route--river {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(0, 151, 167, 0.10), rgba(0, 151, 167, 0) 60%),
    linear-gradient(135deg, rgba(0, 151, 167, 0.07), rgba(0, 151, 167, 0.02));
  border: 1px solid rgba(0, 151, 167, 0.20);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 20px 22px 24px;
}
.river-svg {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.case-route-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 6px 0;
}
.route-step {
  flex: 1 1 210px;
  min-width: 180px;
  background: var(--c-surface);
  border: 1px solid rgba(0, 151, 167, 0.18);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.route-role {
  display: inline-block;
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-text);
  padding: 2px 0 2px 11px;
  border-left: 3px solid var(--c-accent);
  letter-spacing: 0.5px;
}
.route-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--c-text);
}
.omics-chip {
  display: inline-block;
  padding: 1px 8px;
  margin: 0 1px;
  border-radius: 12px;
  background: rgba(0, 151, 167, 0.1);
  color: var(--c-accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  white-space: nowrap;
  vertical-align: baseline;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.omics-chip:hover {
  background: rgba(0, 151, 167, 0.22);
  text-decoration: underline;
}
.route-arrow {
  flex: 0 0 30px;
  align-self: center;
  height: 18px;
  background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23009bbf' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
.route-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0, 151, 167, 0.3);
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-text-muted);
}
.cases-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--c-text-light);
  padding: 40px 0;
  font-size: 15px;
}
@media (max-width: 768px) {
  .case-route-flow { flex-direction: column; align-items: stretch; }
  .route-arrow {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    align-self: center;
    transform: rotate(90deg);
  }
}


/* ===== 案例 7 区块新结构（标签/双语标题/期刊IF单位作者/摘要/关键技术/原文链接/技术路线）===== */
.case-card .case-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.case-title .title-zh {
  font-size: 19px;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.4;
}
.case-title .title-en {
  font-size: 13.5px;
  font-weight: 500;
  font-style: italic;
  color: var(--c-text-muted);
  line-height: 1.45;
}
.case-block-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.case-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--c-bg-alt, #f6f9fa);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
}
.info-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}
.info-row-single {
  display: block;
  font-size: 13px;
  line-height: 1.65;
  color: var(--c-text);
  word-break: break-word;
}
.info-row-date {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--c-text-muted);
}
.info-k {
  flex: 0 0 auto;
  color: var(--c-text-muted);
  font-weight: 600;
}
.info-v {
  color: var(--c-text);
}
.case-keytechs {
  margin-bottom: 16px;
}
.keytech-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.keytech-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.keytech-head {
  display: block;
  line-height: 1.5;
}
.keytech-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary);
}
.keytech-link {
  display: inline-flex;
  align-items: center;
  margin: 0 2px;
  padding: 1px 9px;
  border-radius: 12px;
  background: rgba(0, 151, 167, 0.12);
  color: var(--c-accent);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.7;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease;
}
.keytech-link:hover {
  background: rgba(0, 151, 167, 0.24);
  text-decoration: underline;
}
.keytech-sample {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--c-text-light);
  line-height: 1.5;
}
.case-link-block {
  margin-top: 4px;
}
.case-link-block .case-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--c-accent);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition: var(--transition);
}
.case-link-block .case-link:hover {
  background: var(--c-accent-dark, var(--c-accent));
  transform: translateY(-1px);
}

/* ---- Cases filter ---- */
.cases-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0;
}
.filter-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  width: 100%;
  color: var(--c-text-light);
  background: transparent;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 8px;
  padding: 9px 14px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.filter-btn:hover {
  color: var(--c-accent);
  background: var(--c-surface);
}
.filter-btn.active {
  color: var(--c-accent);
  background: rgba(0, 151, 167, 0.1);
  border-left-color: var(--c-accent);
  font-weight: 700;
}

/* ---- Contact ---- */
#contact {
  padding: 100px 0;
  background: var(--c-bg-alt);
}
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.contact-info {
  padding: 48px 40px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  color: var(--c-white);
}
.contact-info h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-info h3 small {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  display: block;
  margin-top: 6px;
}
.contact-desc {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--c-accent-light);
  background: rgba(38, 198, 218, 0.15);
  border-radius: 10px;
  padding: 8px;
}
.contact-item span {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 2px;
}
.contact-item p {
  font-size: 16px;
  font-weight: 500;
}
.contact-form {
  padding: 48px 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 8px;
}
.required { color: var(--c-error); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg-alt);
  color: var(--c-text);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--c-accent);
  background: var(--c-surface);
  box-shadow: 0 0 0 3px rgba(38, 198, 218, 0.15);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--c-error);
  background: rgba(198, 40, 40, 0.03);
}
.form-error {
  display: block;
  font-size: 12px;
  color: var(--c-error);
  margin-top: 4px;
  min-height: 16px;
}
.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-top: 8px;
}
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.form-privacy {
  margin-top: 16px;
  font-size: 12px;
  color: var(--c-text-muted);
  text-align: center;
  line-height: 1.6;
}
.form-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--c-text-muted);
  margin-left: 4px;
}
/* 标签式多选（无勾选框，点击亮起） */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg-alt);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  font-size: 14px;
  color: var(--c-text);
  white-space: nowrap;
}
.checkbox-item:hover {
  border-color: var(--c-accent-light);
  background: rgba(38, 198, 218, 0.08);
}
/* 隐藏原生勾选框，保留表单功能 */
.checkbox-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
/* 选中态：高亮亮起 */
.checkbox-item:has(input:checked) {
  border-color: var(--c-accent);
  background: var(--c-accent);
}
.checkbox-item:has(input:checked) span {
  color: var(--c-white);
  font-weight: 600;
}
.checkbox-item span {
  transition: var(--transition);
  line-height: 1.5;
}

/* 留言框固定宽高 */
.form-group textarea {
  width: 100%;
  max-width: 100%;
  height: 120px;
  min-height: 120px;
  max-height: 120px;
  resize: none;
}

/* ---- Footer ---- */
footer {
  background: var(--c-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 24px;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand .footer-logo .logo-icon {
  color: var(--c-accent-light);
}
.footer-brand .footer-logo .logo-img {
  height: 56px;
}
.footer-brand span {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-white);
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
}
.footer-links h5,
.footer-contact h5 {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--c-accent-light);
  padding-left: 4px;
}
.footer-contact p {
  font-size: 14px;
  margin-bottom: 10px;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  padding: 16px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--c-white);
  background: var(--c-text);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 90%;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.success { background: var(--c-success); }
.toast.error { background: var(--c-error); }

/* ---- Floating CTA ---- */
.floating-cta {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  background: var(--c-primary);
  color: var(--c-white);
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.floating-cta.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.floating-cta:hover {
  background: var(--c-accent);
  padding-left: 14px;
}
.floating-cta-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.floating-cta-icon svg {
  width: 100%;
  height: 100%;
}
.floating-cta-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  line-height: 1;
}

/* ---- Product Detail Page ---- */
.product-detail {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 80px;
  background: var(--c-bg-alt);
  min-height: 100vh;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--c-text-muted);
  margin-bottom: 32px;
}
.breadcrumb a {
  color: var(--c-text-light);
  transition: var(--transition);
}
.breadcrumb a:hover {
  color: var(--c-accent);
}
.breadcrumb-sep {
  color: var(--c-text-muted);
}
.breadcrumb-current {
  color: var(--c-primary);
  font-weight: 600;
}
.breadcrumb-category {
  color: var(--c-text);
}

/* Product Header */
.product-detail-header {
  text-align: center;
  margin-bottom: 56px;
  padding: 48px 32px;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}
.product-detail-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  color: var(--c-accent);
  background: rgba(0, 151, 167, 0.1);
  border-radius: 12px;
  margin-bottom: 20px;
}
.product-detail-header h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}
.product-detail-desc {
  font-size: 16px;
  color: var(--c-text-light);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Detail Blocks */
.product-detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 48px;
}
.detail-block {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--c-border);
  transition: var(--transition);
}
.detail-block:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--c-accent-light);
}
.detail-icon {
  width: 48px;
  height: 48px;
  color: var(--c-white);
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 20px;
}
.detail-block h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 14px;
}
.detail-block p {
  font-size: 15px;
  color: var(--c-text-light);
  line-height: 1.9;
  white-space: pre-line;
}

/* CTA */
.product-detail-cta {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  border-radius: var(--radius-lg);
  color: var(--c-white);
}
.product-detail-cta p {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
}
.product-detail-cta .btn {
  background: var(--c-surface);
  color: var(--c-primary);
}
.product-detail-cta .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .product-detail-body { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .product-detail { padding-top: calc(var(--nav-height) + 24px); }
  .product-detail-header { padding: 32px 20px; }
  .product-detail-header h1 { font-size: 24px; }
  .detail-block { padding: 28px 24px; }
  .product-detail-cta { padding: 28px 20px; }
  .product-detail-cta p { font-size: 16px; }
  /* 案例：窄屏下目录转为横向吸顶条，不再占左侧栏 */
  .cases-layout { flex-direction: column; gap: 20px; }
  .cases-sidebar {
    position: sticky;
    top: var(--nav-height);
    flex-basis: auto;
    width: 100%;
    max-height: none;
    overflow: visible;
    background: var(--c-bg);
    z-index: 5;
    padding: 10px 0;
  }
  .sidebar-title { display: none; }
  .cases-filter {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .filter-btn {
    width: auto;
    white-space: nowrap;
    border-left: none;
    border: 1px solid var(--c-border);
    border-radius: 20px;
    padding: 7px 14px;
  }
  .filter-btn.active {
    border: 1px solid var(--c-accent);
    background: rgba(0, 151, 167, 0.1);
  }
}

@media (max-width: 480px) {
  .breadcrumb { font-size: 12px; gap: 4px; }
  .product-detail-header h1 { font-size: 20px; }
  .detail-block { padding: 24px 18px; }
  .detail-block h3 { font-size: 18px; }
  .detail-block p { font-size: 14px; }
}
@media (max-width: 900px) {
  .about-wrapper { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section-banner { height: 240px; }
  .banner-overlay p { font-size: 18px; }
  .banner-overlay p:nth-child(2) { font-size: 14px; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--c-surface);
    padding: 16px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: var(--transition);
  }
  .nav-menu.active { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  #hero h1 { font-size: 30px; }
  .hero-eng-name { font-size: 14px; }
  .hero-tagline { font-size: 16px; }
  .section-title { font-size: 26px; }
  .section-header { margin-bottom: 40px; }

  #about, #products, #advantages, #cases, #contact { padding: 64px 0; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .checkbox-grid { grid-template-columns: 1fr 1fr; }
  .contact-info, .contact-form { padding: 32px 24px; }
  .footer-content { grid-template-columns: 1fr; gap: 24px; }
  .hero-buttons { flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto; }
  .btn { width: 100%; }
  .stat-item { padding: 20px 12px; }
  .stat-number { font-size: 22px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .logo-text em { display: none; }
  #hero h1 { font-size: 26px; }
  .section-banner { height: 200px; }
  .banner-overlay p { font-size: 16px; }
  .floating-cta {
    padding: 12px 8px;
    border-radius: 0 10px 10px 0;
  }
  .floating-cta-text { font-size: 12px; }
  .floating-cta-icon { width: 18px; height: 18px; }
}
