/* ===== 四川偕乐养老服务有限公司 官网样式（适老化：大字号、高对比、少动效） ===== */
:root {
  --green: #0f9d58;
  --green-dark: #0b7d45;
  --green-soft: #eaf7f0;
  --orange: #e8842c;
  --ink: #1f2937;
  --ink-2: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f7faf8;
  --radius: 14px;
  --shadow: 0 6px 22px rgba(15, 68, 42, 0.08);
  --fs-body: 18px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 22px; border-radius: 999px; font-size: 16px; font-weight: 700;
  border: 2px solid transparent; cursor: pointer; transition: .18s; white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); text-decoration: none; }
.btn-outline { border-color: var(--green); color: var(--green-dark); background: #fff; }
.btn-outline:hover { background: var(--green-soft); text-decoration: none; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); text-decoration: none; }
.btn-lg { padding: 15px 32px; font-size: 18px; }
.btn-disabled { opacity: .6; cursor: not-allowed; }

/* ===== 导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.nav-inner { display: flex; align-items: center; gap: 22px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; } /* 完整显示商标，不裁切 */
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text b { font-size: 17px; letter-spacing: .5px; }
.brand-text i { font-size: 13px; color: rgba(255,255,255,.85); font-style: normal; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: #fff; font-size: 16px; opacity: .95; }
.nav-cta { display: flex; gap: 10px; margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }

/* ===== 首屏 ===== */
.hero {
  background:
    radial-gradient(1000px 420px at 12% -10%, #d9f2e4 0%, rgba(217,242,228,0) 62%),
    linear-gradient(180deg, #f4fbf7 0%, #ffffff 78%);
  padding: 56px 0 44px;
}
.hero-inner { max-width: 900px; }
.hero-tag {
  display: inline-block; margin: 0 0 14px; padding: 6px 16px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-dark); font-size: 15px; font-weight: 700;
}
.hero h1 { font-size: 46px; line-height: 1.32; margin: 0 0 18px; letter-spacing: 1px; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-desc { font-size: 19px; color: var(--ink-2); margin: 0 0 26px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats {
  list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px dashed #cfe6d9;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-size: 30px; color: var(--green-dark); line-height: 1.2; }
.hero-stats span { font-size: 15px; color: var(--muted); }

/* ===== 区块 ===== */
.sec { padding: 66px 0; }
.sec-alt { background: var(--bg-alt); }
.sec-head { text-align: center; margin-bottom: 34px; }
.sec-head h2 {
  font-size: 32px; margin: 0 0 8px; position: relative; display: inline-block; padding-bottom: 12px;
}
.sec-head h2::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 56px; height: 4px; border-radius: 4px; background: var(--green);
}
.sec-sub { margin: 0; color: var(--muted); font-size: 17px; }
.sec-note { margin: 22px 0 0; color: var(--muted); font-size: 15px; text-align: center; }

/* ===== 简介 ===== */
.intro-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px; align-items: start; }
.intro-text p { margin: 0 0 16px; color: var(--ink-2); }
.intro-text b { color: var(--ink); }
.intro-points { margin: 18px 0 0; padding: 18px 22px; background: var(--green-soft); border-radius: var(--radius); list-style: none; }
.intro-points li { margin: 6px 0; font-size: 16px; color: #29543d; }
.intro-media { margin: 0; }
.intro-media img { border-radius: var(--radius); box-shadow: var(--shadow); background: #eef2f0; min-height: 260px; object-fit: cover; }
.intro-media figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }

/* ===== 服务卡片 ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); transition: .2s;
}
.card:hover { transform: translateY(-3px); border-color: #bfe4d0; }
.card-ico { font-size: 34px; line-height: 1; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0 0 14px; color: var(--ink-2); font-size: 16px; }
.card-link { font-weight: 700; font-size: 16px; }

/* ===== 时间线（横向 S 曲线：曲线/圆点/卡片同一坐标系，严格对齐） ===== */
.tl-h {
  position: relative;
  width: 100%;
  height: 520px;              /* 桌面高度；直角坐标 1200x320 → 卡片百分比定位 */
  margin-top: 8px;
}
.tl-h-svg {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  /* preserveAspectRatio=none：曲线与圆点随容器同比拉伸，仍保持对齐 */
}
.tl-card {
  position: absolute;
  width: 26%;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 15px; box-shadow: var(--shadow);
}
/* 卡片位置 = 对应圆点 x/y 的百分比（圆点：200,130 / 600,210 / 1000,130；viewBox 1200x320） */
.tl-card--1 { left: 3.7%;  top: 47%; }   /* 200/1200=16.7% − 卡片半宽 13% */
.tl-card--2 { left: 37%;   top: 71%; }   /* 600/1200=50%   − 13% */
.tl-card--3 { left: 70.3%; top: 47%; }   /* 1000/1200=83.3% − 13% */
.tl-year {
  display: inline-block; font-size: 13px; font-weight: 800; color: var(--green-dark);
  background: var(--green-soft); padding: 2px 9px; border-radius: 999px; margin-bottom: 7px;
}
.tl-year--todo { color: #8a4b00; background: #fff3e0; }
/* 圆点 → 卡片 的连接短竖线（视觉串联） */
.tl-card::after {
  content: ''; position: absolute; left: 50%; top: -30px;
  width: 2px; height: 30px; background: #8ed0ad; transform: translateX(-50%);
}
.tl-card b { display: block; font-size: 15.5px; line-height: 1.5; margin-bottom: 5px; }
.tl-card p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); }

/* 移动端：纵向排列（曲线隐藏，改为左侧竖向虚线） */
@media (max-width: 980px) {
  .tl-h { height: auto; padding-left: 26px; }
  .tl-h-svg { display: none; }
  .tl-h::before {
    content: ''; position: absolute; left: 12px; top: 8px; bottom: 8px; width: 4px;
    background: repeating-linear-gradient(180deg, #8ed0ad 0 12px, transparent 12px 22px);
    border-radius: 4px;
  }
  .tl-card { position: relative; left: auto !important; top: auto !important; width: 100%; margin-bottom: 16px; }
  .tl-card::before {
    content: ''; position: absolute; left: -22px; top: 18px;
    width: 16px; height: 16px; border-radius: 50%; background: #fff;
    border: 4px solid var(--green);
  }
  .tl-card--3::before { border-color: var(--orange); }
  .tl-card::after { display: none; }
}

/* ===== 负责人 ===== */
.leader { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
.leader-photo { margin: 0; }
.leader-photo img { border-radius: var(--radius); box-shadow: var(--shadow); background: #eef2f0; min-height: 320px; object-fit: cover; }
.leader-photo figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.leader-info h3 { margin: 0 0 6px; font-size: 26px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge {
  font-size: 14px; font-weight: 700; color: #8a4b00; background: #fff3e0;
  border: 1px solid #ffd9a8; padding: 4px 12px; border-radius: 999px;
}
.leader-role { margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.leader-info p { color: var(--ink-2); }
.honor-list { margin: 16px 0 0; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); list-style: none; }
.honor-list li { font-size: 16px; margin: 5px 0; }

/* ===== 荣誉墙 ===== */
.honor-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.honor-item { margin: 0; }
.honor-item img { height: 200px; object-fit: cover; border-radius: var(--radius); background: #eef2f0; border: 1px solid var(--line); }
.honor-item figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }

/* ===== 平台 ===== */
.plat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.plat-card h3 { margin: 0 0 10px; font-size: 20px; color: var(--green-dark); }
.plat-card p { margin: 0 0 14px; color: var(--ink-2); font-size: 16px; }
.plat-tag {
  display: inline-block; font-size: 14px; color: var(--muted); border: 1px dashed var(--line);
  padding: 5px 12px; border-radius: 8px;
}
.plat-card--link { background: linear-gradient(180deg, #f2fbf6, #fff); border-color: #cfe6d9; }

/* ===== 联系 ===== */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.douyin-line { font-size: 17px; margin: 10px 0 4px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.contact-card h3 { margin: 0 0 12px; font-size: 20px; }
.big-num { font-size: 30px; font-weight: 800; margin: 0 0 6px; }
.big-num a { color: var(--green-dark); }
.muted { color: var(--muted); font-size: 16px; }
.qr-ph {
  height: 150px; display: flex; align-items: center; justify-content: center; margin: 12px 0;
  border: 2px dashed var(--line); border-radius: 12px; color: #9aa4b2; font-size: 15px; background: #fafcfb;
}
.contact-list { list-style: none; margin: 0 0 16px; padding: 0; }
.contact-list li { font-size: 16px; margin: 8px 0; color: var(--ink-2); }
.contact-list b { display: inline-block; min-width: 84px; color: var(--ink); }

/* ===== 页脚 ===== */
.foot { background: #14342a; color: #cfe3d8; padding: 40px 0 26px; font-size: 15px; }
.foot-inner { display: grid; gap: 22px; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 62px; height: 62px; object-fit: contain; }
.foot-brand b { color: #fff; font-size: 17px; }
.foot-brand p { margin: 2px 0 0; color: #a9c8b9; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { color: #cfe3d8; }
.foot-meta { border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; color: #a9c8b9; }
.foot-meta p { margin: 4px 0; }
.icp { color: #8fb3a3; }

/* ===== 回到顶部 ===== */
.to-top {
  position: fixed; right: 22px; bottom: 26px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: 0 6px 18px rgba(15,157,88,.4); z-index: 40;
}
.to-top:hover { background: var(--green-dark); text-decoration: none; }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .intro-grid, .leader, .cards, .plat-grid, .contact-grid, .honor-wall { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 38px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .leader { grid-template-columns: 240px 1fr; }
}
@media (max-width: 720px) {
  :root { --fs-body: 17px; }
  .nav-links {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--green-dark); padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 22px; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .hero h1 { font-size: 31px; }
  .hero-desc { font-size: 17px; }
  .cards, .plat-grid, .contact-grid, .honor-wall, .intro-grid { grid-template-columns: 1fr; }
  .leader { grid-template-columns: 1fr; }
  .leader-photo img { min-height: 220px; }
  .sec { padding: 48px 0; }
  .sec-head h2 { font-size: 26px; }
}

/* 抖音关注卡片：按钮组 */
.douyin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.douyin-actions .btn { font-size: 15px; padding: 9px 16px; }

/* ===== 图片防拖拽 / 防长按保存（提高门槛，非绝对防护）===== */
img {
  -webkit-user-drag: none;      /* Chrome/Safari 禁拖拽 */
  -khtml-user-drag: none;
  -moz-user-drag: none;
  user-select: none;            /* 禁选中 */
  -webkit-user-select: none;
  -webkit-touch-callout: none;  /* iOS 长按不弹"存储图像"菜单 */
  pointer-events: auto;         /* 保持可点击（不影响交互） */
}
.photos img, .honor-item img, .leader-photo img { -webkit-touch-callout: none; }
