/* ============================================================
   沧月科技 · 单页企业官网
   蓝红商务配色 · 影像级视觉 · 响应式
   ============================================================ */
:root {
  --blue-900: #071634;
  --blue-deep: #0e2456;
  --blue-main: #16367f;
  --blue-mid: #1e4aa8;
  --blue-sky: #3a6fd8;
  --blue-light: #eef3fb;
  --blue-line: #dbe4f2;

  --red: #e60012;
  --red-dark: #c2000f;
  --red-soft: #fdecee;
  --red-glow: rgba(230, 0, 18, 0.35);

  --ink: #141c2e;
  --ink-2: #2b3448;
  --gray: #5a6478;
  --gray-2: #8a93a6;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(14, 36, 86, 0.07);
  --shadow-hover: 0 18px 44px rgba(14, 36, 86, 0.18);
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

.container { width: min(var(--maxw), 92%); margin: 0 auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 40px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: 1px;
  transition: 0.3s cubic-bezier(.4,0,.2,1); border: 0; cursor: pointer;
}
.btn-red {
  background: linear-gradient(135deg, #ff2a37, var(--red) 60%, var(--red-dark));
  color: #fff; box-shadow: 0 12px 28px var(--red-glow);
}
.btn-red:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(230,0,18,0.45); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.14); transform: translateY(-3px); }

/* ---------- 顶部导航（白色） ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(14, 36, 86, 0.1); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 52px; width: auto; transition: 0.3s; }
.site-header.scrolled .nav-logo img { height: 46px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; padding: 9px 18px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  border-radius: 8px; transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue-main); }
.nav-links a.active { color: var(--red); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 3px;
  height: 2px; background: var(--red); border-radius: 2px;
}
.nav-cta {
  margin-left: 14px; padding: 10px 26px !important;
  background: linear-gradient(135deg, #ff2a37, var(--red) 60%, var(--red-dark));
  color: #fff !important; border-radius: 999px !important; font-weight: 600 !important;
  box-shadow: 0 8px 20px var(--red-glow);
}
.nav-cta:hover { transform: translateY(-2px); }
.nav-cta.active::after { display: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: 0.25s; }

/* ---------- 全屏 Hero 轮播 ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
  background: var(--blue-900);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.slide-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.12) translateY(-16px); }
}
.slide-veil {
  position: absolute; inset: 0;
  background: linear-gradient(165deg,
    rgba(7,22,52,0.66) 0%,
    rgba(14,36,86,0.40) 45%,
    rgba(22,54,127,0.24) 100%);
}
.hero-grid-tex {
  position: absolute; inset: 0; opacity: 0.22; z-index: 2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 80%);
}
.slide-body { position: relative; z-index: 3; width: 100%; }
.hero-inner { position: relative; z-index: 3; padding: 130px 0 150px; }

/* 轮播控件 */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.35); background: rgba(7,22,52,0.35);
  color: #fff; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: 0.3s; backdrop-filter: blur(6px);
}
.hero-arrow:hover { background: var(--red); border-color: var(--red); }
.hero-arrow.prev { left: 3%; }
.hero-arrow.next { right: 3%; }
.hero-dots {
  position: absolute; bottom: 136px; left: 0; right: 0; z-index: 5;
  display: flex; gap: 10px; justify-content: center;
}
.hero-dots button {
  width: 30px; height: 4px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.32); transition: 0.3s;
}
.hero-dots button.active { width: 56px; background: var(--red); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 20px; margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,0.28); border-radius: 999px;
  font-size: 13px; letter-spacing: 3px; color: rgba(255,255,255,0.86);
  background: rgba(255,255,255,0.06);
}
.hero-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff5a66; }
.hero h1 {
  font-size: clamp(34px, 6vw, 66px); font-weight: 800;
  letter-spacing: 4px; line-height: 1.25; text-shadow: 0 6px 30px rgba(7,22,52,0.6);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #ff8a93, #ff2a37);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub {
  margin: 26px auto 0; max-width: 680px;
  font-size: clamp(15px, 1.8vw, 18px); color: rgba(255,255,255,0.82);
}
.hero-actions { margin-top: 46px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-tags { margin-top: 44px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-tags span {
  padding: 6px 18px; border-radius: 999px; font-size: 13px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.82); backdrop-filter: blur(4px);
}
.scroll-cue {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.65); font-size: 12px; letter-spacing: 3px;
}
.scroll-cue .mouse {
  width: 24px; height: 38px; border: 2px solid rgba(255,255,255,0.5); border-radius: 14px;
  position: relative;
}
.scroll-cue .mouse::after {
  content: ""; position: absolute; left: 50%; top: 7px; transform: translateX(-50%);
  width: 3px; height: 8px; border-radius: 3px; background: #ff5a66;
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translate(-50%, 0); } 70% { opacity: 0; transform: translate(-50%, 12px); } 100% { opacity: 0; } }

/* ---------- 通用 Section ---------- */
.section { padding: 100px 0; }
.section.alt { background: var(--bg-soft); }
.section.dark { background: linear-gradient(120deg, var(--blue-900), var(--blue-main)); color: #fff; }
.section-head { text-align: center; margin-bottom: 58px; }
.section-head .en {
  display: inline-block; font-size: 12px; letter-spacing: 5px; color: var(--red);
  text-transform: uppercase; font-weight: 700; padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
}
.section-head h2 { margin-top: 18px; font-size: clamp(25px, 3.6vw, 36px); letter-spacing: 2px; }
.section-head p { margin-top: 14px; color: var(--gray); font-size: 15px; }
.section.dark .section-head p { color: rgba(255,255,255,0.75); }
.section.dark .section-head .en { color: #ff8a93; border-bottom-color: #ff8a93; }
.section.dark .section-head h2 { color: #fff; }
.center { text-align: center; }

/* ---------- 数据统计 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat {
  text-align: center; padding: 34px 16px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); transition: 0.3s;
}
.stat:hover { background: rgba(255,255,255,0.11); transform: translateY(-4px); }
.stat b { display: block; font-size: clamp(32px, 4vw, 44px); font-weight: 800; color: #fff; letter-spacing: 1px; }
.stat b i { font-style: normal; color: #ff5a66; }
.stat span { font-size: 14px; color: rgba(255,255,255,0.75); letter-spacing: 1px; }

/* ---------- 关于我们 ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-visual { position: relative; }
.about-visual .frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-hover);
  position: relative;
}
.about-visual .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 60%, rgba(7,22,52,0.35));
}
.about-visual .badge-card {
  position: absolute; right: -24px; bottom: -28px; z-index: 3;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-hover);
  padding: 22px 28px; text-align: center;
}
.about-visual .badge-card b { display: block; font-size: 30px; color: var(--red); }
.about-visual .badge-card span { font-size: 13px; color: var(--gray); }
.about-copy .en-line { font-size: 13px; letter-spacing: 4px; color: var(--red); font-weight: 700; }
.about-copy h3 { font-size: clamp(24px, 3vw, 32px); margin: 12px 0 18px; letter-spacing: 1px; }
.about-copy p { color: var(--gray); font-size: 15px; }
.about-points { margin-top: 26px; display: grid; gap: 14px; }
.about-points li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; }
.about-points .pt-ico {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px;
  background: var(--blue-light); display: flex; align-items: center; justify-content: center;
}
.about-points .pt-ico svg { width: 20px; height: 20px; stroke: var(--blue-main); }
.about-points b { display: block; font-size: 15px; }
.about-points span { font-size: 13px; color: var(--gray); }

/* ---------- 业务卡片 ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc {
  position: relative; overflow: hidden;
  background: #fff; border-radius: var(--radius-lg); padding: 40px 32px;
  box-shadow: var(--shadow); border: 1px solid var(--blue-line);
  transition: 0.35s cubic-bezier(.4,0,.2,1);
}
.svc::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--blue-main), var(--blue-sky));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s;
}
.svc:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.svc:hover::before { transform: scaleX(1); }
.svc .icon {
  width: 64px; height: 64px; border-radius: 16px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-light), #dfe9fa); transition: 0.35s;
}
.svc:hover .icon { background: linear-gradient(135deg, var(--blue-main), var(--blue-mid)); }
.svc:hover .icon svg { stroke: #fff; }
.svc .icon svg { width: 30px; height: 30px; stroke: var(--blue-main); transition: 0.35s; }
.svc:nth-child(even) .icon { background: linear-gradient(135deg, #fdecee, #fadadd); }
.svc:nth-child(even) .icon svg { stroke: var(--red); }
.svc h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: 1px; }
.svc p { font-size: 14px; color: var(--gray); }
.svc .no { position: absolute; right: 22px; top: 16px; font-size: 14px; font-weight: 800; color: rgba(22,54,127,0.14); }

/* ---------- 图片墙（器材 / 作品） ---------- */
.gallery { display: grid; gap: 20px; }
.gear-grid { grid-template-columns: repeat(3, 1fr); }
.work-grid { grid-template-columns: repeat(3, 1fr); }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); background: var(--blue-light); cursor: default;
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(.2,.6,.2,1);
}
.tile:hover img { transform: scale(1.07); }
.tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 30px 20px 16px; color: #fff;
  background: linear-gradient(transparent, rgba(7,22,52,0.88));
}
.tile .cap b { display: block; font-size: 16px; letter-spacing: 1px; }
.tile .cap span { font-size: 12px; color: rgba(255,255,255,0.75); }
.tile .corner {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  font-size: 11px; letter-spacing: 2px; padding: 3px 12px; border-radius: 999px;
  background: rgba(230,0,18,0.85); color: #fff;
}
.tile.tall { grid-row: span 2; }
.gear-grid .tile { aspect-ratio: 4 / 3; }
.gear-grid .tile.tall { aspect-ratio: auto; }
.work-grid .tile { aspect-ratio: 4 / 3; }
.work-grid .tile.tall { aspect-ratio: auto; }

/* ---------- 服务流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.step { text-align: center; padding: 12px 10px 0; position: relative; }
.step .num {
  width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--blue-main); color: var(--blue-main);
  font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center;
  transition: 0.3s; position: relative; z-index: 2;
}
.step:hover .num { background: var(--red); border-color: var(--red); color: #fff; transform: scale(1.08); }
.step h4 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--gray); }
.steps-line {
  position: absolute; left: 10%; right: 10%; top: 31px; height: 2px;
  background: linear-gradient(90deg, var(--blue-line), var(--blue-main), var(--blue-line));
}
.process-note { margin-top: 44px; text-align: center; font-size: 14px; letter-spacing: 2px; color: var(--gray); }
.process-note b { color: var(--red); }

/* ---------- 团队图片墙 ---------- */
.team-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.team-wall figure {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 3 / 4; background: var(--blue-light);
}
.team-wall img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s ease; }
.team-wall figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 55%, rgba(230,0,18,0.18));
  opacity: 0; transition: opacity 0.4s;
}
.team-wall figure:hover img { transform: scale(1.06); }
.team-wall figure:hover::after { opacity: 1; }
/* 团队占位：灰底 + 加号 */
.team-add {
  display: flex; align-items: center; justify-content: center;
  background: #2e3440; aspect-ratio: 3 / 4; border-radius: var(--radius-lg);
  border: 1px dashed #565f6e; position: relative;
}
.team-add::before {
  content: "+"; font-size: 64px; font-weight: 300; color: #8b95a5; line-height: 1;
  transition: 0.3s;
}
.team-add:hover::before { color: var(--red); transform: scale(1.1); }
.team-count { text-align: center; margin-top: 40px; color: var(--gray); font-size: 15px; }
.team-count b { color: var(--red); font-size: 24px; }

/* ---------- 联系我们 ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr; justify-items: center; }
.qr-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover);
  padding: 44px 56px; text-align: center; color: var(--ink); max-width: 460px; width: 100%;
}
.qr-card h4 { font-size: 18px; margin-bottom: 6px; }
.qr-card p { font-size: 13px; color: var(--gray); margin-bottom: 22px; }
.qr-img {
  display: block; width: 220px; height: 220px; margin: 0 auto;
  border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(14, 36, 86, 0.08);
}
.qr-note { margin-top: 18px; font-size: 12px; color: var(--gray-2); }

/* ---------- CTA 条 ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--blue-900), var(--blue-main) 60%, var(--blue-mid));
  color: #fff; padding: 80px 0; text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(23px, 3.2vw, 32px); letter-spacing: 2px; }
.cta-band p { margin: 14px 0 34px; color: rgba(255,255,255,0.8); }

/* ---------- 页脚（白色） ---------- */
.site-footer { background: #ffffff; color: var(--gray); border-top: 1px solid var(--line); padding: 30px 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.footer-brand-mini { display: flex; align-items: center; gap: 14px; }
.footer-brand-mini .chip {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 5px 10px; display: inline-block;
}
.footer-brand-mini .chip img { height: 40px; width: auto; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--blue-main), var(--blue-mid)); color: #fff;
  font-size: 18px; box-shadow: 0 10px 24px rgba(14,36,86,0.28);
  opacity: 0; pointer-events: none; transition: 0.3s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: linear-gradient(135deg, #ff2a37, var(--red)); }

/* ---------- 入场动效 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.4,0,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
  .scroll-cue .mouse::after { animation: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .gear-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .team-wall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps-line { display: none; }
  .about { grid-template-columns: 1fr; gap: 44px; }
  .about-visual .badge-card { right: 12px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 76px 0; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 14px 6%; gap: 2px;
    box-shadow: 0 18px 36px rgba(14,36,86,0.14);
    border-top: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 10px; border-radius: 8px; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: var(--red-soft); }
  .nav-toggle { display: block; }
  .nav-cta { margin: 8px 10px; text-align: center; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gear-grid, .work-grid { grid-template-columns: 1fr; }
  .gear-grid .tile.tall, .work-grid .tile.tall { grid-row: auto; aspect-ratio: 4 / 3; }
  .team-wall { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-inner { padding: 110px 0 130px; }
  .section { padding: 60px 0; }
  .nav-logo img { height: 42px; }
  .about-visual .badge-card { padding: 16px 20px; }
}
