/* Masgick 首頁現代化樣式（僅作用於 .mh-* 元素，不影響其他頁面） */
.mh {
  --mh-green: #1fb868;
  --mh-green-dark: #0e8f4e;
  --mh-green-soft: #e9f8f0;
  --mh-ink: #1d2a24;
  --mh-muted: #5d6b64;
  --mh-line: #e3ece7;
  --mh-radius: 20px;
  color: var(--mh-ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.mh *, .mh *::before, .mh *::after { box-sizing: border-box; }
.mh img { max-width: 100%; height: auto; display: block; }
.mh h1, .mh h2, .mh h3, .mh p { margin: 0; }

.mh-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mh-section { padding: 88px 0; }
.mh-section--soft { background: linear-gradient(180deg, #f5fbf8 0%, #ffffff 100%); }
.mh-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mh-green-dark);
  background: var(--mh-green-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.mh-h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.mh-h2 em { font-style: normal; color: var(--mh-green); }
.mh-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--mh-muted); margin-top: 14px; }
.mh-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }

/* Hero */
.mh-hero { padding: 120px 0 72px; background:
  radial-gradient(900px 420px at 85% 10%, rgba(31,184,104,.16), transparent 60%),
  linear-gradient(180deg, #f4fbf7 0%, #ffffff 100%); overflow: hidden; }
.mh-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.mh-hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.mh-hero h1 span { display: block; color: var(--mh-green); }
.mh-hero__sub { font-size: clamp(17px, 1.8vw, 21px); color: var(--mh-muted); margin-top: 20px; max-width: 520px; }
.mh-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.mh-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none !important; transition: transform .15s, box-shadow .15s, background .15s;
}
.mh-btn--primary { background: var(--mh-green); color: #fff !important; box-shadow: 0 8px 22px rgba(31,184,104,.32); }
.mh-btn--primary:hover { background: var(--mh-green-dark); transform: translateY(-2px); }
.mh-btn--ghost { background: #fff; color: var(--mh-ink) !important; border: 1px solid var(--mh-line); }
.mh-btn--ghost:hover { border-color: var(--mh-green); color: var(--mh-green-dark) !important; }
.mh-hero__visual { position: relative; }
.mh-hero__visual::before {
  content: ""; position: absolute; inset: 8% 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(31,184,104,.22), transparent 70%); filter: blur(6px);
}
.mh-hero__visual img { position: relative; width: 100%; filter: drop-shadow(0 24px 40px rgba(14,80,50,.18)); }

/* Video */
.mh-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--mh-radius); overflow: hidden;
  box-shadow: 0 24px 60px rgba(20,60,40,.18); background: #000; }
.mh-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Feature cards */
.mh-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mh-split--rev .mh-split__media { order: 2; }
.mh-media-card { background: #fff; border: 1px solid var(--mh-line); border-radius: var(--mh-radius);
  box-shadow: 0 18px 50px rgba(20,60,40,.08); overflow: hidden; }
.mh-mask { width: 100%; padding: 12px; background: #fff; }
.mh-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.mh-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: var(--mh-green-soft); color: var(--mh-green-dark); font-weight: 700; font-size: 15px; }
.mh-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mh-green); }

/* Layers */
.mh-layers { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.mh-layers li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center;
  padding: 16px 20px; border: 1px solid var(--mh-line); border-radius: 16px; background: #fff; }
.mh-layers b { font-size: 15px; color: var(--mh-green-dark); background: var(--mh-green-soft); border-radius: 10px;
  text-align: center; padding: 6px 4px; }
.mh-layers span { font-size: 16px; line-height: 1.5; }
.mh-layers small { display: block; color: var(--mh-muted); font-size: 14px; margin-top: 2px; }

/* Steps */
.mh-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0 0 56px; padding: 0; list-style: none; }
.mh-step { background: #fff; border: 1px solid var(--mh-line); border-radius: var(--mh-radius); padding: 16px 16px 22px;
  box-shadow: 0 10px 30px rgba(20,60,40,.06); }
.mh-step__img { width: 100%; height: auto; border-radius: 12px; background: #fff; }
.mh-step p { margin-top: 14px; font-size: 16px; line-height: 1.65; }

/* Results */
.mh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.mh-stat { background: #fff; border: 1px solid var(--mh-line); border-radius: var(--mh-radius); padding: 28px 24px; text-align: center;
  box-shadow: 0 10px 30px rgba(20,60,40,.06); }
.mh-stat strong { display: block; font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; color: var(--mh-green); line-height: 1.1; }
.mh-stat span { display: block; margin-top: 8px; color: var(--mh-muted); font-size: 15px; }
.mh-table-wrap { overflow-x: auto; border: 1px solid var(--mh-line); border-radius: var(--mh-radius); background: #fff; }
.mh-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.mh-table th, .mh-table td { padding: 18px 20px; text-align: center; border-bottom: 1px solid var(--mh-line); font-size: 16px; }
.mh-table thead th { background: var(--mh-green-soft); font-weight: 800; vertical-align: bottom; }
.mh-table thead th small { display: block; font-weight: 500; color: var(--mh-green-dark); font-size: 13px; margin-top: 4px; }
.mh-table td:first-child, .mh-table th:first-child { text-align: left; }
.mh-table small.mh-std { color: var(--mh-muted); font-size: 12px; font-style: italic; line-height: 1.6; margin-top: 6px; }
.mh-table td.mh-val { font-size: 22px; font-weight: 700; }
.mh-table tbody tr:last-child td { border-bottom: 0; }
.mh-table td small { display: block; color: var(--mh-muted); font-size: 13px; }
.mh-reports { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.mh-report { display: block; width: 100%; padding: 0; cursor: zoom-in; font: inherit; text-align: left; border: 1px solid var(--mh-line); border-radius: var(--mh-radius); overflow: hidden; background: #fff;
  text-decoration: none !important; color: var(--mh-ink) !important; transition: transform .15s, box-shadow .15s; }
.mh-report:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(20,60,40,.12); }
.mh-report img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.mh-report span { display: block; padding: 14px 18px; font-weight: 700; font-size: 15px; border-top: 1px solid var(--mh-line); }
.mh-note { margin-top: 18px; font-size: 14px; color: var(--mh-muted); text-align: center; }

/* Responsive */
@media (max-width: 991px) {
  .mh-section { padding: 64px 0; }
  .mh-hero { padding: 132px 0 56px; }
  .mh-hero__grid, .mh-split { grid-template-columns: 1fr; gap: 32px; }
  .mh-split--rev .mh-split__media { order: 0; }
  .mh-hero__visual { max-width: 460px; margin: 0 auto; }
  .mh-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .mh-wrap { padding: 0 18px; }
  .mh-steps { grid-template-columns: 1fr; }
  .mh-stats, .mh-reports { grid-template-columns: 1fr; }
  .mh-head { margin-bottom: 32px; }
  .mh-layers li { grid-template-columns: 1fr; gap: 8px; }
  .mh-layers b { justify-self: start; padding: 4px 14px; }
  .mh-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .mh *, .mh *::before { transition: none !important; } }

.mh-layers--row { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.mh-layers--row li { grid-template-columns: 1fr; gap: 8px; align-content: start; }
.mh-layers--row b { justify-self: start; padding: 4px 14px; }
@media (max-width: 767px) { .mh-layers--row { grid-template-columns: 1fr; } }

/* 報告放大檢視（modal） */
.mh-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center;
  background: rgba(10,20,15,.82); }
.mh-modal.is-open { display: flex; }
.mh-modal__body { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 56px 72px; overflow: auto; }
.mh-modal__body img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 10px; background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); cursor: default; }
.mh-modal__close, .mh-modal__nav { position: absolute; z-index: 1; border: 0; color: #fff; background: rgba(255,255,255,.14);
  width: 46px; height: 46px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; transition: background .15s; }
.mh-modal__close:hover, .mh-modal__nav:hover { background: rgba(255,255,255,.28); }
.mh-modal__close { top: 16px; right: 16px; }
.mh-modal__nav { top: 50%; transform: translateY(-50%); }
.mh-modal__nav--prev { left: 14px; }
.mh-modal__nav--next { right: 14px; }
@media (max-width: 575px) { .mh-modal__body { padding: 64px 12px 24px; } .mh-modal__nav { display: none; } }
