/* ============================================================
   驿家生活 · 官网原型样式
   设计基调：简洁大气 · 绿色生活风 · 留白充足
   配色（对齐品牌）：主绿 #16A34A / 辅黄绿 #84CC16 /
   浅绿白底 #F7FBF5 / 暖橙 #EA580C（极少量强调）
   ============================================================ */

:root {
  --green: #16A34A;
  --green-deep: #0F7A3D;
  --green-soft: #E8F6EE;
  --lime: #84CC16;
  --orange: #EA580C;
  --bg: #F7FBF5;
  --ink: #15241C;
  --ink-2: #4A5568;
  --ink-3: #8A958C;
  --white: #ffffff;
  --radius: 18px;
  --maxw: 1120px;
  --shadow: 0 10px 30px rgba(20, 60, 40, 0.08);
  --shadow-sm: 0 4px 16px rgba(20, 60, 40, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.br-m { display: none; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(20, 60, 40, 0.08);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.nav:not(.is-scrolled) .brand { color: var(--white); }
.brand__mark {
  display: block;
  width: 40px; height: 40px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(10, 60, 35, .20);
}
/* 深绿首屏上仅保留柔和投影，不加白边 */
.nav:not(.is-scrolled) .brand__mark {
  box-shadow: 0 4px 12px rgba(0, 0, 0, .20);
}
.brand__name { font-size: 19px; font-weight: 700; letter-spacing: .5px; }
.brand__name--light { color: var(--white); font-size: 22px; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  font-size: 15px; color: rgba(255,255,255,.92); font-weight: 500;
  transition: color .2s;
}
.nav.is-scrolled .nav__links a { color: var(--ink-2); }
.nav__links a:hover { color: var(--green); }
.nav__cta {
  padding: 9px 18px; border-radius: 999px;
  background: var(--green); color: #fff !important; font-weight: 600;
}
.nav__cta:hover { background: var(--green-deep); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2px; background: var(--white); border-radius: 2px;
  transition: .25s;
}
.nav.is-scrolled .nav__toggle span { background: var(--ink); }
.nav__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-active span:nth-child(2) { opacity: 0; }
.nav__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(132,204,22,.45), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(15,122,61,.55), transparent 55%),
    linear-gradient(135deg, #0F7A3D 0%, #16A34A 55%, #2E9E5B 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.10) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.08) 0 2px, transparent 3px);
  background-size: 180px 180px, 240px 240px;
  opacity: .6;
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  text-align: center;
}
.hero__badge {
  display: inline-block; padding: 7px 16px; margin-bottom: 26px;
  border: 1px solid rgba(255,255,255,.45); border-radius: 999px;
  font-size: 14px; letter-spacing: 1px; color: rgba(255,255,255,.95);
}
.hero__title {
  font-size: clamp(40px, 7vw, 76px); line-height: 1.1;
  font-weight: 800; margin: 0 0 22px; letter-spacing: 1px;
}
.hero__title .accent { color: #D7F56A; }
.hero__subtitle {
  font-size: clamp(16px, 2.2vw, 21px); line-height: 1.8;
  color: rgba(255,255,255,.92); font-weight: 400; margin: 0 auto 38px;
  max-width: 760px;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 1; color: rgba(255,255,255,.8);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px; border-radius: 999px; font-size: 16px; font-weight: 600;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  cursor: pointer; border: 1.5px solid transparent;
}
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(22,163,74,.28); }
.btn--primary:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.section--stations .btn--primary,
.footer .btn--primary { box-shadow: 0 8px 20px rgba(22,163,74,.22); }

/* ---------- 通用 section ---------- */
.section { padding: 96px 0; }
.eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: 2px;
  color: var(--green); margin: 0 0 14px; text-transform: none;
}
.eyebrow--light { color: #C7F08A; }
.section__title {
  font-size: clamp(28px, 4.4vw, 46px); line-height: 1.25; font-weight: 800;
  margin: 0 0 20px; letter-spacing: .5px;
}
.section__lead {
  font-size: clamp(16px, 2vw, 19px); color: var(--ink-2);
  max-width: 760px; margin: 0 auto 56px;
}
.section__lead--light { color: rgba(255,255,255,.9); }

/* ---------- 关于：三方合力 ---------- */
.section--about { background: var(--bg); }
.triad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.triad__item {
  background: #fff; border-radius: var(--radius); padding: 36px 30px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(22,163,74,.08);
  text-align: center; transition: transform .2s, box-shadow .2s;
}
.triad__item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.triad__icon {
  display: inline-grid; place-items: center; width: 64px; height: 64px;
  border-radius: 16px; background: var(--green-soft); color: var(--green);
  margin-bottom: 18px;
}
.triad__item h3 { font-size: 21px; margin: 0 0 10px; }
.triad__item p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* ---------- 为居民 ---------- */
.section--residents {
  background: linear-gradient(135deg, #0F7A3D 0%, #16A34A 60%, #1E9E5B 100%);
  color: #fff;
}
.section--residents .section__title--light { color: #fff; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius); padding: 34px 28px; backdrop-filter: blur(4px);
  transition: transform .2s, background .2s;
}
.card:hover { transform: translateY(-6px); background: rgba(255,255,255,.16); }
.card__icon {
  display: inline-grid; place-items: center; width: 58px; height: 58px;
  border-radius: 14px; background: rgba(255,255,255,.18); color: #EAFBD2;
  margin-bottom: 16px;
}
.card h3 { font-size: 20px; margin: 0 0 10px; }
.card p { color: rgba(255,255,255,.88); font-size: 15px; margin: 0; }

.promise {
  margin-top: 56px; text-align: center;
}
.promise__label {
  display: inline-block; font-size: 14px; letter-spacing: 2px; font-weight: 700;
  color: #D7F56A; margin-bottom: 22px;
}
.promise__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
}
.promise__list li {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px; padding: 18px 26px; min-width: 180px;
}
.promise__list strong { display: block; font-size: 19px; margin-bottom: 4px; }
.promise__list span { color: rgba(255,255,255,.82); font-size: 14px; }

/* ---------- 为驿站 ---------- */
.section--stations { background: #fff; }
.stations__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.stations__lines { display: flex; flex-direction: column; gap: 18px; }
.line {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--green-soft); border-radius: 14px; padding: 22px 24px;
}
.line__tag {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 999px;
  background: var(--green); color: #fff; font-weight: 700; font-size: 15px;
}
.line p { margin: 0; color: var(--ink-2); font-size: 15px; }

.stations__back {
  background: var(--bg); border-radius: var(--radius); padding: 34px 32px;
  box-shadow: var(--shadow-sm);
}
.stations__back h3 { font-size: 22px; margin: 0 0 18px; }
.stations__back ul { list-style: none; padding: 0; margin: 0 0 20px; }
.stations__back li {
  display: flex; gap: 12px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px dashed rgba(22,163,74,.18);
  color: var(--ink-2); font-size: 15px;
}
.stations__back li span {
  flex: 0 0 70px; font-weight: 700; color: var(--green);
}
.stations__note { color: var(--ink-2); font-size: 14px; margin: 0 0 22px; }

/* ---------- 品牌故事 ---------- */
.section--story { background: var(--bg); }
.story { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.story__media {
  background: linear-gradient(160deg, #16A34A, #0F7A3D);
  border-radius: 24px; padding: 40px 28px; color: #fff; text-align: center;
  box-shadow: var(--shadow);
}
.story__avatar {
  display: inline-grid; place-items: center; width: 96px; height: 96px;
  border-radius: 50%; background: rgba(255,255,255,.16); color: #EAFBD2;
  margin-bottom: 18px;
}
.story__name { display: block; font-size: 26px; font-weight: 800; }
.story__role { display: block; font-size: 13px; color: rgba(255,255,255,.82); margin-top: 6px; }
.story__body .section__title { margin-top: 6px; }
.story__quote {
  font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: var(--green-deep);
  margin: 6px 0 22px; padding-left: 18px; border-left: 4px solid var(--lime);
}
.story__body p { color: var(--ink-2); font-size: 16px; margin: 0 0 16px; }
.story__motto { color: var(--green) !important; font-weight: 700; font-size: 18px !important; }
.story__warm {
  margin-top: 28px; padding: 24px 26px;
  background: var(--green-tint); border-radius: 16px;
  border: 1px solid rgba(22,163,74,.12);
}
.story__warmlead { color: var(--green) !important; font-weight: 700; font-size: 17px !important; margin: 0 0 12px !important; }
.story__warm p { color: var(--ink-2); font-size: 15.5px; line-height: 1.9; margin: 0 0 12px; }
.story__warm p:last-child { margin-bottom: 0; }

/* ---------- 页脚 ---------- */
.footer { background: #0F2A1C; color: rgba(255,255,255,.86); padding: 72px 0 0; }
.footer__inner {
  display: grid; grid-template-columns: 1.2fr .9fr 1fr; gap: 40px;
  padding-bottom: 48px;
}
.footer__slogan { font-size: 20px; font-weight: 700; color: #fff; margin: 14px 0 10px; }
.footer__brandrow { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.footer__logo { display: block; width: 44px; height: 44px; border-radius: 11px; }
.footer__desc { color: rgba(255,255,255,.7); font-size: 15px; max-width: 420px; margin: 0; }
.footer__contact h4 { font-size: 18px; color: #fff; margin: 0 0 14px; }
.footer__contact p { margin: 0 0 10px; font-size: 15px; color: rgba(255,255,255,.78); }
.footer__placeholder { color: rgba(255,255,255,.5) !important; font-size: 13px !important; }
.footer__contact .btn { margin-top: 12px; }
.footer__qr h4 { font-size: 18px; color: #fff; margin: 0 0 14px; }
.footer__qrrow { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__qritem { margin: 0; text-align: center; }
.footer__qritem img {
  display: block; width: 112px; height: 112px; padding: 8px;
  background: #fff; border-radius: 12px; object-fit: contain;
}
.footer__qritem figcaption { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.7); }
.footer__bar {
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 20px 24px; font-size: 13px; color: rgba(255,255,255,.5);
  max-width: var(--maxw); margin: 0 auto;
}
.footer__bar a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer__bar a:hover { color: #fff; text-decoration: underline; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .nav__links {
    position: absolute; top: 70px; right: 16px; left: 16px;
    flex-direction: column; gap: 6px; align-items: stretch;
    background: #fff; border-radius: 16px; padding: 14px;
    box-shadow: var(--shadow); display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { color: var(--ink-2) !important; padding: 10px 12px; border-radius: 10px; }
  .nav__cta { text-align: center; }
  .nav__toggle { display: flex; }

  .triad, .cards { grid-template-columns: 1fr; }
  .stations__grid { grid-template-columns: 1fr; gap: 28px; }
  .story { grid-template-columns: 1fr; gap: 32px; }
  .story__media { max-width: 340px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 72px 0; }
  .br-m { display: inline; }
}
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; }
  .promise__list li { min-width: 0; width: 100%; }
}
