/* ============================================
   颐生活 ELIFE 官网 - 样式表
   设计令牌严格引用项目 VI（禁止引入令牌外色值）
   ============================================ */

:root {
  /* ---- 品牌 VI 令牌 ---- */
  --brand-green: #2D5A4D;        /* 颐青 - 主色 */
  --brand-green-deep: #1F4239;   /* 颐青深（主色派生，用于 hover / 遮罩） */
  --brand-green-light: #3E7263;  /* 颐青浅（主色派生） */
  --brand-gold: #D4AF37;         /* 暖金 - 辅助色 */
  --brand-cream: #F7F5F0;        /* 米白 - 背景 */
  --text-main: #333333;          /* 正文 */
  --text-sub: #666666;           /* 辅助文字 */
  --text-light: #999999;         /* 浅灰 */
  --white: #FFFFFF;
  --border-light: #E5E0D8;

  /* ---- 排版 ---- */
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --lh-body: 1.8;

  /* ---- 布局 ---- */
  --max-width: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 20px rgba(45, 90, 77, 0.08);
  --shadow-hover: 0 10px 32px rgba(45, 90, 77, 0.14);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================== Reset ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--text-main);
  background: var(--brand-cream);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ===================== 通用容器 ===================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== 顶部导航 ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-solid {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 16px rgba(45, 90, 77, .1);
  backdrop-filter: saturate(180%) blur(8px);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-green);
  letter-spacing: .5px;
  flex-shrink: 0;
}
.brand-en {
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-gold);
  letter-spacing: 2px;
}
.nav-menu { display: flex; gap: 4px; }
.nav-menu a {
  padding: 8px 14px;
  font-size: 16px;
  color: var(--text-main);
  border-radius: 8px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-menu a:hover { color: var(--brand-green); background: rgba(45, 90, 77, .06); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  transition: all .28s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-green);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--brand-green-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(45, 90, 77, .28);
}
.btn-outline {
  border: 2px solid rgba(255, 255, 255, .75);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--brand-green);
  transform: translateY(-2px);
}
.btn-sm { padding: 9px 18px; font-size: 15px; }

/* 汉堡菜单 */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 8px;
}
.menu-toggle svg { width: 26px; height: 26px; stroke: var(--brand-green); }

/* ===================== 首屏 Banner ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(31, 66, 57, .65) 0%, rgba(45, 90, 77, .52) 55%, rgba(62, 114, 99, .42) 100%),
    url('/site/img/hero-banner.jpg') center / cover no-repeat;
}
/* 金色几何装饰（置于右下角，避免遮挡人脸） */
.hero::after {
  content: "";
  position: absolute;
  right: -160px; bottom: -160px;
  width: 620px; height: 620px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, .22);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 120px 24px 80px;
  max-width: 900px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  margin-bottom: 28px;
  font-size: 14px;
  letter-spacing: 1px;
  border: 1px solid rgba(212, 175, 55, .5);
  border-radius: 999px;
  color: var(--brand-gold);
  background: rgba(212, 175, 55, .08);
}
.hero-title {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero-title .title-en { color: var(--brand-gold); }
.hero-subtitle {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 16px;
  opacity: .95;
}
.hero-slogan {
  font-size: 18px;
  letter-spacing: 1px;
  opacity: .82;
  margin-bottom: 44px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-actions .btn { min-width: 168px; padding: 15px 32px; font-size: 17px; }
.scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, .8);
  animation: float 2.4s var(--ease) infinite;
}
.scroll-hint svg { width: 32px; height: 32px; }
@keyframes float {
  0%, 100% { transform: translate(-50%, 0); opacity: .8; }
  50%      { transform: translate(-50%, 10px); opacity: 1; }
}

/* ===================== 区块通用 ===================== */
.section { padding: 100px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; margin-bottom: 60px; }
.section-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--brand-green);
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.section-desc {
  font-size: 17px;
  color: var(--text-sub);
  max-width: 640px;
  margin: 0 auto;
}
.title-underline {
  width: 56px; height: 3px;
  background: var(--brand-gold);
  margin: 18px auto 0;
  border-radius: 2px;
}

/* ===================== 关于我们 ===================== */
.about-intro {
  max-width: 860px;
  margin: 0 auto 48px;
  font-size: 17px;
  color: var(--text-sub);
  text-align: center;
}
.about-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}
.vision-card {
  padding: 28px 32px;
  background: var(--brand-cream);
  border-left: 4px solid var(--brand-gold);
  border-radius: var(--radius);
}
.vision-card h4 {
  font-size: 17px;
  color: var(--brand-green);
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.vision-card p { font-size: 16px; color: var(--text-sub); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  padding: 36px 28px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.value-icon {
  width: 60px; height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 90, 77, .08);
  border-radius: 50%;
}
.value-icon svg { width: 30px; height: 30px; stroke: var(--brand-green); }
.value-card h4 {
  font-size: 19px;
  color: var(--brand-green);
  margin-bottom: 10px;
}
.value-card p { font-size: 15px; color: var(--text-sub); }

/* ===================== 产品服务 ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-card {
  display: flex;
  gap: 22px;
  padding: 34px 30px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.service-icon {
  flex-shrink: 0;
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-light) 100%);
  border-radius: 16px;
}
.service-icon svg { width: 32px; height: 32px; stroke: var(--white); }
.service-body h3 {
  font-size: 21px;
  color: var(--brand-green);
  margin-bottom: 12px;
}
.service-body p { font-size: 15.5px; color: var(--text-sub); }

/* ===================== 平台优势 ===================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.advantage-item { text-align: center; }
.advantage-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-gold);
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.advantage-item h4 {
  font-size: 19px;
  color: var(--brand-green);
  margin-bottom: 10px;
  padding-bottom: 12px;
  position: relative;
}
.advantage-item h4::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 28px; height: 2px;
  background: var(--brand-gold);
  border-radius: 2px;
}
.advantage-item p { font-size: 15px; color: var(--text-sub); }

/* ===================== 加盟合作 ===================== */
.franchise-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}
.franchise-col h3 {
  font-size: 22px;
  color: var(--brand-green);
  margin-bottom: 28px;
  letter-spacing: 1px;
}
.timeline { position: relative; padding-left: 44px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 13px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-green) 0%, var(--brand-gold) 100%);
  border-radius: 2px;
}
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -44px; top: 4px;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-green);
  color: var(--white);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 0 0 4px var(--brand-cream);
}
.timeline-item h4 {
  font-size: 18px;
  color: var(--brand-green);
  margin-bottom: 6px;
}
.timeline-item p { font-size: 15px; color: var(--text-sub); }

.benefit-list { display: grid; gap: 16px; }
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  background: var(--brand-cream);
  border-radius: var(--radius);
  transition: transform .28s var(--ease);
}
.benefit-item:hover { transform: translateX(6px); }
.benefit-check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gold);
  border-radius: 50%;
}
.benefit-check svg { width: 16px; height: 16px; stroke: var(--white); }
.benefit-item p { font-size: 16px; color: var(--text-main); }
.franchise-cta { margin-top: 36px; text-align: center; }
.franchise-cta .btn { padding: 16px 44px; font-size: 17px; }

/* ===================== 联系我们 ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  padding: 40px 28px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.contact-icon {
  width: 58px; height: 58px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, .14);
  border-radius: 50%;
}
.contact-icon svg { width: 28px; height: 28px; stroke: var(--brand-green); }
.contact-card h4 {
  font-size: 17px;
  color: var(--brand-green);
  margin-bottom: 10px;
}
.contact-card p { font-size: 16px; color: var(--text-sub); word-break: break-all; }
.contact-placeholder { color: var(--text-light); font-size: 15px; }

/* ===================== 页脚 ===================== */
.site-footer {
  background: var(--brand-green-deep);
  color: rgba(255, 255, 255, .78);
  padding: 60px 0 0;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 44px;
}
.footer-col h5 {
  font-size: 16px;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: 1px;
  font-weight: 600;
}
.footer-company { font-size: 17px; color: var(--white); margin-bottom: 10px; }
.footer-col p { margin-bottom: 6px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { transition: color .25s var(--ease); }
.footer-links a:hover { color: var(--brand-gold); }
.beian-line { margin-bottom: 10px; }
.beian-line a { border-bottom: 1px solid transparent; transition: border-color .25s var(--ease); }
.beian-line a:hover { color: var(--brand-gold); border-bottom-color: var(--brand-gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0 26px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}

/* ===================== 滚动渐入动画 ===================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===================== 响应式 ===================== */
@media (max-width: 1024px) {
  .advantages-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .franchise-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  body { font-size: 16.5px; }
  .section { padding: 68px 0; }
  .section-title { font-size: 30px; }

  .header-inner { height: 62px; padding: 0 18px; }
  .menu-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 62px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(45, 90, 77, .14);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 14px 24px; font-size: 17px; border-radius: 0; }
  .header-cta { display: none; }

  .hero-title { font-size: 38px; letter-spacing: 2px; }
  .hero-subtitle { font-size: 19px; }
  .hero-slogan { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .about-vision { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-card { padding: 26px 22px; gap: 18px; }
  .advantages-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 32px; }
  .service-card { flex-direction: column; }
}

/* ===================== 无障碍 / 降级 ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint { animation: none; }
}
:focus-visible { outline: 2px solid var(--brand-gold); outline-offset: 3px; }
