/* ==========================================================
   麒麟港生活 - 高端安居 life.html 专用样式
   金色：#a8814a ｜ 浅金：#cfba9b ｜ 藏青：#112443
   PC + H5 自适应
   ========================================================== */

:root {
  --gold: #9d7736;          /* 主金 */
  --gold-light: #cfba9b;    /* 浅金 */
  --gold-deep: #9e7935;
  --navy: #4a433d;
  /* 思源宋体（大标题用）：Times New Roman → 华文宋体 → 宋体 → 新宋体 → 系统中文兜底 */
  --song-font: "Times New Roman", "STSong", "SimSun", "NSimSun", var(--cn-font);
}

/* ==========================================================
   P1：左文右图
   ========================================================== */
.life-p1 {
  display: flex;
  align-items: stretch;
  margin-top: 88px;            /* 让开固定头部 */
  min-height: 520px;
  background: #fbf9f4;
}
.lp1-text {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 70px 60px 70px 8%;
}
.lp1-tag {
  color: var(--gold);
  font-family: var(--title-font);
  font-size: 15px; letter-spacing: 4px;
  margin-bottom: 22px;
}
.lp1-title {
  font-family: var(--song-font);
  font-size: 44px; line-height: 1.38; font-weight: 600;
  color: var(--navy);
}
.lp1-title .gd { color: var(--gold); }
.lp1-desc {
  margin-top: 24px; max-width: 470px;
  font-size: 16px; line-height: 1.8; color: #5a5f66;
}
/* 按钮：参照 identity.html 的 idb-btn 渐变样式 */
.life-btn {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  margin-top: 38px;
  background: linear-gradient(100deg, #cfb791, #f0e4ca 55%, #cfb791);
  color: #4a4339;
  font-size: 16px; font-weight: 700; letter-spacing: 3px;
  padding: 14px 34px; border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(0,0,0,.08);
  transition: filter .25s ease, transform .25s ease;
}
.life-btn i { font-style: normal; display: inline-block; transition: transform .3s ease; }
.life-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
.life-btn:hover i { transform: translateX(6px); }     /* 箭头向右滑动 */

.lp1-img { flex: 1.05; position: relative; overflow: hidden; }
.lp1-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================
   P2：Why Us（深蓝照片背景 + 三卡）
   ========================================================== */
.life-p2 {
  position: relative;
  padding: 90px 0 100px;
  background:  url("../images/sub/life/bg1.jpg") center / cover no-repeat;
}
.life-p2::before {
  content: ""; position: absolute; inset: 0;
}
.life-p2 .container { position: relative; z-index: 2; }
.p2-head { text-align: center; margin-bottom: 26px; }
.p2-head h2 { font-family: var(--song-font); font-size: 40px; font-weight: 400; line-height: 1.4; color: #4a433d; margin: 0; }
.p2-head p { color: #4a433d; font-size: 16px; margin-top: 1px; letter-spacing: 1px; }
.p2-q {
  text-align: center; color: #4a433d;
  font-family: var(--song-font); font-size: 40px; line-height: 1.3; font-weight: 600;
  margin-bottom: 66px; margin-top: 40px; 
}
.p2-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 80px; 
  max-width: 1100px; margin: 0 auto;
}
.p2-card {
  position: relative;
  background: #fff;
  border: 1px solid #dab88b;
  border-radius: 12px; padding: 52px 20px 30px; text-align: center;
}
.p2-check {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-deep);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.p2-check svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.p2-card h4 { color: var(--gold); font-size: 22px; font-weight: 700; }
.p2-line { display: block; width: 60%; height: 1px; background: var(--gold-light); margin: 14px auto; }
.p2-card p { color: #4a4339; font-size: 15px; line-height: 1.7; }

/* ==========================================================
   P3：Living Services（8 张图标卡）
   ========================================================== */
.life-p3 { background: #eee8dc; padding: 90px 0 100px; }
.p3-head { text-align: center; margin-bottom: 44px; }
.p3-head h2 { font-family: var(--song-font); font-size: 40px; font-weight: 400; line-height: 1.4; color: var(--navy); margin: 0; }
.p3-head p { color: #6b6f76; font-size: 15px; margin-top: 8px; letter-spacing: 1px; }
.p3-head h3 { font-family: var(--song-font); font-size: 40px; color: var(--navy); margin-top: 30px; letter-spacing: 3px; font-weight: 800; }
.p3-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  max-width: 1180px; margin: 0 auto;
}
.p3-card {
  background: #f8f4eb; border: 1px solid #c6ae88; border-radius: 10px;
  padding: 38px 20px; text-align: center;
}
.p3-icon { display: inline-flex; margin-bottom: 18px; }
.p3-icon img { width: 48px; height: 48px; object-fit: contain; }
.p3-card h4 { color: var(--navy); font-size: 19px; font-weight: 700; }
.p3-card .en { color: var(--navy); font-size: 8px; letter-spacing: 2px; margin-top: 20px; font-family: var(--title-font); }

/* ==========================================================
   P4：72 小時無縫落地（切圖曲線 line.png，Day 標籤已烤入圖片） 
   ========================================================== */
.life-p4 {
  background:  url("../images/sub/life/bg2.jpg") center / cover no-repeat;
  padding: 60px 0 0;
}
.p4-head { text-align: center; margin-bottom: 42px; }
.p4-head h2 { font-family: var(--song-font); font-size: 38px; font-weight: 400; line-height: 1.4; letter-spacing: 4px; color: #49423a; margin: 0; }
.p4-head p { color: #49423a; font-size: 15px; margin-top: 8px; }
.p4-head h3.gd { font-family: var(--song-font); font-size: 36px; font-weight: 800; letter-spacing: 2px; color: #49423a; margin-top: 40px; }

.p4-timeline {
  position: relative;
  max-width: 620px;
  height: 645px;          /* 与 line.png(300px 宽) 等比高度 */
  margin: 0 auto;
}
.p4-line {
  position: absolute;
  left: 30px; top: 0;
  width: 240px; height: auto;
  z-index: 1;
}
/* 文字块：位于曲线图右侧、每个圆点旁 */
.p4-node { position: absolute; z-index: 3; transform: translateY(-50%); }
.p4-node.n1 { top: 10.3%; left: 300px; }
.p4-node.n2 { top: 39.4%; left: 300px; }
.p4-node.n3 { top: 64.5%; left: 300px; }
.p4-body { max-width: 380px; }
.p4-body h4 { color: #9e7837; font-size: 22px; font-weight: 600; margin: 0 0 1px; }
.p4-body p { color: #49423a; font-size: 15px; line-height: 1.4; margin: 0; }

/* ==========================================================
   P5：麒麟資深規劃團隊（复用 business 结构，样式独立写入本文件）
   ========================================================== */
.life-p5 { background: #f5f2ed; padding: 90px 0 100px; }
/* The Experts 引言 + 團隊標題 */
.p5-intro { text-align: center; margin-bottom: 54px; }
.p5-intro .en { font-family: var(--title-font); font-size: 40px; font-weight: 700; letter-spacing: 3px; color: var(--navy); margin: 0; }
.p5-intro .sub { margin-top: 0px; font-size: 15px; letter-spacing: 2px; color: var(--navy); }
.p5-team-head { text-align: center; margin: 76px 0 12px; }
.p5-team-head h2 { font-family: var(--song-font); font-size: 32px; font-weight: 600; letter-spacing: 3px; color: #9e7837; margin: 0; }

/* 麒麟資深規劃團隊：直接参照 identity.html 的 exp-card 样式 */
.exp-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 52px 72px; max-width: 880px; margin: 48px auto 0;
}
.exp-pic {
  position: relative; aspect-ratio: 1 / 1.05;
  background: #d9d9d9; overflow: hidden; border-radius: 10px;
}
.exp-pic img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease;
}
.exp-card:hover .exp-pic img { transform: scale(1.06); }
.exp-shade {
  position: absolute; left: 0; right: 0; bottom: 0;
  aspect-ratio: 928 / 157; pointer-events: none;
  background: url("../images/sub/identity/sbg.png") bottom center / 100% 100% no-repeat;
}
.exp-name {
  margin-top: 12px;
  font-family: var(--title-font); font-size: 25px; letter-spacing: 1px;
  color: var(--gold-deep); line-height: 1.2;
}
.exp-role { margin-top: 2px; font-size: 15px; font-weight: 600; color: var(--navy); }

/* ==========================================================
   護航紀實（3 列圖片 + 數字 + 文字）
   ========================================================== */
.life-hr {  padding: 72px 0 56px; }
.hr-head { text-align: center; margin-bottom: 44px; }
.hr-head h3 {
  font-family: var(--song-font); font-size: 30px; font-weight: 600; letter-spacing: 4px;
  color: var(--navy); margin: 0;
}
.hr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1000px; margin: 0 auto; }
.hr-card { overflow: hidden; }
.hr-pic {  overflow: hidden; }
.hr-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.hr-card:hover .hr-pic img { transform: scale(1.06); }
.hr-body { padding: 26px 24px 30px; text-align: center; }
.hr-num { display: flex; align-items: baseline; justify-content: center; gap: 5px; color: var(--gold-deep); margin: 0 0 12px; }
.hr-num span { font-size: 42px; font-weight: 700; line-height: 1; }
.hr-num em { font-size: 16px; font-style: normal; font-weight: 600; }
.hr-card h4 { color: var(--navy); font-size: 19px; font-weight: 700; margin: 0 0 6px; }
.hr-card .hr-sub { color: #6b6f76; font-size: 14px; line-height: 1.7; margin: 0; }

/* ==========================================================
   深藍背景：嚴格保密的專家顧問團（複用 business exp-panel 結構）
   ========================================================== */
.life-panel {
  max-width: 1000px; margin: 48px auto 0; padding: 52px 48px 48px;
  background: var(--navy); border-radius: 16px; text-align: center;
}
.life-panel h3 {
  font-family: var(--song-font); font-size: 26px; font-weight: 600; letter-spacing: 3px;
  color: var(--gold-light); margin: 0;
}
.life-panel .ep-desc {
  max-width: 860px; margin: 16px auto 0;
  font-size: 14px; line-height: 2; color: rgba(255, 255, 255, .78);
}
.life-panel .exp-cols { display: flex; justify-content: center; gap: 90px; margin-top: 38px; text-align: left; }
.life-panel .exp-col .ec-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 600; color: var(--gold-light);
}
.life-panel .exp-col .ec-head svg {
  width: 20px; height: 20px; fill: none; stroke: var(--gold-light);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.life-panel .exp-col ul { margin-top: 14px; }
.life-panel .exp-col li { font-size: 14px; line-height: 2.2; color: rgba(255, 255, 255, .85); list-style: none; }

/* ==========================================================
   响应式：H5
   ========================================================== */
@media (max-width: 992px) {
  .life-p1 { flex-direction: column; margin-top: 68px; min-height: 0; }
  .lp1-text { padding: 50px 24px 40px; }
  .lp1-title { font-size: 32px; }
  .lp1-img { min-height: 320px; }

  .p2-cards { grid-template-columns: 1fr; max-width: 460px; }
  .p3-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 520px; }
  .p3-head h2 { font-size: 30px; }
  .p3-head h3 { font-size: 22px; }
}

@media (max-width: 640px) {
  .life-p1 { margin-top: 68px; }
  .lp1-text { padding: 40px 20px 34px; }
  .lp1-title { font-size: 27px; }
  .lp1-desc { font-size: 14px; }
  .life-btn { font-size: 15px; padding: 12px 24px; }
  .lp1-img { min-height: 260px; }

  .life-p2 { padding: 60px 0 70px; }
  .p2-head h2 { font-size: 30px; }
  .p2-q { font-size: 22px; margin-bottom: 36px; }
  .p2-card { padding: 52px 22px 28px; }

  .life-p3 { padding: 60px 0 70px; }
  .p3-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .p3-card { padding: 24px 12px; }
  .p3-icon img { width: 40px; height: 40px; }
  .p3-card h4 { font-size: 16px; }
  .p3-card .en { font-size: 10px; letter-spacing: 1px; }

  .life-p4 { padding: 60px 0 70px; }
  .p4-head h2 { font-size: 30px; }
  .p4-head h3.gd { font-size: 24px; }
  /* 移动端：保持与 PC 一致的左右排布（曲线图在左，文字在右） */
  .p4-timeline { max-width: 340px; height: 301px; margin: 0 auto; }
  .p4-line { position: absolute; left: 6px; top: 0; width: 140px; height: auto; margin: 0; }
  .p4-node { position: absolute; transform: translateY(-50%); text-align: left; }
  .p4-node.n1 { top: 12.8%; left: 165px; }
  .p4-node.n2 { top: 49.2%; left: 165px; }
  .p4-node.n3 { top: 80.6%; left: 165px; }
  .p4-body { max-width: 170px; }
  .p4-body h4 { font-size: 17px; margin-bottom: 6px; }
  .p4-body p { font-size: 12px; line-height: 1.6; }

  .life-p5 { padding: 60px 0 70px; }
  .exp-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; max-width: 100%; }
  .exp-name { font-size: 20px; }
  .exp-role { font-size: 13px; }

  /* P4 移动端样式见上方（曲线图片 + 文字堆叠） */

  /* 護航紀實：移动端单列 */
  .life-hr { padding: 50px 0 56px; }
  .hr-head { margin-bottom: 30px; }
  .hr-head h3 { font-size: 24px; }
  .hr-grid {  gap: 18px; max-width: 420px; }
  .hr-num span { font-size: 18px; }
  .hr-body {
    padding: 6px 4px 20px;
    text-align: center;
  }
  .hr-card h4 {
      font-size: 12px; line-height: 1.2;
  }
  .hr-num {
      margin-bottom: 4px;
  }


  .p5-intro .en {
      font-size: 30px;
  }

  /* 深蓝面板：移动端竖排 */
  .life-panel { margin-top: 48px; padding: 40px 24px; }
  .life-panel h3 { font-size: 21px; }
  .life-panel .exp-cols { flex-direction: column; gap: 28px; align-items: center; }
}
