/* ==========================================================
   润玺舒适家 · 定州碧水源净水  — 纯静态宣传站样式
   主色：碧水蓝 #1168b7 / 深蓝 #0d1b2a / 金色点缀 #c9a15a
   ========================================================== */

:root {
  --primary: #1168b7;
  --primary-dark: #0c4f8f;
  --primary-light: #e8f1fa;
  --gold: #c9a15a;
  --ink: #1c2733;
  --ink-2: #4a5a6a;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --line: #e3e9f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 27, 42, .08);
  --shadow-hover: 0 18px 44px rgba(13, 27, 42, .14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", 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(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
code {
  font-family: Consolas, Monaco, monospace;
  background: #eef2f6;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .85em;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(13, 27, 42, .08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--primary-light);
  border-radius: 12px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 18px; color: var(--primary-dark); letter-spacing: 1px; }
.brand-text small { font-size: 12px; color: var(--ink-2); letter-spacing: 2px; }

.main-nav { display: flex; gap: 6px; }
.nav-link {
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ink);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-link.active { color: var(--primary); font-weight: 600; }

.header-right { display: flex; align-items: center; gap: 12px; }
.header-tel {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 700; color: var(--primary);
  padding: 8px 14px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.header-tel:hover { background: var(--primary); color: #fff; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 110px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../images/hero.jpg") center / cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 30, 55, .88) 0%, rgba(13, 40, 70, .72) 42%, rgba(13, 40, 70, .25) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 760px; }

.hero-kicker {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 2px;
  color: #ffe7b8;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.2;
  letter-spacing: 2px;
  font-weight: 800;
  margin-bottom: 14px;
}
.hero-title-mark { color: var(--gold); margin: 0 6px; }
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: #dce9f7;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.hero-desc { font-size: 16px; color: #b9cce0; max-width: 560px; margin-bottom: 28px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-badges {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.hero-badges li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px;
  color: #d7e6f5;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 6px 14px;
  border-radius: 999px;
}
.hero-badges svg { color: var(--gold); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 15.5px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px rgba(17, 104, 183, .35); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-sm { padding: 9px 20px; font-size: 14px; }

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 44px; height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}
.section-desc { color: var(--ink-2); margin-top: 12px; font-size: 16px; }

/* ---------- 品牌介绍 ---------- */
.about { background: var(--bg-soft); }
.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text p { margin-bottom: 16px; color: var(--ink-2); font-size: 15.5px; }
.about-text strong { color: var(--ink); }
.about-points { margin-top: 20px; }
.about-points li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--ink);
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(17, 104, 183, .15);
  flex-shrink: 0;
}
.about-card {
  background: linear-gradient(160deg, #0d2c50 0%, #123c6e 60%, #1168b7 130%);
  color: #fff;
  border-radius: 20px;
  padding: 44px 36px;
  text-align: center;
  box-shadow: var(--shadow-hover);
}
.about-card-num {
  font-size: 46px;
  font-weight: 800;
  color: #ffd98a;
  line-height: 1.1;
}
.about-card-label {
  color: #c3d6ec;
  font-size: 14px;
  margin: 4px 0 26px;
  letter-spacing: 2px;
}
.about-card-label:last-child { margin-bottom: 0; }

/* ---------- 产品中心 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img img { transform: scale(1.06); }
.product-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255, 255, 255, .92);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 1px;
}
.product-body { padding: 22px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.product-name { font-size: 19px; font-weight: 700; color: var(--ink); }
.product-slogan {
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
  margin: 4px 0 12px;
  letter-spacing: 1px;
}
.product-list { flex: 1; margin-bottom: 18px; }
.product-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 2;
}
.product-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 13px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---------- 服务保障 ---------- */
.service { background: var(--bg-soft); }
.service-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-icon {
  width: 58px; height: 58px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--primary-light);
  color: var(--primary);
}
.step h4 { font-size: 16.5px; margin-bottom: 8px; color: var(--ink); }
.step p { font-size: 13.5px; color: var(--ink-2); }

.service-bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.service-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-promises li {
  display: flex; align-items: center; gap: 12px;
  font-size: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
}
.service-promises li:last-child { border-bottom: none; }
.promise-mark {
  width: 26px; height: 26px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

/* ---------- 门店信息 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 34px;
  box-shadow: var(--shadow);
}
.contact-name { font-size: 21px; margin-bottom: 22px; color: var(--primary-dark); }
.contact-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  font-size: 15.5px;
  color: var(--ink);
}
.contact-list svg { color: var(--primary); flex-shrink: 0; margin-top: 4px; }
.contact-list a { color: var(--primary); font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.contact-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.contact-qr { text-align: center; }
.qr-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: inline-block;
}
.qr-box img { width: 200px; height: 200px; margin: 0 auto; }
.qr-box p { margin-top: 14px; font-size: 15px; color: var(--ink); font-weight: 600; }
.contact-tip { margin-top: 14px; font-size: 13px; color: var(--ink-2); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0d1b2a;
  color: #9db1c6;
  padding: 40px 0;
  text-align: center;
}
.footer-brand { font-size: 16px; font-weight: 700; color: #e6eef7; margin-bottom: 8px; }
.footer-icp a { color: #7f95ab; }
.footer-icp a:hover { color: #fff; }
.footer-copy { font-size: 13px; color: #6f8499; margin-top: 6px; }

/* ---------- 动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .service-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform .3s ease;
    display: none;
  }
  .main-nav.open { transform: none; display: flex; }
  .nav-link { padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .header-tel { font-size: 0; padding: 10px; }
  .header-tel svg { width: 20px; height: 20px; }
  .about-grid,
  .service-bottom,
  .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: 86vh; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .service-steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-actions .btn { width: 100%; }
}
