/* ============================================================
   凯耐自动化 · 响应式官网样式（PC + 移动一套）
   易优CMS 模板专用
   ============================================================ */

:root {
  --kt-ink: #0e1721;
  --kt-ink2: #3d4b5a;
  --kt-ink3: #6b7a8a;
  --kt-line: #e3e8ee;
  --kt-line2: #eef2f6;
  --kt-bg: #fff;
  --kt-soft: #f7f9fb;
  --kt-brand: #14507a;
  --kt-brand-d: #0c3a5c;
  --kt-brand-s: #e8f1f8;
  --kt-accent: #e8871a;
  --kt-max: 1240px;
  --kt-r: 4px;
  --kt-sh: 0 8px 30px rgba(14, 23, 33, .09);
  --kt-shl: 0 20px 60px rgba(14, 23, 33, .14);
  --kt-f: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--kt-f); color: var(--kt-ink);
  background: var(--kt-bg); line-height: 1.7; font-size: 16px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { cursor: pointer; border: 0; background: none; font-family: inherit; }

.kt-wrap { width: 100%; max-width: var(--kt-max); margin: 0 auto; padding: 0 24px; }
.kt-section { padding: 92px 0; }
.kt-section--soft { background: var(--kt-soft); }
.kt-section--tight { padding: 60px 0; }
.kt-center { text-align: center; margin-top: 44px; }

/* ---------- 顶部条 ---------- */
.kt-topbar { background: var(--kt-ink); color: #9fb0c0; font-size: 13px; }
.kt-topbar .kt-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 38px; gap: 16px;
}
.kt-topbar__links { display: flex; align-items: center; gap: 22px; }
.kt-topbar__links a:hover { color: #fff; }
.kt-topbar__tel { color: #fff; font-weight: 600; letter-spacing: .03em; }
.kt-topbar__tel b { color: var(--kt-accent); font-weight: 600; margin-right: 5px; }

/* ---------- 页头 ---------- */
.kt-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--kt-line);
}
.kt-header .kt-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; gap: 28px;
}
.kt-logo { flex-shrink: 0; display: flex; align-items: center; }
.kt-logo img { height: 52px; width: auto; }

.kt-nav { display: flex; align-items: center; gap: 2px; }
.kt-nav a {
  position: relative; padding: 0 17px; height: 80px;
  display: flex; align-items: center;
  font-size: 15px; color: var(--kt-ink2); font-weight: 500;
  transition: color .2s;
}
.kt-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -1px;
  width: 0; height: 2px; background: var(--kt-brand);
  transform: translateX(-50%); transition: width .25s;
}
.kt-nav a:hover { color: var(--kt-brand); }
.kt-nav a:hover::after, .kt-nav a.kt-on::after { width: calc(100% - 34px); }
.kt-nav a.kt-on { color: var(--kt-brand); font-weight: 600; }

.kt-menu-btn {
  display: none; width: 42px; height: 42px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.kt-menu-btn span {
  display: block; width: 22px; height: 2px; background: var(--kt-ink);
  border-radius: 1px; transition: transform .25s, opacity .2s;
}
.kt-menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kt-menu-btn.is-open span:nth-child(2) { opacity: 0; }
.kt-menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 按钮 ---------- */
.kt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 30px; font-size: 15px; font-weight: 600;
  border-radius: var(--kt-r); border: 1px solid transparent; transition: all .22s;
}
.kt-btn--solid { background: var(--kt-brand); color: #fff; }
.kt-btn--solid:hover {
  background: var(--kt-brand-d); transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(20, 80, 122, .26);
}
.kt-btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.kt-btn--ghost:hover { background: #fff; color: var(--kt-brand); transform: translateY(-2px); }
.kt-btn--line { border-color: var(--kt-line); color: var(--kt-ink); }
.kt-btn--line:hover {
  border-color: var(--kt-brand); color: var(--kt-brand); background: var(--kt-brand-s);
}

/* ---------- HERO ---------- */
.kt-hero {
  position: relative; overflow: hidden; background: var(--kt-ink); color: #fff;
}
.kt-hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .32;
}
.kt-hero__mask {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(9, 20, 32, .94) 0%, rgba(9, 20, 32, .8) 48%, rgba(9, 20, 32, .52) 100%);
}
.kt-hero > .kt-wrap { position: relative; z-index: 2; }
.kt-hero__inner { padding: 108px 0 88px; max-width: 620px; }
.kt-hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 100px; font-size: 12.5px; letter-spacing: .08em;
  color: #cfd9e2; margin-bottom: 24px;
}
.kt-hero__badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--kt-accent); }
.kt-hero h1 {
  font-size: 50px; line-height: 1.18; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 22px;
}
.kt-hero h1 em { font-style: normal; color: var(--kt-accent); }
.kt-hero__lead { font-size: 17px; color: #b9c6d2; max-width: 540px; line-height: 1.8; }
.kt-hero__btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

.kt-hero__stats {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .02);
}
.kt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.kt-stats > div { padding: 30px 20px; text-align: center; }
.kt-stats b {
  display: block; font-size: 32px; font-weight: 700; color: #fff; letter-spacing: -.01em;
}
.kt-stats b i { font-style: normal; color: var(--kt-accent); font-size: 18px; margin-left: 2px; }
.kt-stats span { font-size: 13px; color: #93a4b3; }

/* ---------- 数据条 ---------- */
.kt-metric {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--kt-line); border: 1px solid var(--kt-line);
}
.kt-metric > div { background: var(--kt-bg); padding: 34px 26px; }
.kt-metric b {
  display: block; font-size: 34px; font-weight: 700; color: var(--kt-brand); letter-spacing: -.02em;
}
.kt-metric b i { font-style: normal; font-size: 18px; margin-left: 2px; }
.kt-metric span { display: block; font-size: 13.5px; color: var(--kt-ink3); margin-top: 6px; }

/* ---------- 区块标题 ---------- */
.kt-chead { margin-bottom: 50px; }
.kt-chead--center { text-align: center; }
.kt-chead__line { width: 46px; height: 2px; background: var(--kt-accent); margin-bottom: 18px; }
.kt-chead--center .kt-chead__line { margin: 0 auto 18px; }
.kt-eyebrow {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--kt-brand); font-weight: 600; margin-bottom: 12px;
}
.kt-chead h2 { font-size: 34px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.kt-chead p { color: var(--kt-ink2); margin-top: 14px; font-size: 16px; }

/* ---------- 关于 ---------- */
.kt-about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: center;
}
.kt-about__media { position: relative; }
.kt-about__media img {
  width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; border-radius: var(--kt-r);
}
.kt-about__media::before {
  content: ""; position: absolute; left: -18px; top: -18px;
  width: 148px; height: 148px; border: 2px solid var(--kt-brand-s);
  border-radius: var(--kt-r); z-index: -1;
}
.kt-about__body h2 {
  font-size: 32px; font-weight: 700; line-height: 1.32;
  margin: 12px 0 20px; letter-spacing: -.015em;
}
.kt-about__body p { color: var(--kt-ink2); margin-bottom: 16px; line-height: 1.9; }
.kt-about__body p:last-of-type { margin-bottom: 28px; }

/* ---------- 产品分类 ---------- */
.kt-cats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--kt-line); border: 1px solid var(--kt-line);
}
.kt-cat {
  background: var(--kt-bg); padding: 38px 32px;
  display: flex; flex-direction: column; gap: 11px;
  transition: background .22s;
}
.kt-cat:hover { background: var(--kt-brand-s); }
.kt-cat__no {
  font-size: 11px; letter-spacing: .18em; color: var(--kt-accent); font-weight: 700;
}
.kt-cat h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.kt-cat p { font-size: 14px; color: var(--kt-ink3); line-height: 1.75; flex: 1; }
.kt-cat__go { font-size: 13.5px; color: var(--kt-brand); font-weight: 600; }

/* ---------- 产品卡 ---------- */
.kt-pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.kt-pcard {
  background: var(--kt-bg); border: 1px solid var(--kt-line);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.kt-pcard:hover { transform: translateY(-4px); box-shadow: var(--kt-sh); }
.kt-pcard__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--kt-soft); }
.kt-pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.kt-pcard:hover .kt-pcard__media img { transform: scale(1.05); }
.kt-pcard__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kt-pcard__body h3 { font-size: 17px; font-weight: 700; line-height: 1.5; }
.kt-pcard__body p {
  font-size: 14px; color: var(--kt-ink3); line-height: 1.75; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kt-pcard__link { font-size: 13.5px; color: var(--kt-brand); font-weight: 600; }

/* ---------- 案例 ---------- */
.kt-cgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.kt-ccard {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--kt-bg); border: 1px solid var(--kt-line); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.kt-ccard:hover { transform: translateY(-4px); box-shadow: var(--kt-sh); }
.kt-ccard__media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--kt-soft); }
.kt-ccard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.kt-ccard:hover .kt-ccard__media img { transform: scale(1.05); }
.kt-ccard__body { padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; }
.kt-ccard__body h3 { font-size: 18px; font-weight: 700; line-height: 1.45; }
.kt-ccard__body p {
  font-size: 14px; color: var(--kt-ink3); line-height: 1.78; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 特性 ---------- */
.kt-fgrid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--kt-line); border: 1px solid var(--kt-line);
}
.kt-feat { background: var(--kt-bg); padding: 40px 36px; }
.kt-feat__no {
  font-size: 34px; font-weight: 700; color: var(--kt-brand-s);
  line-height: 1; margin-bottom: 14px; letter-spacing: -.02em;
}
.kt-feat h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.kt-feat p { font-size: 14.5px; color: var(--kt-ink3); line-height: 1.8; }

/* ---------- 应用行业 ---------- */
.kt-applist { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.kt-applist li {
  font-size: 14px; color: var(--kt-ink2);
  background: var(--kt-bg); border: 1px solid var(--kt-line);
  padding: 8px 16px; border-radius: 2px;
}

/* ---------- CTA ---------- */
.kt-cta {
  background: var(--kt-brand-d); color: #fff; position: relative; overflow: hidden;
}
.kt-cta::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 330px; height: 330px; border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
}
.kt-cta .kt-wrap {
  position: relative; z-index: 2; display: flex; align-items: center;
  justify-content: space-between; gap: 40px; padding: 60px 24px;
}
.kt-cta h2 { font-size: 29px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.015em; }
.kt-cta p { color: #b3c4d2; font-size: 15.5px; max-width: 640px; }
.kt-cta__btns { display: flex; gap: 14px; flex-shrink: 0; }
.kt-cta .kt-btn--solid { background: #fff; color: var(--kt-brand-d); }

/* ---------- 页脚 ---------- */
.kt-footer { background: var(--kt-ink); color: #93a4b3; padding: 72px 0 0; font-size: 14px; }
.kt-footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 46px; padding-bottom: 52px;
}
.kt-footer__logo { height: 46px; width: auto; margin-bottom: 18px; background: #fff; padding: 4px 8px; border-radius: 3px; }
.kt-footer__about p { line-height: 1.85; }
.kt-footer h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.kt-footer__list li { margin-bottom: 11px; }
.kt-footer__list a:hover { color: #fff; }
.kt-footer__contact li { margin-bottom: 13px; line-height: 1.7; display: flex; gap: 10px; }
.kt-footer__contact .k { color: #6d8093; flex-shrink: 0; }
.kt-footer__contact .v { color: #cfd9e2; }
.kt-footer__contact .kt-tel { color: #fff; font-weight: 700; font-size: 17px; }
.kt-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: #6d8093; flex-wrap: wrap; gap: 8px;
}

/* ---------- 返回顶部 ---------- */
.kt-totop {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 44px; height: 44px; background: var(--kt-brand); color: #fff;
  display: grid; place-items: center; border-radius: var(--kt-r);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s; box-shadow: var(--kt-sh);
}
.kt-totop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.kt-totop:hover { background: var(--kt-brand-d); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .kt-about { gap: 44px; }
  .kt-hero h1 { font-size: 42px; }
  .kt-cgrid { grid-template-columns: 1fr; }
  .kt-pgrid { grid-template-columns: repeat(2, 1fr); }
  .kt-cats { grid-template-columns: repeat(2, 1fr); }
  .kt-footer__grid { grid-template-columns: 1fr 1fr; gap: 38px; }
  .kt-cta .kt-wrap { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (max-width: 768px) {
  .kt-wrap { padding: 0 20px; }
  .kt-section { padding: 58px 0; }
  .kt-section--tight { padding: 40px 0; }

  /* 顶部条只留电话 */
  .kt-topbar .kt-wrap { justify-content: center; }
  .kt-topbar__slogan, .kt-topbar__links a:not(.kt-topbar__tel) { display: none; }

  /* 汉堡菜单 */
  .kt-header .kt-wrap { height: 68px; }
  .kt-logo img { height: 42px; }
  .kt-menu-btn { display: flex; }
  .kt-nav {
    position: fixed; left: 0; right: 0; top: 68px; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--kt-line);
    padding: 8px 0 16px; max-height: calc(100vh - 68px); overflow-y: auto;
    transform: translateY(-14px); opacity: 0; visibility: hidden;
    transition: all .25s; box-shadow: var(--kt-sh);
  }
  .kt-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .kt-nav a {
    height: auto; padding: 13px 20px; font-size: 16px;
    border-bottom: 1px solid var(--kt-line2);
  }
  .kt-nav a::after { display: none; }

  /* HERO */
  .kt-hero__inner { padding: 54px 0 46px; }
  .kt-hero h1 { font-size: 30px; }
  .kt-hero__lead { font-size: 15.5px; }
  .kt-hero__btns { margin-top: 28px; }
  .kt-hero__btns .kt-btn { flex: 1; min-width: 140px; }
  .kt-stats { grid-template-columns: repeat(2, 1fr); }
  .kt-stats > div { padding: 20px 12px; }
  .kt-stats b { font-size: 24px; }

  /* 数据条 */
  .kt-metric { grid-template-columns: repeat(2, 1fr); }
  .kt-metric > div { padding: 24px 18px; }
  .kt-metric b { font-size: 26px; }

  /* 标题 */
  .kt-chead { margin-bottom: 32px; }
  .kt-chead h2 { font-size: 25px; }
  .kt-chead p { font-size: 15px; }

  /* 关于 */
  .kt-about { grid-template-columns: 1fr; gap: 32px; }
  .kt-about__body h2 { font-size: 23px; }
  .kt-about__media::before { display: none; }

  /* 网格全部单列 */
  .kt-cats, .kt-pgrid, .kt-cgrid, .kt-fgrid { grid-template-columns: 1fr; }
  .kt-cat { padding: 26px 22px; }
  .kt-ccard { grid-template-columns: 1fr; }
  .kt-ccard__media { aspect-ratio: 16 / 10; }
  .kt-feat { padding: 26px 22px; }

  /* CTA */
  .kt-cta h2 { font-size: 22px; }
  .kt-cta__btns { flex-direction: column; width: 100%; }
  .kt-cta__btns .kt-btn { width: 100%; }

  /* 页脚 */
  .kt-footer { padding-top: 48px; }
  .kt-footer__grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 34px; }
  .kt-footer__bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  .kt-totop { right: 14px; bottom: 14px; width: 40px; height: 40px; }
}
