:root {
  --navy: #073763;
  --deep: #08213d;
  --blue: #0f6fb5;
  --blue-2: #0f83d3;
  --sky: #eaf5ff;
  --line: #d7e0e8;
  --text: #1d2939;
  --muted: #667085;
  --accent: #d64532;
  --danger: #b71c1c;
}

*,:before,:after { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 16.5px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
p, li, td, th, label, input, select, textarea {
  line-height: 1.9;
  word-break: normal;
  overflow-wrap: break-word;
}
h1, h2, h3 { line-height: 1.25; text-wrap: balance; }
.container { width: min(1120px, calc(100% - 40px)); margin: auto; }
.nowrap { white-space: nowrap; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 260px; max-width: 100%; height: auto; }
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-left: auto;
  font-size: 14px;
  white-space: nowrap;
}
.nav-links .nav-cta,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: #0f7fcb;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(15,127,203,.25);
}

/* Buttons */
.btn,
.btn-primary,
.btn-ghost,
.contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
  font-weight: 800;
}
.btn { padding: 12px 18px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-outline { border: 1px solid rgba(255,255,255,.55); color: #fff; }

/* Hero */
.hero {
  min-height: 680px;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8,33,61,.96), rgba(7,55,99,.86) 52%, rgba(7,55,99,.48)),
    url("assets/images/bg-01.jpg") center / cover no-repeat;
}
.hero .container {
  width: min(1240px, calc(100% - 40px));
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(500px, .72fr);
  gap: 48px;
  align-items: center;
  padding: 86px 0;
}
.eyebrow {
  display: block;
  color: #eaf8ff;
  font-weight: 800;
  letter-spacing: .085em;
  text-transform: uppercase;
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.45;
  margin-bottom: 22px;
  text-shadow: 0 2px 10px rgba(0,38,74,.35);
}
.eyebrow:before { content: none; display: none; }
h1 { margin: 0 0 18px; font-size: clamp(40px, 5vw, 68px); }
.hero-title { font-size: clamp(50px, 4vw, 76px); line-height: 1.12; letter-spacing: -0.02em; }
.hero-title .brand-line,
.hero-title .desktop-title-line,
.hero-title .mobile-title-line { display: block; }
.hero-title .desktop-title-line { display: block !important; white-space: nowrap; }
.hero-title .mobile-title-line { display: none !important; }
.hero-subtitle {
  max-width: 760px;
  margin-bottom: 18px;
  color: #e6f4ff;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
}
.hero-copy,
.hero p {
  max-width: 760px;
  margin-bottom: 32px;
  color: #d9e7f5;
  font-size: 17px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-panel {
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 24px;
  background: rgba(255,255,255,.1);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.metric {
  min-width: 0;
  min-height: 168px;
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  color: var(--text);
}
.metric small {
  display: block;
  min-height: 34px;
  margin-bottom: 10px;
  color: #53657c;
  font-size: 10.5px;
  line-height: 1.45;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 800;
}
.metric strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: clamp(27px, 1.7vw, 34px);
  line-height: 1.12;
  letter-spacing: .06em;
  font-weight: 900;
}
.metric span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* Section basics */
section { padding: 86px 0; }
.section-head { max-width: 860px; margin-bottom: 36px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.kicker {
  margin-bottom: 10px;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.4;
  font-size: 13px;
  text-transform: uppercase;
}
h2 { margin: 0 0 16px; color: var(--deep); font-size: clamp(30px, 3.2vw, 44px); line-height: 1.22; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.95; }
.risk, .features, .apps { background: linear-gradient(180deg, #fff, var(--sky)); }
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.grid4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16,24,40,.06);
}
.card h3 { margin: 0 0 10px; color: var(--deep); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.num { margin-bottom: 12px; color: var(--accent); font-size: 28px; font-weight: 900; line-height: 1; }
.icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--sky);
  color: var(--blue);
  font-weight: 900;
}
.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #2a6da8;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

/* Comparison */
#compare .section-head { max-width: 100%; margin-left: 0; margin-right: 0; text-align: left; }
#compare .lead { max-width: 100%; margin-left: 0; margin-right: 0; text-align: left; white-space: normal; overflow-wrap: break-word; }
#compare .highlight { color: var(--danger); font-weight: 800; }
.compare-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 46px rgba(16,24,40,.08);
}
table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 15px; }
th, td { padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: #fff; text-align: left; }
td:first-child { background: #f8fbfd; color: var(--deep); font-weight: 800; }
.note { margin-top: 14px; color: var(--muted); font-size: 13px; }

/* Structure and gallery */
.structure-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 34px; align-items: center; }
.image-frame {
  height: 550px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #0a2542;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.structure-list { display: grid; gap: 14px; }
.structure-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.check {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f7ef;
  color: #0f8f55;
  font-weight: 900;
}
.structure-item span { color: var(--muted); font-size: 15px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 26px; }
.gallery-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16,24,40,.06);
}
.gallery-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery-item div { padding: 14px 18px; color: var(--muted); font-size: 14px; }

/* Proof */
.proof { background: linear-gradient(180deg, var(--deep), #0a3159); color: #fff; }
.proof h2 { color: #fff; }
.proof .lead { color: #c7d7e8; }
.proof .card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); box-shadow: none; }
.proof .card h3 { color: #fff; }
.proof .card p { color: #d1deea; }
.proof .kicker { color: #9fe9ff; }

/* Validation */
.test-validation { padding: 86px 0; background: linear-gradient(180deg, #f5f9fd 0%, #fff 100%); }
#validation .section-head { max-width: 1180px; margin-left: auto; margin-right: auto; }
#validation .section-head h2 { max-width: none; white-space: nowrap; font-size: clamp(36px, 4vw, 58px); }
#validation .section-head .lead { max-width: 1080px; margin-left: auto; margin-right: auto; line-height: 1.9; }
.validation-feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: 42px; align-items: center; margin-top: 38px; }
.validation-image { overflow: hidden; border-radius: 26px; background: #0a2542; box-shadow: 0 18px 42px rgba(16,24,40,.14); }
.validation-image img { width: 100%; max-height: 360px; height: auto; object-fit: contain; background: #061b35; }
.validation-content { padding: 10px 4px; }
.validation-content h3 { margin: 18px 0; color: var(--deep); font-size: clamp(28px,3vw,40px); line-height: 1.25; }
.validation-content p { color: var(--muted); font-size: 17px; line-height: 1.9; }
.validation-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 24px; }
.validation-stats div { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(16,24,40,.06); }
.validation-stats strong { display: block; margin-bottom: 8px; color: var(--blue); font-size: 30px; }
.validation-stats span { color: var(--muted); font-size: 14px; }
.validation-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 40px; }
.validation-gallery { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 26px; }
.validation-gallery-item { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 12px 32px rgba(16,24,40,.06); }
.validation-gallery-item img { width: 100%; height: 280px; object-fit: cover; }
.validation-gallery-item div { padding: 16px 20px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.validation-conclusion {
  margin-top: 28px;
  padding: 30px 34px;
  border-radius: 24px;
  background: linear-gradient(135deg, #073763 0%, #0f4f7d 100%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(16,24,40,.14);
}
.validation-conclusion .tag { background: rgba(255,255,255,.14); color: #aee8ff; }
.validation-conclusion h3 { margin: 18px 0 14px; color: #fff; font-size: 28px; }
.validation-conclusion p { margin: 0; color: rgba(255,255,255,.88); font-size: 16px; line-height: 1.9; }

/* Test video */
#tests { padding-top: 32px; }
.video-frame {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #0a2542;
  box-shadow: 0 14px 40px rgba(16,24,40,.08);
}
.video-frame video,
.test-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: #0a2542;
}
.media-caption { padding: 16px 20px 18px; background: #fff; color: var(--muted); font-size: 14px; }

/* FAQ and contact */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-inquiry-section {
  padding: 86px 0;
  background: linear-gradient(120deg, #0b2b49 0%, #1e6b9d 100%);
}
.contact-inquiry-box {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 56px;
  align-items: center;
  padding: 56px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 28px;
  background: rgba(255,255,255,.05);
  box-shadow: 0 24px 60px rgba(0,0,0,.16);
}
.contact-left { color: #fff; }
.contact-left .kicker { color: #aee8ff; letter-spacing: .16em; font-size: 14px; }
.contact-left h2 { margin: 0 0 22px; color: #fff; font-size: clamp(34px,4vw,56px); line-height: 1.2; }
.contact-left p { margin-bottom: 28px; color: rgba(255,255,255,.86); font-size: 17px; line-height: 1.9; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.contact-actions a { min-height: 52px; padding: 0 26px; background: var(--blue-2); color: #fff; }
.contact-company-list { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.2); }
.contact-company-list div { display: grid; grid-template-columns: 92px 1fr; gap: 22px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.contact-company-list span { color: rgba(255,255,255,.58); font-size: 14px; }
.contact-company-list strong { color: #fff; font-size: 17px; line-height: 1.6; }
.contact-form-panel {
  padding: 36px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(0,0,0,.14);
}
.contact-form-panel .form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px 20px; }
.contact-form-panel label { display: block; color: #526176; font-size: 14px; font-weight: 700; }
.contact-form-panel label span { margin-left: 4px; color: #b91c1c; }
.contact-form-panel input,
.contact-form-panel select,
.contact-form-panel textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #0f2742;
  font-family: inherit;
  font-size: 15px;
}
.contact-form-panel input:focus,
.contact-form-panel select:focus,
.contact-form-panel textarea:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(15,131,211,.12); }
.contact-form-panel .full { margin-top: 20px; }
.contact-form-panel textarea { min-height: 120px; resize: vertical; }
.contact-form-panel .privacy-check { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: #334155; font-size: 14px; }
.contact-form-panel .privacy-check input { width: 16px; height: 16px; margin: 0; padding: 0; }
.contact-form-panel button {
  width: 100%;
  margin-top: 22px;
  padding: 17px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--blue-2);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
}
.contact-form-panel button:hover { background: #096cac; }

footer { padding: 28px 0; background: #05192e; color: #b9c6d3; font-size: 13px; }
footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }


/* Hero：中小桌機避免左右欄互相壓縮 */
@media (max-width: 1180px) {
  .hero .container { width: min(100% - 40px, 920px); }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-panel { max-width: 680px; margin-left: 0; }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1100px) {
  .container { width: min(100% - 48px, 920px); }
  section { padding: 72px 0; }
  .nav { min-height: 78px; gap: 20px; }
  .brand img { max-width: 240px; }
  .nav-links { display: none; }
  .hero { min-height: auto; padding: 86px 0 78px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 0; }
  .hero-panel { max-width: 680px; margin-left: 0; }
  .hero h1 { font-size: clamp(56px, 8vw, 82px); line-height: 1.12; }
  .hero p, .hero-subtitle { max-width: 720px; }
  .structure-grid,
  .validation-feature,
  .contact-inquiry-box { grid-template-columns: 1fr; gap: 36px; }
  .grid3,
  .faq-grid,
  .validation-grid { grid-template-columns: repeat(2,1fr); gap: 22px; }
  .grid4,
  .metric-grid { grid-template-columns: repeat(2,1fr); gap: 18px; }
  .section-head { max-width: 820px; }
  .section-head h2,
  section h2 { font-size: clamp(36px,5vw,52px); line-height: 1.25; }
  .image-frame,
  .gallery-item,
  .validation-image,
  .validation-gallery-item,
  .video-frame { width: 100%; max-width: 100%; height: auto; min-height: 0; overflow: hidden; }
  .image-frame img,
  .gallery-item img,
  .validation-image img,
  .validation-gallery-item img { width: 100%; height: auto; object-fit: contain; }
  .contact-inquiry-box { padding: 42px; }
  .contact-left h2 { font-size: 42px; }
  .contact-form-panel { padding: 34px; }
}

/* Mobile */
@media (max-width: 768px) {
  .container { width: calc(100% - 28px); max-width: 100%; }
  section { padding: 56px 0; }
  .nav { min-height: 70px; gap: 12px; }
  .brand img { max-width: 180px; }
  .nav-links { display: none; }
  .hero { min-height: auto; padding: 64px 0 58px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding: 0; }
  .hero-panel { max-width: 100%; margin-left: 0; padding: 20px; }
  .hero h1 { font-size: clamp(42px,13vw,58px); line-height: 1.12; letter-spacing: -.04em; }
  .hero p, .hero-subtitle { max-width: 100%; font-size: 15px; line-height: 1.9; }
  .hero-actions { display: flex; flex-direction: column; gap: 14px; width: 100%; }
  .hero-actions .btn, .btn, .btn-primary, .btn-ghost, .contact-actions a { width: 100%; justify-content: center; text-align: center; }
  .grid3,
  .grid4,
  .validation-grid,
  .validation-feature,
  .gallery-grid,
  .validation-gallery,
  .structure-grid,
  .faq-grid,
  .contact-inquiry-box,
  .metric-grid { grid-template-columns: 1fr; gap: 22px; }
  .section-head { max-width: 100%; margin-bottom: 28px; }
  .section-head h2, section h2 { font-size: 30px; line-height: 1.32; letter-spacing: -.03em; }
  .section-head.center p,
  .section-head.center .lead,
  .proof .section-head.center p,
  .test-validation .section-head.center p { text-align: left; margin-left: 0; margin-right: 0; }
  .lead { font-size: 15px; line-height: 1.9; }
  .card,
  .validation-conclusion,
  .contact-form-panel { width: 100%; padding: 22px; border-radius: 22px; }
  .image-frame,
  .gallery-item,
  .validation-image,
  .validation-gallery-item,
  .video-frame { width: 100%; max-width: 100%; height: auto; min-height: 0; max-height: none; overflow: hidden; background: #fff; }
  .gallery-item img,
  .validation-gallery-item img,
  .image-frame img,
  .validation-image img { width: 100%; height: auto; min-height: 0; max-height: none; object-fit: contain; }
  .compare-wrap { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { width: 760px; min-width: 760px; }
  th, td { padding: 14px 16px; font-size: 14px; }
  .contact-inquiry-box { padding: 26px 20px; }
  .contact-left h2 { font-size: 30px; line-height: 1.3; }
  .contact-left p { font-size: 15px; line-height: 1.9; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-company-list div { grid-template-columns: 1fr; gap: 6px; }
  .contact-form-panel .form-grid,
  .form-grid { grid-template-columns: 1fr; }
  .contact-form-panel input,
  .contact-form-panel select,
  .contact-form-panel textarea { width: 100%; font-size: 16px; }
  #validation .section-head h2 { white-space: normal; font-size: 30px; line-height: 1.35; }
}

/* True phone title switch */
@media (max-width: 600px) {
  .hero-title { font-size: clamp(42px,10vw,58px); line-height: 1.15; }
  .hero-title .desktop-title-line { display: none !important; }
  .hero-title .mobile-title-line { display: block !important; }
}

/* ==============================
   Hero Metric Cards Final Fix
   統一首頁右側四張卡片的字級、行高與高度
   ============================== */
.hero-panel {
  max-width: 620px;
  width: 100%;
  margin-left: auto;
  padding: 24px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.metric {
  min-height: 190px;
  padding: 24px 22px;
  display: grid;
  grid-template-rows: 28px 58px 1fr;
  align-items: start;
}

.metric small {
  margin: 0;
  min-height: 28px;
  line-height: 1.35;
  font-size: 12px;
  letter-spacing: .14em;
}

.metric strong {
  margin: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  font-size: clamp(28px, 1.75vw, 34px);
  line-height: 1.12;
  letter-spacing: .06em;
  white-space: nowrap;
}

.metric span {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

@media (max-width: 1180px) {
  .hero-panel {
    max-width: 620px;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .hero-panel {
    max-width: 100%;
    padding: 20px;
  }

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

  .metric {
    min-height: auto;
    grid-template-rows: auto;
    gap: 8px;
  }

  .metric small,
  .metric strong {
    min-height: 0;
  }
}
/* ==============================
   Hero 右側四張卡片最終修正
   針對 .metric 實際卡片 class
   ============================== */

.hero-panel {
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  padding: 24px;
}

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

.metric {
  min-height: 188px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.metric small {
  display: block;
  min-height: 34px;
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.16em;
  color: #34495f;
  font-weight: 800;
}

.metric strong {
  display: block;
  min-height: 48px;
  margin-bottom: 10px;
  font-size: clamp(28px, 1.9vw, 34px);
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: #073763;
  font-weight: 800;
  white-space: nowrap;
}

.metric span {
  display: block;
  font-size: 15px;
  line-height: 1.85;
  color: #52677d;
}

/* 中小螢幕：右側卡片避免被擠壓 */
@media (max-width: 1100px) {
  .hero-panel {
    max-width: 680px;
    margin-left: 0;
  }

  .metric strong {
    font-size: 32px;
  }
}

/* 手機版：改成單欄，文字自然排列 */
@media (max-width: 640px) {
  .hero-panel {
    max-width: 100%;
    padding: 18px;
  }

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

  .metric {
    min-height: auto;
    padding: 22px;
  }

  .metric small {
    min-height: auto;
  }

  .metric strong {
    min-height: auto;
    font-size: 32px;
    white-space: normal;
  }
}
/* ==============================
   Hero 右側四張 metric 卡片最終穩定版
   ============================== */

.hero-panel {
  width: 100% !important;
  max-width: 620px !important;
  margin-left: auto !important;
  padding: 24px !important;
}

.metric-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.metric {
  min-height: 206px !important;
  padding: 24px 22px !important;
  display: grid !important;
  grid-template-rows: 34px 52px 1fr !important;
  align-items: start !important;
}

.metric small {
  display: block !important;
  min-height: 34px !important;
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  letter-spacing: 0.16em !important;
  color: #34495f !important;
  font-weight: 800 !important;
}

.metric strong {
  display: block !important;
  min-height: 52px !important;
  margin: 0 !important;
  font-size: 30px !important;
  line-height: 1.18 !important;
  letter-spacing: 0.04em !important;
  color: #073763 !important;
  font-weight: 800 !important;
  white-space: normal !important;
  word-break: keep-all !important;
}

.metric span {
  display: block !important;
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: #52677d !important;
}

/* 桌機寬度不足時，右側卡片區自動移到下方，避免硬擠 */
@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-panel {
    max-width: 680px !important;
    margin-left: 0 !important;
  }
}

/* 手機版單欄 */
@media (max-width: 640px) {
  .hero-panel {
    max-width: 100% !important;
    padding: 18px !important;
  }

  .metric-grid {
    grid-template-columns: 1fr !important;
  }

  .metric {
    min-height: auto !important;
    grid-template-rows: auto !important;
    padding: 22px !important;
  }

  .metric small,
  .metric strong {
    min-height: auto !important;
    margin-bottom: 10px !important;
  }

  .metric strong {
    font-size: 30px !important;
  }
}
/* ==============================
   Hero 右側四張 metric 卡片修正版
   取消固定列高，避免文字重疊
   ============================== */

.hero-panel {
  width: 100% !important;
  max-width: 620px !important;
  margin-left: auto !important;
  padding: 24px !important;
}

.metric-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.metric {
  min-height: 206px !important;
  padding: 24px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

.metric small {
  display: block !important;
  min-height: 34px !important;
  margin: 0 0 12px 0 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  letter-spacing: 0.16em !important;
  color: #34495f !important;
  font-weight: 800 !important;
}

.metric strong {
  display: block !important;
  margin: 0 0 14px 0 !important;
  font-size: 30px !important;
  line-height: 1.18 !important;
  letter-spacing: 0.04em !important;
  color: #073763 !important;
  font-weight: 800 !important;
  white-space: normal !important;
  word-break: keep-all !important;
}

.metric span {
  display: block !important;
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: #52677d !important;
}

/* 中小螢幕：右側整組移到下方，避免硬擠 */
@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-panel {
    max-width: 680px !important;
    margin-left: 0 !important;
  }
}

/* 手機版單欄 */
@media (max-width: 640px) {
  .hero-panel {
    max-width: 100% !important;
    padding: 18px !important;
  }

  .metric-grid {
    grid-template-columns: 1fr !important;
  }

  .metric {
    min-height: auto !important;
    padding: 22px !important;
  }

  .metric small {
    min-height: auto !important;
  }

  .metric strong {
    font-size: 30px !important;
  }
}
/* ==============================
   Hero 右側四張卡片：縮小段落距離最終版
   ============================== */

.hero-panel {
  width: 100% !important;
  max-width: 620px !important;
  margin-left: auto !important;
  padding: 18px !important;
}

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

.metric {
  min-height: 150px !important;
  padding: 14px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  grid-template-rows: unset !important;
}

.metric small {
  display: block !important;
  min-height: 24px !important;
  margin: 0 0 6px 0 !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  letter-spacing: 0.13em !important;
  color: #34495f !important;
  font-weight: 800 !important;
}

.metric strong {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 28px !important;
  line-height: 1.08 !important;
  letter-spacing: 0.02em !important;
  color: #073763 !important;
  font-weight: 800 !important;
  white-space: normal !important;
  word-break: keep-all !important;
}

.metric span {
  display: block !important;
  margin: -2px 0 0 0 !important;
  padding: 0 !important;
  font-size: 14.5px !important;
  line-height: 1.38 !important;
  color: #52677d !important;
}
/* Hero 右側卡片：強制縮小大字與說明文字距離 */
.metric strong {
  margin-bottom: -4px !important;
}

.metric span {
  margin-top: -4px !important;
  line-height: 1.45 !important;
}
/* ==============================
   實測照片區：統一圖片比例，避免橫圖直圖高度不一致
   ============================== */

.validation-gallery {
  align-items: stretch !important;
}

.validation-gallery-item {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.validation-gallery-item img {
  width: 100% !important;
  height: 260px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  background: #eef4f8 !important;
}

.validation-gallery-item div {
  flex: 1 !important;
  padding: 16px 20px !important;
}

@media (min-width: 769px) and (max-width: 1100px) {
  .validation-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }

  .validation-gallery-item img {
    height: 230px !important;
    object-fit: cover !important;
  }
}

@media (max-width: 768px) {
  .validation-gallery {
    grid-template-columns: 1fr !important;
  }

  .validation-gallery-item img {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}
/* ==============================
   手機版 Hero 卡片修正：改為單欄排列
   ============================== */

@media (max-width: 768px) {
  .hero-panel {
    max-width: 100% !important;
    width: 100% !important;
    padding: 18px !important;
    margin-top: 28px !important;
  }

  .metric-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .metric {
    min-height: auto !important;
    padding: 18px 20px !important;
  }

  .metric small {
    min-height: auto !important;
    margin-bottom: 8px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .metric strong {
    font-size: 30px !important;
    line-height: 1.12 !important;
    margin-bottom: 6px !important;
    white-space: normal !important;
  }

  .metric span {
    font-size: 14.5px !important;
    line-height: 1.5 !important;
  }
}
.nowrap-title {
  white-space: nowrap !important;
  font-size: clamp(34px, 3.2vw, 46px) !important;
  line-height: 1.2 !important;
}

@media (max-width: 900px) {
  .nowrap-title {
    white-space: normal !important;
    font-size: 34px !important;
    line-height: 1.35 !important;
  }
}