/* ===== Variables ===== */
:root {
  --bg: #f5f7fb;
  --bg-alt: #eef1f8;
  --surface: rgba(255, 255, 255, 0.55);
  --surface-border: rgba(255, 255, 255, 0.7);
  --text: #1a1f36;
  --text-secondary: #5a6178;
  --text-muted: #8b92a8;
  --accent: #3b6cf5;
  --accent-light: #6b8ff7;
  --accent-glow: rgba(59, 108, 245, 0.15);
  --gradient: linear-gradient(135deg, #3b6cf5 0%, #6c5ce7 50%, #a29bfe 100%);
  --shadow-sm: 0 2px 8px rgba(26, 31, 54, 0.04);
  --shadow-md: 0 8px 32px rgba(26, 31, 54, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 31, 54, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

/* ===== Particle Canvas ===== */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===== Glass Effect ===== */
.glass {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-md);
}

/* ===== Layout ===== */
.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: box-shadow var(--transition);
  overflow: visible;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gradient);
  color: #fff;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links > li {
  display: flex;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--accent);
}

.nav-dropdown {
  position: relative;
}

/* 透明桥接层：填补按钮与菜单之间的空隙，防止鼠标移入时菜单消失 */
.nav-dropdown::after {
  content: '';
  position: absolute;
  left: -8px;
  right: -8px;
  top: 100%;
  height: 16px;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
}

.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger {
  color: var(--accent);
}

.nav-dropdown-arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.nav-dropdown.open .nav-dropdown-arrow,
.nav-dropdown:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 220px;
  padding: 12px;
  margin: 0;
  background: #ffffff;
  border: 1px solid rgba(26, 31, 54, 0.08);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.dropdown-columns {
  display: grid;
  gap: 4px 16px;
}

.dropdown-columns.cols-1 { grid-template-columns: 1fr; min-width: 200px; }
.dropdown-columns.cols-2 { grid-template-columns: repeat(2, 1fr); min-width: 380px; }
.dropdown-columns.cols-3 { grid-template-columns: repeat(3, 1fr); min-width: 540px; }
.dropdown-columns.cols-4 { grid-template-columns: repeat(4, 1fr); min-width: 700px; }

.dropdown-column {
  min-width: 0;
}

.dropdown-col-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding: 4px 10px 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(26, 31, 54, 0.08);
  white-space: nowrap;
}

.dropdown-col-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-col-list > li {
  position: relative;
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

.dropdown-has-children {
  position: relative;
}

.dropdown-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition), color var(--transition);
}

.dropdown-parent:hover,
.dropdown-has-children:hover > .dropdown-parent {
  background: var(--accent-glow);
  color: var(--accent);
}

.dropdown-parent-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.5;
}

.dropdown-submenu {
  display: none;
  position: absolute;
  left: calc(100% - 4px);
  top: 0;
  min-width: 180px;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid rgba(26, 31, 54, 0.08);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 210;
}

.dropdown-has-children:hover > .dropdown-submenu {
  display: block;
}

.dropdown-item-name {
  display: block;
  font-weight: 600;
}

.dropdown-item-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: normal;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-image: var(--slide-img);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease, transform 8s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-color-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg,
      rgba(235, 241, 255, 0.92) 0%,
      rgba(228, 234, 252, 0.78) 35%,
      rgba(240, 236, 255, 0.72) 70%,
      rgba(245, 247, 251, 0.88) 100%),
    radial-gradient(ellipse at 20% 50%, rgba(59, 108, 245, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(108, 92, 231, 0.1) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(245, 247, 251, 0.95) 0%,
    rgba(245, 247, 251, 0.7) 45%,
    rgba(245, 247, 251, 0.35) 100%
  );
}

.hero-dna {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.dna-symbol {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  opacity: 0.35;
  animation: dna-float 6s ease-in-out infinite;
}

.dna-symbol svg {
  width: 44px;
  height: 44px;
}

.dna-symbol span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.dna-1 { top: 18%; left: 6%; animation-delay: 0s; }
.dna-2 { top: 12%; right: 12%; animation-delay: -1s; }
.dna-3 { bottom: 22%; left: 10%; animation-delay: -2s; }
.dna-4 { top: 42%; right: 5%; animation-delay: -3s; }
.dna-5 { bottom: 14%; right: 18%; animation-delay: -4s; }
.dna-6 { top: 55%; left: 3%; animation-delay: -5s; }

@keyframes dna-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 0 80px;
}

.hero-content {
  padding: 20px 0;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.hero-carousel::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: var(--gradient);
  opacity: 0.25;
  z-index: -1;
  filter: blur(12px);
}

.hero-carousel::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(59, 108, 245, 0.15);
  border-radius: 50%;
  z-index: -1;
  animation: spin 30s linear infinite;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 24px 20px;
  background: linear-gradient(to top, rgba(26, 31, 54, 0.55) 0%, transparent 100%);
  color: #fff;
  z-index: 2;
}

.caption-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
}

.carousel-caption p {
  font-size: 0.95rem;
  font-weight: 500;
}

.carousel-controls {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}

.carousel-btn:hover {
  background: #fff;
  color: var(--accent);
}

.carousel-btn svg {
  width: 16px;
  height: 16px;
}

.carousel-dots {
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.carousel-dot.active {
  background: #fff;
  width: 22px;
  border-radius: 4px;
}

.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 3;
}

.carousel-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gradient);
  transition: width 0.1s linear;
}

.hero-gene-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}

.gene-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.gene-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient);
  border-radius: 8px;
}

.gene-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.8;
  transition: opacity 0.3s ease;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(59, 108, 245, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 108, 245, 0.4);
}

.btn-ghost {
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.8);
}

.btn-full {
  width: 100%;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 24px 40px;
  border-radius: var(--radius);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(26, 31, 54, 0.1);
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text {
  padding: 40px;
  border-radius: var(--radius);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--text);
  font-weight: 600;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  border-radius: var(--radius);
  min-height: 320px;
}

.orbit {
  position: relative;
  width: 200px;
  height: 200px;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(59, 108, 245, 0.15);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(59, 108, 245, 0.3);
}

.orbit-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  top: 50%;
  left: 50%;
}

.dot-1 {
  animation: orbit 8s linear infinite;
}

.dot-2 {
  animation: orbit 8s linear infinite;
  animation-delay: -2.67s;
  background: #6c5ce7;
}

.dot-3 {
  animation: orbit 8s linear infinite;
  animation-delay: -5.33s;
  background: #a29bfe;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(94px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(94px) rotate(-360deg); }
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 12px;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Advantages ===== */
.advantages-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.advantage-item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 32px 36px;
  border-radius: var(--radius);
  transition: transform var(--transition);
}

.advantage-item:hover {
  transform: translateX(8px);
}

.advantage-num {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  line-height: 1;
}

.advantage-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.advantage-item p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ===== Contact ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px;
  border-radius: var(--radius);
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-details svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-details a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.contact-details a:hover {
  color: var(--accent);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(26, 31, 54, 0.08);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.captcha-row input {
  flex: 1;
  min-width: 0;
}

.captcha-img {
  width: 120px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(26, 31, 54, 0.08);
  cursor: pointer;
  flex-shrink: 0;
  background: #f0f3fa;
  transition: opacity 0.2s ease;
}

.captcha-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(26, 31, 54, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  transition: all var(--transition);
}

.captcha-refresh.is-refreshing svg {
  animation: captcha-spin 0.6s ease;
}

@keyframes captcha-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.captcha-refresh:hover {
  color: var(--accent);
  border-color: var(--accent-light);
  background: var(--accent-glow);
}

.captcha-refresh svg {
  width: 18px;
  height: 18px;
}

.form-group .required {
  color: #e74c3c;
}

.field-error {
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 6px;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: right;
}

.form-group input.input-error,
.form-group textarea.input-error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.form-error {
  font-size: 0.85rem;
  color: #e74c3c;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(231, 76, 60, 0.08);
  border-radius: var(--radius-sm);
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 32px;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(26, 31, 54, 0.08);
  border-radius: 12px;
  background: #ffffff;
  color: var(--accent);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition), box-shadow var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(59, 108, 245, 0.35);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 640px) {
  .back-to-top {
    right: 16px;
    bottom: 20px;
    width: 40px;
    height: 40px;
  }
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  border-top: 1px solid rgba(26, 31, 54, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: right;
}

@media (max-width: 640px) {
  .footer-copy {
    text-align: center;
  }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 0 60px;
  }

  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(245, 247, 251, 0.92) 0%,
      rgba(245, 247, 251, 0.75) 60%,
      rgba(245, 247, 251, 0.5) 100%
    );
  }

  .hero-dna .dna-4,
  .hero-dna .dna-6 {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .about-visual {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
    z-index: 110;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    flex-direction: column;
    gap: 0;
    padding: calc(var(--header-h) + 24px) 32px 32px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(26, 31, 54, 0.06);
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 1rem;
  }

  .nav-dropdown-trigger {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 1rem;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0 0 8px 8px;
    display: none;
    min-width: 0;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown.open:hover .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .dropdown-columns,
  .dropdown-columns.cols-1,
  .dropdown-columns.cols-2,
  .dropdown-columns.cols-3,
  .dropdown-columns.cols-4 {
    grid-template-columns: 1fr;
    min-width: 0;
    gap: 12px;
  }

  .dropdown-col-title {
    padding: 8px 0 6px;
  }

  .nav-dropdown-menu a,
  .dropdown-parent {
    padding: 12px 0;
    white-space: normal;
  }

  .dropdown-submenu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0 0 0 16px;
    min-width: 0;
    display: none;
  }

  .dropdown-has-children:hover > .dropdown-submenu {
    display: none;
  }

  .dropdown-has-children.submenu-open > .dropdown-submenu {
    display: block;
  }

  .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);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-gene-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-dna {
    display: none;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 24px 28px;
    width: 100%;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .advantage-item {
    flex-direction: column;
    gap: 12px;
  }

  .contact-wrapper {
    padding: 28px;
  }
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Blog Page ===== */
.blog-page,
.article-page {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
}

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
}

.blog-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.blog-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      #e8eefb 0%,
      #eef0fa 30%,
      #f0ecfb 60%,
      #f5f7fb 100%),
    radial-gradient(ellipse at 15% 60%, rgba(59, 108, 245, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 25%, rgba(108, 92, 231, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(162, 155, 254, 0.08) 0%, transparent 40%);
}

.blog-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 108, 245, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 108, 245, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 75%);
}

.blog-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.blog-hero-orb-1 {
  width: 280px;
  height: 280px;
  background: rgba(59, 108, 245, 0.15);
  top: -60px;
  right: 10%;
}

.blog-hero-orb-2 {
  width: 200px;
  height: 200px;
  background: rgba(108, 92, 231, 0.12);
  bottom: -40px;
  left: 5%;
}

.blog-hero-dna {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.blog-dna-1 { top: 14%; left: 4%; animation-delay: 0s; }
.blog-dna-2 { top: 8%; right: 8%; animation-delay: -1.2s; }
.blog-dna-3 { bottom: 18%; left: 8%; animation-delay: -2.4s; }
.blog-dna-4 { top: 38%; right: 3%; animation-delay: -3.6s; }
.blog-dna-5 { bottom: 10%; right: 14%; animation-delay: -4.8s; }
.blog-dna-6 { top: 50%; left: 2%; animation-delay: -6s; }

.blog-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.blog-hero-content {
  text-align: center;
  max-width: 640px;
}

.blog-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.blog-hero-desc {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 24px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.blog-hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-hero-tag {
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 100px;
}

.blog-hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 640px;
  padding: 16px 20px;
  border-radius: var(--radius);
}

.blog-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.blog-strip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient);
  border-radius: 10px;
}

.blog-strip-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.blog-body {
  padding-bottom: 80px;
}

.blog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.blog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 24px 20px;
  border-radius: var(--radius);
}

.sidebar-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.category-btn:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

.category-btn.active {
  background: var(--gradient);
  color: #fff;
}

.category-count {
  font-size: 0.78rem;
  opacity: 0.7;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 100px;
}

.category-btn:not(.active) .category-count {
  background: var(--accent-glow);
  color: var(--accent);
}

.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.blog-result {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.blog-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 320px;
}

.blog-search svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.blog-search input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
}

.blog-search input::placeholder {
  color: var(--text-muted);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.article-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.article-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.article-card-category {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  padding: 3px 10px;
  background: var(--accent-glow);
  border-radius: 100px;
}

.article-card-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.article-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
}

.article-card-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(26, 31, 54, 0.06);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-empty,
.blog-error {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.blog-error {
  grid-column: 1 / -1;
  border-radius: var(--radius);
}

.blog-error code {
  display: inline-block;
  margin: 12px 0;
  padding: 8px 16px;
  background: rgba(59, 108, 245, 0.08);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  color: var(--accent);
}

/* ===== Article Page ===== */
.article-page {
  padding-bottom: 80px;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 0 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.article-breadcrumb a:hover {
  color: var(--accent);
}

.article-wrapper {
  padding: 48px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.article-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(26, 31, 54, 0.08);
}

.article-category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 12px;
  background: var(--accent-glow);
  border-radius: 100px;
  margin-bottom: 16px;
}

.article-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.meta-tag {
  padding: 2px 10px;
  background: rgba(26, 31, 54, 0.05);
  border-radius: 100px;
  font-size: 0.78rem;
}

.article-loading,
.article-error {
  color: var(--text-secondary);
  text-align: center;
  padding: 40px 0;
}

/* ===== Markdown Body ===== */
.markdown-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  color: var(--text);
  font-weight: 600;
  margin: 1.6em 0 0.6em;
  line-height: 1.4;
}

.markdown-body h1 { font-size: 1.6rem; }
.markdown-body h2 {
  font-size: 1.3rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(26, 31, 54, 0.08);
}
.markdown-body h3 { font-size: 1.1rem; }

.markdown-body p {
  margin-bottom: 1.2em;
}

.markdown-body ul,
.markdown-body ol {
  margin-bottom: 1.2em;
  padding-left: 1.5em;
}

.markdown-body li {
  margin-bottom: 0.4em;
}

.markdown-body ul { list-style: disc; }
.markdown-body ol { list-style: decimal; }

.markdown-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.markdown-body blockquote {
  margin: 1.2em 0;
  padding: 12px 20px;
  border-left: 3px solid var(--accent);
  background: var(--accent-glow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 0.92rem;
}

.markdown-body th,
.markdown-body td {
  padding: 10px 14px;
  border: 1px solid rgba(26, 31, 54, 0.1);
  text-align: left;
}

.markdown-body th {
  background: rgba(59, 108, 245, 0.06);
  font-weight: 600;
  color: var(--text);
}

.markdown-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  background: rgba(59, 108, 245, 0.08);
  border-radius: 4px;
  color: var(--accent);
}

.markdown-body pre,
.markdown-body .code-block {
  margin: 1.2em 0;
  padding: 20px;
  background: #1a1f36;
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

.markdown-body pre code {
  padding: 0;
  background: none;
  color: #e2e8f0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.markdown-body img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 1.2em 0;
}

.markdown-body hr {
  border: none;
  height: 1px;
  background: rgba(26, 31, 54, 0.08);
  margin: 2em 0;
}

/* ===== Article Nav ===== */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
}

.article-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.article-nav-link:hover {
  background: var(--accent-glow);
}

.article-nav-link.next {
  text-align: right;
}

.nav-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

/* ===== Blog Responsive ===== */
@media (max-width: 960px) {
  .blog-hero-strip {
    grid-template-columns: repeat(2, 1fr);
    max-width: 400px;
  }

  .blog-dna-4,
  .blog-dna-6 {
    display: none;
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .category-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .category-btn {
    width: auto;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .blog-hero {
    padding: 40px 0 48px;
  }

  .blog-hero-dna {
    display: none;
  }

  .blog-hero-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 14px;
  }

  .blog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-search {
    max-width: none;
  }

  .article-wrapper {
    padding: 28px 20px;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }
}
