/*
 * 第二層：圖片主視覺版與頁面外觀覆寫
 * --------------------------------------------------------------------------
 * 在 style.css 之後載入，負責首頁圖片區塊、登入頁背景照片、
 * 統計與公告 Banner、各頁配色，以及圖片版專用的響應式調整。
 *
 * 若選擇器也出現在 style.css，代表此處刻意覆寫共用外觀；
 * 共用結構仍留在 style.css，本檔只保留照片、配色及圖片版特有差異。
 */

/* 圖片主視覺版色彩變數 */
:root {
  --photo-navy: #073548;
  --photo-teal: #008f81;
  --photo-coral: #f36f58;
  --photo-cream: #fff8ee;
}

/* 首頁基礎設定 */
.photo-home {
  background: #fff;
  color: #143743;
}

.photo-home h1,
.photo-home h2,
.photo-home h3 {
  letter-spacing: -0.045em;
}

.photo-home img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 首頁頂端導覽 */
.photo-nav {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.2rem max(4vw, calc((100vw - 1380px) / 2));
  color: #fff;
  background: linear-gradient(#062a3bbd, transparent);
}

.photo-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.photo-brand span {
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: #fff;
  color: var(--photo-navy);
  font-size: 0.75rem;
  font-weight: 950;
}

.photo-brand strong {
  font-size: 1rem;
}

.photo-nav nav {
  display: flex;
  gap: 1.6rem;
}

.photo-nav nav a {
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  text-shadow: 0 1px 8px #0008;
}

/* 首頁主視覺 */
.photo-hero {
  position: relative;
  min-height: min(880px, 100vh);
  overflow: hidden;
  color: #fff;
}

.photo-hero>img {
  position: absolute;
  inset: 0;
}

.photo-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(2, 29, 42, 0.82) 0,
      rgba(3, 39, 52, 0.56) 42%,
      rgba(3, 34, 47, 0.08) 68%),
    linear-gradient(0deg, rgba(1, 26, 38, 0.48), transparent 38%);
}

.photo-hero-copy {
  position: relative;
  z-index: 2;
  width: min(1380px, 92vw);
  margin: auto;
  padding-top: clamp(10rem, 23vh, 15rem);
}

.photo-hero-copy>span,
.photo-roles header>span,
.story-copy>span,
.progress-heading>span,
.news-content header>span,
.admin-photo-copy>span {
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.photo-hero-copy>span {
  color: #8df1df;
}

.photo-hero-copy h1 {
  max-width: 100%;
  margin: 1.3rem 0;
  font-size: clamp(3rem, 5.4vw, 5.8rem);
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 3px 30px #001d2b66;
}

.photo-hero-copy h1>span {
  display: inline-block;
  white-space: nowrap;
}

.photo-hero-copy h1 em {
  color: #ffd47a;
}

.photo-hero-copy p {
  max-width: 540px;
  color: #edf8f8;
  font-size: 1.15rem;
  line-height: 1.9;
}

.photo-hero-copy>a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(360px, 100%);
  margin-top: 2rem;
  padding: 1.1rem 1.35rem;
  border-radius: 999px;
  background: #fff;
  color: var(--photo-navy);
  font-weight: 950;
  text-decoration: none;
}

.photo-hero-copy>a b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffd166;
}

.hero-caption {
  position: absolute;
  z-index: 2;
  right: max(4vw, calc((100vw - 1380px) / 2));
  bottom: 2.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.3rem;
  border-left: 4px solid #ffd166;
  background: #ffffffdf;
  color: var(--photo-navy);
  backdrop-filter: blur(10px);
}

.hero-caption span {
  font-size: 0.82rem;
}

/* 學校與現場健檢人員登入入口 */
.photo-roles {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: clamp(3rem, 7vw, 8rem);
  padding: clamp(5rem, 9vw, 9rem) max(4vw, calc((100vw - 1380px) / 2));
  background: var(--photo-cream);
}

.photo-roles header>span,
.story-copy>span {
  color: var(--photo-coral);
}

.photo-roles h2,
.story-copy h2,
.progress-heading h2,
.news-content h2,
.admin-photo-copy h2 {
  margin: 0.8rem 0 1.2rem;
  font-size: clamp(2.7rem, 4.5vw, 5rem);
  line-height: 1.06;
}

.photo-roles h2 {
  font-size: clamp(2.5rem, 3.8vw, 4rem);
}

.photo-roles h2>span {
  display: inline-block;
  white-space: nowrap;
}

.photo-roles header p {
  color: #5e747b;
  line-height: 1.8;
}

.role-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.role-photo {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  text-decoration: none;
  background-size: cover;
  background-position: center;
}

.role-photo.school {
  background-image:
    linear-gradient(0deg, #073548ed 0, #07354818 66%),
    url("../images/school-waiting.webp");
}

.role-photo.onsite {
  background-image:
    linear-gradient(0deg, #803428e8 0, #8034280d 66%),
    url("../images/onsite-pediatrics.webp");
  background-position: 48% center;
}

.role-photo>div {
  position: absolute;
  inset: auto 0 0;
  padding: 2rem;
}

.role-photo span {
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.role-photo h3 {
  margin: 0.55rem 0;
  font-size: 1.8rem;
}

.role-photo p {
  margin: 0.5rem 0 1.5rem;
  color: #eef8f8;
  line-height: 1.7;
}

.role-photo b {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 99px;
  background: #fff;
  color: var(--photo-navy);
}

.role-photo:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px #0735482b;
}

.role-photo {
  transition: 0.2s ease;
}

/* 人物故事相容樣式：目前首頁已改用健檢項目區塊 */
.human-story {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  min-height: 720px;
  background: #e8f6f3;
}

.story-image {
  min-height: 620px;
}

.story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vw, 7rem);
}

.story-copy p {
  color: #516c73;
  font-size: 1.06rem;
  line-height: 1.95;
}

.care-points {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.care-points span {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #b9d9d3;
  font-weight: 850;
}

.care-points b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--photo-teal);
  color: #fff;
  font-size: 0.7rem;
}

/* 健檢進度摘要 */
.photo-progress {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(2rem, 7vw, 8rem);
  padding: clamp(5rem, 8vw, 8rem) max(4vw, calc((100vw - 1380px) / 2));
  background: var(--photo-navy);
  color: #fff;
}

.progress-heading>span {
  color: #80e4d5;
}

.progress-heading h2 {
  color: #fff;
}

.progress-heading>a {
  color: #fff;
  font-weight: 900;
}

.progress-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.progress-numbers a {
  position: relative;
  min-height: 180px;
  padding: 1.6rem;
  border-radius: 18px;
  color: var(--photo-navy);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.progress-numbers a:nth-child(1) {
  background: #dff5ef;
}

.progress-numbers a:nth-child(2) {
  background: #fff0bd;
}

.progress-numbers a:nth-child(3) {
  background: #ffe0d7;
}

.progress-numbers a:nth-child(4) {
  background: #dcecf6;
}

.progress-numbers a:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(1, 25, 36, 0.2);
}

.progress-numbers small {
  margin-bottom: 0.8rem;
  color: #526c74;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.progress-numbers strong {
  color: var(--photo-navy);
  font-size: clamp(2.7rem, 4vw, 4.8rem);
  line-height: 1;
}

.progress-numbers span {
  margin-top: 0.6rem;
  color: #49636b;
  font-weight: 800;
}

/* 統計與外部連結 */
.photo-resources {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: clamp(3rem, 7vw, 8rem);
  padding: clamp(5rem, 8vw, 8rem) max(4vw, calc((100vw - 1380px) / 2));
  background: #fff8ee;
}

.photo-resources header>span {
  color: var(--photo-coral);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.photo-resources h2 {
  margin: 0.8rem 0 1.2rem;
  font-size: clamp(2.7rem, 4.5vw, 5rem);
  line-height: 1.06;
}

.photo-resources header p {
  color: #64777d;
  line-height: 1.85;
}

.resource-photo-list {
  display: grid;
  gap: 1rem;
}

.resource-photo-list>a {
  display: grid;
  grid-template-columns: 54px 1fr 30px;
  align-items: center;
  gap: 1rem;
  min-height: 150px;
  padding: 1.4rem;
  border-radius: 20px;
  background: #fff;
  color: var(--photo-navy);
  text-decoration: none;
  box-shadow: 0 12px 35px rgba(7, 53, 72, 0.08);
  transition: 0.2s ease;
}

.resource-photo-list>a:hover {
  transform: translateX(6px);
  box-shadow: 0 18px 45px rgba(7, 53, 72, 0.14);
}

.resource-photo-list>a>span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #dff5ef;
  color: #087567;
  font-size: 0.75rem;
  font-weight: 950;
}

.resource-photo-list small {
  display: block;
  color: var(--photo-coral);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.resource-photo-list strong {
  display: block;
  margin: 0.35rem 0;
  font-size: 1.15rem;
}

.resource-photo-list p {
  margin: 0;
  color: #6a7c82;
  line-height: 1.6;
}

.resource-photo-list>a>b {
  font-size: 1.4rem;
}

/* 最新公告 */
.photo-news {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 720px;
  background: #fff;
}

.news-photo {
  min-height: 640px;
}

.news-photo img {
  object-position: 68% center;
}

.news-content {
  padding: clamp(3rem, 6vw, 6rem);
}

.news-content header {
  position: relative;
}

.news-content header>span {
  color: var(--photo-coral);
}

.news-content header>a {
  position: absolute;
  right: 0;
  bottom: 1rem;
  color: var(--photo-navy);
  font-weight: 900;
}

.photo-notices {
  border-top: 2px solid var(--photo-navy);
}

.photo-notices>a {
  display: grid;
  grid-template-columns: 70px 1fr 25px;
  align-items: center;
  gap: 1rem;
  padding: 1.45rem 0.2rem;
  border-bottom: 1px solid #d8e2e4;
  text-decoration: none;
}

.photo-notices time {
  color: var(--photo-coral);
  font-size: 1.2rem;
  font-weight: 950;
}

.photo-notices div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.photo-notices small {
  color: #72868d;
}

.photo-notices strong {
  font-size: 1.02rem;
}

/* 醫院後端與系統管理入口 */
.photo-admin {
  position: relative;
  min-height: 800px;
  overflow: hidden;
  color: #fff;
}

.photo-admin>img {
  position: absolute;
  inset: 0;
}

.photo-admin::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(3, 40, 54, 0.2),
      rgba(3, 40, 54, 0.94) 58%);
}

.admin-photo-copy {
  position: relative;
  z-index: 2;
  width: min(660px, 90%);
  margin-left: auto;
  margin-right: max(4vw, calc((100vw - 1380px) / 2));
  padding-top: clamp(6rem, 12vw, 10rem);
}

.admin-photo-copy>span {
  color: #9cf1e5;
}

.admin-photo-copy h2 {
  color: #fff;
}

.admin-photo-copy>p {
  color: #d6e7ea;
  line-height: 1.9;
}

.admin-photo-copy>div {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.admin-photo-copy a {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 1.2rem 1.3rem;
  border: 1px solid #ffffff70;
  border-radius: 14px;
  background: #ffffff17;
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.admin-photo-copy a small {
  grid-column: 1;
  color: #c8dbdf;
  margin-top: 0.3rem;
}

.admin-photo-copy a b {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  font-size: 1.3rem;
}

/* 頁尾聯絡資訊 */
.photo-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 4rem max(4vw, calc((100vw - 1380px) / 2));
  background: #fff2e7;
  color: var(--photo-navy);
}

.photo-footer p {
  margin-bottom: 0;
}

.photo-footer address {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-style: normal;
}

.photo-footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 850;
}

.photo-footer address span {
  color: #000;
}

.photo-home a:focus-visible {
  outline: 4px solid #ffd166;
  outline-offset: 4px;
}

/* 所有次頁的圖片處理 */
/* 次頁共用照片與 Banner 設定 */
body.subpage {
  background: #f7fbfa;
}

.subnav {
  position: relative;
  z-index: 3;
}

.login-page .role-panel {
  background-color: #123e4e;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.login-page .role-panel::before {
  content: "";
  inset: 0;
  opacity: 1;
  transform: none;
  background: linear-gradient(0deg,
      rgba(4, 37, 50, 0.88),
      rgba(4, 37, 50, 0.12));
}

.school-role {
  background-image: url("../images/school-waiting.webp") !important;
}

.onsite-role {
  background-image: url("../images/student-checkin.webp") !important;
}

.hospital-role {
  background-image: url("../images/hospital-team.webp") !important;
}

.system-role {
  background-image: url("../images/digital-workflow.webp") !important;
}

.role-panel h1,
.role-panel p,
.role-number {
  color: #fff;
}

.data-hero,
.announcement-shell .data-hero {
  position: relative;
  overflow: hidden;
  padding: 3rem;
  border-radius: 24px;
  background:
    linear-gradient(90deg, #073548ed, #07354866),
    url("../images/checkin-scan.webp") center/cover;
  color: #fff;
}

.data-hero h1,
.data-hero p,
.data-hero .page-kicker {
  color: #fff;
}

.article-heading {
  background-color: #34515d;
  background-image: url("../images/onsite-care.webp");
  background-position: center 42%;
  background-size: cover;
  background-blend-mode: multiply;
}

.data-page .data-hero {
  width: 100%;
  max-width: none;
  min-height: clamp(220px, 24vw, 300px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background-image:
    linear-gradient(90deg,
      rgba(5, 44, 59, 0.94) 0,
      rgba(5, 44, 59, 0.68) 45%,
      rgba(5, 44, 59, 0.1) 78%),
    url("../images/school-waiting.webp");
  background-position: center 44%;
  background-size: cover;
  box-shadow: 0 16px 38px rgba(7, 53, 72, 0.13);
}

.data-page .data-hero h1 {
  max-width: 720px;
  margin: 0.45rem 0 0.65rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.data-page .data-hero p {
  max-width: 560px;
}

.data-page .data-shell {
  padding-top: 1.25rem;
}

.data-page .page-kicker {
  width: fit-content;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: #f0b44d;
  color: #173f49;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.data-page .table-wrap {
  margin-top: 1.5rem;
  border-top: 5px solid #2f6f9f;
}

.data-page thead th {
  background: #244f73;
}

.data-page tbody tr:nth-child(even) {
  background: #f2f7fb;
}

.data-page .total-row {
  background: #dff4ef !important;
}

.upload-page .data-hero {
  background-image:
    linear-gradient(90deg,
      rgba(5, 44, 59, 0.94) 0,
      rgba(5, 44, 59, 0.68) 45%,
      rgba(5, 44, 59, 0.1) 78%),
    url("../images/digital-workflow.webp");
  background-position: center 48%;
}

.upload-page .page-kicker {
  background: #ffd18a;
  color: #653943;
}

.upload-page .table-wrap {
  border-top-color: #2f8a76;
}

.upload-page thead th {
  background: #286b60;
}

.upload-page tbody tr:nth-child(even) {
  background: #f1f8f5;
}

.upload-page .total-row {
  background: #dff3eb !important;
}

.live-progress {
  margin-top: 2rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(7, 53, 72, 0.1);
}

.live-progress>header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #dce8e9;
}

.live-progress>header span {
  color: #72878d;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.live-progress>header h2 {
  margin: 0.35rem 0 0;
  color: var(--photo-navy);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.live-progress>header>strong {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.9rem;
  border-radius: 99px;
  background: #e4f8f1;
  color: #087567;
}

.live-progress>header i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00a990;
  box-shadow: 0 0 0 6px rgba(0, 169, 144, 0.13);
}

.venue-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2rem 0;
}

.venue-summary div {
  padding: 1rem;
  border-radius: 14px;
  background: #f3f8f8;
}

.venue-summary span,
.venue-summary strong {
  display: block;
}

.venue-summary span {
  color: #72878d;
  font-size: 0.78rem;
}

.venue-summary strong {
  margin-top: 0.35rem;
  color: var(--photo-navy);
}

.school-progress-list {
  display: grid;
  gap: 0.8rem;
}

.school-progress-list article {
  display: grid;
  grid-template-columns: 180px 1fr 100px;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem;
  border: 1px solid #dce8e9;
  border-radius: 14px;
}

.school-progress-list div span,
.school-progress-list div small {
  display: block;
}

.school-progress-list div span {
  font-weight: 900;
}

.school-progress-list div small {
  margin-top: 0.25rem;
  color: #77898f;
}

.school-progress-list progress {
  width: 100%;
  height: 12px;
  accent-color: var(--photo-teal);
}

.school-progress-list article>b {
  justify-self: end;
  color: #087567;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .photo-nav nav {
    display: none;
  }

  .photo-hero {
    min-height: 780px;
  }

  .photo-hero-shade {
    background:
      linear-gradient(90deg, #052d3edb, #052d3e4c),
      linear-gradient(0deg, #052d3ebd, transparent);
  }

  .photo-roles,
  .human-story,
  .photo-progress,
  .photo-resources,
  .photo-news {
    grid-template-columns: 1fr;
  }

  .role-photo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .story-image,
  .news-photo {
    min-height: 470px;
  }

  .photo-admin::after {
    background: linear-gradient(0deg, #032836f5 15%, #03283642 80%);
  }

  .admin-photo-copy {
    margin: 0 auto;
    padding: 25rem 0 4rem;
  }

  .photo-footer {
    grid-template-columns: 1fr;
  }

  .venue-summary {
    grid-template-columns: 1fr 1fr;
  }

  .school-progress-list article {
    grid-template-columns: 145px 1fr 90px;
  }
}

@media (max-width: 620px) {
  .photo-nav {
    padding: 1rem;
  }

  .photo-brand strong {
    font-size: 0.82rem;
  }

  .photo-hero {
    min-height: 720px;
  }

  .photo-hero>img {
    object-position: 62% center;
  }

  .photo-hero-copy {
    width: calc(100% - 2rem);
    padding-top: 11rem;
  }

  .photo-hero-copy h1 {
    font-size: clamp(2rem, 8.5vw, 2.8rem);
  }

  .hero-caption {
    display: none;
  }

  .photo-roles,
  .photo-resources {
    padding: 4rem 1rem;
  }

  .role-photo-grid {
    grid-template-columns: 1fr;
  }

  .role-photo {
    min-height: 440px;
  }

  .story-image,
  .news-photo {
    min-height: 360px;
  }

  .story-copy,
  .news-content {
    padding: 3.5rem 1.2rem;
  }

  .photo-progress {
    padding: 4rem 1rem;
  }

  .progress-numbers {
    grid-template-columns: 1fr;
  }

  .progress-numbers a {
    min-height: 145px;
    padding: 1.35rem;
  }

  .progress-numbers strong {
    font-size: 2.2rem;
  }

  .photo-news {
    display: flex;
    flex-direction: column;
  }

  .news-content header>a {
    position: static;
  }

  .photo-notices>a {
    grid-template-columns: 58px 1fr 20px;
  }

  .photo-admin {
    min-height: 840px;
  }

  .photo-admin>img {
    object-position: 42% center;
  }

  .admin-photo-copy {
    width: calc(100% - 2rem);
    padding-top: 25rem;
  }

  .photo-footer {
    padding: 3rem 1.2rem;
  }

  .data-hero,
  .announcement-shell .data-hero {
    padding: 2rem 1.2rem;
  }

  .data-page .data-hero {
    min-height: 240px;
    padding: 1.5rem 1.35rem;
    background-image:
      linear-gradient(0deg,
        rgba(5, 44, 59, 0.96) 0,
        rgba(5, 44, 59, 0.58) 70%,
        rgba(5, 44, 59, 0.08)),
      url("../images/school-waiting.webp");
    background-position: 61% center;
  }

  .upload-page .data-hero {
    background-image:
      linear-gradient(0deg,
        rgba(5, 44, 59, 0.96) 0,
        rgba(5, 44, 59, 0.58) 70%,
        rgba(5, 44, 59, 0.08)),
      url("../images/digital-workflow.webp");
    background-position: 55% center;
  }

  .login-page .role-panel {
    min-height: 420px;
  }

  .resource-photo-list>a {
    grid-template-columns: 46px 1fr 22px;
    padding: 1rem;
  }

  .resource-photo-list p {
    display: none;
  }

  .live-progress>header {
    align-items: flex-start;
    flex-direction: column;
  }

  .venue-summary {
    grid-template-columns: 1fr;
  }

  .school-progress-list article {
    grid-template-columns: 1fr;
  }

  .school-progress-list article>b {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* 健檢現場紀實圖庫 */
.field-gallery {
  padding: clamp(5rem, 8vw, 8rem) max(4vw, calc((100vw - 1380px) / 2));
  background: #fff;
}

.field-gallery>header {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 0.4rem clamp(2rem, 7vw, 8rem);
  align-items: end;
  margin-bottom: 2rem;
}

.field-gallery>header span {
  color: var(--photo-coral);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.field-gallery>header h2 {
  grid-column: 1;
  margin: 0.35rem 0;
  font-size: clamp(2.7rem, 4.5vw, 5rem);
  line-height: 1.05;
}

.field-gallery>header p {
  grid-column: 2;
  grid-row: 1/3;
  max-width: 520px;
  margin: 0;
  color: #64777d;
  line-height: 1.9;
}

.field-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 1rem;
}

.field-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 22px;
  background: #d9e7e8;
}

.field-grid .field-wide {
  grid-row: 1/3;
}

.field-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.field-grid figure:hover img {
  transform: scale(1.035);
}

.field-grid figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 99px;
  background: #ffffffdf;
  color: var(--photo-navy);
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

@media (max-width: 900px) {
  .field-gallery>header {
    grid-template-columns: 1fr;
  }

  .field-gallery>header p {
    grid-column: 1;
    grid-row: auto;
  }

  .field-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 320px 220px 220px;
  }

  .field-grid .field-wide {
    grid-column: 1/3;
    grid-row: 1;
  }
}

@media (max-width: 620px) {
  .field-gallery {
    padding: 4rem 1rem;
  }

  .field-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 330px repeat(4, 230px);
  }

  .field-grid .field-wide {
    grid-column: 1;
    grid-row: 1;
  }
}

/* 健檢項目說明：桌機表格、手機資訊卡 */
.checkup-guide {
  padding: clamp(5rem, 8vw, 8rem) max(4vw, calc((100vw - 1380px) / 2));
  background: linear-gradient(135deg, #fff 0%, #f7fbfa 100%);
}

.checkup-guide-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: end;
  gap: 2rem clamp(3rem, 8vw, 9rem);
  margin-bottom: 2.5rem;
}

.checkup-guide-heading span {
  color: var(--photo-coral);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.checkup-guide-heading h2 {
  margin: 0.6rem 0 0;
  font-size: clamp(2.7rem, 4.5vw, 5rem);
  line-height: 1.05;
}

.checkup-guide-heading p {
  max-width: 570px;
  margin: 0;
  color: #64777d;
  font-size: 1.05rem;
  line-height: 1.9;
}

.checkup-table-wrap {
  overflow: hidden;
  border: 1px solid #dce8e9;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(7, 53, 72, 0.08);
}

.checkup-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.checkup-table th,
.checkup-table td {
  padding: 1.45rem clamp(1.2rem, 3vw, 2.4rem);
  border-bottom: 1px solid #e4ecec;
}

.checkup-table thead {
  background: linear-gradient(90deg, #e47c63, #bf8ca6);
  color: #fff;
}

.checkup-table thead th {
  font-size: 1rem;
  font-weight: 900;
}

.checkup-table tbody th {
  width: 20%;
  color: #008e80;
  font-size: 1.05rem;
}

.checkup-table tbody td {
  color: #183a45;
  line-height: 1.65;
}

.checkup-table tbody tr:last-child th,
.checkup-table tbody tr:last-child td {
  border-bottom: 0;
}

.checkup-table th:last-child,
.checkup-table td:last-child {
  width: 22%;
}

@media (max-width: 900px) {
  .checkup-guide-heading {
    grid-template-columns: 1fr;
  }
}

.checkup-guide {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
}

.checkup-guide-photo {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 28px;
  background: #dce8e9;
  box-shadow: 0 22px 55px rgba(7, 53, 72, 0.14);
}

.checkup-guide-photo::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(0deg, rgba(4, 42, 55, 0.92), transparent);
}

.checkup-guide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.checkup-guide-photo>div {
  position: absolute;
  z-index: 1;
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  color: #fff;
}

.checkup-guide-photo strong,
.checkup-guide-photo span {
  display: block;
}

.checkup-guide-photo strong {
  font-size: clamp(1.3rem, 2.3vw, 2rem);
}

.checkup-guide-photo span {
  margin-top: 0.45rem;
  color: #d9f3ee;
}

.checkup-guide-content {
  align-self: center;
  min-width: 0;
}

.checkup-guide-heading {
  display: block;
  margin-bottom: 2rem;
}

.checkup-guide-heading p {
  margin-top: 1rem;
}

.checkup-table th,
.checkup-table td {
  padding: 1.15rem clamp(1rem, 2vw, 1.7rem);
}

@media (max-width: 1000px) {
  .checkup-guide {
    grid-template-columns: 1fr;
  }

  .checkup-guide-photo {
    min-height: 480px;
  }

  .checkup-guide-photo img {
    object-position: center 38%;
  }

  .checkup-guide-content {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .checkup-guide {
    gap: 2.5rem;
  }

  .checkup-guide-photo {
    min-height: 390px;
    border-radius: 20px;
  }

  .checkup-guide-photo>div {
    right: 1.1rem;
    bottom: 1.1rem;
    left: 1.1rem;
  }
}

@media (max-width: 800px) {
  .checkup-guide {
    padding: 4rem 1rem;
  }

  .checkup-guide-content,
  .checkup-table-wrap,
  .checkup-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .checkup-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .checkup-table,
  .checkup-table tbody,
  .checkup-table tr,
  .checkup-table th,
  .checkup-table td {
    display: block;
    box-sizing: border-box;
  }

  .checkup-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .checkup-table tbody {
    display: grid;
    gap: 1rem;
    width: 100%;
    min-width: 0;
  }

  .checkup-table tbody tr {
    width: 100%;
    min-width: 0;
    padding: 1.2rem;
    border: 1px solid #dce8e9;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(7, 53, 72, 0.06);
  }

  .checkup-table tbody th,
  .checkup-table tbody td,
  .checkup-table th:last-child,
  .checkup-table td:last-child {
    width: auto;
    max-width: 100%;
    padding: 0;
    border: 0;
  }

  .checkup-table tbody th {
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
  }

  .checkup-table tbody td {
    display: grid;
    grid-template-columns: 5.2rem minmax(0, 1fr);
    gap: 0.6rem;
    padding-top: 0.7rem;
    border-top: 1px solid #e4ecec;
    overflow-wrap: anywhere;
  }

  .checkup-table tbody td::before {
    content: attr(data-label);
    color: #6b7e84;
    font-size: 0.78rem;
    font-weight: 900;
  }
}

.progress-numbers strong {
  white-space: nowrap;
  font-size: clamp(2.2rem, 3.2vw, 3.9rem);
}

@media (max-width: 620px) {
  .progress-numbers strong {
    font-size: clamp(1.55rem, 6.5vw, 2.2rem);
  }

  .progress-numbers span {
    font-size: 0.82rem;
    line-height: 1.5;
  }
}

/* 個別登入頁的背景照片修正 */
.login-page .onsite-role {
  background-image: url("../images/onsite-pediatrics.webp") !important;
  background-position: 48% center !important;
}

.login-page .onsite-role::before {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
}

.login-page .school-role::before {
  mask-image: none;
  -webkit-mask-image: none;
}

.photo-notices .notice-publisher {
  margin-top: 0.2rem;
  color: #657b82;
  font-size: 0.82rem;
  font-weight: 750;
}

/* 公告列表專用 Banner */
.announcements-page .data-hero {
  width: 100%;
  max-width: none;
  min-height: clamp(220px, 24vw, 300px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background-image:
    linear-gradient(90deg,
      rgba(5, 44, 59, 0.94) 0,
      rgba(5, 44, 59, 0.7) 44%,
      rgba(5, 44, 59, 0.12) 78%),
    url("../images/onsite-care.webp");
  background-position: center 48%;
  background-size: cover;
  box-shadow: 0 22px 55px rgba(7, 53, 72, 0.16);
}

.announcements-page .announcement-shell {
  padding-top: 1.25rem;
}

.announcements-page .data-hero h1 {
  max-width: 720px;
  margin: 0.45rem 0 0.65rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.announcements-page .data-hero p {
  max-width: 560px;
}

@media (max-width: 620px) {
  .announcements-page .data-hero {
    min-height: 240px;
    padding: 1.5rem 1.35rem;
    background-image:
      linear-gradient(0deg,
        rgba(5, 44, 59, 0.96) 0,
        rgba(5, 44, 59, 0.58) 72%,
        rgba(5, 44, 59, 0.08)),
      url("../images/onsite-care.webp");
    background-position: 55% center;
  }

  .announcements-page .data-hero h1 {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }
}
