/* 肯格王 KGW 静态站样式 */
:root {
  --blue: #1d4f91;
  --blue-dark: #143a6e;
  --blue-grad: linear-gradient(135deg, #143a6e 0%, #1d4f91 55%, #2a6cc0 100%);
  --red: #d93a2b;
  --ink: #1c2533;
  --muted: #5e6b7c;
  --line: #e3e9f1;
  --bg: #f5f7fa;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(20, 58, 110, .07);
  --shadow-lift: 0 12px 28px rgba(20, 58, 110, .14);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶栏 ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; gap: 14px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: .5px; }
.brand-name small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 2px; }
.site-nav { margin-left: auto; display: flex; gap: 4px; }
.site-nav a {
  padding: 8px 16px; border-radius: 8px;
  font-size: 15px; color: var(--ink);
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: #eef3fa; color: var(--blue); }

/* ===== 首页 Hero ===== */
.hero {
  background: var(--blue-grad);
  color: #fff;
  padding: 52px 0 0;
  text-align: center;
}
.hero h1 { font-size: 33px; letter-spacing: 2px; margin-bottom: 8px; }
.hero p.tagline { font-size: 16px; opacity: .92; letter-spacing: 1px; }
.hero .hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 20px; padding: 10px 28px;
  background: #fff; color: var(--blue-dark);
  border-radius: 999px; font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  transition: transform .15s;
}
.hero .hero-cta:hover { transform: translateY(-2px); }

/* ===== Hero 轮播（全宽通栏，高度随宽度自适应） ===== */
.hero-carousel {
  width: 100%; margin: 34px 0 0; position: relative;
  overflow: hidden;
}
.hero-carousel .slides { display: flex; transition: transform .55s ease; }
.hero-carousel .slides img {
  width: 100%; flex: 0 0 100%;
  aspect-ratio: 1920 / 616; object-fit: cover;
}
.c-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, .82); color: var(--blue-dark);
  font-size: 19px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.c-arrow:hover { background: #fff; }
.c-prev { left: 14px; }
.c-next { right: 14px; }
.c-dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
}
.c-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, .55); cursor: pointer; padding: 0;
  transition: width .2s, background .2s;
}
.c-dots button.on { background: #fff; width: 22px; border-radius: 5px; }

/* ===== 区块标题 ===== */
.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 30px; letter-spacing: 1px; }
.section-head h2::after {
  content: ""; display: block; width: 44px; height: 4px;
  background: var(--red); border-radius: 2px; margin: 12px auto 0;
}
.section-head p { color: var(--muted); margin-top: 10px; }

/* ===== 产品网格 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.product-card .thumb {
  height: 210px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
  padding: 14px;
}
.product-card .thumb img { max-height: 100%; width: auto; object-fit: contain; }
.product-card .info { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-card .cat {
  align-self: flex-start;
  font-size: 12px; color: var(--blue);
  background: #e8f0fb; border-radius: 999px;
  padding: 2px 10px;
}
.product-card h3 { font-size: 16.5px; line-height: 1.45; font-weight: 600; }
.product-card .more {
  margin-top: auto; font-size: 13.5px; color: var(--muted);
  display: flex; align-items: center; gap: 4px;
}
.product-card:hover .more { color: var(--red); }

/* ===== 公司简介 ===== */
.about { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about .text { max-width: 820px; margin: 0 auto; color: var(--muted); font-size: 16px; text-align: center; }

/* ===== 联系我们 ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
  align-items: center;
}
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 18px; box-shadow: var(--shadow);
  font-size: 15px;
}
.contact-list li b { color: var(--blue); margin-right: 8px; font-weight: 600; }
.contact-qr { text-align: center; }
.contact-qr img { border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 10px; }
.contact-qr p { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--blue-dark); color: rgba(255, 255, 255, .85);
  padding: 26px 0; text-align: center; font-size: 13.5px;
}
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: underline; }
.site-footer a:hover { color: #fff; }

/* ===== 产品详情页 ===== */
.breadcrumb { padding: 18px 0 0; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--blue); }
.product-detail { padding: 28px 0 72px; }
.detail-top {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 36px;
  margin-bottom: 44px; align-items: start;
}
.gallery .main {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  height: 420px;
}
.gallery .main img { max-height: 100%; width: auto; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 12px; margin-top: 12px; }
.gallery .thumbs img {
  width: 92px; height: 92px; object-fit: contain;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px;
}
.detail-info h1 { font-size: 27px; line-height: 1.4; margin-bottom: 10px; }
.detail-info .cat {
  display: inline-block; font-size: 13px; color: var(--blue);
  background: #e8f0fb; border-radius: 999px; padding: 3px 14px; margin-bottom: 18px;
}
.cta-card {
  background: var(--blue-grad); color: #fff;
  border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow-lift);
}
.cta-card h4 { font-size: 16px; margin-bottom: 10px; opacity: .9; }
.cta-card .phone { font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.cta-card ul { list-style: none; margin-top: 12px; font-size: 14px; opacity: .92; display: grid; gap: 4px; }

.detail-body h2 {
  font-size: 21px; margin: 34px 0 16px;
  padding-left: 12px; border-left: 4px solid var(--red);
  line-height: 1.3;
}
.detail-body p { color: var(--muted); margin-bottom: 10px; }
.feature-list { list-style: none; display: grid; gap: 10px; }
.feature-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 16px 11px 40px; position: relative; font-size: 15px;
  color: #2a3445;
}
.feature-list li::before {
  content: "✓"; position: absolute; left: 15px; top: 11px;
  color: var(--red); font-weight: 700;
}
.feature-list li.sub { margin-left: 26px; background: #fbfcfe; }
.feature-list li.sub::before { content: "·"; }

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .site-header .container { height: auto; flex-wrap: wrap; padding: 10px 16px; }
  .site-nav { margin-left: 0; width: 100%; justify-content: center; flex-wrap: wrap; }
  .hero { padding: 40px 0 0; }
  .hero h1 { font-size: 24px; }
  .hero-carousel { margin-top: 24px; }
  .c-arrow { width: 32px; height: 32px; font-size: 15px; }
  .detail-top, .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
