/* 普健联官网样式（2026-12-02）
   风格：留白 + 低饱和暖色，突出专业与克制，贴合普拉提/高端健身行业。 */

:root {
  --ink: #1b1b1f;
  --ink-2: #4a4a52;
  --ink-3: #85858f;
  --line: #e8e5df;
  --bg: #fbfaf7;
  --bg-2: #f4f1ea;
  --brand: #8a7256;
  --brand-2: #a8906f;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(27, 27, 31, .08);
  --shadow-sm: 0 4px 16px rgba(27, 27, 31, .06);
  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s;
  font-family: inherit;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #7a6549; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.7); }
.btn-ghost:hover { border-color: var(--brand-2); color: var(--brand); }
.btn-lg { padding: 14px 30px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(251, 250, 247, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: .25s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 20px rgba(0,0,0,.04); }
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 12px; letter-spacing: .04em;
}
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a { font-size: 14px; color: var(--ink-2); transition: .2s; }
.nav-links a:hover { color: var(--brand); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-phone { font-size: 14px; font-weight: 700; color: var(--brand); letter-spacing: .02em; }

/* ---------- 轮播 ---------- */
.hero { position: relative; min-height: 640px; display: grid; place-items: center; overflow: hidden; padding-top: 64px; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
  /* 渐变兜底：后台配的图片加载失败时也不会露出空白（2026-12-02） */
  background: linear-gradient(120deg, #2b2622 0%, #4a3f34 45%, #6b5a45 100%);
  background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(20,18,15,.72) 0%, rgba(20,18,15,.42) 48%, rgba(20,18,15,.18) 100%);
}
.hero-static {
  position: relative; z-index: 2; color: #fff; max-width: var(--wrap);
  padding: 0 24px; width: 100%;
}
.hero-eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .82; margin: 0 0 18px; }
.hero-title { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.14; margin: 0 0 20px; }
.hero-sub { font-size: clamp(15px, 1.6vw, 19px); opacity: .9; margin: 0 0 34px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn-ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #fff; }
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,.24); }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dots button { width: 26px; height: 3px; border: 0; background: rgba(255,255,255,.35); cursor: pointer; border-radius: 2px; }
.hero-dots button.active { background: #fff; }

/* ---------- 通用 section ---------- */
.section { padding: 96px 0; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin: 0 0 12px; font-weight: 700; }
.section-title { font-size: clamp(26px, 3vw, 38px); line-height: 1.3; margin: 0 0 22px; }
.lead { font-size: 16px; color: var(--ink-2); max-width: 760px; margin: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.link-more { color: var(--brand); font-weight: 600; font-size: 14px; }

/* ---------- 定位 ---------- */
.section-intro { background: var(--white); }
.stats { display: flex; gap: 64px; margin-top: 48px; flex-wrap: wrap; }
.stat b { display: block; font-size: 42px; line-height: 1; color: var(--ink); }
.stat b span { color: var(--brand); font-size: 26px; }
.stat span { font-size: 13px; color: var(--ink-3); }

/* ---------- 业务 ---------- */
.section-business { background: var(--bg-2); }
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.biz-card {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm); transition: .25s; border: 1px solid transparent;
}
.biz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); }
.biz-no { font-size: 13px; font-weight: 800; color: var(--brand-2); letter-spacing: .1em; margin-bottom: 14px; }
.biz-card h3 { font-size: 19px; margin-bottom: 8px; }
.biz-sub { font-size: 13px; color: var(--brand); margin: 0 0 14px; font-weight: 600; }
.biz-card p:last-child { font-size: 14px; color: var(--ink-2); margin: 0; }
.biz-card-extra { background: linear-gradient(150deg, #fff 0%, #f7f2ea 100%); }

/* ---------- 品牌 ---------- */
.section-brand { background: var(--ink); color: #f3f0ea; }
.section-brand .eyebrow { color: var(--brand-2); }
.section-brand .section-title { color: #fff; }
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 52px; }
.brand-item h4 { font-size: 14px; color: var(--brand-2); letter-spacing: .1em; margin-bottom: 10px; }
.brand-item p { font-size: 15px; color: #d9d4ca; margin: 0; line-height: 1.85; }
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 34px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.value b { display: block; font-size: 15px; color: #fff; margin-bottom: 2px; }
.value span { display: block; font-size: 11px; color: var(--brand-2); letter-spacing: .06em; margin-bottom: 8px; }
.value em { font-style: normal; font-size: 12.5px; color: #a9a49a; line-height: 1.7; }
.slogan { text-align: center; font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; margin: 46px 0 0; color: #fff; }
.slogan em { display: block; font-style: normal; font-size: 13px; letter-spacing: .12em; color: var(--brand-2); margin-top: 10px; font-weight: 500; }

/* ---------- 资讯 ---------- */
.section-news { background: var(--white); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  border-radius: var(--radius); overflow: hidden; background: var(--bg);
  border: 1px solid var(--line); transition: .25s; display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-cover { aspect-ratio: 16 / 10; background-size: cover; background-position: center; background-color: var(--bg-2); }
.news-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-date { font-size: 12px; color: var(--ink-3); }
.news-card h3 { font-size: 16px; line-height: 1.5; }
.news-card p { font-size: 13px; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty-tip { color: var(--ink-3); font-size: 14px; }

/* ---------- 联系 ---------- */
.section-contact { background: var(--bg-2); }
.contact-wrap { display: grid; grid-template-columns: 1fr 420px; gap: 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-list li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-list li span { color: var(--ink-3); min-width: 76px; font-size: 13px; }
.contact-list a { color: var(--brand); font-weight: 700; }
.lead-form { background: var(--white); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.form-row label i { color: #c0563f; font-style: normal; }
.lead-form input, .lead-form textarea, .lead-modal-card input, .lead-modal-card textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: inherit; background: var(--bg); color: var(--ink); transition: .2s;
}
.lead-form input:focus, .lead-form textarea:focus,
.lead-modal-card input:focus, .lead-modal-card textarea:focus {
  outline: none; border-color: var(--brand-2); background: #fff;
}
.form-tip { font-size: 13px; margin: 12px 0 0; min-height: 20px; color: var(--ink-3); }
.form-tip.ok { color: #3f7d55; }
.form-tip.err { color: #c0563f; }

/* ---------- 页脚 ---------- */
.footer { background: var(--ink); color: #9a958c; padding: 56px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px; }
.footer-logo { height: 36px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1); opacity: .92; }
.footer p { margin: 4px 0; font-size: 13px; }
.footer-links { display: flex; gap: 22px; font-size: 13px; align-self: start; }
.footer-links a:hover { color: #fff; }
.footer-copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; margin-top: 20px; font-size: 12px; }

/* ---------- 浮窗 ---------- */
.lead-fab {
  position: fixed; right: 24px; bottom: 28px; z-index: 90;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(138, 114, 86, .38); transition: .2s; font-family: inherit;
}
.lead-fab:hover { transform: translateY(-2px); background: #7a6549; }

/* ---------- 弹窗 ---------- */
.lead-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.lead-modal[hidden] { display: none; }
.lead-modal-mask { position: absolute; inset: 0; background: rgba(20, 18, 15, .55); backdrop-filter: blur(3px); }
.lead-modal-card {
  position: relative; background: #fff; border-radius: 16px; padding: 34px 30px 28px;
  width: 100%; max-width: 420px; box-shadow: 0 24px 60px rgba(0,0,0,.24);
}
.lead-modal-card h3 { font-size: 21px; margin-bottom: 6px; }
.modal-sub { font-size: 13px; color: var(--ink-3); margin: 0 0 22px; }
.lead-modal-card input, .lead-modal-card textarea { margin-bottom: 12px; }
.lead-modal-close {
  position: absolute; top: 14px; right: 16px; border: 0; background: none;
  font-size: 24px; line-height: 1; color: var(--ink-3); cursor: pointer;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .biz-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: 1fr; gap: 22px; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .biz-grid, .news-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .stats { gap: 32px; }
  .nav-phone { display: none; }
  .hero { min-height: 560px; }
}
