/* ============================================================
   成都宇梦星辰模型科技有限公司 YUMOXSEN — 官网样式
   风格:简约大气(黑白灰 + 科技蓝点缀)
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fa;
  --color-text: #111318;
  --color-text-2: #5a6069;
  --color-line: #e5e7eb;
  --color-accent: #2563eb;
  --color-accent-dark: #1d4fd7;

  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue",
    "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --gutter: 24px;

  --nav-h: 72px;
  --radius: 8px;

  --shadow-card: 0 2px 12px rgba(17, 19, 24, 0.05);
  --shadow-hover: 0 12px 32px rgba(17, 19, 24, 0.1);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

h1, h2, h3 { line-height: 1.25; font-weight: 600; letter-spacing: 0.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 20px; }

/* ---------- 通用:标签/按钮/区块头 ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-2px); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-block { width: 100%; }

.section { padding: 110px 0; }
.section-alt { background: var(--color-bg-alt); }

.section-head { max-width: 640px; margin-bottom: 64px; }
.section-desc { color: var(--color-text-2); margin-top: 16px; }

/* ---------- 滚动渐入 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 1. 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav.is-solid {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-line);
}
.nav.is-solid .nav-links a,
.nav.is-solid .logo { color: var(--color-text); }
.nav.is-solid .nav-toggle span { background: var(--color-text); }

.logo {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: color 0.3s var(--ease);
}
.logo span {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  opacity: 0.75;
}

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--color-accent); }
.nav-cta {
  padding: 9px 22px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
}
.nav-cta:hover { border-color: var(--color-accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---------- 2. 英雄区 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #0d1117;
  color: #fff;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.hero-inner { position: relative; z-index: 1; padding: calc(var(--nav-h) + 40px) var(--gutter) 80px; }

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(40px, 7.5vw, 84px);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero-sub {
  margin-top: 28px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255, 255, 255, 0.7);
  max-width: 620px;
}
.hero-actions { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.hero-scroll::after {
  content: "";
  position: absolute;
  left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--color-accent);
  animation: scrollHint 2s var(--ease) infinite;
}
@keyframes scrollHint {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* ---------- 3. 数据带 ---------- */
.stats {
  background: #0d1117;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
}
.stat-num .count { color: var(--color-accent); }
.stat-label { margin-top: 6px; color: rgba(255, 255, 255, 0.55); font-size: 14px; }

/* ---------- 4. 核心业务 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 44px 36px;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  background: #fff;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-icon {
  width: 48px; height: 48px;
  color: var(--color-accent);
  margin-bottom: 26px;
}
.card h3 { margin-bottom: 14px; }
.card > p { color: var(--color-text-2); font-size: 15px; }
.card ul {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
}
.card li {
  font-size: 14px;
  color: var(--color-text-2);
  padding: 5px 0 5px 18px;
  position: relative;
}
.card li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ---------- 5. 产品与解决方案 ---------- */
.solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 56px 0;
}
.solution + .solution { border-top: 1px solid var(--color-line); }
.solution-reverse .solution-visual { order: 2; }
.solution-reverse .solution-body { order: 1; }

.solution-visual {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0d1117;
}
.solution-visual img,
.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-index {
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.solution-body h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 16px; }
.solution-body > p { color: var(--color-text-2); }

.check-list { margin-top: 24px; }
.check-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 15px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(-45deg);
}

/* ---------- 6. 行业案例 ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.case {
  padding: 40px 36px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.case-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 18px;
}
.case h3 { margin-bottom: 10px; }
.case p:last-child { color: var(--color-text-2); font-size: 15px; }

/* ---------- 7. 关于我们 ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-visual {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #0d1117;
}
.about-body h2 { margin-bottom: 20px; }
.about-body > p { color: var(--color-text-2); margin-bottom: 16px; }
.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--color-line);
}
.about-points strong { display: block; font-size: 16px; margin-bottom: 4px; }
.about-points span { font-size: 14px; color: var(--color-text-2); }

/* ---------- 8. 联系我们 ---------- */
.contact-info {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 40px;
}
.contact-info h2 { font-size: 22px; }
.contact-info .section-desc { font-size: 15px; }
.contact-list { margin-top: 24px; }
.contact-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 16px;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list span {
  display: inline-block;
  width: 64px;
  color: var(--color-text-2);
  font-size: 14px;
}

/* ---------- 页脚 ---------- */
.footer {
  background: #0d1117;
  color: rgba(255, 255, 255, 0.55);
  padding: 40px 0;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-beian {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}
.footer-beian a {
  color: inherit;
  text-decoration: none;
}
.footer-beian a:hover { color: #fff; }
.footer-ga {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll::after { animation: none; }
  .btn, .card, .case { transition: none; }
}

/* ---------- 响应式:平板 ---------- */
@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .card-grid .card:last-child { grid-column: 1 / -1; }
  .solution, .about-inner { gap: 44px; }
}

/* ---------- 响应式:手机 ---------- */
@media (max-width: 768px) {
  .br-desktop { display: none; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-line);
    padding: 8px var(--gutter) 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a {
    color: var(--color-text) !important;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-line);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-cta { border: 0; padding-left: 0; color: var(--color-accent) !important; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { min-height: 92vh; }
  .hero-actions .btn { flex: 1; text-align: center; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }

  .card-grid, .case-grid { grid-template-columns: 1fr; }
  .card-grid .card:last-child { grid-column: auto; }

  .solution { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .solution-reverse .solution-visual { order: 0; }
  .solution-reverse .solution-body { order: 1; }

  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { aspect-ratio: 16 / 10; }

  .contact-info { padding: 28px 22px; }

  .footer-inner { justify-content: center; text-align: center; }
  .footer-beian { font-size: 12px; gap: 10px; }
}
