/* 遠山海公司網站 草稿 B「在地照護感」
   純靜態、無外部程式庫;顏色取自 ysh.org 標誌(綠山、藍水波、藏青字)。 */

:root {
  --green: #0e6a2b;
  --green-dark: #0a5221;
  --green-light: #98d068;
  --green-tint: #eef5e7;
  --blue: #68b8d0;
  --blue-tint: #eaf3f7;
  --navy: #1b338a;
  --navy-dark: #0f1c47;
  --ink: #26303d;
  --ink-2: #5a6678;
  --bg: #fbf9f4;
  --card: #ffffff;
  --line: #e4e7df;
  --todo: #b7791f;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(31, 41, 55, .04), 0 8px 24px rgba(31, 41, 55, .06);
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* 錨點跳轉時留出固定頂欄的高度,標題不被蓋住 */
.section, .foot { scroll-margin-top: 72px; }

body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "微軟正黑體", "Heiti TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.3; color: var(--navy-dark); margin: 0; }
p { margin: 0; }
dl, dd, dt { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

.desk-only { display: none; }

/* ---------- 頂部 ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.bar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; padding: 8px 0; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 18px; color: var(--navy-dark); letter-spacing: .04em; }
.brand-text small { font-size: 12px; color: var(--ink-2); }

.navtoggle { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.navbtn {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  cursor: pointer; border: 1px solid var(--line); background: #fff;
}
.navbtn span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.navtoggle:checked ~ .navbtn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navtoggle:checked ~ .navbtn span:nth-child(2) { opacity: 0; }
.navtoggle:checked ~ .navbtn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  display: flex;
  flex-basis: 100%;
  flex-direction: row;
  justify-content: space-around;
  padding: 2px 0 6px;
  border-top: 1px solid var(--line);
}
.navtoggle:checked ~ .nav { display: flex; }
.nav a {
  display: block; padding: 10px 12px; font-size: 16px;
  text-decoration: none; color: var(--ink); font-weight: 500;
  border-radius: 10px;
}
.nav a:hover { background: var(--green-tint); color: var(--green-dark); }
.nav .nav-login { color: var(--navy); font-weight: 600; }

/* ---------- 主視覺 ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #e9f3ea 0%, #e7f1f3 100%);
  padding: 40px 0 70px;
  overflow: hidden;
}
.hero-inner { display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.eyebrow { color: var(--green); font-weight: 600; letter-spacing: .12em; font-size: 14px; }
.hero h1 { font-size: 34px; margin: 6px 0 14px; letter-spacing: .02em; }
.lead { color: var(--ink-2); font-size: 17px; max-width: 34em; margin: 0 auto; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 16px;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-ghost { background: #fff; color: var(--navy); border-color: #cfdde6; }
.btn-ghost:hover { border-color: var(--navy); }
.hero-art { width: 136px; order: -1; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 10px 24px rgba(27, 51, 138, .14)); }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; }

/* ---------- 區塊 ---------- */
.section { padding: 48px 0; }
.section-tint { background: var(--blue-tint); }
.section-title {
  font-size: 26px; margin-bottom: 10px;
  padding-left: 14px; position: relative;
}
.section-title::before {
  content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 3px;
  background: linear-gradient(180deg, var(--green-light), var(--green) 55%, var(--navy));
}
.section-sub { color: var(--ink-2); margin-bottom: 26px; }

/* 關於我們 */
.about-grid { display: grid; gap: 24px; }
.about-text p + p { margin-top: 12px; }
.about-text strong { color: var(--green-dark); }
.about-points { display: grid; gap: 12px; }
.about-points li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.about-points strong { display: block; color: var(--navy-dark); }
.about-points small { color: var(--ink-2); font-size: 14px; }
.dot { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 8px; }
.dot-green { background: var(--green); }
.dot-blue { background: var(--blue); }
.dot-navy { background: var(--navy); }

/* 服務卡片 */
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 20px 18px;
  box-shadow: var(--shadow); border: 1px solid #fff;
  display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: start;
}
.card h3 { font-size: 17px; grid-column: 2; align-self: center; }
.card p { grid-column: 2; color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.icon {
  grid-row: 1 / span 2;
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-green { background: var(--green-tint); color: var(--green); }
.icon-blue  { background: var(--blue-tint); color: #2f8aa8; }
.icon-navy  { background: #eceff8; color: var(--navy); }

/* 據點 */
.sites { display: grid; gap: 16px; }
.site {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; border: 1px solid #fff;
}
.site-head { padding: 20px 20px 14px; border-bottom: 1px dashed var(--line); background: linear-gradient(90deg, #f2f8ef, #fff); }
.site-tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--green); background: #e3f0db; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.site h3 { font-size: 20px; }
.site-short { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.site-info { padding: 14px 20px 18px; display: grid; gap: 8px; }
.site-info > div { display: grid; grid-template-columns: 7em 1fr; gap: 8px; }
.site-info dt { color: var(--ink-2); font-size: 14px; padding-top: 2px; }
.site-info dd { font-weight: 500; }
.todo { color: var(--todo); font-weight: 500; }

.contact {
  margin-top: 24px;
  background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid #fff;
}
.contact h3 { font-size: 18px; margin-bottom: 12px; }
.contact-info { display: grid; gap: 8px; }
.contact-info > div { display: grid; grid-template-columns: 6em 1fr; gap: 8px; }
.contact-info dt { color: var(--ink-2); font-size: 14px; padding-top: 2px; }
.contact-note { margin-top: 14px; color: var(--ink-2); font-size: 15px; }

/* ---------- 頁尾 ---------- */
.foot { background: var(--navy-dark); color: #d8deef; padding: 44px 0 28px; margin-top: 16px; }
.foot h2 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.foot-sub { color: #aab4d4; font-size: 14px; margin-bottom: 18px; }
.login-links { display: grid; gap: 12px; }
.login-card {
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px; padding: 14px 16px; text-decoration: none; color: #fff;
  transition: background .15s, border-color .15s;
}
.login-card:hover { background: rgba(255, 255, 255, .12); border-color: var(--green-light); }
.login-card strong { font-size: 17px; }
.login-card small { color: #c1c9e4; font-size: 13px; }
.login-card .url { color: var(--green-light); font-size: 13px; margin-top: 4px; }

.foot-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-direction: column; gap: 14px;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 40px; height: 40px; background: #fff; border-radius: 10px; padding: 3px; }
.foot-brand strong { display: block; color: #fff; }
.foot-brand small { color: #aab4d4; font-size: 13px; }
.copy { color: #aab4d4; font-size: 13px; }

/* ---------- 電腦版 ---------- */
@media (min-width: 760px) {
  body { font-size: 17px; }
  .desk-only { display: inline; }
  .wrap { padding: 0 24px; }

  .bar { flex-wrap: nowrap; min-height: 72px; }
  .brand img { width: 48px; height: 48px; }
  .brand-text strong { font-size: 20px; }
  .brand-text small { font-size: 13px; }
  .navbtn { display: none; }
  .nav { display: flex; flex-direction: row; flex-basis: auto; gap: 4px; padding: 0; border: 0; }
  .nav a { padding: 10px 14px; }
  .nav .nav-login { margin-left: 8px; border: 1.5px solid var(--navy); border-radius: 999px; padding: 8px 18px; }
  .nav .nav-login:hover { background: var(--navy); color: #fff; }

  .hero { padding: 64px 0 96px; }
  .hero-inner { flex-direction: row; justify-content: space-between; text-align: left; gap: 40px; }
  .hero-copy { max-width: 620px; }
  .hero h1 { font-size: 46px; }
  .lead { font-size: 19px; margin: 0; }
  .actions { justify-content: flex-start; }
  .hero-art { order: 0; width: 260px; flex: none; }
  .wave { height: 90px; }

  .section { padding: 64px 0; }
  .section-title { font-size: 30px; }

  .about-grid { grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .card { padding: 24px 22px; }
  .sites { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .contact { padding: 26px 28px; }

  .login-links { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .foot-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}


/* ---- 願景(ysh.org 定稿版加) ---- */
.vision { background: linear-gradient(180deg, #eef6f1 0%, #eaf3f7 100%); }
.vision-lead { font-size: clamp(1.35rem, 1rem + 1.6vw, 2rem); font-weight: 700; line-height: 1.5; color: #12355b;
  margin: 0 0 1.6rem; text-wrap: balance; }
.vision-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.vision-item { background: #fff; border-radius: 14px; padding: 1.2rem 1.3rem; border-top: 4px solid #2f8f4e; }
.vision-item:nth-child(2) { border-top-color: #3a8fc4; }
.vision-item:nth-child(3) { border-top-color: #1f3f8f; }
.vision-item h3 { margin: 0 0 .4rem; font-size: 1.15rem; color: #12355b; }
.vision-item p { margin: 0; line-height: 1.7; color: #3b4a5a; }

/* 手機也直接顯示三個連結(2026-10-29,不用漢堡鈕) */
.navbtn, .navtoggle { display: none; }

/* 只有一個據點時單欄、不撐滿(2026-10-30) */
@media (min-width: 760px) { .sites.sites-one { grid-template-columns: minmax(0, 36rem); } }
