/* ===========================================================
   好时光 · 全站主题（借鉴 Glaxdu 结构，绿 + 白 + 金）
   2026-12-01
   =========================================================== */

:root {
  color-scheme: light;

  --green: #0f7d55;
  --green-d: #0a5f40;
  --green-l: #e8f3ee;
  --green-2: #1aa06a;

  --gold: #bd8a3f;
  --gold-l: #fbf3e4;

  --ink: #16211c;
  --ink-2: #3c4a43;
  --muted: #667a71;
  --muted-2: #8a9a92;

  --bg: #ffffff;
  --bg-2: #f5f7f3;
  --bg-3: #eef2ec;
  --line: #e3e8e0;

  --radius: 14px;
  --radius-lg: 22px;
  --shell: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  --font-ui: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
             "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --font-display: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- 顶栏 ---------- */
.topbar {
  background: var(--green);
  color: #eaf5ef;
  font-size: 13.5px;
}
.topbar .shell {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 42px;
  flex-wrap: wrap;
}
.topbar .item { display: inline-flex; align-items: center; gap: 6px; opacity: .95; }
.topbar .spacer { flex: 1; }
.topbar a { color: #fff; opacity: .9; }
.topbar a:hover { opacity: 1; text-decoration: underline; }

/* ---------- 头部 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.is-stuck { box-shadow: 0 6px 22px rgba(18, 34, 26, .08); }
.header .shell {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand img { width: 34px; height: 34px; }
.brand .name { font-size: 19px; letter-spacing: .04em; color: var(--ink); }
.brand .sub { font-size: 11px; color: var(--muted); letter-spacing: .18em; }

.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a {
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.nav a:hover { background: var(--green-l); color: var(--green-d); }
.nav a.is-on { color: var(--green-d); font-weight: 600; }

.header .cta {
  margin-left: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}
.header .cta:hover { background: var(--green-d); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* 移动端抽屉 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  background: rgba(12, 24, 18, .45);
}
.drawer.is-open { display: block; }
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(82vw, 320px);
  background: #fff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: -12px 0 40px rgba(12, 24, 18, .2);
  overflow-y: auto;
}
.drawer-panel .dhead {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.drawer-panel .dclose {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink);
}
.drawer-panel a {
  padding: 13px 12px;
  border-radius: 10px;
  font-size: 15.5px;
  color: var(--ink-2);
}
.drawer-panel a:active { background: var(--green-l); }
.drawer-panel .dcta {
  margin-top: 10px;
  text-align: center;
  background: var(--green);
  color: #fff;
  font-weight: 600;
}

/* ---------- 首屏 ---------- */
/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .14s ease, background .16s ease, border-color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-d); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn-outline { background: #fff; color: var(--green-d); border-color: var(--line); }
.btn-outline:hover { border-color: var(--green); }

/* ---------- 首屏轮播 ---------- */
.hero-slider {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  height: clamp(260px, 42vw, 540px);
  overflow: hidden;
  background: #ffffff;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #ffffff;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .9s ease, transform 6s linear;
}
.hero-slide.is-on {
  opacity: 1;
  transform: scale(1);
}
.hero-figure {
  position: absolute;
  left: calc(18.3% - 15%);
  right: auto;
  bottom: 0;
  transform: scaleX(-1);
  width: 30%;
  z-index: 2;
  pointer-events: none;
  transition: opacity .4s ease;
}
/* 轮到视频帧时把人物淡出，避免两个人重叠 */
.hero-slide-video.is-on ~ .hero-figure { opacity: 0; }
.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .35));
}

.hero-slide-video {
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 50% 40%, rgba(38, 70, 48, .9) 0%, rgba(12, 28, 18, 0) 70%),
    rgb(11, 26, 17);
}
.hero-slide-video .hero-video {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45);
  padding: 10px 0;
  box-sizing: border-box;
}

.hero-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 18px;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 3;
}
.hero-dot {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(22, 33, 28, .28);
  cursor: pointer;
  transition: background .2s ease, width .2s ease;
}
.hero-dot.is-on { background: #16211c; width: 22px; border-radius: 999px; }

/* ---------- 三色特性卡 ---------- */
.features { position: relative; z-index: 4; padding: 0 0 10px; margin-top: -45px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.feature {
  position: relative;
  padding: 30px 26px 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 190px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(16, 38, 27, .18);
  transition: transform .16s ease, box-shadow .16s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 22px 52px rgba(16, 38, 27, .24); }
.feature:nth-child(1) { background: var(--green); }
.feature:nth-child(2) { background: #2f7f9e; }
.feature:nth-child(3) { background: #b3843c; }
.feature .ico { width: 34px; height: 34px; opacity: .95; display: block; }
.feature .ico svg { width: 100%; height: 100%; display: block; }
.feature h3 { margin: 4px 0 0; font-size: 19px; letter-spacing: .02em; }
.feature p { margin: 0; font-size: 13.8px; line-height: 1.75; color: rgba(255, 255, 255, .88); }
.feature .go {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.feature:hover { filter: brightness(1.06); }

/* ---------- 通用区块 ---------- */
.section { padding: clamp(52px, 7vw, 92px) 0; }
#services { padding-bottom: clamp(10px, 1.5vw, 18px); }
.section.alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 4vw, 46px); }
.section-head .kicker {
  font-size: 12.5px;
  letter-spacing: .22em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.3;
  letter-spacing: .02em;
}
.section-head h2 em { font-style: normal; color: var(--green); }
.section-head p { margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.85; }

/* ---------- 关于 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.about-grid img { border-radius: var(--radius-lg); width: 100%; }
.about-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 14px;
  line-height: 1.35;
}
.about-copy p { color: var(--ink-2); font-size: 15.5px; line-height: 1.9; margin: 0 0 12px; }
.about-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.about-list li { display: flex; gap: 10px; font-size: 14.8px; color: var(--ink-2); }
.about-list li::before {
  content: "✓";
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green-l);
  color: var(--green-d);
  font-size: 12px;
  display: grid; place-items: center;
  margin-top: 3px;
}

/* ---------- 能力卡片 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.svc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(18, 40, 28, .1);
  border-color: #cfe0d6;
}
.svc-card .ico svg { width: 24px; height: 24px; display: block; }
.svc-card .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--green-l);
  color: var(--green-d);
  display: grid; place-items: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.svc-card h3 { margin: 0 0 8px; font-size: 17px; }
.svc-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.svc-card .tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--green-d);
  background: var(--green-l);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- 数字 ---------- */
.stats {
  background: var(--green-d);
  color: #fff;
  padding: clamp(30px, 4vw, 48px) 0;
  max-width: 1240px;
  margin: 0 auto;
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  color: #ffd79a;
}
.stat span { font-size: 13.5px; color: #cfe3d8; }

/* ---------- CTA ---------- */
.cta {
  max-width: 1240px;
  margin: 0 auto;
  background:
    linear-gradient(rgba(9, 28, 19, .82), rgba(9, 28, 19, .82)),
    url("/assets/img/hero-bg.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: clamp(52px, 7vw, 92px) 0;
}
.cta h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 40px);
  letter-spacing: .03em;
}
.cta p { margin: 0 auto 26px; max-width: 34em; color: #d5e5dc; font-size: 15px; }

/* ---------- 适合谁 ---------- */
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.who {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
}
.who .emoji { font-size: 26px; margin-bottom: 10px; }
.who h3 { margin: 0 0 6px; font-size: 15.5px; }
.who p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.75; }

/* ---------- 案例 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.case {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.case .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.case .pair figure { margin: 0; position: relative; }
.case .pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case .pair figcaption {
  position: absolute; left: 8px; bottom: 8px;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(12, 24, 18, .7);
  color: #fff;
}
.case .body { padding: 14px 16px 16px; }
.case .body h3 { margin: 0 0 4px; font-size: 15.5px; }
.case .body p { margin: 0; font-size: 13.2px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green-l);
  color: var(--green-d);
  display: grid; place-items: center;
  font-size: 16px;
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; color: var(--ink-2); font-size: 14.8px; line-height: 1.9; }

/* ---------- 页脚 ---------- */
/* 页脚：与主按钮同色，宽度对齐 banner */
.footer {
  max-width: 1240px;
  margin: 0 auto;
  background: #0f7d55;
  color: rgba(255, 255, 255, .82);
  padding: clamp(40px, 5vw, 64px) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 34px;
}
.footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer a { color: rgba(255, 255, 255, .82); font-size: 14px; display: block; padding: 5px 0; }
.footer a:hover { color: #fff; }
.footer .fnote { font-size: 13.2px; line-height: 1.85; color: rgba(255, 255, 255, .72); max-width: 24em; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .22);
  padding: 16px 0;
  font-size: 12.8px;
  color: rgba(255, 255, 255, .7);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero-slider { max-width: none; height: clamp(220px, 34svh, 300px); }
  .hero-slide { background-size: contain; background-position: center; }
  .hero-figure { width: 46%; left: 6%; right: auto; transform: scaleX(-1); }
  .hero-figure { width: 46%; left: 6%; right: auto; transform: scaleX(-1); }
  .topbar .shell { font-size: 12.5px; gap: 10px; min-height: 36px; flex-wrap: nowrap; }
  .topbar .item.tagline { display: none; }
  .topbar .item { white-space: nowrap; }
  .nav { display: none; }
  .header .cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .header .shell { min-height: 62px; }
  .brand .name { font-size: 17px; }

  .hero > .shell {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    gap: 0;
  }
  .hero-media {
    position: absolute;
    inset: 0;
    border-radius: 0;
    width: 100%; height: 100%;
    max-height: none;
    aspect-ratio: auto;
    box-shadow: none;
  }
  .hero-media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8, 26, 18, .55) 0%, rgba(8, 26, 18, .35) 42%, rgba(8, 26, 18, .86) 100%);
  }
  .hero-copy { position: relative; z-index: 2; padding: 56px 0 46px; }
  .hero-actions .btn { flex: 1 1 auto; }

  .features { padding: 0 0 6px; margin-top: -26px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; padding: 22px 20px; }
  .feature .go { margin-top: 6px; }

  .section { padding: 44px 0; }
  .case-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
}

@media (max-width: 420px) {
  .hero-trust { gap: 14px; }
  .who-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ===== 三大服务模块（左右交错） ===== */
.svc-row {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
}
.svc-row:first-of-type { border-top: 0; padding-top: 0; }
.svc-row:last-of-type { padding-bottom: 0; }
.svc-row.reverse .svc-row-media { order: 2; }
.svc-row.reverse .svc-row-copy { order: 1; }

.svc-video-magic {
  width: 80%;
  height: 496px;
  margin: 0 auto;
  object-fit: cover;
  background: #dfe3e0;
}
.svc-video {
  width: 80%;
  height: 496px;
  margin: 0 auto;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(16, 38, 27, .14);
  background: #0d1a12;
}
.svc-row-media img {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(16, 38, 27, .14);
}
.svc-tag {
  display: inline-block;
  font-size: 18.75px;          /* 12.5 × 1.5 */
  letter-spacing: .16em;
  color: var(--green);
  background: var(--green-l);
  border-radius: 999px;
  padding: 7.5px 21px;         /* 5/14 × 1.5 */
  margin-bottom: 20px;
}
.svc-row-copy h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.4;
  letter-spacing: .01em;
  color: var(--ink);
}
.svc-row-copy p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
}
.svc-row-copy p b { color: var(--green-d); }
.svc-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.svc-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
.svc-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green-l);
  color: var(--green-d);
  font-size: 11px;
  display: grid;
  place-items: center;
}
.svc-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.svc-meta { font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .svc-row { grid-template-columns: 1fr; gap: 18px; }
  .svc-row.reverse .svc-row-media,
  .svc-row.reverse .svc-row-copy { order: 0; }
}

/* ===== CTA：白底 + 描边（追加覆盖，不改动原有规则） ===== */
.cta {
  max-width: 1240px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e3e8e0;
  color: #16211c;
  text-align: center;
  padding: clamp(52px, 7vw, 92px) 0;
}
.cta h2 { color: #16211c; }
.cta p { color: #667a71; }

/* ===== 首页按钮：去填色、保留边框、描边加粗一倍（2026-12-01） ===== */
.btn,
.btn-primary,
.btn-ghost,
.btn-outline,
a.btn,
button.btn {
  background: transparent !important;
  border: 2px solid var(--green) !important;   /* 原 1px → 2px */
  color: var(--green-d) !important;
  box-shadow: none !important;
}
.btn:hover,
.btn-primary:hover,
.btn-ghost:hover,
.btn-outline:hover {
  background: rgba(15, 125, 85, .07) !important;
  border-color: var(--green-d) !important;
  color: var(--green-d) !important;
}
.btn:active { transform: translateY(1px); }

/* 移动端抽屉里的按钮同样处理 */
.drawer-panel .dcta {
  background: transparent !important;
  border: 2px solid var(--green) !important;
  color: var(--green-d) !important;
  font-weight: 600;
}
