/* ============================================================
 * 青昀科技官网 · 全站样式
 * 视觉基调：克制的深色首屏 + 大量留白 + 单一电光蓝点缀
 * ============================================================ */

/* ---------------- 基础变量 ---------------- */
:root {
  --ink: #0B1220;
  --ink-2: #26303F;
  --muted: #5C6675;
  --muted-2: #8A94A3;
  --line: #E3E8EF;
  --tint: #F6F8FB;
  --accent: #2F5BFF;
  --accent-dark: #1F45D8;
  --dark: #0A0E1A;
  --dark-2: #070A12;

  --header-h: 72px;
  --radius: 10px;
  --shadow: 0 18px 50px -24px rgba(11, 18, 32, 0.35);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ---------------- 重置 ---------------- */
* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: rgba(47, 91, 255, 0.18); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- 通用文字样式 ---------------- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 18px;
}

.lead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.8;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
}

.link-arrow::after {
  content: "→";
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.link-arrow:hover::after { transform: translateX(5px); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.25s ease, border-color 0.25s ease,
    color 0.25s ease, transform 0.25s ease;
}

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

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

.btn--outline { border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--lg { height: 58px; padding: 0 34px; font-size: 16px; }

/* ============================================================
 * 顶部导航
 * ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: #fff;
  background: transparent;
  transition: background-color 0.35s ease, color 0.35s ease,
    border-color 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-solid,
.site-header.is-menu-open {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  color: var(--ink);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: 40px;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.brand__mark {
  display: block;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  filter: drop-shadow(0 5px 12px rgba(47, 91, 255, 0.45));
}

.brand__text strong { display: block; font-size: 16px; letter-spacing: 0.02em; }

.brand__text em {
  display: block;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 0.55;
  margin-top: 1px;
}

.nav { display: flex; gap: 34px; margin-left: auto; }

.nav__link {
  position: relative;
  font-size: 15px;
  opacity: 0.72;
  transition: opacity 0.25s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nav__link:hover { opacity: 1; }

.site-header:not(.is-solid) .nav__link.router-link-exact-active::after { background: #fff; }
.nav__link.router-link-exact-active { opacity: 1; }
.nav__link.router-link-exact-active::after,
.nav__link:hover::after { transform: scaleX(1); }

.header__tel {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}
.header__tel:hover { opacity: 1; color: var(--accent); }

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
}

.burger span {
  display: block;
  height: 2px;
  width: 24px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header.is-menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.site-header.is-menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* 移动端抽屉 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(7, 10, 18, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding-top: var(--header-h);
}

.drawer.is-open { opacity: 1; pointer-events: auto; }

.drawer__panel {
  background: #fff;
  padding: 12px 24px 32px;
  display: flex;
  flex-direction: column;
  transform: translateY(-12px);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.drawer.is-open .drawer__panel { transform: none; }

.drawer__link {
  font-size: 18px;
  font-weight: 600;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.drawer__link--tel { color: var(--accent); border-bottom: 0; }

/* ============================================================
 * 首屏
 * ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: calc(var(--header-h) + 72px) 0 clamp(64px, 9vh, 116px);
  background: var(--dark);
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; }

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(6, 9, 18, 0.82) 0%,
      rgba(6, 9, 18, 0.42) 42%,
      rgba(6, 9, 18, 0.92) 100%
    ),
    linear-gradient(90deg, rgba(6, 9, 18, 0.86) 0%, rgba(6, 9, 18, 0.15) 62%, rgba(6, 9, 18, 0.5) 100%);
}

.hero__inner { position: relative; z-index: 2; color: #fff; }
.hero__inner > * { max-width: 680px; }

.hero .eyebrow { color: #93AFFF; }

.hero h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin-top: 24px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* ============================================================
 * 数据条
 * ============================================================ */
.band--stats {
  background: var(--dark);
  color: #fff;
  padding: 58px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); }

.stat { padding-right: 24px; }

.stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding-left: 32px;
}

.stat__value {
  display: block;
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat__value em {
  font-style: normal;
  font-size: 0.5em;
  color: #93AFFF;
  margin-left: 4px;
}

.stat__label {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.58);
}

/* ============================================================
 * 通用区块
 * ============================================================ */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--tint { background: var(--tint); }

.section__head { max-width: 760px; margin-bottom: clamp(44px, 5vw, 68px); }

.section__head h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
}

.section__head .lead { margin-top: 20px; }

.section__more { margin-top: clamp(40px, 4vw, 56px); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 52px);
}

/* 核心能力（无卡片，细线列） */
.cap { padding-top: 22px; border-top: 1px solid var(--line); transition: border-color 0.35s ease; }
.cap:hover { border-color: var(--accent); }

.cap__no {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.cap h3 { font-size: 20px; margin: 14px 0 10px; }
.cap p { font-size: 15px; line-height: 1.78; color: var(--muted); }

/* ============================================================
 * 案例
 * ============================================================ */
.case-list { display: block; }

.case {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(40px, 5.5vw, 72px) 0;
  border-top: 1px solid var(--line);
}

.case:first-child { border-top: 0; padding-top: 0; }
.case:nth-child(even) .case__media { order: 2; }

.case__media {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: #E9EDF3;
}

.case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.case:hover .case__media img { transform: scale(1.045); }

.case__tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
}

.case__body h3 { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 16px; }
.case__body > p { color: var(--muted); font-size: 16px; line-height: 1.8; }

.case__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.case__highlights li {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  padding-left: 14px;
}

.case__highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--accent);
}

/* 案例页 · 保密说明 */
.case-note {
  margin-top: clamp(36px, 4vw, 52px);
  padding: 22px 24px;
  border-left: 2px solid var(--accent);
  background: var(--tint);
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

/* ============================================================
 * 页面标题区
 * ============================================================ */
.page-head {
  padding: calc(var(--header-h) + clamp(56px, 7vw, 92px)) 0 clamp(44px, 5vw, 64px);
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  max-width: 900px;
}

.page-head .lead { margin-top: 22px; max-width: 660px; }

/* 图文分栏 */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.split__text h2 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 22px; }
.split__text p { color: var(--muted); line-height: 1.85; }
.split__text p + p { margin-top: 18px; }

.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #E9EDF3;
}

.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* 公司档案（公开主体信息） */
.profile {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(32px, 5vw, 72px);
}

.profile__row {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.profile dt {
  font-size: 14px;
  color: var(--muted-2);
}

.profile dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}

/* 服务承诺 */
.commit-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 44px; }

.commit-list li {
  position: relative;
  padding: 20px 0 20px 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}

.commit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 27px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* ============================================================
 * 服务列表
 * ============================================================ */
.svc-list { border-top: 1px solid var(--line); }

.svc {
  display: grid;
  grid-template-columns: 76px 1.35fr 1fr;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
  padding: clamp(28px, 3.2vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease, padding-left 0.35s ease;
}

.svc:hover { background: linear-gradient(90deg, rgba(47, 91, 255, 0.05), transparent 70%); }

.svc__no {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding-top: 6px;
}

.svc__main h3 { font-size: clamp(19px, 1.8vw, 23px); margin-bottom: 12px; }
.svc__main p { color: var(--muted); font-size: 15px; line-height: 1.8; }

.svc__points li {
  position: relative;
  padding: 7px 0 7px 18px;
  font-size: 14px;
  color: var(--ink-2);
}

.svc__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

/* 交付流程 */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(20px, 2vw, 32px); }

.process li {
  border-top: 2px solid var(--line);
  padding-top: 22px;
  transition: border-color 0.35s ease;
}

.process li:hover { border-color: var(--accent); }

.process__step {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.process h3 { font-size: 17px; margin: 12px 0 8px; }
.process p { font-size: 14px; line-height: 1.72; color: var(--muted); }

/* ============================================================
 * 联系页
 * ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact__info h2 { font-size: clamp(21px, 2vw, 26px); margin-bottom: 26px; }

.contact__list > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact__list dt { font-size: 14px; color: var(--muted-2); }
.contact__list dd { margin: 0; font-size: 16px; color: var(--ink-2); }

.contact__note {
  margin-top: 28px;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* 右侧：咨询与对接说明 */
.contact__side {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
}

.contact__side h2 { font-size: 21px; margin-bottom: 24px; }

.contact__steps { list-style: none; margin: 0; padding: 0; }

.contact__steps li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.contact__steps li:last-child { border-bottom: 0; padding-bottom: 0; }

.contact__steps strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  color: var(--ink);
}

/* ============================================================
 * 条款页（用户服务协议与隐私政策）
 * ============================================================ */
.legal { max-width: 860px; }

.legal__block + .legal__block { margin-top: clamp(48px, 5vw, 68px); }

.legal h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.legal h3 { font-size: 17px; margin: 30px 0 10px; }

.legal p { font-size: 15px; line-height: 1.9; color: var(--muted); }

.legal__meta {
  margin-top: clamp(40px, 4vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted-2);
}

/* ============================================================
 * 行动呼吁
 * ============================================================ */
.cta { background: var(--dark); color: #fff; }

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding: clamp(56px, 6.5vw, 84px) 24px;
}

.cta h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 12px; }
.cta p { color: rgba(255, 255, 255, 0.6); font-size: 16px; }

/* ============================================================
 * 页脚
 * ============================================================ */
.site-footer { background: var(--dark-2); color: rgba(255, 255, 255, 0.72); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.5fr;
  gap: 48px;
  padding: 72px 24px 56px;
}

.brand--footer { color: #fff; margin-bottom: 18px; gap: 14px; }
.brand--footer strong { font-size: 18px; }
.brand--footer .brand__mark { width: 30px; height: 30px; }

.footer__brand p { font-size: 14px; line-height: 1.9; }

.footer__slogan { color: rgba(255, 255, 255, 0.45); }

.footer__col h4 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.footer__col a,
.footer__col p {
  display: block;
  font-size: 14px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.25s ease;
}

.footer__col a:hover { color: #fff; }

.footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 24px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
}

.footer__legal p { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.footer__legal a { transition: color 0.25s ease; }
.footer__legal a:hover { color: #fff; }

/* ============================================================
 * 动效
 * ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-in { opacity: 1; transform: none; }

/* 路由切换 */
.page-enter-active,
.page-leave-active { transition: opacity 0.3s ease, transform 0.3s ease; }
.page-enter-from { opacity: 0; transform: translateY(12px); }
.page-leave-to { opacity: 0; }

/* ============================================================
 * 响应式
 * ============================================================ */
@media (max-width: 1080px) {
  .header__bar { gap: 28px; }
  .nav { gap: 24px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .commit-list { grid-template-columns: repeat(2, 1fr); }
  .svc { grid-template-columns: 64px 1fr; }
  .svc__points { grid-column: 2; margin-top: 4px; }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav, .header__tel { display: none; }
  .burger { display: flex; margin-left: auto; }

  .case,
  .case:nth-child(even) { grid-template-columns: 1fr; }
  .case:nth-child(even) .case__media { order: 0; }
  .case:first-child { padding-top: 0; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
  .stat { padding-right: 0; }
  .stat + .stat { border-left: 0; padding-left: 0; }

  .profile { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 62px; }

  .container { padding: 0 20px; }
  .hero { padding-bottom: 64px; }
  .hero__actions .btn { flex: 1 1 100%; }

  .grid-3 { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .commit-list { grid-template-columns: 1fr; }
  .contact__actions .btn { flex: 1 1 100%; }
  .footer__grid { grid-template-columns: 1fr; padding: 56px 20px 40px; }
  .footer__legal { padding: 24px 20px 34px; }
  .cta__inner .btn { width: 100%; }
  .case__highlights { gap: 8px 18px; }
  .profile__row { grid-template-columns: 92px 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
