/* ============================================================
   爱湃科技 works.aipeco.com — 设计系统 v2
   深蓝 × 青碧科技质感 / 零外部依赖 / 全响应式
   ============================================================ */
:root {
  --navy-950: #051529;
  --navy-900: #071F3D;
  --navy-800: #0B2E59;
  --navy-700: #12407A;
  --teal-600: #0D9488;
  --teal-500: #14B8A6;
  --teal-400: #2DD4BF;
  --teal-300: #5EEAD4;
  --ink: #0F2038;
  --slate: #44546A;
  --gray: #64748B;
  --bg-light: #F5F8FC;
  --white: #FFFFFF;
  --line: #DCE6F1;
  --amber: #F59E0B;
  --red: #E11D48;
  --maxw: 1180px;
  --radius: 14px;
  --header-h: 68px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
::selection { background: var(--teal-400); color: var(--navy-900); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------- 通用组件 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease,
    border-color .2s ease, color .2s ease, filter .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: var(--white);
  box-shadow: 0 6px 18px rgba(20, 184, 166, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20, 184, 166, 0.42); filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }
.btn-lg { padding: 15px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; padding: 15px 24px; border-radius: 12px; font-size: 1rem; }

.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal-600);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--teal-500); border-radius: 2px; }
.lead { font-size: 1.02rem; color: var(--slate); line-height: 1.85; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  background: linear-gradient(180deg, rgba(5, 17, 32, 0.94), rgba(7, 31, 61, 0.9));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-wrap {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  color: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(45, 212, 191, 0.35);
}
.logo-text { font-size: 1.06rem; font-weight: 700; color: var(--white); }
.logo-text em { font-style: normal; font-weight: 600; font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); margin-left: 6px; letter-spacing: 0.08em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav > a:not(.btn) {
  position: relative; font-size: 0.92rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.82); padding: 6px 0;
  transition: color .2s ease;
}
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  border-radius: 2px; background: var(--teal-400);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav > a:not(.btn):hover { color: var(--white); }
.nav > a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 10px;
  background: rgba(255, 255, 255, 0.06); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: background .2s ease;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.12); }
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--white); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- 首屏 Hero ---------------- */
.hero {
  position: relative; overflow: hidden; padding: 96px 0 72px;
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(45, 212, 191, 0.2), transparent 62%),
    radial-gradient(760px 460px at -12% 112%, rgba(18, 64, 122, 0.6), transparent 60%),
    linear-gradient(158deg, var(--navy-950) 0%, var(--navy-900) 42%, var(--navy-800) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  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: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 0%, transparent 100%);
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 0%, transparent 100%);
}
.hero-inner { position: relative; animation: heroIn 0.5s ease both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero .eyebrow { color: var(--teal-300); margin-bottom: 22px; }
.hero .eyebrow::before { background: var(--teal-400); }
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.8rem); line-height: 1.16; letter-spacing: -0.015em;
  font-weight: 800; color: var(--white); margin-bottom: 22px;
}
.hero h1 .accent {
  background: linear-gradient(92deg, var(--teal-300), var(--teal-400) 55%, #7DD3FC);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 640px; color: #B9CCE3; font-size: 1.04rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); letter-spacing: 0.04em; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px;
}
.stat {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px; padding: 18px 20px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.stat:hover { transform: translateY(-3px); border-color: rgba(45, 212, 191, 0.5); background: rgba(255, 255, 255, 0.09); }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--teal-300); letter-spacing: -0.01em; line-height: 1.2; }
.stat-label { font-size: 0.82rem; color: rgba(255, 255, 255, 0.66); margin-top: 4px; line-height: 1.5; }

/* ---------------- 通用 section ---------------- */
.section { padding: 88px 0; scroll-margin-top: calc(var(--header-h) + 12px); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); letter-spacing: -0.01em; color: var(--navy-900); margin-bottom: 14px; line-height: 1.3; }
.section-head .lead { font-size: 0.98rem; }

/* ---------------- 服务项目 ---------------- */
#services { background: var(--white); }
.svc-group { margin-bottom: 44px; --accent: var(--navy-800); }
.svc-group.group-b { --accent: var(--teal-500); }
.svc-group.group-c { --accent: var(--amber); }
.svc-group:last-child { margin-bottom: 0; }

.svc-group-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.svc-badge {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800;
  box-shadow: 0 6px 16px rgba(11, 46, 89, 0.18);
}
.svc-title { font-size: 1.18rem; font-weight: 700; color: var(--navy-900); }
.svc-sub { font-size: 0.88rem; color: var(--gray); margin-top: 2px; }

.svc-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px;
}
.svc-card {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px 24px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.svc-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 85%);
  opacity: 0.85;
}
.svc-card:hover {
  transform: translateY(-4px); border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(11, 46, 89, 0.12);
}
.svc-no {
  font-size: 1.55rem; font-weight: 800; line-height: 1;
  color: #C9D8EA;
  color: color-mix(in srgb, var(--accent) 22%, #FFFFFF);
}
.svc-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy-900); margin: 12px 0 8px; }
.svc-card p { font-size: 0.9rem; color: var(--slate); line-height: 1.7; }

/* ---------------- 技术实力 ---------------- */
.strengths {
  position: relative; overflow: hidden;
  background:
    radial-gradient(800px 460px at 90% 0%, rgba(45, 212, 191, 0.14), transparent 60%),
    linear-gradient(150deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
}
.strengths .section-head h2 { color: var(--white); }
.strengths .section-head .eyebrow { color: var(--teal-300); }
.strengths .section-head .eyebrow::before { background: var(--teal-400); }
.strengths .section-head .lead { color: #A9C0DC; }

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px;
}
.card {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px; padding: 26px 24px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(45, 212, 191, 0.55); background: rgba(255, 255, 255, 0.08); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(45, 212, 191, 0.16); border: 1px solid rgba(45, 212, 191, 0.35);
  color: var(--teal-300);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.card h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin: 16px 0 8px; }
.card p { font-size: 0.92rem; color: #A9C0DC; line-height: 1.75; }

/* ---------------- 服务流程 ---------------- */
.process { background: var(--bg-light); }
.process-steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.process-steps li {
  position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 22px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.process-steps li:hover { transform: translateY(-4px); border-color: var(--teal-500); box-shadow: 0 12px 26px rgba(11, 46, 89, 0.1); }
.process-steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 47px; left: calc(100% + 2px);
  width: calc(20px - 4px); height: 2px;
  background: linear-gradient(90deg, var(--teal-500), var(--line));
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800;
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.35);
  margin-bottom: 16px;
}
.process-steps h3 { font-size: 1rem; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; }
.process-steps p { font-size: 0.88rem; color: var(--slate); line-height: 1.7; }

/* ---------------- 联系我们 ---------------- */
.contact {
  position: relative; overflow: hidden;
  background:
    radial-gradient(820px 480px at 8% -10%, rgba(45, 212, 191, 0.16), transparent 60%),
    radial-gradient(700px 420px at 105% 110%, rgba(18, 64, 122, 0.55), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 50%, var(--navy-800) 100%);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: start;
}
.contact-info .eyebrow { color: var(--teal-300); margin-bottom: 16px; }
.contact-info .eyebrow::before { background: var(--teal-400); }
.contact-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--white);
  letter-spacing: -0.01em; line-height: 1.35; margin-bottom: 16px;
}
.contact-info .lead { color: #A9C0DC; margin-bottom: 28px; }
.phone-big {
  font-size: 2.15rem; font-weight: 800; letter-spacing: 0.02em; line-height: 1.2;
  background: linear-gradient(92deg, var(--teal-300), #7DD3FC);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.person { font-size: 0.95rem; color: #CFE0F2; margin-top: 8px; }
.contact-info .note { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); line-height: 1.7; margin-top: 22px; max-width: 420px; }

.form {
  background: var(--white); border-radius: 18px; padding: 32px 30px;
  box-shadow: 0 24px 60px rgba(3, 18, 38, 0.38);
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block; font-size: 0.88rem; font-weight: 700; color: var(--navy-900); margin-bottom: 7px;
}
.form-field .req { color: var(--red); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid #D7E2EF; border-radius: 10px;
  background: #FBFDFF; color: var(--ink);
  font-size: 0.95rem; font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-field textarea { resize: vertical; min-height: 96px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--teal-500); background: var(--white);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}
.form-field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px;
}
.form-field .invalid { border-color: var(--red); background: #FFF5F7; }
.form-field .invalid:focus { box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12); }

.form-note { margin-top: 12px; font-size: 0.85rem; min-height: 1.3em; line-height: 1.5; }
.form-note.ok { color: var(--teal-600); font-weight: 600; }
.form-note.err { color: var(--red); }

/* ---------------- 页脚 ---------------- */
.footer {
  background: var(--navy-950); border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 30px 0;
}
.footer-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.footer p { font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); line-height: 1.6; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .hero { padding: 72px 0 56px; }
  .section { padding: 68px 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 36px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps li::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5, 17, 32, 0.97);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 24px 22px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav > a:not(.btn) {
    padding: 14px 4px; font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav > a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
}

@media (max-width: 560px) {
  .hero { padding: 56px 0 44px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 1.6rem; }
  .process-steps { grid-template-columns: 1fr; }
  .phone-big { font-size: 1.75rem; }
  .form { padding: 26px 20px; }
  .footer-wrap { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
