:root {
  --brand: #176b5b;
  --brand-dark: #0d4f43;
  --accent: #f1a44b;
  --ink: #21312d;
  --muted: #60706b;
  --line: #dce8e4;
  --surface: #ffffff;
  --soft: #f4f8f6;
  --shadow: 0 12px 34px rgba(24, 70, 60, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f5faf8 0, #fff 420px);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

body > table,
body > form > table {
  width: min(1155px, calc(100% - 40px)) !important;
  max-width: 1155px;
  height: auto !important;
  margin: 24px auto !important;
  border: 0 !important;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

table { max-width: 100%; }
td, th { height: auto !important; }
img { max-width: 100%; height: auto !important; }
iframe, video, embed { max-width: 100%; }

body > table > tbody > tr > td,
body > form > table > tbody > tr > td { padding: 18px !important; }

h1, h2, h3 { color: var(--brand-dark); line-height: 1.35; }
h1 { font-size: clamp(1.85rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 2.7vw, 1.85rem); }
h3 { font-size: 1.16rem; }
p { color: var(--ink); }
a { color: var(--brand) !important; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark) !important; }

.ng-service-guide {
  width: min(1115px, calc(100% - 40px));
  margin: 28px auto;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.ng-service-guide__eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.ng-service-guide__intro { max-width: 830px; color: var(--muted); }
.ng-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.ng-service-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}
.ng-service-card h3 { margin: 0 0 8px; }
.ng-service-card p { margin: 0; color: var(--muted); }
.ng-faq { margin-top: 30px; }
.ng-faq details {
  margin-top: 10px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.ng-faq summary { cursor: pointer; color: var(--brand-dark); font-weight: 800; }
.ng-faq details p { margin: 10px 0 0; color: var(--muted); }
.ng-inline-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 18px;
  padding: 11px 20px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--brand);
  box-shadow: 0 8px 20px rgba(23, 107, 91, .22);
  font-weight: 800;
}
.ng-inline-cta:hover { color: #fff !important; background: var(--brand-dark); }
.ng-line-float {
  position: fixed;
  z-index: 9999;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 12px 18px;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 999px;
  color: #fff !important;
  background: #06c755;
  box-shadow: 0 10px 28px rgba(0, 96, 44, .3);
  font-weight: 900;
}
.ng-line-float:hover { color: #fff !important; background: #00a945; transform: translateY(-2px); }
.ng-line-float small { font-size: .78rem; font-weight: 700; opacity: .9; }

@media (max-width: 760px) {
  body { font-size: 15px; }
  body > table,
  body > form > table { width: calc(100% - 20px) !important; margin: 10px auto 20px !important; border-radius: 16px; }
  body > table > tbody > tr,
  body > form > table > tbody > tr { display: flex; flex-direction: column; width: 100%; }
  body > table > tbody > tr > td,
  body > form > table > tbody > tr > td { display: block; width: 100% !important; padding: 12px !important; }
  body > table table[width="100%"] > tbody > tr { display: flex; flex-wrap: wrap; width: 100%; }
  body > table table[width="100%"] > tbody > tr > td,
  body > table table[width="100%"] > tbody > tr > th { flex: 1 1 280px; width: auto !important; }
  .ng-service-guide { width: calc(100% - 20px); margin: 20px auto; padding: 22px 18px; border-radius: 16px; }
  .ng-service-grid { grid-template-columns: 1fr; }
  .ng-line-float { right: 10px; bottom: 10px; padding: 11px 15px; }
  .ng-line-float small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ng-line-float { transition: none; }
}
