@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Noto+Sans+TC:wght@400;500;700;900&family=Noto+Serif+TC:wght@600;700;900&display=swap");

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  background: #f4fbff;
  color: #2f3e46;
  line-height: 1.8;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Helvetica", "Arial", sans-serif;
}

/* 導覽列 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 92px;
  padding: 10px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(120, 180, 210, 0.25);
  z-index: 1000;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.logo-area .logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-title h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  color: #0b143f;
}

.brand-title span {
  font-size: 15px;
  color: #0b143f;
}

.navbar nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(120, 180, 210, 0.45);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  padding: 9px 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #184559;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span + span {
  margin-top: 6px;
}

.submenu-toggle {
  display: none;
}

.navbar nav > a,
.navbar nav > .nav-item > a {
  margin-left: 32px;
  text-decoration: none;
  color: #172b38;
  font-weight: 700;
  font-size: 16px;
}

.navbar nav .has-submenu {
  position: relative;
}

.navbar nav .submenu {
  position: absolute;
  left: 32px;
  top: calc(100% + 16px);
  min-width: 150px;
  padding: 8px 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(120, 180, 210, 0.25);
  box-shadow: 0 14px 30px rgba(40, 90, 110, 0.16);
  display: none;
}

.navbar nav .submenu a {
  display: block;
  margin: 0;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #23404f;
  text-decoration: none;
  white-space: nowrap;
}

.navbar nav .submenu a:hover {
  background: #eff9ff;
  color: #1183a4;
}

.navbar nav .has-submenu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  height: 16px;
}

.navbar nav .has-submenu:hover .submenu,
.navbar nav .has-submenu:focus-within .submenu {
  display: block;
}

.navbar nav a:hover {
  color: #5bbfd3;
}

/* Hero */
.hero {
  min-height: 620px;
  padding: 120px 8% 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 55% 22%, rgba(255,255,255,0.95), transparent 26%),
    radial-gradient(circle at 90% 80%, rgba(142,212,239,0.35), transparent 28%),
    linear-gradient(135deg, #eefaff 0%, #dff6ff 45%, #bdefff 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: -5%;
  bottom: -100px;
  width: 110%;
  height: 190px;
  background: rgba(160, 220, 248, 0.45);
  border-radius: 50% 50% 0 0;
}

.hero-left {
  max-width: 540px;
  z-index: 2;
}

.hero-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.hero-app-logo {
  width: clamp(64px, 8vw, 88px);
  height: auto;
  display: block;
  margin: 0;
  flex-shrink: 0;
}

.hero-left h2 {
  margin: 0;
  font-size: 76px;
  line-height: 1.1;
  color: #0b143f;
  letter-spacing: 3px;
}

.subtitle {
  font-size: 28px;
  color: #304f76;
  margin: 18px 0 22px;
  letter-spacing: 2px;
}

.desc {
  font-size: 18px;
  color: #506b7a;
  max-width: 520px;
  margin: 20px 0;
}

.download {
  display: flex;
  gap: 14px;
  margin-top: 32px;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.download img {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(80, 160, 180, 0.22);
}

.store-link {
  font-size: 14px;
  font-weight: 700;
  color: #0b143f;
  text-decoration: none;
  border-bottom: 2px solid rgba(11, 20, 63, 0.2);
}

.store-link:hover {
  color: #0f6f87;
  border-bottom-color: rgba(15, 111, 135, 0.45);
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.25s;
}

.google {
  background: white;
  color: #1f2d35;
  border: 1px solid rgba(25, 50, 70, 0.2);
}

.apple {
  background: #0b143f;
  color: white;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(80, 160, 180, 0.25);
}

/* Hero 三支手機 */
.phone-showcase {
  width: 560px;
  height: 460px;
  position: relative;
  z-index: 2;
}

.phone {
  position: absolute;
  width: 190px;
  height: 390px;
  object-fit: cover;
  border-radius: 34px;
  padding: 0;
  margin: 0;
  background: white;
  border: 10px solid #111a3a;
  box-shadow: 0 22px 45px rgba(20, 70, 100, 0.22);
  animation: float 3s ease-in-out infinite;
}

.phone-left {
  left: 30px;
  top: 72px;
  transform: rotate(-2deg);
  z-index: 1;
}

.phone-center {
  left: 170px;
  top: 10px;
  width: 220px;
  height: 440px;
  z-index: 3;
}

.phone-right {
  right: 10px;
  top: 70px;
  transform: rotate(2deg);
  z-index: 2;
}

/* 引言 */
blockquote {
  margin: 60px auto;
  max-width: 760px;
  padding: 32px 40px;
  border-left: 6px solid #7ccfe0;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(80, 160, 180, 0.12);
  font-size: 20px;
  color: #345b63;
}

/* 功能分組 */
.feature-group {
  width: 100%;
  padding: 90px 8%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-group h2 {
  width: 100%;
  text-align: center;
  font-size: 36px;
  color: #0b143f;
  margin: 0 auto 12px;
}

.feature-group p {
  width: 100%;
  max-width: 680px;
  text-align: center;
  margin: 0 auto 48px;
  color: #5f747b;
  font-size: 18px;
}

.blue-section {
  background: linear-gradient(180deg, #effbff, #dff6ff);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
  justify-content: center;
}

.single-feature {
  max-width: 900px;
  margin: 0 auto;
}

.feature-group img {
  width: 100 px;
  margin: 0;
  padding: 16px;
  background: white;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(80, 160, 180, 0.16);
  transition: 0.35s;
}

.feature-group img:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 28px 70px rgba(80, 160, 180, 0.22);
}

.feature-grid img:nth-child(4) {
  grid-column: 2 / 3;
}

/* 頁尾 */
footer {
  margin-top: 100px;
  padding: 40px 8%;
  text-align: center;
  background: #dff6ff;
  color: #24515c;
}

footer .copyright-symbol {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border: 2px solid #24515c;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 6px;
}

/* 動畫 */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* 手機版 */
@media (max-width: 768px) {
  .navbar {
    height: auto;
    padding: 12px 24px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    margin-left: auto;
  }

  .navbar.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .navbar.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .navbar nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 0 2px;
  }

  .navbar.is-open nav {
    display: flex;
  }

  .navbar nav > a,
  .navbar nav > .nav-item > a {
    margin: 0;
    font-size: 15px;
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(16, 129, 161, 0.08);
  }

  .navbar nav .has-submenu {
    position: static;
    display: grid;
    grid-template-columns: 1fr 42px;
    align-items: center;
    gap: 0;
    border-radius: 12px;
    background: rgba(16, 129, 161, 0.12);
    border: 1px solid rgba(93, 164, 188, 0.28);
    overflow: hidden;
  }

  .navbar nav .has-submenu > a {
    padding: 10px 12px;
    background: transparent;
    border-radius: 0;
  }

  .navbar nav .has-submenu::after {
    display: none;
  }

  .navbar nav .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 100%;
    border: 0;
    border-left: 1px solid rgba(93, 164, 188, 0.28);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.45);
    color: #184559;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .navbar nav .submenu-toggle:hover {
    background: rgba(255, 255, 255, 0.72);
  }

  .navbar nav .has-submenu:hover .submenu,
  .navbar nav .has-submenu:focus-within .submenu {
    display: none;
  }

  .navbar nav .submenu {
    position: static;
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin-top: 2px;
    margin-left: 10px;
    padding: 8px 0 4px 12px;
    border-left: 2px solid rgba(113, 189, 214, 0.5);
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .navbar nav .has-submenu.submenu-open .submenu {
    display: flex;
  }

  .navbar nav .has-submenu.submenu-open .submenu-toggle {
    transform: rotate(180deg);
  }

  .navbar nav .submenu a {
    padding: 9px 12px;
    font-size: 13px;
    border-radius: 10px;
    color: #235064;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(160, 216, 232, 0.75);
  }

  .navbar nav .submenu a:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #1183a4;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 150px 24px 60px;
  }

  .hero-heading {
    align-items: center;
  }

  .hero-left h2 {
    font-size: 48px;
  }

  .subtitle {
    font-size: 22px;
  }

  .download {
    justify-content: center;
    flex-wrap: wrap;
  }

  .phone-showcase {
    width: 320px;
    height: 360px;
    margin-top: 40px;
  }

  .phone {
    width: 120px;
    height: 250px;
    border-radius: 24px;
    border-width: 7px;
  }

  .phone-left {
    left: 0;
    top: 70px;
  }

  .phone-center {
    left: 90px;
    top: 20px;
    width: 140px;
    height: 290px;
  }

  .phone-right {
    right: 0;
    top: 70px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid img:nth-child(4) {
    grid-column: auto;
  }
}

.feature-menu {
  padding: 90px 8%;
  text-align: center;
  background: #f4fbff;
  scroll-margin-top: 110px;
}

#contact-us {
  scroll-margin-top: 110px;
}

.contact-section {
  width: min(92%, 980px);
  margin: 0 auto;
  padding: 52px 40px;
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff, #f5fcff);
  border: 1px solid rgba(170, 210, 225, 0.55);
  box-shadow: 0 18px 40px rgba(70, 140, 165, 0.12);
  text-align: center;
}

.contact-section {
  margin-top: 28px;
}

.section-heading {
  margin: 0 auto 22px;
  font-size: 34px;
  font-weight: 800;
  color: #0b143f;
  letter-spacing: 1px;
}

.contact-section p {
  margin: 0 auto 14px;
  max-width: 760px;
  color: #3e5e6a;
  font-size: 17px;
  line-height: 1.9;
}

.feature-menu blockquote br {
  display: none;
}

@media (min-width: 500px) {
  .feature-menu blockquote br {
    display: inline;
  }
}

.contact-list {
  margin-top: 10px;
}

.cooperation-form {
  width: min(100%, 760px);
  margin: 28px auto 0;
  padding: 28px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(150, 200, 220, 0.4);
  box-shadow: 0 12px 30px rgba(70, 140, 165, 0.12);
  text-align: left;
}

.cooperation-form h3 {
  margin: 0 0 18px;
  font-size: 24px;
  color: #0b143f;
}

.form-help {
  margin: 0 0 14px;
  font-size: 13px;
  color: #587583;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cooperation-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #2f4f5b;
  font-size: 14px;
  font-weight: 600;
}

.cooperation-form input,
.cooperation-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(145, 180, 196, 0.6);
  font-size: 15px;
  font-family: inherit;
  color: #1f3a40;
  background: #fbfeff;
}

.cooperation-form input:focus,
.cooperation-form textarea:focus {
  outline: none;
  border-color: #67bfd5;
  box-shadow: 0 0 0 3px rgba(103, 191, 213, 0.2);
}

.full-width {
  margin-top: 14px;
}

.submit-btn {
  margin-top: 18px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: #0b143f;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.submit-btn:hover {
  background: #13235f;
}

.form-note {
  margin-top: 12px;
  min-height: 24px;
  font-size: 14px;
}

.form-note.success {
  color: #1d6f84;
}

.form-note.error {
  color: #b33b3b;
}

.feature-menu h2 {
  font-size: 36px;
  margin-bottom: 10px;
  color: #0b143f;
}

.feature-menu-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 36px;
  font-size: 32px;
  font-weight: 800;
  color: #0b143f;
  letter-spacing: 1px;
}

.feature-menu-title::before,
.feature-menu-title::after {
  content: "";
  width: min(22vw, 180px);
  height: 1px;
  background: #b9c4cc;
}

.feature-menu > p {
  color: #6b7b80;
  margin-bottom: 42px;
  font-size: 18px;
}

.feature-menu-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.feature-card {
  display: block;
  padding: 28px 20px;
  min-height: 190px;
  background: white;
  border-radius: 28px;
  text-decoration: none;
  color: #1f3a40;
  box-shadow: 0 18px 45px rgba(80, 160, 180, 0.14);
  border: 1px solid rgba(160, 220, 235, 0.65);
  transition: 0.3s ease;
}

.feature-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #dff6ff;
  color: #0b143f;
  font-weight: 800;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #0b143f;
}

.feature-card p {
  margin: 0;
  font-size: 15px;
  color: #6b7b80;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: linear-gradient(180deg, #ffffff, #eafaff);
  box-shadow: 0 26px 60px rgba(80, 160, 180, 0.22);
}

/* 點擊跳轉時，不要被固定導覽列擋住 */
.feature-group {
  scroll-margin-top: 110px;
}

/* 手機版 */
@media (max-width: 900px) {
  .feature-menu-grid {
    grid-template-columns: 1fr;
  }

  .contact-section {
    width: calc(100% - 36px);
    padding: 36px 20px;
    border-radius: 22px;
  }

  .cooperation-form {
    padding: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    font-size: 28px;
  }

  .feature-menu-title {
    font-size: 26px;
    gap: 10px;
  }

  .feature-menu-title::before,
  .feature-menu-title::after {
    width: min(18vw, 90px);
  }

  .feature-card {
    min-height: auto;
  }
}

/* ===== 修正圖片大小（全部鎖住） ===== */
.feature-grid img {
  width: 260px !important;
  height: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

/* 單張功能圖（例如日記、藥物） */
.single-feature img {
  width: 720px;
  max-width: 80%;
  margin: 0 auto;
  display: block;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(80, 160, 180, 0.16);
}

/* ===== 趨勢圖影片（重點） ===== */
.video-banner {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  background: white;
  box-shadow: 0 24px 60px rgba(80, 160, 180, 0.18);
}

.video-banner video {
  width: 100%;
  display: block;
}

/* hover 動畫（加分） */
.feature-grid img:hover {
  transform: translateY(-8px);
  transition: 0.3s;
}
/* ===== 功能展示圖修正版：避免截圖爆大 ===== */

/* 功能區整體 */
.feature-group {
  padding: 100px 8%;
  text-align: center;
  overflow: hidden;
}

/* 標題置中 */
.feature-group h2 {
  text-align: center;
  font-size: 36px;
  color: #0b143f;
  margin: 0 auto 12px;
}

.feature-group p {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  color: #5f747b;
  font-size: 18px;
}

/* 多張手機截圖：固定高度，不再滿版 */
.feature-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.feature-grid img {
  width: auto !important;
  height: clamp(280px, 32vw, 400px) !important;
  max-width: none !important;
  object-fit: contain;
  border-radius: 32px;
  padding: 10px;
  background: white;
  box-shadow: 0 20px 50px rgba(80, 160, 180, 0.18);
}

/* 單張圖：例如日記、藥物整合 */
.single-feature img {
  width: auto !important;
  height: clamp(320px, 36vw, 460px) !important;
  max-width: 90% !important;
  object-fit: contain;
  border-radius: 32px;
  padding: 10px;
  background: white;
  box-shadow: 0 20px 50px rgba(80, 160, 180, 0.18);
}

/* 趨勢圖橫幅：適合截圖 */
.trend-banner {
  width: min(90%, 980px);
  height: clamp(220px, 30vw, 340px);
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  background: white;
  box-shadow: 0 24px 60px rgba(80, 160, 180, 0.18);
}

/* 趨勢影片：完整顯示，不裁切內容 */
.video-banner-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 280px));
  justify-content: center;
  gap: 18px;
  width: 100%;
  margin: 0 auto;
}

.video-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  margin: 0;
  padding: 10px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(145deg, #e8f7ff, #d2f0ff);
  border: 1px solid rgba(140, 198, 222, 0.45);
  box-shadow: 0 24px 60px rgba(63, 130, 163, 0.22);
}

.trend-banner img {
  width: 100%;
  height: 100%;
  display: block;
}

.trend-banner img {
  object-fit: cover;
}

.video-banner video {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  border-radius: 24px;
  background: transparent;
}

.video-fallback {
  margin: 12px 4px 2px;
  font-size: 14px;
  color: #2d5465;
}

.video-fallback a {
  color: #0b143f;
  font-weight: 700;
  text-decoration: underline;
}

/* hover 動畫 */
.feature-grid img:hover,
.single-feature img:hover,
.trend-banner:hover,
.video-banner:hover {
  transform: translateY(-8px);
  transition: 0.3s;
}

/* 手機版 */
@media (max-width: 768px) {
  .feature-grid img {
    height: 420px !important;
  }

  .single-feature img {
    height: 460px !important;
  }

  .trend-banner {
    height: 260px;
  }

  .video-banner {
    padding: 10px;
    border-radius: 24px;
  }

  .video-banner-row {
    grid-template-columns: 1fr;
    width: min(88vw, 280px);
    gap: 14px;
  }

  .video-banner video {
    max-width: 100%;
    max-height: none;
    border-radius: 18px;
  }
}

/* ===== 媒體尺寸統一（圖片 + 影片） ===== */
:root {
  --media-card-width: clamp(230px, 23vw, 290px);
  --media-card-height: clamp(390px, 38vw, 500px);
  --media-card-radius: 28px;
}

.feature-grid,
.single-feature {
  width: 100%;
  justify-content: center;
}

.video-banner-row {
  grid-template-columns: repeat(2, var(--media-card-width));
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.feature-grid img,
.single-feature img,
.video-banner .feature-video {
  width: var(--media-card-width) !important;
  height: var(--media-card-height) !important;
  max-width: 100% !important;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: var(--media-card-radius);
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(80, 160, 180, 0.18);
}

.video-banner {
  width: auto;
  max-width: none;
  padding: 10px;
  border-radius: var(--media-card-radius);
}

.video-fallback {
  max-width: var(--media-card-width);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1024px) {
  :root {
    --media-card-width: clamp(210px, 33vw, 260px);
    --media-card-height: clamp(350px, 55vw, 460px);
  }
}

@media (max-width: 768px) {
  :root {
    --media-card-width: min(84vw, 300px);
    --media-card-height: clamp(380px, 120vw, 500px);
  }

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

  h1,
  h2,
  h3 {
    letter-spacing: 0.2px;
    line-height: 1.35;
  }

  .hero-heading {
    gap: 6px;
  }

  .hero-app-logo {
    width: clamp(56px, 16vw, 72px);
  }

  .hero-left h2 {
    font-size: clamp(36px, 10vw, 46px);
  }

  .subtitle {
    font-size: clamp(18px, 5.4vw, 22px);
    line-height: 1.5;
    letter-spacing: 0.2px;
  }

  .desc,
  .contact-section p,
  .feature-group p,
  .form-help,
  .form-note {
    font-size: 15px;
    line-height: 1.78;
    text-align: left;
    max-width: 34ch;
    margin-left: auto;
    margin-right: auto;
  }

  .feature-card p {
    text-align: center;
    max-width: none;
  }

  .feature-group h2,
  .section-heading,
  .feature-menu-title {
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.35;
  }

  .feature-card h3 {
    font-size: 19px;
    line-height: 1.4;
  }

  .video-banner-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
  }
}

/* 點圖放大燈箱 */
.zoomable-image {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(8, 20, 45, 0.86);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 3000;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  background: #ffffff;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.32);
}

body.no-scroll {
  overflow: hidden;
}

@media (max-width: 768px) {
  .lightbox {
    padding: 18px;
  }

  .lightbox-image {
    max-width: 94vw;
    max-height: 78vh;
  }
}
.brand-video-section {
  padding: 72px 24px 56px;
  background: linear-gradient(180deg, #eaf8fc 0%, #f7fcff 100%);
}

.brand-video-container {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.brand-video-text {
  color: #14213d;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(126, 203, 224, 0.22);
  color: #2f7f9e;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-video-text h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.35;
  color: #07133f;
}

.brand-video-text p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 2;
  color: #46606f;
}

.brand-video-card {
  padding: 14px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 60px rgba(72, 137, 160, 0.18);
  border: 1px solid rgba(151, 218, 238, 0.48);
}

.brand-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  object-fit: cover;
  background: #dff4fa;
}

@media (max-width: 900px) {
  .brand-video-section {
    padding: 56px 18px 44px;
  }

  .brand-video-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .brand-video-text {
    text-align: center;
  }

  .brand-video-text p {
    font-size: 1rem;
  }

  .brand-video-card {
    border-radius: 24px;
    padding: 10px;
  }

  .brand-video {
    border-radius: 18px;
  }
}