/* ============================================
   汨泷照护 MELLOW CARE — 官网首页样式
   纯 CSS，无框架；品牌色提取自 logo（青绿 × 暖阳）
   ============================================ */

:root {
  /* 品牌色板 */
  --teal:        #2a9d9c;
  --teal-deep:   #1f7a79;
  --teal-ink:    #12403f;
  --teal-tint:   #edf6f5;
  --teal-tint-2: #ddeeed;
  --sun:         #f6b73c;
  --sun-deep:    #ef8f2e;

  /* 中性色 */
  --ink:         #1f2a2e;   /* 近黑墨色 */
  --text:        #3a464c;
  --text-gray:   #5b6770;   /* 关于我们段落灰 */
  --text-faint:  #8a949b;
  --paper:       #fdfdfc;   /* 暖白 */
  --paper-warm:  #f7faf9;   /* 优势区浅底 */
  --line:        #e4eae9;

  /* 布局 */
  --container:   1440px;
  --nav-h:       72px;
  --radius:      18px;
  --gutter:      clamp(20px, 4vw, 56px);

  /* 字体 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Noto Sans SC", -apple-system, "Segoe UI", Arial, sans-serif;

  /* 缓动 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 锚点定位补偿固定导航高度 */
section[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ============================================
   顶部导航栏（固定）
   ============================================ */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(253, 253, 252, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.35s var(--ease-out);
}

.site-nav.is-scrolled {
  box-shadow: 0 6px 24px rgba(18, 64, 63, 0.08);
}

.nav-inner {
  max-width: var(--container);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  height: 42px;
  width: auto;
}

.brand-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}

.nav-links a {
  position: relative;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text);
  padding: 6px 2px;
  transition: color 0.25s var(--ease-out);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: right 0.3s var(--ease-out);
}

.nav-links a:hover { color: var(--teal-deep); }
.nav-links a:hover::after { right: 0; }

/* ============================================
   关于我们
   ============================================ */
.about {
  background: var(--paper);
  padding-top: var(--nav-h);
}

.about-inner {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: clamp(64px, 9vh, 110px) clamp(56px, 8vh, 96px);
}

.about-text {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.2vh, 24px);
}

.about-text p {
  color: var(--text-gray);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.about-brandline {
  margin-top: clamp(20px, 3.5vh, 36px);
  font-size: clamp(22px, 4.4vw, 40px) !important;
  font-weight: 800;
  color: var(--ink) !important;
  letter-spacing: 0.1em !important;
  line-height: 1.4 !important;
}

.about-figure {
  margin-top: clamp(40px, 7vh, 72px);
}

.about-figure img {
  width: min(600px, 82vw);
  height: auto;
}

/* ============================================
   我们的优势
   ============================================ */
.advantage {
  background: var(--paper-warm);
  padding-block: clamp(72px, 10vh, 120px);
}

.section-title {
  text-align: center;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: clamp(40px, 6vh, 64px);
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--sun));
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}

.adv-card {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 2.6vw, 38px);
  transition: transform 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out);
}

.adv-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal-tint-2);
  box-shadow: 0 18px 44px rgba(18, 64, 63, 0.1);
}

/* 第三行最后一块：通栏 */
.adv-card--wide { grid-column: 1 / -1; }

.adv-icon {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--teal-tint);
  color: var(--teal-deep);
}

.adv-icon svg { width: 30px; height: 30px; }

.adv-body h3 {
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 10px;
}

.adv-body p {
  font-size: clamp(14.5px, 1.15vw, 15.5px);
  line-height: 1.95;
  color: var(--text-gray);
  letter-spacing: 0.01em;
}

/* ============================================
   品牌宣言
   ============================================ */
.statement {
  background: linear-gradient(180deg, var(--teal-tint) 0%, #f4fafa 100%);
  border-top: 1px solid var(--teal-tint-2);
  padding-block: clamp(80px, 12vh, 140px);
  text-align: center;
}

.statement-text {
  max-width: 1080px;
  margin-inline: auto;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.statement-lead {
  display: block;
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 800;
  line-height: 1.4;
}

.statement-sub {
  display: block;
  margin-top: 20px;
  font-size: clamp(15px, 1.55vw, 22px);
  font-weight: 600;
  line-height: 1.75;
}

/* ============================================
   页脚
   ============================================ */
.site-footer {
  background: var(--teal-ink);
  color: rgba(255, 255, 255, 0.78);
  padding-block: 30px;
  text-align: center;
}

.site-footer p {
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 2;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: color 0.25s, border-color 0.25s;
}

.site-footer a:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* ============================================
   入场动效（JS 添加 .is-visible）
   ============================================ */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 相邻卡片依次浮现 */
html.js .adv-grid .reveal.is-visible { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .adv-card, .site-nav, .nav-links a::after { transition: none; }
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 960px) {
  :root { --nav-h: 64px; }

  .brand-logo { height: 36px; }
  .brand-name { font-size: 18px; letter-spacing: 0.1em; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 15px; }

  .adv-grid { grid-template-columns: 1fr; }
  .adv-card--wide { grid-column: auto; }

  .about-inner { min-height: 0; }
}

@media (max-width: 560px) {
  .brand { gap: 8px; }
  .brand-logo { height: 30px; }
  .brand-name { font-size: 16px; }
  .nav-links a { font-size: 14px; letter-spacing: 0.04em; }

  .adv-card { flex-direction: column; gap: 16px; }
  .adv-icon { width: 50px; height: 50px; border-radius: 14px; }
  .adv-icon svg { width: 26px; height: 26px; }

  .about-figure img { width: 92vw; }
}
