/* ============ 鲤承科技定制服务站 ============
   配色参考 timeface.cn：科技蓝主色 + 深色首屏 + 浅色内容区
   字体：仅引用系统字体栈（PingFang SC / 微软雅黑 / Noto Sans SC），
   不嵌入任何字体文件，无版权风险
============================================ */

:root {
  --primary: #00a6ef;
  --primary-bright: #2cbefe;
  --primary-dark: #0080bd;
  --accent: #e94911;
  --ink: #0b1c2e;
  --ink-soft: #123450;
  --text-strong: #22303e;
  --text-body: #5c6b7a;
  --text-muted: #8a97a5;
  --bg-light: #f5f8fb;
  --bg-white: #ffffff;
  --line: #e3eaf1;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-card: 0 10px 30px rgba(11, 28, 46, 0.08);
  --shadow-card-hover: 0 18px 44px rgba(0, 132, 197, 0.16);
  --header-h: 68px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC",
    sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

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

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.section { padding: 88px 0; }

.section-head { text-align: center; margin-bottom: 52px; }
.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-bright));
}
.section-sub {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-muted);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 166, 239, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 166, 239, 0.45);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.btn-block { width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(11, 28, 46, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.on-light {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 16px rgba(11, 28, 46, 0.08);
}
.nav-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.site-header.on-light .logo { color: var(--text-strong); }
.logo-mark { width: 30px; height: 30px; flex: none; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.nav-link.active { color: var(--primary-bright); font-weight: 600; }
.site-header.on-light .nav-link { color: var(--text-body); }
.site-header.on-light .nav-link:hover { color: var(--primary); background: var(--bg-light); }
.site-header.on-light .nav-link.active { color: var(--primary); }

.nav-cta {
  margin-left: 12px;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
  box-shadow: 0 4px 14px rgba(0, 166, 239, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0, 166, 239, 0.5); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.site-header.on-light .hamburger span { background: var(--text-strong); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首屏 Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 72% 18%, rgba(44, 190, 254, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 18% 85%, rgba(0, 166, 239, 0.16), transparent 60%),
    linear-gradient(160deg, #0b1c2e 0%, #123450 55%, #0e2438 100%);
}
.hero-bg::after {
  /* 暗色质感纹理：细网格 */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
}
/* 首屏入场：纯 CSS 动画，不依赖 JS */
.hero-inner > * {
  animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-inner > *:nth-child(2) { animation-delay: 0.12s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.24s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.36s; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
.hero-kicker {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(44, 190, 254, 0.45);
  background: rgba(44, 190, 254, 0.1);
  color: var(--primary-bright);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.25;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.hero-sub {
  margin-top: 20px;
  font-size: clamp(16px, 2.4vw, 21px);
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 3px;
}
.hero-actions {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  z-index: 1;
}
.hero-scroll-hint span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- 核心数据 ---------- */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -52px;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 36px 24px;
}
.stat-item { text-align: center; padding: 6px 10px; }
.stat-item + .stat-item { border-left: 1px solid var(--line); }
.stat-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  color: var(--primary);
}
.stat-icon svg { width: 100%; height: 100%; }
.stat-num {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1.2;
}
.stat-num-text { font-size: 26px; letter-spacing: 2px; padding-top: 6px; }
.stat-unit { font-size: 17px; font-weight: 600; color: var(--primary); margin-left: 2px; }
.stat-label { margin-top: 4px; font-size: 14px; color: var(--text-muted); }

/* ---------- 定制服务 ---------- */
.services { background: var(--bg-light); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.service-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e8f4fc, #d7ecfa);
  overflow: hidden;
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-media img { transform: scale(1.05); }
.service-badge {
  position: absolute;
  left: 18px;
  bottom: -22px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 166, 239, 0.4);
}
.service-badge svg { width: 28px; height: 28px; }
.service-body { padding: 36px 26px 28px; }
.service-body h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 10px;
}
.service-body p { font-size: 15px; color: var(--text-body); }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s ease;
}
.service-link:hover { gap: 10px; }

/* ---------- 为什么选择我们 ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.why-col-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 26px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  line-height: 1.3;
}

/* 时间轴 */
.timeline { position: relative; padding-left: 6px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-bright), var(--line));
}
.timeline-item {
  position: relative;
  display: flex;
  gap: 20px;
  padding-bottom: 30px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
  box-shadow: 0 4px 12px rgba(0, 166, 239, 0.4);
  position: relative;
  z-index: 1;
}
.timeline-content {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  flex: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.timeline-content:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}
.timeline-content h4 { font-size: 16px; font-weight: 700; color: var(--text-strong); }
.timeline-content p { font-size: 14px; color: var(--text-muted); margin-top: 2px; }

/* 优势列表 */
.advantage-list { display: grid; gap: 18px; }
.advantage-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.advantage-item:hover {
  border-color: rgba(0, 166, 239, 0.45);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.advantage-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: rgba(0, 166, 239, 0.1);
}
.advantage-icon svg { width: 24px; height: 24px; }
.advantage-item h4 { font-size: 16px; font-weight: 700; color: var(--text-strong); }
.advantage-item p { font-size: 14px; color: var(--text-muted); margin-top: 2px; }

/* ---------- 联系我们 ---------- */
.contact { background: var(--bg-light); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.contact-info, .contact-form {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 34px 30px;
}
.info-list { display: grid; gap: 22px; margin-bottom: 26px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: rgba(0, 166, 239, 0.1);
}
.info-icon svg { width: 22px; height: 22px; }
.info-label { display: block; font-size: 13px; color: var(--text-muted); }
.info-value { display: block; font-size: 16px; font-weight: 600; color: var(--text-strong); word-break: break-all; }
a.info-value:hover { color: var(--primary); }

.contact-mailtip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.contact-mailtip svg { flex: none; width: 18px; height: 18px; color: var(--primary); margin-top: 2px; }
.contact-mailtip a { color: var(--primary); font-weight: 600; }

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 8px;
}
.form-field label em { color: var(--accent); font-style: normal; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-strong);
  background: var(--bg-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #b6c1cc; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 166, 239, 0.15);
}
.form-field.invalid input,
.form-field.invalid textarea { border-color: var(--accent); }
.field-error { font-size: 13px; color: var(--accent); margin-top: 6px; }
.form-note { margin-top: 14px; font-size: 12.5px; color: var(--text-muted); text-align: center; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 30px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 14px;
}
.footer-icp a { color: rgba(255, 255, 255, 0.6); transition: color 0.2s ease; }
.footer-icp a:hover { color: var(--primary-bright); }

/* ---------- 滚动入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-inner > * { animation: none; opacity: 1; }
  .hero-scroll-hint span { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .why-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-inner { padding: 28px 16px; gap: 8px; }
  .stat-num { font-size: 27px; }
  .stat-num-text { font-size: 21px; }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }

  .hero-sub { letter-spacing: 1px; padding: 0 6px; }
  .hero-kicker { letter-spacing: 1px; }

  .hamburger { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(11, 28, 46, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 20px 22px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25);
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 13px 14px;
    font-size: 16px;
    border-radius: 10px;
  }
  .site-header.on-light .nav-link { color: rgba(255, 255, 255, 0.85); }
  .site-header.on-light .nav-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
  .nav-link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
  .nav-cta { margin: 10px 0 0; text-align: center; padding: 13px 22px; font-size: 15px; }

  .hero-actions .btn { width: 100%; max-width: 320px; }

  .stats { margin-top: -36px; }
  .stats-inner { grid-template-columns: 1fr; gap: 0; padding: 14px 16px; }
  .stat-item { padding: 18px 10px; }
  .stat-item + .stat-item { border-left: none; border-top: 1px solid var(--line); }

  .service-grid { grid-template-columns: 1fr; gap: 22px; }
  .service-body { padding: 34px 22px 24px; }

  .contact-info, .contact-form { padding: 26px 20px; }
}
