/* =========================================================
   台南信合美眼科｜新版首頁
   style.css V3 — cleaned
   Bootstrap 5.3
========================================================= */


/* =========================================================
   01. VARIABLES
========================================================= */

:root {
  --color-primary: #147f91;
  --color-primary-dark: #086477;
  --color-secondary: #57b8b0;

  --color-heading: #173d62;
  --color-body: #4c5d61;
  --color-muted: #78888b;

  --color-border: #dde8ea;

  --color-bg: #f7fafa;
  --color-soft: #eaf7f6;
  --color-blue-soft: #eef7fa;
  --color-warm-soft: #faf7f1;

  --color-white: #ffffff;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-card:
    0 10px 35px rgba(26, 65, 78, .07);

  --shadow-card-hover:
    0 16px 40px rgba(26, 65, 78, .11);

  --section-space: 96px;
}


/* =========================================================
   02. BASE
========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;

  color: var(--color-body);
  background: var(--color-white);

  font-family:
    "Noto Sans TC",
    "Microsoft JhengHei",
    sans-serif;

  font-size: 17px;
  line-height: 1.8;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;

  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;

  color: var(--color-heading);

  font-weight: 700;
  line-height: 1.35;
}

h1 {
  font-size: clamp(38px, 4vw, 58px);
}

h2 {
  font-size: clamp(30px, 3vw, 42px);
}

h3 {
  font-size: clamp(20px, 2vw, 26px);
}

p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   03. COMMON
========================================================= */

.section-space {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.section-en {
  margin-bottom: 6px;

  color: var(--color-primary);

  font-size: 13px;
  font-weight: 700;

  letter-spacing: .18em;
}

.section-heading {
  position: relative;
}

.section-heading p {
  margin-bottom: 24px;
}

.section-subtitle {
  margin-bottom: 18px;

  color: var(--color-primary-dark);

  font-size: 20px;
}

.section-lead {
  color: var(--color-body);

  font-size: 18px;
}

.content-narrow {
  max-width: 960px;

  margin-right: auto;
  margin-left: auto;
}


/* =========================================================
   04. BUTTONS
========================================================= */

.btn {
  min-height: 50px;

  padding: 11px 24px;

  border-radius: 10px;

  font-size: 16px;
  font-weight: 600;

  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.btn-primary {
  color: #fff;

  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  color: #fff;

  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn-outline-primary {
  color: var(--color-primary);

  background: transparent;
  border-color: var(--color-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff;

  background: var(--color-primary);
  border-color: var(--color-primary);
}

.text-link {
  color: var(--color-primary);

  font-weight: 600;
}

.text-link:hover {
  color: var(--color-primary-dark);
}


/* =========================================================
   05. HEADER / NAVBAR
========================================================= */

.site-header {
  z-index: 1030;

  background: #fff;

  border-bottom:
    1px solid rgba(221, 232, 234, .75);
}

.site-header .navbar {
  min-height: 78px;

  padding-top: 6px;
  padding-bottom: 6px;
}

.navbar-brand {
  margin-right: 28px;
}

.navbar-brand img {
  width: auto;
  height: 52px;

  object-fit: contain;
}

.navbar-nav {
  gap: 1px;
}

.navbar-nav .nav-link {
  position: relative;

  padding: 25px 9px;

  color: var(--color-heading);

  font-size: 15px;
  font-weight: 500;

  transition:
    color .2s ease,
    background-color .2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.show {
  color: var(--color-primary);
}


/* Dropdown */

.dropdown-menu {
  min-width: 210px;

  margin-top: 0;
  padding: 10px;

  background: #fff;

  border: 1px solid var(--color-border);
  border-radius: 14px;

  box-shadow:
    0 12px 35px rgba(0, 0, 0, .08);
}

.dropdown-item {
  padding: 9px 13px;

  color: var(--color-body);

  border-radius: 8px;

  font-size: 15px;

  transition:
    color .2s ease,
    background-color .2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--color-primary);

  background: var(--color-soft);
}

.dropdown-divider {
  border-color: var(--color-border);
}


/* Header CTA */

.header-cta .btn {
  min-width: 110px;

  padding-right: 18px;
  padding-left: 18px;
}


/* Mobile Phone */

.header-phone {
  margin-left: auto;
  margin-right: 12px;

  color: var(--color-primary);

  font-size: 23px;
  line-height: 1;

  text-decoration: none;
}


/* Hamburger */

.navbar-toggler {
  padding: 6px 8px;

  border: 0;

  box-shadow: none !important;
}


/* Desktop Navbar underline */

@media (min-width: 1200px) {

  .navbar-nav > .nav-item > .nav-link::before {
    content: "";

    position: absolute;

    right: 9px;
    bottom: 17px;
    left: 9px;

    height: 2px;

    background: var(--color-primary);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform .2s ease;
  }

  .navbar-nav > .nav-item > .nav-link:hover::before,
  .navbar-nav > .nav-item > .nav-link:focus::before {
    transform: scaleX(1);
  }

}


/* =========================================================
   06. HERO
========================================================= */

.home-hero {
  position: relative;

  overflow: hidden;

  background: #eef8fb;
}

.hero-wrap {
  position: relative;

  min-height: 620px;

  overflow: hidden;

  background: #eef8fb;
}


/* Hero Image */

.hero-picture {
  position: absolute;

  inset: 0;

  display: block;
}

.hero-picture img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}


/* Hero Overlay */

.hero-overlay {
  position: absolute;
  z-index: 1;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(239, 249, 252, .58) 0%,
      rgba(239, 249, 252, .54) 28%,
      rgba(239, 249, 252, .16) 48%,
      rgba(239, 249, 252, .10) 72%,
      rgba(239, 249, 252, 0) 100%
    );
}


/* Hero container */

.hero-container {
  position: relative;
  z-index: 2;

  min-height: 620px;
}


/* Hero Content */

.hero-content {
  display: flex;

  width: 100%;
  max-width: 620px;
  min-height: 620px;

  padding: 70px 0;

  justify-content: center;
  flex-direction: column;
}


/* English */

.hero-en {
  margin-bottom: 14px;

  color: var(--color-primary);

  font-size: 13px;
  font-weight: 700;

  letter-spacing: .2em;
}


/* H1 */

.hero-title {
  margin-bottom: 22px;

  color: var(--color-heading);

  font-size: clamp(42px, 4.3vw, 64px);
  font-weight: 700;

  letter-spacing: .02em;
  line-height: 1.3;
}

.hero-title > span {
  display: block;
}


/* Brand / SEO subtitle */

.hero-title small {
  display: block;

  margin-top: 20px;

  color: var(--color-heading);

  font-size: 19px;
  font-weight: 500;

  letter-spacing: .02em;
  line-height: 1.65;
}


/* Description */

.hero-description {
  max-width: 520px;

  margin-bottom: 28px;

  color: var(--color-body);

  font-size: 17px;
  line-height: 1.9;
}


/* Hero Buttons */

.hero-actions {
  display: flex;

  gap: 12px;
}

.hero-actions .btn {
  display: inline-flex;

  min-width: 150px;
  min-height: 52px;

  padding: 10px 22px;

  align-items: center;
  justify-content: center;

  gap: 14px;

  border-radius: 10px;

  font-size: 16px;
  font-weight: 600;
}

.hero-btn-primary {
  color: #fff;

  background: var(--color-primary);

  border: 1px solid var(--color-primary);
}

.hero-btn-primary:hover,
.hero-btn-primary:focus {
  color: #fff;

  background: var(--color-primary-dark);

  border-color: var(--color-primary-dark);

  transform: translateY(-2px);
}

.hero-btn-secondary {
  color: var(--color-heading);

  background: rgba(255, 255, 255, .72);

  border: 1px solid rgba(23, 61, 98, .35);

  backdrop-filter: blur(5px);
}

.hero-btn-secondary:hover,
.hero-btn-secondary:focus {
  color: var(--color-primary);

  background: #fff;

  border-color: var(--color-primary);

  transform: translateY(-2px);
}

/* =========================================================
   HERO CAROUSEL
   Banner 1：HTML 文字＋漸層
   Banner 2/3：圖片已有文字，整張可點
========================================================= */

.home-hero .carousel-item {
  position: relative;
  min-height: 620px;
}

.home-hero .carousel-fade .carousel-item {
  transition-duration: .8s;
}

/* Banner 2 / 3 */
.home-hero .hero-image-only {
  position: relative;
  min-height: 620px;
  background: #fff;
}

.home-hero .hero-image-only .hero-banner-link {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.home-hero .hero-image-only .hero-picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.home-hero .hero-image-only .hero-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 輪播圓點 */
.home-hero .carousel-indicators {
  z-index: 5;
  bottom: 22px;
  margin-bottom: 0;
}

.home-hero .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  margin: 0 5px;
  border: 0;
  border-radius: 50%;
  background-color: var(--color-primary);
}

/* 桌機左右箭頭 */
.home-hero .carousel-control-prev,
.home-hero .carousel-control-next {
  z-index: 4;
  width: 6%;
  opacity: .35;
}

.home-hero .carousel-control-prev:hover,
.home-hero .carousel-control-next:hover {
  opacity: .7;
}


/* =========================================================
   07. QUICK SERVICES
========================================================= */

.quick-services {
  position: relative;
  z-index: 5;

  margin-top: -42px;
}

.quick-service-panel {
  overflow: hidden;

  background:
    rgba(255, 255, 255, .97);

  border:
    1px solid rgba(221, 232, 234, .85);

  border-radius: 20px;

  box-shadow:
    0 14px 40px rgba(31, 75, 88, .08);
}


/* 每個服務入口 */

.quick-service-item {
  position: relative;

  display: flex;

  min-height: 145px;

  padding: 23px 10px 20px;

  align-items: center;
  justify-content: center;
  flex-direction: column;

  text-align: center;

  transition:
    background-color .25s ease,
    transform .25s ease;
}


/* 分隔線 */

.quick-service-item::after {
  content: "";

  position: absolute;

  top: 25%;
  right: 0;

  width: 1px;
  height: 50%;

  background:
    var(--color-border);
}


/* 最後一個不要分隔線 */

.quick-service-panel
.row > div:last-child
.quick-service-item::after {
  display: none;
}


/* Hover */

.quick-service-item:hover {
  background:
    linear-gradient(
      180deg,
      rgba(234, 247, 246, .25),
      rgba(234, 247, 246, .85)
    );
}


/* SVG Icon */

.service-icon {
  display: flex;

  width: 44px;
  height: 44px;

  margin-bottom: 8px;

  align-items: center;
  justify-content: center;

  color:
    var(--color-primary);
}

.service-icon svg {
  width: 38px;
  height: 38px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.7;

  stroke-linecap: round;
  stroke-linejoin: round;

  transition:
    transform .25s ease;
}


/* Hover icon */

.quick-service-item:hover
.service-icon svg {
  transform:
    translateY(-3px);
}


/* 標題 */

.quick-service-item strong {
  display: block;

  color:
    var(--color-heading);

  font-size: 16px;
  font-weight: 700;

  line-height: 1.5;
}


/* 小字 */

.quick-service-item small {
  display: block;

  margin-top: 3px;

  color:
    var(--color-muted);

  font-size: 13px;
  line-height: 1.5;
}


/* =========================================================
   08. MYOPIA LASER
========================================================= */

.myopia-section {
  position: relative;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(87, 184, 176, .09),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f7fbfc 100%
    );
}


/* =========================================================
   Heading
========================================================= */

.myopia-heading {
  max-width: 880px;

  margin-right: auto;
  margin-bottom: 50px;
  margin-left: auto;
}

.myopia-heading h2 {
  margin-bottom: 14px;
}

.myopia-heading .section-subtitle {
  margin-bottom: 14px;

  color: var(--color-primary-dark);

  font-size: 20px;
  font-weight: 600;
}

.myopia-heading .section-lead {
  max-width: 760px;

  margin-right: auto;
  margin-left: auto;

  color: var(--color-body);

  font-size: 17px;
  line-height: 1.9;
}


/* =========================================================
   Procedure Grid
========================================================= */

.myopia-procedures {
  max-width: 1120px;

  margin-right: auto;
  margin-left: auto;
}


/* =========================================================
   Procedure Card
========================================================= */

.procedure-card {
  height: 100%;

  overflow: hidden;

  background: #fff;

  border:
    1px solid rgba(221, 232, 234, .9);

  border-radius:
    var(--radius-lg);

  box-shadow:
    var(--shadow-card);

  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.procedure-card:hover {
  transform:
    translateY(-5px);

  box-shadow:
    var(--shadow-card-hover);
}


/* =========================================================
   Procedure Image
========================================================= */

.procedure-media {
  width: 100%;
  height: 440px;
  overflow: hidden;
  background: #eaf7f6;
}


/*
   設備圖片完整呈現
   不使用 cover，避免 Z8 上下被裁掉
*/

.procedure-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* SMART Clear 可以稍微給不同底色 */

.procedure-smart
.procedure-media {
  background:
    radial-gradient(
      circle at 50% 35%,
      #ffffff 0%,
      #eef8fa 55%,
      #e4f1f5 100%
    );
}


/* LASIK */

.procedure-lasik
.procedure-media {
  background:
    radial-gradient(
      circle at 50% 35%,
      #ffffff 0%,
      #f1f7fb 55%,
      #e8f1f7 100%
    );
}


/* =========================================================
   Procedure Content
========================================================= */

.procedure-content {
  padding:
    30px 32px
    32px;
}


/* English label */

.procedure-label {
  margin-bottom: 7px;

  color:
    var(--color-primary);

  font-size: 12px;
  font-weight: 700;

  letter-spacing:
    .16em;
}


/* Title */

.procedure-content h3 {
  margin-bottom: 16px;

  color:
    var(--color-heading);

  font-size: 28px;

  line-height: 1.3;
}

.procedure-content h3 span {
  display: block;

  margin-top: 3px;

  font-size: 20px;
  font-weight: 600;
}


/* Description */

.procedure-description {
  margin-bottom: 22px;

  color:
    var(--color-body);

  font-size: 16px;
  line-height: 1.85;
}


/* =========================================================
   Procedure Link
========================================================= */

.procedure-footer {
  padding-top: 18px;

  border-top:
    1px solid var(--color-border);
}

.procedure-link {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  color:
    var(--color-primary);

  font-size: 15px;
  font-weight: 700;

  transition:
    color .2s ease,
    gap .2s ease;
}

.procedure-link:hover,
.procedure-link:focus {
  gap: 14px;

  color:
    var(--color-primary-dark);
}


/* =========================================================
   Assessment CTA
========================================================= */

.myopia-assessment {
  max-width: 1120px;

  margin:
    38px auto 0;

  padding:
    32px 36px;

  background:
    linear-gradient(
      120deg,
      #eaf7f6 0%,
      #f4fafc 100%
    );

  border:
    1px solid rgba(87, 184, 176, .20);

  border-radius:
    var(--radius-lg);
}


/* Layout */

.myopia-assessment-content {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 40px;
}


/* English */

.assessment-en {
  margin-bottom: 5px;

  color:
    var(--color-primary);

  font-size: 11px;
  font-weight: 700;

  letter-spacing:
    .17em;
}


/* Heading */

.myopia-assessment h3 {
  margin-bottom: 7px;

  font-size: 23px;
}


/* Text */

.myopia-assessment p:not(.assessment-en) {
  max-width: 680px;

  margin-bottom: 0;

  color:
    var(--color-body);

  font-size: 15px;
  line-height: 1.8;
}


/* Button */

.myopia-assessment-action {
  flex:
    0 0 auto;
}

.myopia-assessment-action .btn {
  white-space:
    nowrap;
}

/* =========================================================
   09. DOCTORS
========================================================= */

.doctors-section {
  position: relative;

  background:
    linear-gradient(
      180deg,
      #f7fafa 0%,
      #ffffff 100%
    );
}


/* =========================================================
   Heading
========================================================= */

.doctors-heading {
  max-width: 760px;

  margin-right: auto;
  margin-bottom: 48px;
  margin-left: auto;
}

.doctors-heading h2 {
  margin-bottom: 14px;
}

.doctors-heading .section-lead {
  max-width: 680px;

  margin-right: auto;
  margin-left: auto;

  font-size: 17px;
  line-height: 1.85;
}


/* =========================================================
   Grid
========================================================= */

.doctors-grid {
  max-width: 1120px;

  margin-right: auto;
  margin-left: auto;
}


/* =========================================================
   Doctor Card
========================================================= */

.doctor-card {
  height: 100%;

  overflow: hidden;

  background: #fff;

  border:
    1px solid rgba(221, 232, 234, .9);

  border-radius:
    var(--radius-lg);

  box-shadow:
    0 8px 30px rgba(26, 65, 78, .06);

  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.doctor-card:hover {
  transform:
    translateY(-5px);

  box-shadow:
    0 16px 40px rgba(26, 65, 78, .11);
}


/* =========================================================
   Doctor Photo
========================================================= */

.doctor-photo {
  position: relative;

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      #eef7f8 0%,
      #e7f1f3 100%
    );

  aspect-ratio:
    4 / 5;
}

.doctor-photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: top center;

  transition:
    transform .45s ease;
}

.doctor-card:hover
.doctor-photo img {
  transform:
    scale(1.02);
}


/*
   照片與文字交界增加非常淡的過渡
*/

.doctor-photo::after {
  content: "";

  position: absolute;

  right: 0;
  bottom: 0;
  left: 0;

  height: 45px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, .18)
    );

  pointer-events: none;
}


/* =========================================================
   Doctor Content
========================================================= */

.doctor-content {
  padding:
    26px 27px
    28px;
}


/* Name */

.doctor-name {
  margin-bottom: 17px;

  padding-bottom: 16px;

  border-bottom:
    1px solid var(--color-border);
}

.doctor-name h3 {
  margin: 0;

  color:
    var(--color-heading);

  font-size: 25px;

  letter-spacing:
    .03em;
}

.doctor-name h3 small {
  margin-left: 5px;

  color:
    var(--color-muted);

  font-size: 15px;
  font-weight: 500;
}


/* =========================================================
   Specialties
========================================================= */

.doctor-specialties {
  margin:
    0 0 20px;

  padding: 0;

  list-style: none;
}

.doctor-specialties li {
  position: relative;

  margin-bottom: 7px;

  padding-left: 17px;

  color:
    var(--color-body);

  font-size: 15px;
  line-height: 1.7;
}

.doctor-specialties li:last-child {
  margin-bottom: 0;
}


/* 小圓點 */

.doctor-specialties li::before {
  content: "";

  position: absolute;

  top: .78em;
  left: 1px;

  width: 5px;
  height: 5px;

  background:
    var(--color-secondary);

  border-radius:
    50%;
}


/* =========================================================
   Doctor Link
========================================================= */

.doctor-link {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  color:
    var(--color-primary);

  font-size: 15px;
  font-weight: 700;

  transition:
    color .2s ease,
    gap .2s ease;
}

.doctor-link:hover,
.doctor-link:focus {
  gap: 13px;

  color:
    var(--color-primary-dark);
}


/* =========================================================
   More Doctors
========================================================= */

.doctors-more {
  margin-top: 38px;
}



/* =========================================================
   10. EYE CARE / EDITORIAL GRID
========================================================= */

.eye-care-section {
  position: relative;

  overflow: hidden;

  background: #fff;
}


/* =========================================================
   Heading
========================================================= */

.eye-care-heading {
  display: grid;

  grid-template-columns:
    minmax(280px, .8fr)
    minmax(420px, 1.2fr);

  max-width: 1120px;

  margin:
    0 auto 50px;

  align-items: end;

  gap: 70px;
}


/* Main Title */

.eye-care-title h2 {
  margin: 0;

  color:
    var(--color-heading);

  font-size:
    clamp(36px, 3.5vw, 48px);

  line-height: 1.3;
}


/* Intro */

.eye-care-intro {
  position: relative;

  padding-left: 28px;
}

.eye-care-intro::before {
  content: "";

  position: absolute;

  top: 5px;
  bottom: 5px;
  left: 0;

  width: 1px;

  background:
    var(--color-secondary);
}

.eye-care-intro h3 {
  margin-bottom: 8px;

  color:
    var(--color-heading);

  font-size: 21px;

  line-height: 1.5;
}

.eye-care-intro p {
  margin: 0;

  color:
    var(--color-body);

  font-size: 15px;

  line-height: 1.85;
}


/* =========================================================
   Editorial Grid
========================================================= */

.eye-care-grid {
  display: grid;

  max-width: 1120px;

  margin:
    0 auto;

  grid-template-columns:
    1.15fr .85fr;

  grid-template-rows:
    285px 285px 210px;

  gap: 16px;
}


/* =========================================================
   Base Item
========================================================= */

.eye-care-item {
  position: relative;

  display: block;

  overflow: hidden;

  background:
    var(--color-heading);

  color: #fff;
}


/* Image */

.eye-care-item > img {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: center;

  transition:
    transform .6s ease;
}


/* Hover */

.eye-care-item:hover > img {
  transform:
    scale(1.035);
}


/* =========================================================
   Layout
========================================================= */

/* 白內障：左側大圖 */

.eye-care-cataract {
  grid-column:
    1;

  grid-row:
    1 / span 2;
}


/* 兒童視力 */

.eye-care-children {
  grid-column:
    2;

  grid-row:
    1;
}


/* 角膜塑型 */

.eye-care-orthok {
  grid-column:
    2;

  grid-row:
    2;
}


/* 一般眼科：底部橫跨 */

.eye-care-general {
  grid-column:
    1 / -1;

  grid-row:
    3;
}


/* =========================================================
   Overlay
========================================================= */

.eye-care-overlay {
  position: absolute;

  z-index: 1;

  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(5, 36, 48, .02) 20%,
      rgba(5, 36, 48, .18) 52%,
      rgba(5, 36, 48, .82) 100%
    );

  transition:
    background .3s ease;
}


.eye-care-item:hover
.eye-care-overlay {
  background:
    linear-gradient(
      180deg,
      rgba(5, 36, 48, .05) 15%,
      rgba(5, 36, 48, .25) 50%,
      rgba(5, 36, 48, .88) 100%
    );
}


/* =========================================================
   Content
========================================================= */

.eye-care-content {
  position: absolute;

  z-index: 2;

  right: 0;
  bottom: 0;
  left: 0;

  padding:
    30px 32px;

  color: #fff;
}


/* English */

.eye-care-en {
  margin-bottom: 5px;

  color:
    rgba(255, 255, 255, .75);

  font-size: 10px;

  font-weight: 700;

  letter-spacing:
    .17em;
}


/* Title */

.eye-care-content h3 {
  margin-bottom: 6px;

  color: #fff;

  font-size:
    29px;

  font-weight:
    600;

  letter-spacing:
    .03em;

  line-height:
    1.3;
}


/* Description */

.eye-care-content p:not(.eye-care-en) {
  margin-bottom: 13px;

  color:
    rgba(255, 255, 255, .88);

  font-size:
    14px;

  line-height:
    1.7;
}


/* Link */

.eye-care-more {
  display: inline-flex;

  align-items: center;

  color: #fff;

  font-size:
    13px;

  font-weight:
    600;

  letter-spacing:
    .03em;

  transition:
    transform .25s ease;
}

.eye-care-item:hover
.eye-care-more {
  transform:
    translateX(5px);
}


/* =========================================================
   Small Items
========================================================= */

.eye-care-children
.eye-care-content,
.eye-care-orthok
.eye-care-content {
  padding:
    24px 26px;
}

.eye-care-children
.eye-care-content h3,
.eye-care-orthok
.eye-care-content h3 {
  font-size:
    25px;
}


/* =========================================================
   General Eye Care
========================================================= */

.eye-care-general
.eye-care-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(5, 36, 48, .86) 0%,
      rgba(5, 36, 48, .62) 45%,
      rgba(5, 36, 48, .10) 100%
    );
}


.eye-care-general
.eye-care-content {
  top: 0;

  display: flex;

  padding:
    30px 34px;

  align-items: center;

  justify-content: space-between;

  gap: 40px;
}


.eye-care-general
.eye-care-content > div {
  max-width:
    650px;
}


.eye-care-general
.eye-care-content p:not(.eye-care-en) {
  margin-bottom: 0;
}


/* =========================================================
   11. NEWS & LOCATION
========================================================= */

.news-location-section {
  padding: 75px 0;
  background: #fff;
}

.news-location-heading {
  text-align: center;
  margin-bottom: 38px;
}

.news-location-heading h2 {
  margin: 0 0 12px;
  color: var(--color-heading);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
}

.news-location-heading > p:last-child {
  margin: 0;
  color: var(--color-body);
  font-size: 15px;
}

/* Two columns */

.news-location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: start;
}

/* Panel headings */

.panel-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--color-border);
}

.panel-heading h3 {
  margin: 0;
  color: var(--color-heading);
  font-size: 22px;
  font-weight: 700;
}

.panel-heading span {
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
}

/* News */

.news-item {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-body);
  text-decoration: none;
  transition: color .2s ease;
}

.news-item time {
  color: var(--color-muted);
  font-size: 12px;
}

.news-item > span:nth-child(2) {
  font-size: 15px;
  line-height: 1.6;
}

.news-arrow {
  color: var(--color-primary);
  font-size: 16px;
}

.news-item:hover,
.news-item:focus-visible {
  color: var(--color-primary);
}

.news-more {
  display: inline-block;
  margin-top: 24px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* Google Map */

.location-map {
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: 8px;
  background: #eef7fa;
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.location-details {
  margin-top: 17px;
}

.location-details p {
  display: flex;
  gap: 12px;
  margin: 0 0 8px;
  color: var(--color-body);
  font-size: 14px;
  line-height: 1.7;
}

.location-details strong {
  flex: 0 0 36px;
  color: var(--color-heading);
}

.location-details a {
  color: inherit;
  text-decoration: none;
}

.location-details a:hover {
  color: var(--color-primary);
}

.location-direction {
  display: inline-block;
  margin-top: 10px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.location-direction:hover {
  text-decoration: underline;
}

/* Tablet */

@media (max-width: 991.98px) {
  .news-location-grid {
    gap: 25px;
  }

  .news-item {
    grid-template-columns: 1fr 18px;
    gap: 6px 10px;
  }

  .news-item time {
    grid-column: 1 / -1;
  }
}

/* Mobile */

@media (max-width: 767.98px) {
  .news-location-section {
    padding: 55px 0;
  }

  .news-location-heading {
    margin-bottom: 28px;
  }

  .news-location-heading h2 {
    font-size: 28px;
  }

  .news-location-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .panel-heading h3 {
    font-size: 20px;
  }

  .news-item {
    padding: 16px 0;
  }

  .news-item > span:nth-child(2) {
    font-size: 14px;
  }

  .location-map {
    height: 250px;
  }
}

/* =========================================================
   12. CLINIC NETWORK - COMPACT HORIZONTAL
========================================================= */

.network-section {
  padding: 36px 0 42px;
  background: #f7fafa;
}

.network-heading {
  text-align: center;
  margin-bottom: 24px;
}

.network-heading .section-en {
  margin-bottom: 4px;
  font-size: 10px;
}

.network-heading h2 {
  margin: 0 0 5px;
  color: var(--color-heading);
  font-size: 26px;
  font-weight: 700;
}

.network-intro {
  margin: 0;
  color: var(--color-body);
  font-size: 13px;
}

/* 4 columns × 2 rows */

.network-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 20px;
}

/* Image left, text right */

.network-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* All images */

.network-card > img,
.network-card > .network-cta-visual {
  display: block;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  max-width: 64px;
  max-height: 64px;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 3px;
}

/* Text */

.network-content {
  flex: 1;
  min-width: 0;
  padding: 0;
}

.network-content .network-city {
  margin: 0 0 5px;
  color: var(--color-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.network-content .network-city small {
  display: block;
  margin-top: 2px;
  color: var(--color-primary);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .04em;
}

.network-content a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 3px;
  color: var(--color-body);
  font-size: 11px;
  line-height: 1.45;
  text-decoration: none;
}

.network-content a:hover,
.network-content a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
}

.network-content a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
}

/* 8th item: same size as other images */

.network-card-cta .network-cta-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eaf7f6, #d7ecef);
  color: var(--color-primary-dark);
}

.network-cta-symbol {
  font-size: 25px;
  line-height: 1;
}

/* Tablet */

@media (max-width: 991.98px) {
  .network-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Mobile */

@media (max-width: 767.98px) {
  .network-section {
    padding: 30px 0 36px;
  }

  .network-heading {
    margin-bottom: 20px;
  }

  .network-heading h2 {
    font-size: 23px;
  }

  .network-intro {
    font-size: 12px;
  }

  .network-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .network-card {
    gap: 12px;
  }

  .network-card > img,
  .network-card > .network-cta-visual {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    max-width: 56px;
    max-height: 56px;
  }

  .network-content .network-city {
    font-size: 14px;
  }

  .network-content a {
    font-size: 12px;
  }
}
/* =========================================================
   12. FOOTER
========================================================= */

.site-footer {
  padding: 70px 0 25px;

  color: rgba(255, 255, 255, .78);

  background: #103d59;
}

.footer-logo {
  width: auto;
  height: 48px;

  margin-bottom: 18px;
}

.site-footer h3 {
  margin-bottom: 15px;

  color: #fff;

  font-size: 17px;
}

.site-footer p {
  color: rgba(255, 255, 255, .78);
}

.site-footer ul {
  margin: 0;
  padding: 0;

  list-style: none;
}

.site-footer li {
  margin-bottom: 7px;
}

.site-footer a {
  color: rgba(255, 255, 255, .78);

  transition: color .2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;

  border-top:
    1px solid rgba(255, 255, 255, .15);
}


/* =========================================================
   13. MOBILE FIXED CTA
========================================================= */

.mobile-fixed-cta {
  position: fixed;
  z-index: 1040;

  right: 0;
  bottom: 0;
  left: 0;

  display: grid;

  grid-template-columns:
    1fr 1fr 1.2fr;

  min-height: 60px;

  background: #fff;

  border-top: 1px solid var(--color-border);

  box-shadow:
    0 -5px 20px rgba(0, 0, 0, .08);
}

.mobile-fixed-cta a {
  display: flex;

  align-items: center;
  justify-content: center;

  flex-direction: column;

  color: var(--color-heading);

  font-size: 13px;
  font-weight: 600;

  line-height: 1.4;
}

.mobile-fixed-cta a + a {
  border-left: 1px solid var(--color-border);
}

.mobile-fixed-cta .mobile-booking {
  color: #fff;

  background: var(--color-primary);

  border-left: 0;
}


/* =========================================================
   14. TABLET
========================================================= */

@media (max-width: 1199.98px) {

  /* Navbar */

  .site-header .navbar {
    min-height: 68px;
  }

  .navbar-brand img {
    height: 43px;
  }

  .navbar-collapse {
    max-height: calc(100vh - 68px);

    overflow-y: auto;

    margin-top: 8px;
    padding: 10px 0 25px;

    border-top: 1px solid var(--color-border);
  }

  .navbar-nav {
    gap: 0;
  }

  .navbar-nav .nav-link {
    padding: 12px 4px;

    border-bottom: 1px solid #edf2f3;

    font-size: 16px;
  }

  .dropdown-menu {
    margin: 0;

    padding: 4px 0 8px 15px;

    border: 0;
    border-radius: 0;

    box-shadow: none;
  }

  .dropdown-item {
    padding: 9px 12px;
  }

  .header-cta {
    padding-top: 6px;
  }

  .header-cta .btn {
    width: 100%;
  }

}


/* =========================================================
   15. HERO TABLET
========================================================= */

@media (max-width: 991.98px) {

  .hero-wrap,
  .hero-container,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    max-width: 540px;

    padding: 60px 0;
  }

  .hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(239, 249, 252, .97) 0%,
        rgba(239, 249, 252, .90) 38%,
        rgba(239, 249, 252, .30) 70%,
        rgba(239, 249, 252, .05) 100%
      );
  }

  /* Quick services */

  .quick-service-item {
    min-height: 130px;
  }
	.eye-care-heading {
    grid-template-columns:
      .8fr 1.2fr;

    gap:
      40px;
  }

  .eye-care-grid {
    grid-template-rows:
      250px 250px 190px;
  }

}


/* =========================================================
   16. MOBILE
========================================================= */

@media (max-width: 767.98px) {

  :root {
    --section-space: 58px;
  }


  /* Base */

  body {
    padding-bottom: 60px;

    font-size: 16px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 21px;
  }

  .section-lead {
    font-size: 16px;
  }


  /* =======================================================
     HERO MOBILE
  ======================================================= */

  .hero-wrap {
    min-height: 650px;
  }

  .hero-container {
    min-height: 650px;

    padding-right: 22px;
    padding-left: 22px;
  }

  /*
    手機使用獨立 hero-mobile.webp。
    人物建議位於圖片上方或右上方。
  */

  .hero-picture img {
    object-position: center top;
  }

  /*
    上方看圖片，
    下半部逐漸轉成淺色文字區。
  */

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(238, 248, 251, .05) 0%,
        rgba(238, 248, 251, .15) 30%,
        rgba(238, 248, 251, .76) 54%,
        rgba(238, 248, 251, .97) 76%,
        rgba(238, 248, 251, 1) 100%
      );
  }

  .hero-content {
    max-width: 100%;
    min-height: 650px;

    padding:
      280px 0
      40px;

    justify-content: flex-end;
  }

  .hero-en {
    margin-bottom: 8px;

    font-size: 11px;

    letter-spacing: .15em;
  }

  .hero-title {
    margin-bottom: 15px;

    font-size: clamp(34px, 9vw, 42px);

    line-height: 1.25;
  }

  .hero-title small {
    margin-top: 14px;

    font-size: 16px;

    line-height: 1.65;
  }

  .hero-description {
    margin-bottom: 20px;

    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions {
    display: grid;

    grid-template-columns:
      1fr 1fr;

    gap: 9px;
  }

  .hero-actions .btn {
    min-width: 0;
    min-height: 48px;

    padding: 9px 10px;

    gap: 7px;

    font-size: 15px;
  }
	
  /* Banner 2 / 3 */
  .home-hero .hero-image-only {
    min-height: 650px;
  }

  .home-hero .hero-image-only .hero-picture img {
    object-position: center;
  }

  .home-hero .carousel-indicators {
    bottom: 12px;
  }

  .home-hero .carousel-control-prev,
  .home-hero .carousel-control-next {
    display: none;
  }


  /* =======================================================
   QUICK SERVICES MOBILE
======================================================= */

.quick-services {
  margin-top: 0;

  padding:
    14px 12px 0;

  background:
    #f4fafb;
}

.quick-service-panel {
  border-radius: 15px;

  box-shadow:
    0 8px 25px rgba(31, 75, 88, .06);
}


/* 3 × 2 */

.quick-service-item {
  min-height: 106px;

  padding:
    16px 5px
    14px;
}


/* 手機分隔線重新處理 */

.quick-service-item::after {
  top: 18%;

  height: 64%;
}


/* 每列第三個不要右線 */

.quick-service-panel
.row > div:nth-child(3n)
.quick-service-item::after {
  display: none;
}


/* 第一列底線 */

.quick-service-panel
.row > div:nth-child(-n+3)
.quick-service-item {
  border-bottom:
    1px solid
    var(--color-border);
}


/* Icon */

.service-icon {
  width: 36px;
  height: 36px;

  margin-bottom: 6px;
}

.service-icon svg {
  width: 31px;
  height: 31px;

  stroke-width: 1.7;
}


/* 標題 */

.quick-service-item strong {
  font-size: 14px;
}


/* 手機不顯示說明 */

.quick-service-item small {
  display: none;
}

  /* =======================================================
   MYOPIA MOBILE
======================================================= */

.myopia-section {
  padding-top: 58px;
}


/* Heading */

.myopia-heading {
  margin-bottom: 32px;

  text-align: left !important;
}

.myopia-heading h2 {
  margin-bottom: 12px;

  font-size: 28px;
}

.myopia-heading .section-subtitle {
  margin-bottom: 12px;

  font-size: 17px;
  line-height: 1.65;
}

.myopia-heading .section-lead {
  font-size: 15px;
  line-height: 1.8;
}


/* Cards */

.myopia-procedures {
  --bs-gutter-y: 22px;
}


/* Image */

.procedure-media {
  height: 300px;
}


/* Content */

.procedure-content {
  padding:
    24px 22px
    25px;
}

.procedure-content h3 {
  margin-bottom: 13px;

  font-size: 25px;
}

.procedure-content h3 span {
  font-size: 18px;
}

.procedure-description {
  margin-bottom: 18px;

  font-size: 15px;
  line-height: 1.8;
}


/* Assessment */

.myopia-assessment {
  margin-top: 26px;

  padding:
    25px 22px;
}

.myopia-assessment-content {
  display: block;
}

.myopia-assessment h3 {
  font-size: 21px;
  line-height: 1.45;
}

.myopia-assessment p:not(.assessment-en) {
  font-size: 15px;
}

.myopia-assessment-action {
  margin-top: 20px;
}

.myopia-assessment-action .btn {
  width: 100%;
}

  /* =======================================================
   DOCTORS MOBILE
======================================================= */

.doctors-heading {
  margin-bottom: 32px;

  text-align: left !important;
}

.doctors-heading h2 {
  margin-bottom: 12px;

  font-size: 28px;
}

.doctors-heading .section-lead {
  font-size: 15px;
  line-height: 1.8;
}


/* Cards */

.doctors-grid {
  --bs-gutter-y: 22px;
}

.doctor-card {
  max-width: 440px;

  margin-right: auto;
  margin-left: auto;
}


/* Photo */

.doctor-photo {
  aspect-ratio:
    4 / 5;
}


/* Content */

.doctor-content {
  padding:
    23px 22px
    25px;
}

.doctor-name {
  margin-bottom: 15px;

  padding-bottom: 14px;
}

.doctor-name h3 {
  font-size: 23px;
}

.doctor-specialties li {
  font-size: 15px;
}


/* More */

.doctors-more {
  margin-top: 28px;
}

.doctors-more .btn {
  width: 100%;
  max-width: 440px;
}


  /* =======================================================
   EYE CARE MOBILE
======================================================= */

.eye-care-section {
  padding-top: 64px;
  padding-bottom: 64px;
}


/* Heading */

.eye-care-heading {
  display: block;

  margin-bottom: 32px;
}

.eye-care-title {
  margin-bottom: 20px;
}

.eye-care-title h2 {
  font-size: 30px;
}

.eye-care-intro {
  padding-left: 18px;
}

.eye-care-intro h3 {
  font-size: 18px;
}

.eye-care-intro p {
  font-size: 15px;

  line-height: 1.8;
}

/* =======================================================
   Mobile Grid
======================================================= */

.eye-care-grid {
  display: grid;

  width: 100%;

  grid-template-columns:
    1fr 1fr;

  grid-template-rows:
    430px 210px 200px;

  gap: 10px;
}


/* 白內障 */

.eye-care-cataract {
  grid-column:
    1 / -1;

  grid-row:
    1;
}


/* 兒童 */

.eye-care-children {
  grid-column:
    1;

  grid-row:
    2;
}


/* 角膜塑型 */

.eye-care-orthok {
  grid-column:
    2;

  grid-row:
    2;
}


/* 一般眼科 */

.eye-care-general {
  grid-column:
    1 / -1;

  grid-row:
    3;
}


/* =======================================================
   Content
======================================================= */

.eye-care-content {
  padding:
    23px 21px;
}

.eye-care-content h3 {
  font-size:
    25px;
}

.eye-care-content p:not(.eye-care-en) {
  font-size:
    13px;
}


/* 小格 */

.eye-care-children
.eye-care-content,
.eye-care-orthok
.eye-care-content {
  padding:
    17px 15px;
}

.eye-care-children
.eye-care-content h3,
.eye-care-orthok
.eye-care-content h3 {
  margin-bottom:
    3px;

  font-size:
    20px;
}

.eye-care-children
.eye-care-content p:not(.eye-care-en),
.eye-care-orthok
.eye-care-content p:not(.eye-care-en) {
  margin-bottom:
    8px;

  font-size:
    12px;

  line-height:
    1.5;
}

.eye-care-children
.eye-care-en,
.eye-care-orthok
.eye-care-en {
  font-size:
    8px;

  letter-spacing:
    .1em;
}

.eye-care-children
.eye-care-more,
.eye-care-orthok
.eye-care-more {
  font-size:
    11px;
}


/* =======================================================
   General
======================================================= */

.eye-care-general
.eye-care-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(5, 36, 48, .88) 0%,
      rgba(5, 36, 48, .68) 65%,
      rgba(5, 36, 48, .25) 100%
    );
}

.eye-care-general
.eye-care-content {
  top: 0;

  display: flex;

  padding:
    22px 20px;

  align-items:
    center;

  justify-content:
    center;

  flex-direction:
    column;

  gap:
    10px;
}

.eye-care-general
.eye-care-content > div {
  width: 100%;
}

.eye-care-general
.eye-care-content h3 {
  font-size:
    23px;
}

.eye-care-general
.eye-care-content p:not(.eye-care-en) {
  margin-bottom:
    0;

  font-size:
    12px;

  line-height:
    1.6;
}

.eye-care-general
.eye-care-more {
  width: 100%;
}


  /* =======================================================
     FOOTER MOBILE
  ======================================================= */

  .site-footer {
    padding-top: 55px;
  }

  .footer-bottom {
    margin-top: 35px;
  }

}


/* =========================================================
   17. SMALL MOBILE
========================================================= */

@media (max-width: 419.98px) {

  .navbar-brand img {
    height: 39px;
  }

  .header-phone {
    margin-right: 7px;

    font-size: 21px;
  }

  .hero-container {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-title small {
    font-size: 15px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-actions .btn {
    font-size: 14px;
  }

  .quick-service-item {
    min-height: 104px;
  }

  .quick-service-item strong {
    font-size: 14px;
  }

}


/* =========================================================
   18. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

}
/* V3: Fixed CTA is visible below 1200px (d-xl-none). */
@media (min-width: 768px) and (max-width: 1199.98px) {
  body { padding-bottom: 60px; }
}
/* Anchor targets stay visible below sticky navigation. */
[id] { scroll-margin-top: 90px; }
/* Keyboard focus visibility. */
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
/* Safe-area spacing on devices with bottom home indicator. */
@media (max-width: 1199.98px) {
  .mobile-fixed-cta { padding-bottom: env(safe-area-inset-bottom, 0px); }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}
