
/* ==========================================================================
   RuleAgent Design System & CSS
   Corporate Industrial Tech Aesthetic (Palantir / Stripe Enterprise Style)
   Restrained Titanium Dark + Cool Tech Blue + Frosted Glass
   ========================================================================== */

:root {
  --bg-dark: #080B10;
  --bg-surface: #0E131C;
  --bg-card: rgba(16, 22, 32, 0.75);
  --bg-card-hover: rgba(22, 30, 44, 0.9);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(56, 189, 248, 0.25);
  --border-glow: rgba(56, 189, 248, 0.4);

  --accent: #38BDF8;
  --accent-light: #7DD3FC;
  --accent-dark: #0284C7;
  --accent-glow: rgba(56, 189, 248, 0.12);
  --accent-gradient: linear-gradient(135deg, #38BDF8 0%, #818CF8 100%);
  
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dark: #64748B;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

.mono {
  font-family: var(--font-mono);
}

.w-100 {
  width: 100%;
}

/* Background Ambient Glow & Grid */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
}

.glow-top {
  width: 700px;
  height: 700px;
  background: #0284C7;
  top: -200px;
  right: -100px;
}

.glow-bottom {
  width: 600px;
  height: 600px;
  background: #312E81;
  bottom: 5%;
  left: -150px;
}

.bg-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.85) 0%, transparent 80%);
}

/* Container */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 64px auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-active);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-desc {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 11, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text span {
  color: var(--accent);
}

.badge-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-active);
  margin-left: 6px;
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-item {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-main);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-lang {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-lang:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-active);
}

.btn-primary-sm {
  background: #0284C7;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
}

.btn-primary-sm:hover {
  background: var(--accent);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  padding: 120px 0 80px 0;
  text-align: center;
}

.hero-container {
  max-width: 940px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid var(--border-active);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 820px;
  margin: 0 auto 44px auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 64px;
}

.btn-primary {
  background: #0284C7;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: var(--accent);
  color: #080B10;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
}

.stat-card {
  text-align: center;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-num span {
  color: var(--accent);
  font-size: 1.3rem;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Vision Grid */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vision-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: all 0.3s ease;
}

.vision-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.vision-icon {
  margin-bottom: 18px;
}

.vision-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.vision-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Solutions Section with Real Generated Imagery */
.solutions-container {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.solution-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.solution-block.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}
.solution-block.reverse .solution-text {
  order: 2;
}
.solution-block.reverse .solution-visual {
  order: 1;
}

.sol-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.solution-text h3 {
  font-size: 1.6rem;
  line-height: 1.35;
  margin-bottom: 16px;
}

.solution-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.sol-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.sol-features li {
  font-size: 0.94rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 18px;
}

.sol-features li::before {
  content: '▸';
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 0;
}

.sol-features strong {
  color: var(--text-main);
}

.sol-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sol-tag-sm {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* Image Frames with Overlay Badges */
.img-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  aspect-ratio: 4 / 3;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.solution-block:hover .img-frame img {
  transform: scale(1.03);
}

.img-overlay-card {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(8, 11, 16, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8rem;
}

.img-overlay-card .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

.img-overlay-card p {
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  margin: 0;
}


/* ==========================================================================
   Upgraded Rich Product Matrix Styling
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.product-card {
  background: linear-gradient(180deg, rgba(20, 27, 40, 0.85) 0%, rgba(11, 16, 25, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0.7;
  transition: opacity 0.3s ease, height 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.product-card:hover::before {
  opacity: 1;
  height: 3px;
}

/* Domain-specific Accents */
.card-eco::before { background: linear-gradient(90deg, #10B981, #34D399, transparent); }
.card-eco:hover { border-color: rgba(16, 185, 129, 0.35); }
.icon-eco { background: rgba(16, 185, 129, 0.12); color: #34D399; border-color: rgba(16, 185, 129, 0.25); }
.badge-eco { background: rgba(16, 185, 129, 0.1); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.25); }

.card-health::before { background: linear-gradient(90deg, #06B6D4, #38BDF8, transparent); }
.card-health:hover { border-color: rgba(6, 182, 212, 0.35); }
.icon-health { background: rgba(6, 182, 212, 0.12); color: #38BDF8; border-color: rgba(6, 182, 212, 0.25); }
.badge-health { background: rgba(6, 182, 212, 0.1); color: #38BDF8; border: 1px solid rgba(6, 182, 212, 0.25); }
.dot-health { background: #06B6D4; box-shadow: 0 0 8px #06B6D4; }

.card-story::before { background: linear-gradient(90deg, #F59E0B, #FCD34D, transparent); }
.card-story:hover { border-color: rgba(245, 158, 11, 0.35); }
.icon-story { background: rgba(245, 158, 11, 0.12); color: #FBBF24; border-color: rgba(245, 158, 11, 0.25); }
.badge-story { background: rgba(245, 158, 11, 0.1); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.25); }
.dot-story { background: #F59E0B; box-shadow: 0 0 8px #F59E0B; }

.card-power::before { background: linear-gradient(90deg, #3B82F6, #60A5FA, transparent); }
.card-power:hover { border-color: rgba(59, 130, 246, 0.35); }
.icon-power { background: rgba(59, 130, 246, 0.12); color: #60A5FA; border-color: rgba(59, 130, 246, 0.25); }
.badge-power { background: rgba(59, 130, 246, 0.1); color: #60A5FA; border: 1px solid rgba(59, 130, 246, 0.25); }
.dot-power { background: #3B82F6; box-shadow: 0 0 8px #3B82F6; }

.card-demo::before { background: linear-gradient(90deg, #8B5CF6, #A78BFA, transparent); }
.card-demo:hover { border-color: rgba(139, 92, 246, 0.35); }
.icon-demo { background: rgba(139, 92, 246, 0.12); color: #A78BFA; border-color: rgba(139, 92, 246, 0.25); }
.badge-demo { background: rgba(139, 92, 246, 0.1); color: #A78BFA; border: 1px solid rgba(139, 92, 246, 0.25); }
.dot-demo { background: #8B5CF6; box-shadow: 0 0 8px #8B5CF6; }

.card-core::before { background: linear-gradient(90deg, #EC4899, #F472B6, transparent); }
.card-core:hover { border-color: rgba(236, 72, 153, 0.35); }
.icon-core { background: rgba(236, 72, 153, 0.12); color: #F472B6; border-color: rgba(236, 72, 153, 0.25); }
.badge-core { background: rgba(236, 72, 153, 0.1); color: #F472B6; border: 1px solid rgba(236, 72, 153, 0.25); }
.dot-core { background: #EC4899; box-shadow: 0 0 8px #EC4899; }

/* Product Card Header */
.prod-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.prod-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.product-card:hover .prod-icon-box {
  transform: scale(1.08);
}

.prod-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prod-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.prod-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dark);
}

.dot-ping {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 6px #34D399;
}

/* Card Content */
.prod-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card h3 {
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.product-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 20px;
  min-height: 46px;
}

/* Feature Pills */
.prod-features-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.prod-features-pills .pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.product-card:hover .prod-features-pills .pill {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Specs Inner Box */
.prod-specs-card {
  background: rgba(8, 12, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 0.82rem;
}

.spec-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-val {
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

.spec-val.highlight-val {
  color: var(--text-main);
  font-weight: 600;
}

/* Card Action Footer */
.prod-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.prod-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  transition: all 0.2s ease;
}

.prod-action-btn span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.product-card:hover .prod-action-btn {
  color: var(--accent-light);
}

.product-card:hover .prod-action-btn span {
  transform: translateX(4px);
}

/* RuleAgent Lab Section */
.lab-box {
  background: linear-gradient(180deg, rgba(14, 19, 28, 0.95) 0%, rgba(8, 11, 16, 0.95) 100%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
}

.lab-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px auto;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.lab-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.lab-card:hover {
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.04);
}

.lab-img-frame {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

.lab-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lab-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.lab-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 18px;
  flex-grow: 1;
}

.lab-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lab-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 24px;
}

.about-item .num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.about-item h4 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.about-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.contact-info .section-tag {
  margin-bottom: 14px;
}
.contact-info .section-title {
  text-align: left;
}
.contact-info .section-desc {
  text-align: left;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.detail-item .icon {
  font-size: 1.2rem;
  margin-top: 2px;
}

.detail-item strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.detail-item p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
}

.contact-form h3 {
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent);
}

.form-group select option {
  background: #0E131C;
  color: #fff;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 36px 0;
  background: #05070B;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-slogan {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 14px;
  max-width: 360px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.f-col h5 {
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 14px;
  font-weight: 600;
}

.f-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.f-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  font-size: 0.82rem;
  color: var(--text-dark);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .vision-grid { grid-template-columns: 1fr; }
  .solution-block, .solution-block.reverse { grid-template-columns: 1fr; }
  .solution-block.reverse .solution-text { order: 1; }
  .solution-block.reverse .solution-visual { order: 2; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .lab-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; padding: 32px; }
  .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-stats { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ==== Robustness patches (v3): 防变形/防溢出 ==== */
.img-frame {
  max-width: 100%;
  flex: 1;
  min-height: 0;
}
.img-frame img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}
.lab-img-frame img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}
img { max-width: 100%; }
h1, h2, h3, h4, h5, p, li { overflow-wrap: break-word; word-break: break-word; }
.hero-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.product-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.vision-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.lab-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.about-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.stat-num { white-space: nowrap; }
@media (max-width: 900px) {
  .solution-block, .solution-block.reverse { padding: 24px 20px; }
  .hero-section { padding: 90px 0 60px; }
}
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { width: 100%; }
}

/* ==== v3 fix: contact 区域手机端溢出 ==== */
.contact-wrapper { min-width: 0; }
.contact-info, .contact-details, .detail-item, .contact-form-panel { min-width: 0; }
.detail-item p.mono { word-break: break-all; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .contact-wrapper { padding: 24px 16px; }
  .container { padding: 0 16px; }
}
.ambient-glow { position: absolute; }
.bg-mesh { overflow: hidden; }

/* ==== v5: 备案号链接样式 ==== */
.footer-icp a { color: var(--text-dark); }
.footer-icp a:hover { color: var(--accent); text-decoration: underline; }

/* ==== v6: 公司中文名 ==== */
.footer-cname {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 12px;
}
