/* ============================================================
   YAUCHI 曜麒 · 企业官网样式
   配色：深藏青 #0B2340 / 科技蓝 #1F66E0 / 浅灰底 #F6F8FB
   ============================================================ */
:root {
  --navy: #0B2340;
  --navy-2: #12345C;
  --blue: #1F66E0;
  --blue-dark: #174FB3;
  --bg: #F6F8FB;
  --ink: #1C2B3A;
  --muted: #5D6E80;
  --line: #E2E8F0;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 35, 64, .08);
  --shadow-hover: 0 18px 44px rgba(11, 35, 64, .16);
  --maxw: 1200px;
  --font: "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.section-alt { background: var(--bg); }

/* ---------- 语言切换 ---------- */
[data-en] { display: none; }
body.lang-en [data-zh] { display: none; }
body.lang-en [data-en] { display: inline; }
body.lang-en [data-en].block { display: block; }
[data-zh].block { display: block; }

/* ---------- 标题体系 ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
h1, h2, h3 { color: var(--navy); line-height: 1.25; font-weight: 800; }
.section-title { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 16px; }
.section-sub { color: var(--muted); max-width: 720px; font-size: 17px; }
.section-head { margin-bottom: 52px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin: 0 auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31,102,224,.35); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; font-weight: 900; font-size: 19px;
  display: grid; place-items: center; letter-spacing: .02em;
}
.brand-name { font-size: 19px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.brand-name small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .14em; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 15px; border-radius: 8px;
  font-weight: 600; font-size: 15px; color: var(--ink);
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); background: rgba(31,102,224,.08); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.lang-switch button {
  border: 0; background: transparent; padding: 7px 14px; cursor: pointer;
  font-weight: 700; font-size: 13px; color: var(--muted); font-family: inherit;
}
.lang-switch button.on { background: var(--navy); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--navy);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,24,44,.92) 0%, rgba(8,24,44,.72) 45%, rgba(8,24,44,.35) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 110px 0; max-width: 680px; }
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 54px); margin-bottom: 20px; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,.86); margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 44px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats .num { font-size: 34px; font-weight: 800; color: #fff; }
.hero-stats .lab { font-size: 13px; color: rgba(255,255,255,.72); letter-spacing: .06em; }

/* ---------- 英文首屏：等高补偿 ----------
   英文标题与导语比中文长，会多折 1–2 行把首屏撑高（1440px 下高 167px）。
   这里只压缩英文侧的排版节奏，让首屏高度贴近中文；中文侧不做任何改动。 */
body.lang-en .hero h1 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 16px; }
body.lang-en .hero p.lead { font-size: 17px; line-height: 1.62; }
body.lang-en .hero .hero-inner { padding: 96px 0; }
body.lang-en .hero-stats { margin-top: 36px; }
@media (max-width: 820px) {
  body.lang-en .hero h1 { font-size: 28px; }
  body.lang-en .hero p.lead { font-size: 16px; }
  body.lang-en .hero .hero-inner { padding: 82px 0; }
  body.lang-en .hero-stats { margin-top: 32px; }
}
/* 英文统计三项：窄屏改为等宽三列，避免标签换行把首屏撑高 */
@media (min-width: 481px) and (max-width: 600px) {
  body.lang-en .hero .hero-inner { padding: 90px 0; }
  body.lang-en .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
  body.lang-en .hero-stats .num { font-size: 22px; }
  body.lang-en .hero-stats .lab { font-size: 12px; letter-spacing: .02em; }
}
@media (max-width: 480px) {
  body.lang-en .hero h1 { font-size: 26px; }
  body.lang-en .hero .hero-inner { padding: 72px 0; }
  body.lang-en .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 28px; }
  body.lang-en .hero-stats .num { font-size: 20px; }
  body.lang-en .hero-stats .lab { font-size: 11px; letter-spacing: .02em; }
}

/* ---------- 首页横幅（内页通用） ---------- */
.page-hero {
  position: relative;
  padding: 96px 0 84px;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}
/* 子页面 banner：不加暗色蒙版，保留图片原色；文字统一白色并加轻微阴影保证可读 */
.page-hero .hero-media::after { display: none; }
.page-hero .hero-inner { padding: 0; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); color: #fff; }
.page-hero p.lead { color: #fff; }
.page-hero .eyebrow { color: #7FB0FF; }
.page-hero h1,
.page-hero p.lead,
.page-hero .eyebrow,
.page-hero .breadcrumb { text-shadow: 0 1px 2px rgba(0,0,0,.7), 0 2px 14px rgba(0,0,0,.55); }
.breadcrumb { font-size: 14px; color: rgba(255,255,255,.85); margin-top: 14px; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- 能力/数据条 ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.metric {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 26px; text-align: center;
}
.metric .ico {
  width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 14px;
  background: rgba(31,102,224,.1); color: var(--blue);
  display: grid; place-items: center;
}
.metric .ico svg { width: 27px; height: 27px; }
.metric h3 { font-size: 17px; margin-bottom: 6px; }
.metric p { font-size: 14px; color: var(--muted); }

/* ---------- 产品分类卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .3s ease; display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.cat-photo { aspect-ratio: 4/3; background: var(--bg); overflow: hidden; }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover .cat-photo img { transform: scale(1.05); }
.cat-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.cat-body h3 { font-size: 20px; margin-bottom: 8px; }
.cat-body h3 small { display: block; font-size: 12px; color: var(--blue); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }
.cat-body p { font-size: 14.5px; color: var(--muted); flex: 1; }
.cat-link { margin-top: 16px; font-weight: 700; color: var(--blue); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.cat-card:hover .cat-link { gap: 11px; }
.cat-link { transition: gap .25s; }

/* ---------- 产品列表（产品中心页） ---------- */
.cat-block { margin-bottom: 72px; }
.cat-block-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  border-bottom: 2px solid var(--line); padding-bottom: 18px; margin-bottom: 34px; flex-wrap: wrap;
}
.cat-block-head h2 { font-size: 27px; }
.cat-block-head h2 small { display: block; font-size: 13px; color: var(--blue); letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .3s;
}
.prod-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); border-color: transparent; }
.prod-photo { aspect-ratio: 4/3; background: var(--bg); overflow: hidden; }
.prod-photo img { width: 100%; height: 100%; object-fit: cover; }
.prod-info { padding: 20px 20px 22px; }
.prod-info .model { font-size: 12px; font-weight: 800; color: var(--blue); letter-spacing: .08em; }
.prod-info h3 { font-size: 17px; margin: 6px 0 8px; }
.prod-info h3 small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.prod-info p { font-size: 13.5px; color: var(--muted); }
.spec-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.spec-chips span {
  font-size: 12px; font-weight: 600; color: var(--navy-2);
  background: rgba(31,102,224,.09); border-radius: 999px; padding: 4px 11px;
}

/* ---------- 解决方案 ---------- */
.solution-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  margin-bottom: 80px;
}
.solution-row:last-child { margin-bottom: 0; }
.solution-row.reverse .sol-text { order: 2; }
.sol-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.sol-photo img { width: 100%; height: 100%; object-fit: cover; }
.sol-text h2 { font-size: 28px; margin-bottom: 14px; }
.sol-text > p { color: var(--muted); margin-bottom: 22px; }
.sol-list li {
  display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.sol-list li:last-child { border-bottom: 0; }
.sol-list .tick {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(31,102,224,.12); color: var(--blue);
  display: grid; place-items: center; font-size: 13px; font-weight: 900; margin-top: 3px;
}
.sol-list b { color: var(--navy); }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { font-size: 30px; margin-bottom: 18px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.brand-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.pillar {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  background: var(--white);
}
.pillar b { color: var(--blue); font-size: 15px; display: block; margin-bottom: 4px; }
.pillar span { font-size: 13.5px; color: var(--muted); }

.timeline { position: relative; margin-top: 30px; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item::before {
  content: ""; position: absolute; left: -29px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 0 4px rgba(31,102,224,.15);
}
.tl-item .yr { font-weight: 800; color: var(--blue); font-size: 15px; }
.tl-item h4 { font-size: 16px; color: var(--navy); margin: 2px 0 4px; }
.tl-item p { font-size: 14px; color: var(--muted); }
.tl-note { font-size: 13px; color: #98A6B5; font-style: italic; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
.contact-card {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 40px 34px;
}
.contact-card h2 { color: #fff; font-size: 25px; margin-bottom: 26px; }
.ci { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.ci:last-of-type { border-bottom: 0; }
.ci .ico {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 11px;
  background: rgba(255,255,255,.1); display: grid; place-items: center;
}
.ci .ico svg { width: 20px; height: 20px; }
.ci .lab { font-size: 12.5px; color: rgba(255,255,255,.6); letter-spacing: .08em; text-transform: uppercase; }
.ci .val { font-weight: 700; font-size: 15.5px; word-break: break-all; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 34px; box-shadow: var(--shadow);
}
.form-card h2 { font-size: 25px; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-size: 15px; font-family: inherit; color: var(--ink);
  transition: border-color .2s; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,102,224,.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12.5px; color: #98A6B5; margin-top: 10px; }
.form-success {
  display: none; background: #E8F7EE; color: #1B7A43; border: 1px solid #B7E4C9;
  border-radius: 10px; padding: 14px 16px; font-size: 14px; font-weight: 600; margin-bottom: 18px;
}
.form-error {
  display: none; background: #FDECEC; color: #A3282A; border: 1px solid #F3C2C2;
  border-radius: 10px; padding: 14px 16px; font-size: 14px; font-weight: 600; margin-bottom: 18px;
}
.btn[disabled] { opacity: .65; cursor: not-allowed; }

/* ---------- 品牌带 ---------- */
.brand-strip { background: var(--navy); color: #fff; padding: 54px 0; }
.brand-strip .inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.brand-strip h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); max-width: 560px; }
.brand-logos { display: flex; gap: 16px; flex-wrap: wrap; }
.brand-logo {
  border: 1px solid rgba(255,255,255,.22); border-radius: 12px;
  padding: 14px 24px; font-weight: 800; letter-spacing: .05em; font-size: 17px;
  background: rgba(255,255,255,.05);
}
.brand-logo small { display: block; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.6); letter-spacing: .12em; }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--blue));
  border-radius: 20px;
  padding: 60px 56px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.82); }

/* ---------- 页脚 ---------- */
.site-footer { background: #07182C; color: rgba(255,255,255,.72); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0; font-size: 13px; color: rgba(255,255,255,.5);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .cat-grid, .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .solution-row { grid-template-columns: 1fr; gap: 36px; }
  .solution-row.reverse .sol-text { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section { padding: 60px 0; }
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 14px 24px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-130%); visibility: hidden; pointer-events: none;
    transition: transform .3s ease, visibility .3s;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; pointer-events: auto; }
  .nav-links a { padding: 13px 10px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .cat-grid, .prod-grid, .metrics, .form-row, .brand-pillars, .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .cta-band { padding: 40px 28px; }
  .form-card, .contact-card { padding: 30px 22px; }
}

/* ---------- 可访问性 ---------- */
.skip-link {
  position: absolute; left: 12px; top: -70px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 18px;
  border-radius: 0 0 10px 10px; font-weight: 700; font-size: 14px;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px;
}
.footer-bottom a { text-decoration: underline; }

.field .req { color: var(--blue); font-weight: 700; }

/* ---------- 关于我们 · 业务布局图 ---------- */
.about-map {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy);
  aspect-ratio: 16 / 9;
}
.about-map img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 联系我们 · 即时联系二维码 ---------- */
.im-qrs { display: flex; gap: 14px; margin-top: 10px; }
.im-qr {
  flex: 1; min-width: 0;
  background: #fff; border-radius: 12px; padding: 10px 10px 12px;
  text-align: center;
}
.im-qr .name {
  font-size: 12.5px; font-weight: 800; color: var(--navy);
  letter-spacing: .02em; margin-bottom: 8px;
}
.im-qr img { width: 100%; height: auto; display: block; border-radius: 6px; }
