/* ============================================================
   孝亲居家养老服务 · 官网设计稿（v2）
   风格：绿色健康养老主调 + 大图轮播 + 大气官网版式
   参考：中国康养集团官网风格
   ============================================================ */
:root {
  --green: #1F7A4D;          /* 主绿 */
  --green-dark: #145A37;     /* 深绿 */
  --green-deep: #0E3D24;     /* 页脚深绿 */
  --green-light: #E7F3EC;    /* 浅绿底 */
  --green-soft: #F3F9F5;     /* 极浅绿 */
  --orange: #E67E22;         /* 养老橙（点缀） */
  --orange-soft: #FCEFE1;
  --ink: #24342C;            /* 正文深色 */
  --text: #4A5B52;           /* 次要文字 */
  --line: #E3EDE7;           /* 分隔线 */
  --white: #fff;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(20,90,55,.08);
  --shadow-hover: 0 14px 40px rgba(20,90,55,.16);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============ 顶部导航 ============ */
.site-header {
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(20,90,55,.05);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; box-shadow: 0 4px 14px rgba(31,122,77,.25);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-size: 20px; font-weight: 700; color: var(--green-dark); letter-spacing: .5px; }
.logo-sub { font-size: 11px; color: var(--text); letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 10px 18px; font-size: 16px; color: var(--text);
  border-radius: 8px; transition: all .2s; font-weight: 500;
}
.nav-links a:hover { color: var(--green); background: var(--green-soft); }
.nav-links a.active { color: var(--green); background: var(--green-soft); font-weight: 700; }
.nav-cta {
  margin-left: 10px; background: var(--green); color: #fff !important;
  padding: 11px 22px !important; border-radius: 8px; font-weight: 600;
}
.nav-cta:hover { background: var(--green-dark); }

/* ============ 首页大图轮播 ============ */
.banner { position: relative; height: 540px; overflow: hidden; }
.banner-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease;
  background-size: cover; background-position: center;
}
.banner-slide.active { opacity: 1; }
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,42,26,.78) 0%, rgba(10,42,26,.45) 42%, rgba(10,42,26,.05) 70%);
}
.banner-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
}
.banner-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; letter-spacing: 3px; color: #BDE8CE; margin-bottom: 18px;
}
.banner-kicker::before { content: ""; width: 36px; height: 2px; background: var(--orange); }
.banner h1 { font-size: 52px; color: #fff; font-weight: 800; letter-spacing: 1px; line-height: 1.25; }
.banner h1 span { color: var(--orange); }
.banner-sub { font-size: 20px; color: rgba(255,255,255,.92); margin-top: 16px; font-weight: 500; }
.banner-desc { font-size: 16px; color: rgba(255,255,255,.78); margin-top: 12px; max-width: 620px; }
.banner-actions { display: flex; gap: 16px; margin-top: 34px; }
.banner-dots {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 10px;
}
.banner-dots button {
  width: 12px; height: 12px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.5); transition: all .25s;
}
.banner-dots button.active { width: 30px; border-radius: 8px; background: #fff; }
.banner-prev, .banner-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.12); color: #fff; font-size: 20px; cursor: pointer;
  transition: all .2s; display: flex; align-items: center; justify-content: center;
}
.banner-prev { left: 24px; }
.banner-next { right: 24px; }
.banner-prev:hover, .banner-next:hover { background: var(--green); border-color: var(--green); }

/* ============ 通用按钮 ============ */
.btn { display: inline-block; padding: 14px 34px; border-radius: 10px; font-size: 16px; font-weight: 600; transition: all .25s; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(230,126,34,.3); }
.btn-primary:hover { background: #d4711a; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--green-dark); }
.btn-white:hover { background: var(--green-light); }
.btn-outline-green { border: 2px solid var(--green); color: var(--green); background: transparent; }
.btn-outline-green:hover { background: var(--green); color: #fff; }
.btn-lg { padding: 17px 46px; font-size: 17px; }
.btn-center { text-align: center; }

/* ============ 通用区块 ============ */
.section { padding: 80px 0; }
.section-soft { background: var(--green-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 3px; color: var(--green);
  font-weight: 600; margin-bottom: 12px;
}
.section-head .eyebrow::after { content: ""; display: block; width: 40px; height: 3px; background: var(--orange); margin: 10px auto 0; border-radius: 2px; }
.section-title { font-size: 34px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.section-desc { font-size: 16px; color: var(--text); margin-top: 14px; }

/* ============ 首页：公司简介 ============ */
.about-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.about-intro .intro-img { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); height: 420px; }
.about-intro .intro-img img { width: 100%; height: 100%; object-fit: cover; }
.intro-tag { color: var(--orange); font-weight: 700; letter-spacing: 2px; font-size: 14px; margin-bottom: 14px; }
.intro-tag::before { content: "◆ "; }
.about-intro h3 { font-size: 30px; font-weight: 800; color: var(--ink); margin-bottom: 18px; line-height: 1.35; }
.about-intro p { color: var(--text); font-size: 16px; margin-bottom: 16px; }
.intro-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.intro-points li { list-style: none; display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink); background: var(--green-soft); border-radius: 10px; padding: 13px 15px; }
.intro-points li::before { content: "✓"; color: var(--green); font-weight: 800; flex-shrink: 0; }

/* ============ 首页：精选服务 ============ */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.service-card .sc-img { height: 220px; overflow: hidden; }
.service-card .sc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .sc-img img { transform: scale(1.06); }
.service-card .sc-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.service-card p { color: var(--text); font-size: 15px; flex: 1; }
.service-card .sc-more { color: var(--green); font-weight: 600; font-size: 14px; margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; }
.service-card .sc-more::after { content: "→"; transition: transform .2s; }
.service-card:hover .sc-more::after { transform: translateX(4px); }

/* ============ 首页：服务流程 ============ */
.flow { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 900px; margin: 0 auto; flex-wrap: wrap; }
.flow-step { text-align: center; flex: 1; min-width: 150px; }
.flow-ico {
  width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 20px;
  background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(31,122,77,.25);
}
.flow-step h4 { font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.flow-step p { color: var(--text); font-size: 14px; }
.flow-line { color: var(--line); font-size: 30px; font-weight: 300; }

/* ============ 首页：资讯动态 ============ */
.news-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.news-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px 32px; box-shadow: var(--shadow); }
.news-panel h3 { font-size: 21px; font-weight: 800; display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.news-panel h3 a { font-size: 13px; color: var(--green); font-weight: 500; }
.news-list { margin-top: 14px; }
.news-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.news-item:last-child { border-bottom: none; }
.news-item a { font-size: 15px; color: var(--ink); transition: color .2s; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 16px; }
.news-item a:hover { color: var(--green); }
.news-item span { font-size: 13px; color: #94A79B; flex-shrink: 0; }
.news-feature { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.news-feature:last-child { border-bottom: none; }
.news-feature .nf-img { width: 200px; height: 120px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.news-feature .nf-img img { width: 100%; height: 100%; object-fit: cover; }
.news-feature h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; line-height: 1.5; }
.news-feature h4 a:hover { color: var(--green); }
.news-feature p { font-size: 13px; color: var(--text); }

/* ============ 首页 CTA 横幅 ============ */
.cta-band {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  border-radius: 20px; padding: 60px 56px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h3 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 16px; }

/* ============ 内页横幅 ============ */
.page-hero { position: relative; height: 260px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(14,61,36,.88), rgba(31,122,77,.72)); }
.page-hero .ph-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: 38px; font-weight: 800; letter-spacing: 1px; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 17px; margin-top: 10px; }
.crumb { font-size: 14px; color: var(--text); padding: 20px 0; }
.crumb a { color: var(--green); }
.crumb a:hover { text-decoration: underline; }

/* ============ 关于页 ============ */
.about-detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: start; }
.about-detail h3 { font-size: 26px; font-weight: 800; margin-bottom: 18px; padding-left: 16px; border-left: 5px solid var(--orange); line-height: 1.4; }
.about-detail .text { font-size: 16px; color: var(--text); margin-bottom: 16px; }
.features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.features li { background: var(--green-soft); border-radius: 12px; padding: 15px 18px; font-size: 15px; color: var(--ink); }
.features li::before { content: "✓ "; color: var(--green); font-weight: 800; }
.info-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.info-table th, .info-table td { padding: 15px 20px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; }
.info-table th { width: 130px; color: var(--green); font-weight: 600; background: var(--green-soft); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }

/* 服务理念卡片 */
.value-card { text-align: center; padding: 36px 26px; }
.value-card .vc-ico {
  width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center;
}
.value-card h3 { font-size: 19px; margin-bottom: 10px; }
.value-card p { color: var(--text); font-size: 15px; }

/* ============ 服务页 ============ */
.group-head { display: flex; align-items: center; gap: 14px; margin: 52px 0 26px; }
.group-head .gh-bar { width: 6px; height: 30px; border-radius: 3px; background: linear-gradient(var(--green), var(--orange)); }
.group-head h2 { font-size: 26px; font-weight: 800; color: var(--ink); }
.group-head span { color: var(--text); font-size: 15px; }
.group-head:first-child { margin-top: 0; }
.service-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; box-shadow: var(--shadow); transition: all .25s; position: relative; overflow: hidden; }
.svc-card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--orange); transition: width .3s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.svc-card:hover::before { width: 100%; }
.svc-card .svc-ico { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; background: var(--green-soft); }
.svc-card h3 { font-size: 17px; margin: 14px 0 8px; color: var(--ink); }
.svc-card p { color: var(--text); font-size: 14px; }
.svc-card .svc-tag { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--orange); font-weight: 700; background: var(--orange-soft); padding: 4px 12px; border-radius: 20px; }

/* ============ 联系页 ============ */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px 26px; text-align: center; box-shadow: var(--shadow); transition: transform .25s; }
.contact-box:hover { transform: translateY(-4px); }
.contact-box .ci {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 16px;
  background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center;
}
.contact-box h3 { font-size: 18px; margin-bottom: 10px; }
.contact-box p { color: var(--text); font-size: 15px; }
.contact-box .c-big { font-size: 24px; color: var(--green); font-weight: 800; }
.qr-box { border: 1px solid var(--line); border-radius: 12px; background: var(--green-soft); }
.qr { width: 168px; height: 168px; margin: 14px auto 0; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #A9B8AE; font-size: 14px; }
.service-zone { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.zone-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.zone-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--ink); }
.zone-card p { color: var(--text); font-size: 15px; }

/* ============ 页脚 ============ */
.site-footer { background: var(--green-deep); color: #CBE0D2; padding: 56px 0 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid h4 { color: #fff; font-size: 17px; margin-bottom: 16px; font-weight: 700; }
.footer-grid a { display: block; color: #BFD8C8; font-size: 15px; margin-bottom: 9px; transition: color .2s; }
.footer-grid a:hover { color: #fff; }
.footer-brand .logo-mark { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: #A8C4B2; margin-bottom: 6px; }
.footer-brand .f-phone { font-size: 22px; color: #fff; font-weight: 700; margin-top: 12px; }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #8FA99B; }

/* ============ 响应式 ============ */
@media (max-width: 992px) {
  .service-grid, .service-grid-4, .contact-grid, .service-zone { grid-template-columns: repeat(2, 1fr); }
  .about-intro { grid-template-columns: 1fr; gap: 36px; }
  .about-detail { grid-template-columns: 1fr; gap: 30px; }
  .news-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .banner { height: 440px; }
  .banner h1 { font-size: 40px; }
}
@media (max-width: 640px) {
  .nav { height: 64px; }
  .nav-links { display: none; }
  .service-grid, .service-grid-4, .contact-grid, .service-zone { grid-template-columns: 1fr; }
  .banner { height: 380px; }
  .banner h1 { font-size: 32px; }
  .banner-actions { flex-wrap: wrap; }
  .cta-band { padding: 40px 26px; }
  .flow { flex-direction: column; }
  .flow-line { transform: rotate(90deg); }
  .news-feature { flex-direction: column; }
  .news-feature .nf-img { width: 100%; }
  .about-intro .intro-img { height: 300px; }
}

/* ===== 发布版新增：LOGO 图片与二维码 ===== */
img.logo-mark { padding: 0; object-fit: cover; }
img.qr { object-fit: cover; background: #fff; }
.footer-qr { width: 132px; height: 132px; margin-top: 12px; border-radius: 10px; background: #fff; padding: 5px; object-fit: cover; }
/* ===== 发布版新增：服务卡片跳转小程序 ===== */
a.svc-card { display: block; text-decoration: none; color: inherit; }
a.svc-card:hover { color: inherit; }
.svc-card[data-wxlink], .service-card[data-wxlink] { cursor: pointer; }
.wx-mask { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(12,32,22,.55); display: none; align-items: center; justify-content: center; z-index: 999; padding: 20px; }
.wx-mask.show { display: flex; }
.wx-dialog { position: relative; background: #fff; border-radius: 18px; padding: 28px 26px 24px; width: 340px; max-width: 100%; text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.wx-close { position: absolute; right: 12px; top: 8px; border: none; background: transparent; font-size: 26px; line-height: 1; color: #98A79E; cursor: pointer; }
.wx-dialog h4 { font-size: 18px; color: var(--ink); margin-bottom: 14px; }
.wx-qr { width: 200px; height: 200px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.wx-tip { font-size: 13px; color: var(--text); margin: 12px 0 10px; }
.wx-link-row { display: flex; gap: 8px; }
.wx-link { flex: 1; min-width: 0; font-size: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #F7FAF8; }
.wx-copy { border: none; background: var(--green); color: #fff; font-size: 13px; padding: 0 14px; border-radius: 8px; cursor: pointer; }
.wx-open { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--green); }