/*
 * CARKIRA 官网样式
 * 版式语言参考 moshore.com：暖灰底、近黑文字、细分割线、大标题、克制的强调色。
 * 品牌色取自 CARKIRA logo：深海军蓝 #0f172a + 天蓝 #38bdf8。
 */

:root {
  --ink: #11130f;
  --muted: #5f625a;
  --muted-2: #8b8e85;
  --paper: #f1f1eb;
  --soft: #f7f7f3;
  --white: #fff;
  --line: rgba(17, 19, 15, .14);
  --line-soft: rgba(17, 19, 15, .08);
  --navy: #0f172a;
  --sky: #38bdf8;
  --sky-deep: #0ea5e9;
  --shell: min(1600px, calc(100vw - 112px));
  --header: 80px;
  --ease: cubic-bezier(.2, .72, 0, 1);
  --radius: 30px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans SC Variable", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 420;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(56, 189, 248, .32); }
:focus-visible { outline: 2px solid var(--sky-deep); outline-offset: 3px; }
section[id] { scroll-margin-top: calc(var(--header) + 10px); }

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed; top: -70px; left: 24px; z-index: 200;
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 13px;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }

.eyebrow {
  margin: 0;
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 640;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ---------- 按钮与文字链接 ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
  transition: transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.button-solid { background: var(--ink); color: #fff; }
.button-solid:hover { transform: translateY(-2px); background: #262a20; box-shadow: 0 14px 30px rgba(17, 19, 15, .18); }

.text-link { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 560; }
.text-link svg { width: 13px; height: 13px; flex: none; transition: transform .35s var(--ease); }
.text-link svg path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.text-link:hover svg { transform: translate(2px, -2px); }

/* ---------- 页头 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 90;
  height: var(--header);
  padding: 0 clamp(28px, 3.8vw, 72px);
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 56px);
  border-bottom: 1px solid transparent;
  transition: height .38s var(--ease), background-color .38s var(--ease), border-color .38s var(--ease), backdrop-filter .38s var(--ease);
}
.site-header.is-scrolled {
  height: 64px;
  background: rgba(247, 247, 243, .86);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand { justify-self: start; }
.brand img { height: 32px; width: auto; }

.nav { display: flex; gap: clamp(22px, 2.6vw, 42px); }
.nav a { position: relative; padding: 6px 0; font-size: 13.5px; font-weight: 500; opacity: .88; transition: opacity .3s var(--ease); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 14px; }
.header-portal {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 560;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.header-portal:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.menu-button { display: none; position: relative; width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.menu-button span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-button span:nth-child(1) { top: 16px; }
.menu-button span:nth-child(2) { top: 23px; }
body.nav-open .menu-button span:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.nav-open .menu-button span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* 移动端导航 */
.mobile-nav {
  position: fixed; inset: 0; z-index: 80;
  padding: calc(var(--header) + 16px) clamp(28px, 7vw, 60px) 48px;
  display: flex; flex-direction: column;
  background: rgba(247, 247, 243, .97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0; transform: translateY(-12px); pointer-events: none;
  transition: opacity .38s var(--ease), transform .38s var(--ease);
}
body.nav-open .mobile-nav { opacity: 1; transform: none; pointer-events: auto; }
body.nav-open { overflow: hidden; }
.mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 20px 2px; border-bottom: 1px solid var(--line); font-size: 21px; font-weight: 640; }
.mobile-nav a i { font-style: normal; font-size: 15px; color: var(--muted-2); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: min(100svh, 1000px);
  padding: calc(var(--header) + 30px) 0 44px;
  background: linear-gradient(180deg, #f6f6f1 0%, #f0f0e9 100%);
  overflow: hidden;
}
.hero-inner {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 5vw, 96px);
  align-items: center;
  padding-top: 10px;
}
.hero-copy .eyebrow { margin-bottom: 26px; }
.hero-copy h1 {
  margin: 0;
  font-size: clamp(30px, 4.05vw, 60px);
  font-weight: 760;
  line-height: 1.14;
  letter-spacing: -.015em;
}
.hero-copy .lead { margin: 28px 0 0; max-width: 560px; color: var(--muted); font-size: 15px; line-height: 2; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 42px; }

.stage-tile {
  position: relative;
  aspect-ratio: 1 / 1.04;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: radial-gradient(120% 95% at 72% 12%, #ffffff 0%, #f3f3ed 48%, #e7e8e0 100%);
  box-shadow: 0 34px 70px -42px rgba(17, 19, 15, .35);
  overflow: hidden;
}
.stage-chip {
  position: absolute; z-index: 4; top: 22px; left: 22px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 620; letter-spacing: .04em;
}
.stage-slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transform: scale(1.02);
  transition: opacity .65s var(--ease), transform .9s var(--ease);
  pointer-events: none;
}
.stage-slide.is-active { opacity: 1; transform: none; }
.stage-slide img { width: 100%; height: 100%; object-fit: contain; padding: 9%; mix-blend-mode: multiply; }

.hero-foot { display: grid; grid-template-columns: 140px 1fr; gap: 44px; align-items: end; padding-top: 40px; }
.hero-count { display: flex; align-items: baseline; gap: 8px; padding-bottom: 2px; }
.hero-count b { font-size: 30px; font-weight: 720; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hero-count span { color: var(--muted-2); font-size: 13px; }
.hero-chapters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hero-chapters button {
  display: block; text-align: left;
  padding: 16px 18px 2px 0;
  border: 0; border-top: 1px solid var(--line-soft);
  background: none; cursor: pointer;
  transition: border-color .35s var(--ease);
}
.hero-chapters span { display: block; margin-bottom: 7px; color: var(--muted-2); font-size: 10px; font-weight: 620; letter-spacing: .18em; }
.hero-chapters b { font-size: 14px; font-weight: 580; color: var(--muted); transition: color .35s var(--ease); }
.hero-chapters button:hover b { color: var(--ink); }
.hero-chapters button.is-active { border-top-color: var(--ink); }
.hero-chapters button.is-active b { color: var(--ink); }
.hero-chapters button.is-active span { color: var(--sky-deep); }

/* ---------- 通用区块 ---------- */
.section { padding: 128px 0; }
.section-contact { padding: 20px 0 128px; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .55fr);
  gap: 72px; align-items: end;
  margin-bottom: 56px;
}
.section-heading h2 { margin: 0; font-size: clamp(30px, 3vw, 46px); font-weight: 700; line-height: 1.22; letter-spacing: -.01em; }
.section-note { margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 2; }

.band {
  padding: 118px 0;
  background: var(--soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.band-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(48px, 6vw, 120px); align-items: start; }
.band-copy h2 { margin: 26px 0 0; font-size: clamp(30px, 3vw, 46px); font-weight: 700; line-height: 1.22; letter-spacing: -.01em; }
.band-copy p { margin: 28px 0 0; max-width: 44ch; color: var(--muted); font-size: 14.5px; line-height: 2; }

.channel-list { border-top: 1px solid var(--line); }
.channel-row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 25px 2px; border-bottom: 1px solid var(--line); transition: padding-left .4s var(--ease); }
.channel-row:hover { padding-left: 10px; }
.channel-row b { font-size: clamp(20px, 2vw, 26px); font-weight: 680; letter-spacing: -.01em; }
.channel-row span { color: var(--muted-2); font-size: 11px; letter-spacing: .12em; }

/* ---------- 产品系列 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.product-card { padding: 36px 34px 44px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-card:nth-child(3n + 1) { border-left: 0; }
.card-media { aspect-ratio: 5 / 4; display: grid; place-items: center; margin-bottom: 30px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.product-card:hover .card-media img { transform: scale(1.04); }
.card-eyebrow { margin: 0 0 14px; color: var(--muted-2); font-size: 11px; font-weight: 640; letter-spacing: .2em; }
.card-meta h3 { margin: 0 0 10px; font-size: 21px; font-weight: 660; letter-spacing: -.01em; }
.card-meta p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.9; }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr); gap: clamp(48px, 6vw, 120px); align-items: start; }
.about-copy h2 { margin: 26px 0 0; font-size: clamp(30px, 3vw, 46px); font-weight: 700; line-height: 1.22; letter-spacing: -.01em; }
.about-copy > p { margin: 26px 0 0; max-width: 58ch; color: var(--muted); font-size: 14.5px; line-height: 2; }
.value-list { margin-top: 58px; border-top: 1px solid var(--line); }
.value-row { display: grid; grid-template-columns: 60px 1fr; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.value-row > span { padding-top: 3px; color: var(--muted-2); font-size: 12px; font-weight: 640; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.value-row b { display: block; margin-bottom: 7px; font-size: 16px; font-weight: 640; }
.value-row p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.85; }

.brand-panel {
  position: sticky; top: calc(var(--header) + 28px);
  min-height: 440px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(34px, 3.2vw, 52px);
  border-radius: var(--radius);
  background: var(--navy);
  color: #e9edf5;
}
.brand-kicker { margin: 0; color: rgba(233, 237, 245, .55); font-size: 11px; font-weight: 640; letter-spacing: .22em; }
.brand-word { font-size: clamp(28px, 2.4vw, 38px); font-weight: 780; letter-spacing: .22em; }
.brand-sub { margin: 12px 0 0; color: rgba(233, 237, 245, .62); font-size: 13px; letter-spacing: .2em; }
.brand-line { height: 1px; margin: 36px 0 24px; background: rgba(233, 237, 245, .16); }
.brand-tag { display: flex; align-items: center; margin: 0; color: rgba(233, 237, 245, .7); font-size: 12px; letter-spacing: .14em; }
.brand-tag::before { content: ""; width: 7px; height: 7px; margin-right: 12px; border-radius: 50%; background: var(--sky); }

/* ---------- 联系合作 ---------- */
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(48px, 5vw, 96px);
  align-items: center;
  min-height: 460px;
  padding: clamp(44px, 4.4vw, 76px) clamp(36px, 4vw, 76px);
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, .08);
  background: linear-gradient(125deg, #f3f4f0 0%, #fafaf7 52%, #eaf0f6 100%);
}
.contact-copy h2 { margin: 26px 0 0; font-size: clamp(28px, 2.7vw, 42px); font-weight: 700; line-height: 1.24; letter-spacing: -.01em; }
.contact-copy p { margin: 26px 0 0; max-width: 40ch; color: var(--muted); font-size: 14px; line-height: 2; }
.contact-list { border-top: 1px solid var(--line); }
.contact-list > a, .contact-list > div { display: grid; grid-template-columns: 82px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list > a { transition: padding-left .4s var(--ease); }
.contact-list > a:hover { padding-left: 8px; }
.contact-list span { padding-top: 4px; color: var(--muted-2); font-size: 10.5px; font-weight: 620; letter-spacing: .14em; }
.contact-list b { font-size: 13.5px; font-weight: 520; line-height: 1.75; }

/* ---------- 员工门户 ---------- */
.portal-hero { padding: calc(var(--header) + 110px) 0 30px; }
.portal-hero h1 { margin: 22px 0 0; font-size: clamp(38px, 4vw, 62px); font-weight: 760; letter-spacing: -.015em; line-height: 1.15; }
.portal-hero .lead { margin: 22px 0 0; max-width: 560px; color: var(--muted); font-size: 15px; line-height: 2; }
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portal-card { position: relative; display: block; padding: 44px 42px 46px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); transition: background-color .4s var(--ease); }
.portal-grid .portal-card:nth-child(2n + 1) { border-left: 0; }
.portal-grid .portal-card:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
.portal-card:hover { background: var(--soft); }
.portal-index { display: block; margin-bottom: 18px; color: var(--muted-2); font-size: 11px; font-weight: 640; letter-spacing: .2em; }
.portal-card h3 { margin: 0 0 10px; font-size: 21px; font-weight: 660; }
.portal-card p { margin: 0 0 26px; color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.portal-note { margin-top: 26px; }
.portal-note p { margin: 0; color: var(--muted-2); font-size: 12.5px; }

/* ---------- 页脚 ---------- */
.site-footer { padding: 66px 0 76px; background: var(--soft); border-top: 1px solid var(--line-soft); }
.footer-main { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 60px; align-items: start; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { margin: 16px 0 0; color: rgba(17, 19, 15, .46); font-size: 11px; letter-spacing: .06em; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 32px; font-size: 12.5px; }
.footer-nav a { width: max-content; transition: color .3s var(--ease); }
.footer-nav a:hover { color: var(--sky-deep); }
.footer-meta { display: grid; justify-items: end; gap: 12px; color: rgba(17, 19, 15, .5); font-size: 11px; text-align: right; }
.footer-meta a { color: inherit; transition: color .3s var(--ease); }
.footer-meta a:hover { color: var(--sky-deep); }

/* ---------- 入场动画 ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-button { display: block; }
  .site-header { grid-template-columns: 1fr auto; }
}

@media (max-width: 1150px) and (min-width: 1025px) {
  .hero-copy h1 { font-size: clamp(30px, 3.85vw, 46px); }
}

@media (max-width: 1024px) {
  .hero { min-height: 0; padding-bottom: 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding-top: 26px; }
  .hero-foot { grid-template-columns: 1fr; gap: 26px; padding-top: 34px; }
  .hero-chapters { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .hero-chapters button { flex: 0 0 auto; min-width: 128px; }
  .section { padding: 92px 0; }
  .section-contact { padding: 8px 0 92px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 40px; }
  .band { padding: 88px 0; }
  .band-grid { grid-template-columns: 1fr; gap: 44px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card:nth-child(3n + 1) { border-left: 1px solid var(--line); }
  .product-card:nth-child(2n + 1) { border-left: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .brand-panel { position: static; min-height: 340px; }
  .contact-panel { grid-template-columns: 1fr; gap: 40px; min-height: 0; align-items: start; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
  .footer-meta { justify-items: start; text-align: left; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-grid .portal-card { border-left: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  :root { --shell: calc(100vw - 44px); }
  .section { padding: 74px 0; }
  .section-contact { padding: 4px 0 74px; }
  .band { padding: 72px 0; }
  .hero { padding-top: calc(var(--header) + 14px); }
  .hero-copy h1 { font-size: clamp(28px, 8vw, 40px); line-height: 1.2; }
  .hero-count b { font-size: 24px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card, .product-card:nth-child(2n + 1), .product-card:nth-child(3n + 1) { border-left: 0; }
  .card-media { aspect-ratio: 4 / 3; }
  .value-row { grid-template-columns: 46px 1fr; gap: 16px; }
  .contact-panel { padding: 36px 26px 40px; }
  .contact-list > a, .contact-list > div { grid-template-columns: 68px 1fr; }
  .portal-card { padding: 36px 30px 38px; }
  .footer-main { gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
