/* ============================================
   山西金蚂蚁互联科技有限公司 - 企业官网样式
   磨砂亚麻设计风格 / 商务蓝主色调
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --canvas: #fcfcfc;
  --sky-wash: #f0f4fe;
  --midnight: #020520;
  --graphite: #14141e;
  --slate: #374151;
  --fog: #696a72;
  --deep-fog: #95959b;
  --steel: #6b7280;
  --signal-blue: #145aff;
  --action-primary: #0f1f3d;
  --emerald: #16ca2e;
  --coral: #f26052;
  --sky-info: #0099ff;
  --amber: #ffa64d;
  --radius-card: 8px;
  --radius-large: 40px;
  --radius-pill: 100px;
  --radius-btn: 12px;
  --radius-input: 12px;
  --shadow-card: rgba(0, 0, 0, 0.1) 0px 0px 4px -2px;
  --shadow-feature: rgba(0, 0, 0, 0.082) 0px 0.36px 1.81px -1.42px, rgba(0, 0, 0, 0.07) 0px 1.37px 6.87px -2.83px, rgba(0, 0, 0, 0.016) 0px 6px 30px -4.25px;
  --shadow-hero: rgba(20, 90, 255, 0.1) 0px 0px 100px -28px;
  --max-width: 1200px;
  --section-gap: 80px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--canvas);
  color: var(--slate);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(252, 252, 252, 0.9);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  color: var(--midnight);
  letter-spacing: -0.22px;
}

.nav-logo svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--sky-wash);
  color: var(--midnight);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--action-primary);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--action-primary);
  border-radius: var(--radius-btn);
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--sky-wash);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--midnight);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(97.8% 181.6% at 53.7% 50%, rgba(182, 203, 253, 0.3) 0%, rgba(240, 244, 254, 0.1) 60%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--sky-wash);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 24px;
}

.hero-badge i {
  color: var(--signal-blue);
  font-size: 14px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -1.51px;
  color: var(--midnight);
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: var(--fog);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  background: linear-gradient(180deg, rgb(59, 130, 246) 0%, rgb(20, 90, 255) 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 90, 255, 0.25);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--canvas);
  color: var(--signal-blue);
  font-size: 16px;
  font-weight: 500;
  border-radius: 50px;
  border: 1px solid rgba(20, 90, 255, 0.2);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: var(--signal-blue);
  background: var(--sky-wash);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--action-primary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-btn);
  border: 1px solid var(--action-primary);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-outline:hover {
  background: var(--sky-wash);
  transform: translateY(-1px);
}

/* ============================================
   Sections Common
   ============================================ */
.section {
  padding: var(--section-gap) 0;
}

.section-alt {
  background: var(--sky-wash);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--signal-blue);
  letter-spacing: 0.13px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.76px;
  color: var(--midnight);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--fog);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ============================================
   Features / Advantages
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 12px -2px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sky-wash);
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 20px;
  color: var(--signal-blue);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: 8px;
  letter-spacing: -0.16px;
}

.feature-card p {
  font-size: 14px;
  color: var(--fog);
  line-height: 1.5;
}

/* ============================================
   About Section
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  background: var(--sky-wash);
  border-radius: var(--radius-large);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.about-image svg {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.about-content h2 {
  font-size: 40px;
  font-weight: 600;
  color: var(--midnight);
  letter-spacing: -0.76px;
  margin-bottom: 20px;
  line-height: 1.08;
}

.about-content p {
  font-size: 16px;
  color: var(--fog);
  line-height: 1.6;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

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

.stat-number {
  font-family: 'Roboto Mono', monospace;
  font-size: 28px;
  font-weight: 500;
  color: var(--midnight);
  letter-spacing: -0.54px;
}

.stat-label {
  font-size: 12px;
  color: var(--fog);
  margin-top: 4px;
}

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

.product-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 12px -2px;
}

.product-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sky-wash);
  border-radius: 16px;
  margin-bottom: 20px;
  font-size: 24px;
  color: var(--signal-blue);
}

.product-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: 10px;
  letter-spacing: -0.22px;
}

.product-card p {
  font-size: 14px;
  color: var(--fog);
  line-height: 1.5;
  flex: 1;
}

.product-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--signal-blue);
  transition: gap 0.2s;
}

.product-card .card-link:hover {
  gap: 10px;
}

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

.case-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 12px -2px;
}

.case-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.case-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--sky-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--signal-blue);
}

.case-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--graphite);
}

.case-card p {
  font-size: 14px;
  color: var(--fog);
  line-height: 1.5;
}

.case-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--signal-blue);
}

/* Client Logos */
.client-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  align-items: center;
  justify-items: center;
  margin-top: 48px;
  padding: 32px 0;
}

.client-logos img,
.client-logos .logo-placeholder {
  filter: grayscale(100%);
  opacity: 0.5;
  transition: opacity 0.2s;
  font-size: 14px;
  font-weight: 600;
  color: var(--fog);
}

.client-logos .logo-placeholder:hover {
  opacity: 0.8;
}

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

.news-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 12px -2px;
}

.news-card-image {
  height: 180px;
  background: var(--sky-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--signal-blue);
}

.news-card-body {
  padding: 20px 24px 24px;
}

.news-card-date {
  font-size: 12px;
  color: var(--deep-fog);
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-card p {
  font-size: 14px;
  color: var(--fog);
  line-height: 1.5;
}

.news-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--signal-blue);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-form {
  background: #ffffff;
  border-radius: var(--radius-large);
  padding: 48px;
  box-shadow: var(--shadow-feature);
}

.contact-form h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 24px;
  letter-spacing: -0.22px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px;
  background: #ffffff;
  border: 1px solid #cfcfcf;
  border-radius: var(--radius-input);
  font-family: inherit;
  font-size: 14px;
  color: var(--graphite);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--deep-fog);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--sky-info);
  box-shadow: rgba(0, 153, 255, 1) 0px 0px 0px 3px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-info {
  padding-top: 16px;
}

.contact-info h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 24px;
  letter-spacing: -0.22px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sky-wash);
  border-radius: 10px;
  font-size: 16px;
  color: var(--signal-blue);
  flex-shrink: 0;
}

.contact-item-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: 4px;
}

.contact-item-text p {
  font-size: 14px;
  color: var(--fog);
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sky-wash);
  border-radius: 10px;
  font-size: 16px;
  color: var(--slate);
  transition: background 0.2s, color 0.2s;
}

.social-link:hover {
  background: var(--signal-blue);
  color: #ffffff;
}

/* Map placeholder */
.map-container {
  margin-top: 32px;
  background: var(--sky-wash);
  border-radius: 16px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fog);
  font-size: 14px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--midnight);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.22px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Page Header (Inner Pages)
   ============================================ */
.page-header {
  padding: 140px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(97.8% 181.6% at 53.7% 50%, rgba(182, 203, 253, 0.2) 0%, rgba(240, 244, 254, 0.05) 60%, transparent 100%);
  pointer-events: none;
}

.page-header h1 {
  font-size: 40px;
  font-weight: 600;
  color: var(--midnight);
  letter-spacing: -0.76px;
  margin-bottom: 12px;
  position: relative;
}

.page-header p {
  font-size: 16px;
  color: var(--fog);
  position: relative;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--deep-fog);
  position: relative;
}

.breadcrumb a {
  color: var(--signal-blue);
}

.breadcrumb span {
  color: var(--deep-fog);
}

/* ============================================
   Detail Page Styles
   ============================================ */
.detail-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}

.detail-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 16px;
  letter-spacing: -0.22px;
}

.detail-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--graphite);
  margin: 32px 0 12px;
}

.detail-content p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 16px;
}

.detail-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.detail-content li {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 8px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--deep-fog);
}

.detail-meta i {
  margin-right: 4px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--signal-blue);
  margin-bottom: 32px;
}

.back-link:hover {
  gap: 12px;
}

/* ============================================
   Timeline (About page)
   ============================================ */
.timeline {
  position: relative;
  padding-left: 32px;
  margin: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--sky-wash);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--signal-blue);
  border: 3px solid var(--canvas);
}

.timeline-year {
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--signal-blue);
  margin-bottom: 4px;
}

.timeline-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--fog);
  line-height: 1.5;
}

/* ============================================
   Team Section
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.team-card {
  text-align: center;
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 32px 20px;
  box-shadow: var(--shadow-card);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--sky-wash);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--signal-blue);
}

.team-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: 4px;
}

.team-card p {
  font-size: 13px;
  color: var(--fog);
}

/* ============================================
   Values Grid
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}

.value-card-icon {
  font-size: 24px;
  color: var(--signal-blue);
  margin-bottom: 12px;
}

.value-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 14px;
  color: var(--fog);
  line-height: 1.5;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: var(--sky-wash);
}

.cta-section h2 {
  font-size: 40px;
  font-weight: 600;
  color: var(--midnight);
  letter-spacing: -0.76px;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 16px;
  color: var(--fog);
  margin-bottom: 32px;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid,
  .cases-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .client-logos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 56px;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -0.76px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--canvas);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-grid,
  .products-grid,
  .cases-grid,
  .news-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    padding: 0 24px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .client-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .contact-form {
    padding: 32px 24px;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .section-title {
    font-size: 24px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .portal-grid { grid-template-columns: 1fr; }
  .portal-section { padding: 60px 0; }
}

/* ============================================
   客户服务平台 / 多系统统一入口
   ============================================ */
.portal-section {
  padding: 88px 0 92px;
  position: relative;
  background:
    radial-gradient(1000px 400px at 50% -10%, rgba(20, 90, 255, 0.10), transparent 60%),
    linear-gradient(180deg, #fbfcff 0%, #f4f7ff 100%);
  border-top: 1px solid #eef2fb;
  border-bottom: 1px solid #eef2fb;
}

.nav-portal { color: var(--signal-blue) !important; font-weight: 600; }

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.portal-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8edf7;
  border-radius: 16px;
  padding: 26px 22px 22px;
  min-height: 268px;
  box-shadow: var(--shadow-feature);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}

.portal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--sys-color, var(--signal-blue));
  opacity: .85;
}

.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(20, 90, 255, .16);
  border-color: #cfe0ff;
}

.portal-card-soon { background: #fbfcfe; }
.portal-card-soon:hover { box-shadow: var(--shadow-feature); transform: translateY(-3px); border-color: #e8edf7; }

.portal-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.portal-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 23px;
  color: var(--sys-color, var(--signal-blue));
  background: color-mix(in srgb, var(--sys-color, #145aff) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--sys-color, #145aff) 22%, #fff);
}

.portal-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.tag-online { color: #0f9d2a; background: #e7f8ea; }
.tag-soon { color: #8a8f9a; background: #eef0f4; }

.portal-card h3 {
  font-size: 18px;
  color: var(--midnight);
  font-weight: 600;
  margin-bottom: 10px;
}

.portal-desc {
  font-size: 13.5px;
  color: var(--fog);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.portal-users {
  font-size: 12px;
  color: var(--deep-fog);
  margin-bottom: 16px;
}
.portal-users i { color: var(--signal-blue); margin-right: 4px; }

.portal-go {
  font-size: 14px;
  font-weight: 600;
  color: var(--signal-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}
.portal-go i { transition: transform .2s; }
.portal-card:hover .portal-go i { transform: translateX(4px); }
.portal-card-soon .portal-go { color: #9aa0ab; }

.portal-tip {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--fog);
}
.portal-tip i { color: var(--emerald); font-size: 16px; }
.portal-tip a { color: var(--signal-blue); font-weight: 600; }

@media (max-width: 1024px) {
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .portal-grid { grid-template-columns: 1fr; }
}
