/* Kecyou Machinery — 深蓝工程蓝图视觉（延续 FB 封面 v2） */
:root {
  --navy-900: #08142e;
  --navy-800: #0c1e40;
  --navy-700: #18366c;
  --navy-600: #1f4a94;
  --line: rgba(84, 130, 205, .18);
  --line-strong: rgba(84, 130, 205, .34);
  --orange: #f59123;
  --ink: #0e1b33;
  --muted: #5b6b88;
  --paper: #f5f7fb;
  --white: #fff;
  --font: "Segoe UI", "Microsoft YaHei", -apple-system, Helvetica, Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ── 工程蓝图网格背景 ── */
.blueprint {
  background:
    linear-gradient(rgba(12,30,64,.92), rgba(8,20,46,.96)),
    repeating-linear-gradient(0deg, transparent 0 87px, rgba(84,130,205,.22) 87px 88px),
    repeating-linear-gradient(90deg, transparent 0 87px, rgba(84,130,205,.22) 87px 88px);
  color: #e8eefb;
}

/* ── 顶栏 ── */
header { position: sticky; top: 0; z-index: 50; background: rgba(8,20,46,.97); border-bottom: 1px solid var(--line-strong); backdrop-filter: blur(6px); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 42px; width: auto; background: #fff; padding: 3px 8px; border-radius: 4px; }
.brand b { color: #fff; font-size: 17px; letter-spacing: .06em; }
.brand span { display: block; font-size: 11px; color: #8fa7d4; letter-spacing: .18em; font-weight: 400; }
.menu { display: flex; gap: 6px; align-items: center; }
.menu a { color: #c6d3ee; padding: 9px 16px; border-radius: 6px; font-size: 15px; transition: .2s; }
.menu a:hover, .menu a.on { color: #fff; background: rgba(84,130,205,.22); }
.menu .cta { background: var(--orange); color: #16233d; font-weight: 600; }
.menu .cta:hover { background: #ffa63f; color: #16233d; }
.burger { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 6px; color: #c6d3ee; font-size: 20px; padding: 4px 12px; cursor: pointer; }

/* ── 语言切换 ── */
.lang-switch select {
  background: rgba(20, 42, 88, .9);
  border: 1px solid var(--line-strong);
  color: #d6e2f8;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  outline: none;
  margin-right: 4px;
}
.lang-switch select:hover, .lang-switch select:focus { border-color: var(--orange); }
.lang-switch select option { background: var(--navy-800); color: #e8eefb; }
/* 阿拉伯语 RTL：语言选择器不镜像 */
html[dir="rtl"] .lang-switch { direction: ltr; }
html[dir="rtl"] .hero-tags span, html[dir="rtl"] .check li { flex-direction: row-reverse; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; padding: 92px 0 74px; }
.hero::after { content: ""; position: absolute; inset: auto -10% -55% 30%; height: 520px; background: radial-gradient(ellipse at center, rgba(64,120,210,.4), transparent 62%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .26em; color: var(--orange); text-transform: uppercase; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 42px; height: 3px; background: var(--orange); }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.12; color: #fff; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lead { margin-top: 22px; font-size: 18px; color: #b3c4e6; max-width: 560px; }
.hero .btns { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 15px 32px; border-radius: 6px; font-size: 16px; font-weight: 600; transition: .2s; cursor: pointer; border: 0; }
.btn-o { background: var(--orange); color: #14213d; }
.btn-o:hover { background: #ffa63f; transform: translateY(-2px); }
.btn-g { border: 1px solid rgba(160,190,240,.5); color: #dbe6fb; }
.btn-g:hover { border-color: #fff; color: #fff; }
.hero-visual { position: relative; }
.hero-visual .m { position: absolute; bottom: 0; filter: drop-shadow(0 34px 40px rgba(0,0,0,.55)); }
.hero-visual .m1 { left: 0; height: 70%; z-index: 2; }
.hero-visual .m2 { right: 0; height: 80%; z-index: 1; opacity: .92; }
.hero-visual .pad { padding-top: 40px; min-height: 430px; }
.hero-tags { display: flex; gap: 26px; margin-top: 44px; flex-wrap: wrap; position: relative; z-index: 2; }
.hero-tags span { font-size: 15px; color: #cddaf5; display: flex; align-items: center; gap: 9px; }
.hero-tags span::before { content: ""; width: 9px; height: 9px; background: var(--orange); border-radius: 50%; }

/* ── 数据带 ── */
.stats { background: var(--white); border-bottom: 1px solid #e6ebf4; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 44px; padding-bottom: 44px; }
.stat b { display: block; font-size: 40px; color: var(--navy-700); letter-spacing: -.02em; }
.stat b i { font-style: normal; font-size: 22px; color: var(--orange); }
.stat span { color: var(--muted); font-size: 14.5px; }

/* ── 通用 section ── */
section { padding: 84px 0; }
.sec-head { max-width: 720px; margin-bottom: 46px; }
.sec-head .kicker { color: var(--orange); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; }
.sec-head h2 { font-size: clamp(26px, 3vw, 38px); margin-top: 12px; line-height: 1.2; color: var(--ink); }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 16.5px; }
.dark .sec-head h2 { color: #fff; }
.dark .sec-head p { color: #a9bcdf; }

/* ── 产品卡 ── */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pcard { background: #fff; border: 1px solid #e6ebf4; border-radius: 10px; overflow: hidden; transition: .25s; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(14,27,51,.13); border-color: #cdd8ec; }
.pcard .ph { background: linear-gradient(160deg, #eef2f9, #dde5f2); height: 240px; display: flex; align-items: flex-end; justify-content: center; padding: 18px 22px 0; overflow: hidden; }
.pcard .ph img { max-height: 100%; width: auto; object-fit: contain; }
.pcard .pb { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.pcard .cat { font-size: 12px; letter-spacing: .16em; color: var(--orange); text-transform: uppercase; font-weight: 700; }
.pcard h3 { font-size: 20px; margin-top: 8px; color: var(--ink); }
.pcard p { font-size: 14.5px; color: var(--muted); margin-top: 10px; flex: 1; }
.pcard .spec { display: flex; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed #dbe2ee; font-size: 13px; color: var(--navy-700); flex-wrap: wrap; }
.pcard .spec i { font-style: normal; background: #eef2fa; padding: 3px 10px; border-radius: 4px; }

/* ── 特性 ── */
.features { background: var(--paper); }
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feat { background: #fff; border: 1px solid #e6ebf4; border-left: 4px solid var(--navy-600); padding: 28px 24px; border-radius: 0 8px 8px 0; }
.feat b { display: block; font-size: 17px; margin-bottom: 10px; }
.feat p { font-size: 14.5px; color: var(--muted); }
.feat .num { font-size: 13px; color: var(--orange); font-weight: 700; letter-spacing: .2em; margin-bottom: 14px; display: block; }

/* ── 应用行业 ── */
.apps { background: var(--white); }
.app-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.app-list div { background: var(--navy-800); color: #d7e2f8; text-align: center; padding: 26px 8px; border-radius: 8px; font-size: 14.5px; border: 1px solid var(--line); transition: .2s; }
.app-list div:hover { border-color: var(--orange); color: #fff; }
.app-list div b { display: block; font-size: 24px; color: var(--orange); font-weight: 600; margin-bottom: 6px; }

/* ── 工厂画廊 ── */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery img { height: 190px; width: 100%; object-fit: cover; border-radius: 8px; filter: saturate(.94); transition: .25s; }
.gallery img:hover { transform: scale(1.03); filter: saturate(1.05); }

/* ── CTA ── */
.cta-band { background: linear-gradient(120deg, var(--navy-700), var(--navy-900)); color: #fff; text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); }
.cta-band p { color: #b6c6e8; margin-top: 14px; font-size: 17px; }
.cta-band .btns { margin-top: 32px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── 页脚 ── */
footer { background: var(--navy-900); color: #94a8cf; padding: 60px 0 30px; border-top: 1px solid var(--line-strong); font-size: 14.5px; }
.fgrid2 { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
footer h4 { color: #fff; font-size: 15px; letter-spacing: .08em; margin-bottom: 16px; }
footer li { list-style: none; margin-bottom: 9px; }
footer a:hover { color: var(--orange); }
footer .brand img { background: #fff; }

/* ── 社媒图标行（social.js 注入）── */
.social-row { display: flex; gap: 12px; margin-top: 20px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--navy-800, #0e2450); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s ease;
}
.social-row a:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; fill: currentColor; color: #c8d6ee; }
.social-row a:hover svg { color: #fff; }

/* ── WhatsApp 浮动客服按钮 ── */
.wa-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 99;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .42);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 14px 32px rgba(37, 211, 102, .55); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
@media (max-width: 860px) { .wa-float { right: 18px; bottom: 18px; width: 52px; height: 52px; } .wa-float svg { width: 28px; height: 28px; } }
.fbot { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #6f83ab; }

/* ── 内页 banner ── */
.pbanner { padding: 66px 0 58px; }
.pbanner h1 { font-size: clamp(30px, 3.6vw, 46px); color: #fff; }
.pbanner p { color: #b3c4e6; margin-top: 14px; max-width: 640px; font-size: 17px; }
.crumb { color: var(--orange); font-size: 13.5px; letter-spacing: .12em; margin-bottom: 16px; }

/* ── 关于页 ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.about-grid img { border-radius: 10px; box-shadow: 0 24px 48px rgba(14,27,51,.16); }
.about-grid h2 { font-size: 32px; margin-bottom: 18px; }
.about-grid p { color: var(--muted); margin-bottom: 14px; }
.check { list-style: none; margin-top: 18px; }
.check li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--ink); }
.check li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--orange); font-weight: 700; }

/* ── 联系页 ── */
.cgrid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; }
.cbox { background: var(--paper); border: 1px solid #e6ebf4; border-radius: 10px; padding: 34px; }
.cbox h3 { font-size: 21px; margin-bottom: 20px; }
.crow { display: flex; gap: 16px; padding: 15px 0; border-bottom: 1px dashed #dbe2ee; }
.crow:last-child { border-bottom: 0; }
.crow .ic { width: 44px; height: 44px; border-radius: 8px; background: var(--navy-700); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.crow b { display: block; font-size: 14px; color: var(--muted); font-weight: 600; }
.crow span { font-size: 16px; color: var(--ink); }
form input, form textarea, form select { width: 100%; padding: 14px 16px; border: 1px solid #d5dded; border-radius: 7px; font-size: 15px; font-family: var(--font); margin-bottom: 16px; background: #fff; }
form input:focus, form textarea:focus, form select:focus { outline: 2px solid var(--navy-600); outline-offset: 1px; border-color: transparent; }
form textarea { min-height: 130px; resize: vertical; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── 响应式 ── */
@media (max-width: 1020px) {
  .hero-grid, .about-grid, .cgrid { grid-template-columns: 1fr; }
  .pgrid, .fgrid { grid-template-columns: repeat(2, 1fr); }
  .app-list { grid-template-columns: repeat(3, 1fr); }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .fgrid2 { grid-template-columns: 1fr 1fr; }
  .hero-visual { min-height: 360px; }
}
@media (max-width: 640px) {
  .pgrid, .fgrid, .frow { grid-template-columns: 1fr; }
  .menu { position: absolute; top: 74px; left: 0; right: 0; background: var(--navy-900); flex-direction: column; align-items: stretch; padding: 14px; display: none; border-bottom: 1px solid var(--line-strong); }
  .menu.open { display: flex; }
  .menu a { padding: 13px 16px; }
  .burger { display: block; }
  .brand span { display: none; }
}
