/* ============================================================
   西安真我三维科技有限公司 — 官方网站
   www.realme3d.cn
   
   品牌色: #29ABE2 (亮青蓝) + #D81E05 (正红)
   设计风格: 现代科技 · 简洁大气
   ============================================================ */

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

:root {
  --color-primary: #29ABE2;
  --color-primary-dark: #1a8bc0;
  --color-primary-light: #e8f6fc;
  --color-accent: #D81E05;
  --color-accent-light: #fdecea;
  --color-text: #1a1a2e;
  --color-text-secondary: #4a5568;
  --color-text-muted: #8899aa;
  --color-bg: #ffffff;
  --color-bg-alt: #f7fafc;
  --color-bg-dark: #0f2635;
  --color-border: #e2e8f0;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.08);
  --transition: .3s ease;
  --max-width: 1200px;
  --font-heading: "PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif;
  --font-body: "PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

/* ====== Top Bar ====== */
.topbar {
  background: #1a2e3c;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  line-height: 36px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .container { display: flex; justify-content: space-between; }
.topbar a { color: rgba(255,255,255,.7); }
.topbar a:hover { color: var(--color-primary); }

/* ====== Header ====== */
.header {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}
.header-logo { display: flex; align-items: center; gap: 10px; }
.header-logo img { height: auto; width: 180px; }

/* ====== Navigation ====== */
.nav { display: flex; align-items: center; }
.nav-item {
  position: relative;
  padding: 26px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.nav-item:hover, .nav-item.active { color: var(--color-primary); }
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 3px;
  background: var(--color-primary);
}

.nav-dropdown {
  position: absolute;
  top: 100%; left: 0;
  background: white;
  min-width: 150px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: block;
  padding: 11px 18px;
  font-size: 14px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-bg-alt);
  transition: all var(--transition);
}
.nav-dropdown a:hover { background: var(--color-primary-light); color: var(--color-primary); padding-left: 24px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-primary); border-radius: 2px; }

/* ====== Hero / Banner Slider ====== */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: #f0f4f8;
}
.slider {
  position: relative;
  width: 100%;
  height: 100%;
}
.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .6s cubic-bezier(.25,.8,.25,1);
}
.slider-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}
.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-slide-overlay {
  display: none;
}
.slide-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  color: white;
}
.slide-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 16px;
}
.slide-content h1 strong { font-weight: 700; }
.slide-content p {
  font-size: 18px;
  opacity: .85;
  max-width: 560px;
  line-height: 1.7;
}
.slider-dots {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all var(--transition);
}
.slider-dot.active { background: white; width: 28px; border-radius: 5px; }

.slider-arrows {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
  pointer-events: none;
}
.slider-arrow {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 18px;
  transition: all var(--transition);
  pointer-events: auto;
}
.slider-arrow:hover { background: rgba(255,255,255,.3); }

/* ====== Section Common ====== */
.section { padding: 80px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-header { text-align: center; margin-bottom: 52px; }
.section-label {
  font-size: 13px; font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}
.section-line {
  width: 40px; height: 3px;
  background: var(--color-primary);
  margin: 0 auto 14px;
}
.section-desc {
  font-size: 15px; color: var(--color-text-secondary);
  max-width: 600px; margin: 0 auto;
}

/* ====== Company Intro ====== */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.intro-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.intro-image img { width: 100%; height: auto; }
.intro-text p {
  font-size: 15px; color: var(--color-text-secondary);
  line-height: 2; margin-bottom: 18px;
  text-align: justify;
}

/* ====== Stats ====== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  text-align: center;
  padding: 36px 20px;
  border-right: 1px solid var(--color-border);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 44px; font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.stat-label { font-size: 14px; color: var(--color-text-muted); letter-spacing: 1px; }

/* ====== Business Areas ====== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.business-card {
  background: white;
  padding: 44px 32px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.business-card:hover { box-shadow: var(--shadow-lg); border-color: var(--color-primary); transform: translateY(-3px); }
.business-icon {
  width: 68px; height: 68px;
  margin: 0 auto 22px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
}
.business-name {
  font-family: var(--font-heading);
  font-size: 19px; font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}
.business-desc {
  font-size: 14px; color: var(--color-text-muted);
  line-height: 1.8;
}

/* ====== Timeline ====== */
.timeline {
  position: relative; max-width: 860px; margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute; left: 50%; transform: translateX(-50%);
  top: 0; bottom: 0; width: 2px;
  background: var(--color-border);
}
.timeline-item {
  display: flex; margin-bottom: 36px; position: relative;
}
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-dot {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--color-primary);
  z-index: 2; top: 4px;
}
.timeline-content {
  width: 44%; padding: 22px;
  background: white;
  border: 1px solid var(--color-border);
}
.timeline-year {
  font-family: var(--font-heading);
  font-size: 18px; font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.timeline-text { font-size: 14px; color: var(--color-text-secondary); line-height: 1.8; }

/* ====== Partners ====== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: center;
}
.partner-item {
  text-align: center; padding: 20px;
  filter: grayscale(100%); opacity: .55;
  transition: all var(--transition);
}
.partner-item:hover { filter: grayscale(0); opacity: 1; }
.partner-placeholder {
  width: 120px; height: 56px;
  margin: 0 auto;
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted); font-size: 13px;
}

/* ====== Contact ====== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-company {
  font-family: var(--font-heading);
  font-size: 22px; font-weight: 600;
  color: var(--color-text);
  margin-bottom: 28px;
}
.contact-item {
  display: flex; gap: 14px;
  margin-bottom: 22px; align-items: flex-start;
}
.contact-icon-svg {
  width: 18px; height: 18px;
  color: var(--color-primary);
  flex-shrink: 0; margin-top: 4px;
}
.contact-label-text { font-size: 12px; color: var(--color-text-muted); margin-bottom: 3px; letter-spacing: 1px; }
.contact-value-text { font-size: 15px; font-weight: 500; color: var(--color-text); }
.contact-map {
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--color-bg-alt);
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted); font-size: 14px;
  border: 1px solid var(--color-border);
}

/* ====== Footer ====== */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,.55);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px; margin-bottom: 28px;
}
.footer-brand-name { font-size: 20px; font-weight: 700; color: white; margin-bottom: 10px; }
.footer-brand-desc { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.4); }
.footer-heading { font-size: 15px; font-weight: 600; color: white; margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-links a:hover { color: var(--color-primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,.35); }
.footer-bottom a:hover { color: var(--color-primary); }

/* ====== Scroll Reveal ====== */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ====== Responsive ====== */

/* 平板 (≤1024px) */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 36px; }
  
  .hero { height: auto; min-height: 360px; }
  .slider-dots { bottom: 14px; }
  .slider-arrow { width: 36px; height: 36px; font-size: 14px; }
  .slide-content { padding: 0 24px; }
  .slide-content h1 { font-size: 24px; }
  .slide-content p { font-size: 14px; }

  .intro-grid { grid-template-columns: 1fr; gap: 28px; }
  .intro-image { max-width: 100%; }
  
  .business-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .business-card { padding: 32px 20px; }
  
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 28px 16px; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-number { font-size: 36px; }
  
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-map { min-height: 220px; }
  
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  
  .timeline { max-width: 100%; padding-left: 44px; }
  .timeline::before { left: 18px; }
  .timeline-item, .timeline-item:nth-child(even) { flex-direction: row; }
  .timeline-dot { left: 18px; }
  .timeline-content { width: 100%; margin-left: 0; }
}

/* 手机 (<768px) */
@media (max-width: 768px) {
  :root { font-size: 15px; }
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .section-header { margin-bottom: 28px; }
  .section-label { font-size: 12px; letter-spacing: 2px; }
  .section-title { font-size: 22px; }
  .section-line { width: 30px; height: 2px; }
  .section-desc { font-size: 13px; line-height: 1.6; }

  /* Top Bar */
  .topbar { font-size: 11px; line-height: 30px; height: 30px; }
  .topbar .container { flex-direction: column; align-items: center; gap: 0; }

  /* Header */
  .header-inner { height: 56px; padding: 0 16px; }
  .header-logo img { width: 130px; height: auto; }
  
  /* Mobile Nav */
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
    background: white; z-index: 999;
    overflow-y: auto; padding: 0;
    box-shadow: var(--shadow-lg);
  }
  .nav-item { 
    padding: 15px 20px; 
    border-bottom: 1px solid var(--color-bg-alt);
    font-size: 15px;
  }
  .nav-item.active::after { display: none; }
  .nav-item.active { background: var(--color-primary-light); }
  .nav-dropdown { 
    position: static; opacity: 1; visibility: visible; 
    transform: none; box-shadow: none; 
    padding-left: 0; border-top: 1px solid var(--color-bg-alt);
    margin-top: 8px;
  }
  .nav-dropdown a { font-size: 14px; padding: 10px 20px 10px 32px; }
  .nav-toggle { display: flex; }

  /* Hero / Slider */
  .hero { height: auto; min-height: 220px; }
  .slider { height: auto; }
  .slider-track { height: auto; }
  .slider-slide { min-width: 100%; }
  .slider-slide img { width: 100%; height: auto; min-height: 200px; object-fit: cover; }
  .slider-dots { bottom: 10px; gap: 6px; }
  .slider-dot { width: 7px; height: 7px; }
  .slider-dot.active { width: 20px; }
  .slider-arrows { display: none; }

  /* Intro */
  .intro-grid { grid-template-columns: 1fr; gap: 20px; }
  .intro-image { border-radius: var(--radius-sm); }
  .intro-text p { 
    font-size: 14px; 
    line-height: 1.9; 
    margin-bottom: 12px; 
    text-indent: 0;
    text-align: left;
  }

  /* Stats */
  .stats-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 0;
  }
  .stat-item { 
    padding: 20px 12px; 
    border-right: 1px solid var(--color-border); 
    border-bottom: 1px solid var(--color-border);
  }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
  .stat-number { font-size: 32px; }
  .stat-label { font-size: 12px; }

  /* Business */
  .business-grid { grid-template-columns: 1fr; gap: 16px; }
  .business-card { padding: 28px 20px; }
  .business-icon { width: 56px; height: 56px; margin-bottom: 16px; }
  .business-name { font-size: 17px; }
  .business-desc { font-size: 13px; }

  /* Timeline */
  .timeline { max-width: 100%; padding-left: 40px; }
  .timeline::before { left: 14px; }
  .timeline-item { margin-bottom: 24px; }
  .timeline-dot { left: 14px; width: 12px; height: 12px; top: 2px; }
  .timeline-content { width: 100%; padding: 14px; }
  .timeline-year { font-size: 16px; }
  .timeline-text { font-size: 13px; line-height: 1.7; }

  /* Partners */
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .partner-item { padding: 12px; }
  .partner-placeholder { width: 100%; height: 48px; font-size: 12px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-company { font-size: 19px; margin-bottom: 20px; }
  .contact-item { gap: 10px; margin-bottom: 16px; }
  .contact-value-text { font-size: 14px; }
  .contact-value-text a { word-break: break-all; }
  .contact-map { min-height: 180px; }
  .contact-map a { min-height: 180px; }

  /* Footer */
  .footer { padding: 36px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand-desc { font-size: 12px; }
  .footer-bottom { 
    flex-direction: column; 
    text-align: center; 
    font-size: 11px;
    padding: 14px 0;
  }
}
