:root {
--brand: #0d4f78;
  --brand-dark: #073653;
  --brand-soft: #eaf5fb;
  --accent: #d94b45;
  --accent-dark: #b93631;
  --gold: #f0b44b;
  --ink: #20303b;
  --muted: #60717d;
  --line: #d7e2e8;
  --surface: #ffffff;
  --surface-alt: #f6f9fb;
  --shadow: 0 16px 38px rgba(10, 50, 73, 0.12);
  --radius: 18px;
  --page: 1180px;
}

*,
*::before,
*::after {
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
}

body {
margin: 0;
  color: var(--ink);
  background: var(--surface-alt);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

img {
display: block;
  max-width: 100%;
  height: auto;
}

a {
color: var(--brand);
  text-underline-offset: 0.18em;
}

a:hover {
color: var(--accent-dark);
}

button,
input,
select,
textarea {
font: inherit;
}

:focus-visible {
outline: 3px solid rgba(240, 180, 75, 0.85);
  outline-offset: 3px;
}

.nav-toggle {
display: none;
  padding: 8px 12px;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-weight: 800;
}

.page-shell {
width: min(calc(100% - 36px), var(--page));
  margin: 0 auto;
}

.section-heading {
max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2 {
margin: 0;
  color: var(--brand-dark);
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1.3;
}

.section-heading p:last-child {
margin: 14px 0 0;
  color: var(--muted);
}

.summary-grid,
.feature-grid,
.resource-grid {
display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.plan-table {
width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.plan-table th,
.plan-table td {
padding: 17px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.plan-table th:last-child,
.plan-table td:last-child {
border-right: 0;
}

.plan-table tr:last-child > * {
border-bottom: 0;
}

.plan-table thead th {
color: #fff;
  background: var(--brand);
  font-weight: 900;
  text-align: center;
}

.table-link {
display: inline-flex;
  padding: 7px 14px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.table-link:hover {
color: #fff;
  background: var(--brand);
}

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

.compare-card {
overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--brand);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(10, 50, 73, 0.08);
}

.compare-card.appraiser-exam {
border-top-color: var(--accent);
}

.compare-card h3 {
margin: 0;
  padding: 16px 18px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  text-align: center;
}

.compare-card dl {
margin: 0;
}

.compare-card dl > div {
display: grid;
  padding: 12px 18px;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.compare-card dt {
color: var(--brand-dark);
  font-weight: 900;
}

.compare-card dd {
display: grid;
  margin: 0;
  gap: 3px;
}

.compare-card dd strong:not(:first-child) {
margin-top: 7px;
}

.compare-card dd span {
position: relative;
  padding-left: 0.9em;
}

.compare-card dd span::before {
position: absolute;
  left: 0;
  color: var(--accent);
  content: "•";
}

.compare-card > .table-link {
display: flex;
  margin: 14px 16px 16px;
  justify-content: center;
}

.plan-table tbody th {
color: var(--brand-dark);
  background: var(--brand-soft);
  text-align: left;
}

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

.copyright {
margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 992px) {
  .nav-toggle {
display: inline-flex;
  }

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

@media (max-width: 700px) {
  body {
font-size: 15px;
  }

  .page-shell {
width: min(calc(100% - 28px), var(--page));
  }

  .section-heading {
margin-bottom: 26px;
  }

  .plan-table td:nth-of-type(1)::before {
content: "內容";
  }

  .plan-table td:nth-of-type(2)::before {
content: "學習期限";
  }

  .plan-table td:nth-of-type(3)::before {
content: "適合對象";
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
scroll-behavior: auto;
  }

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

.navbar {
position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(13, 79, 120, 0.12);
  backdrop-filter: blur(12px);
}

.nav-container {
display: flex;
  width: min(calc(100% - 36px), var(--page));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
color: var(--brand-dark);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.nav-menu,
.dropdown-menu {
margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu {
display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
display: block;
  padding: 8px 9px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown {
position: relative;
}

.dropdown-menu {
position: absolute;
  top: 100%;
  right: 0;
  display: none;
  min-width: 220px;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
display: block;
}

.dropdown-menu a {
display: block;
  padding: 8px 10px;
  color: var(--ink);
  text-decoration: none;
}

.social-group {
display: flex;
}

.nav-social {
width: 34px;
  text-align: center;
}

.nav-cta {
color: #fff;
  background: var(--accent);
  border-radius: 999px;
}

.original-banner {
overflow: hidden;
  background: url("../images/1070604_bg.jpg") center / cover no-repeat;
}

.original-banner picture,
.original-banner img {
display: block;
  width: 100%;
}

.original-banner img {
max-width: 1000px;
  margin: 0 auto;
}

.sr-only {
position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
display: inline-flex;
  min-height: 44px;
  padding: 9px 18px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
color: #fff;
  background: var(--accent-dark);
}

.btn-light {
color: var(--brand-dark);
  background: #fff;
}

.quick-summary,
.content-section,
.resource-section,
.consult-section {
padding: 54px 0;
}

#quick-summary {
padding-bottom: 28px;
}

#exam-compare {
padding-top: 28px;
}

.content-section + .content-section,
.resource-section,
.consult-section {
border-top: 1px solid var(--line);
}

.section-heading > span,
.results-section > div > span {
color: var(--accent);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.summary-grid > article,
.feature-grid > article,
.resource-grid > article {
padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 9px 24px rgba(10, 50, 73, 0.06);
}

.summary-grid > article {
display: flex;
  flex-direction: column;
}

.summary-grid > article > i,
.feature-grid > article > i,
.resource-grid > article > i {
color: var(--brand);
  font-size: 1.7rem;
}

.summary-grid h3,
.feature-grid h3,
.resource-grid h3 {
margin: 12px 0 6px;
  color: var(--brand-dark);
}

.summary-grid p,
.resource-grid p {
color: var(--muted);
}

.summary-link {
display: inline-flex;
  margin-top: auto;
  padding-top: 18px;
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}

.summary-link:hover {
color: var(--accent-dark);
}

.table-responsive {
overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

.source-note {
color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.feature-grid > article > i,
.feature-grid > article > h3,
.resource-grid > article > i,
.resource-grid > article > h3 {
display: block;
  text-align: center;
}

.feature-grid > article > i,
.resource-grid > article > i {
margin: 0 auto;
}

.cross-exam {
display: flex;
  margin-top: 14px;
  padding: 18px 20px;
  gap: 16px;
  background: #fff7e5;
  border: 1px solid #f0d49b;
  border-radius: 14px;
}

.cross-exam i {
color: #bd7d0d;
  font-size: 1.4rem;
}

.cross-exam h3,
.cross-exam p {
margin: 0;
}

.plans-section,
.faq-section {
background: #eef4f7;
  box-shadow: 0 0 0 100vmax #eef4f7;
  clip-path: inset(0 -100vmax);
}

.cta-center {
display: flex;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.results-section {
display: flex;
  margin: 18px 0 54px;
  padding: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  border-radius: var(--radius);
}

.results-section h2,
.results-section p {
margin: 4px 0 0;
}

.faq-section details {
max-width: 900px;
  margin: 10px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.faq-section summary {
padding: 17px 20px;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 900;
}

.faq-section details p {
margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

.resource-box {
padding: 0;
}

.resource-grid article {
display: flex;
  flex-direction: column;
}

.resource-grid article a:first-of-type {
margin-top: auto;
  padding-top: 18px;
}

.resource-grid article a {
display: block;
  margin-top: 6px;
  font-weight: 800;
}

.consult-head {
max-width: 760px;
  margin: 0 auto 20px;
  text-align: center;
}

.consult-panel {
display: grid;
  overflow: hidden;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.trial-box {
display: flex;
  margin: 0;
  padding: 30px;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-dark), var(--brand));
  border: 0;
  border-radius: 0;
}

.trial-box h3 {
margin: 8px 0 4px;
  color: #fff;
  font-size: 1.45rem;
}

.trial-box p {
margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.82);
}

.trial-box > div > i {
color: var(--gold);
  font-size: 2rem;
}

.trial-box .btn {
width: 100%;
}

.consult-section form {
max-width: none;
  margin: 0;
  padding: 30px;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.consult-section form > h3 {
margin: 0;
  color: var(--brand-dark);
  font-size: 1.35rem;
}

.consult-section form > p {
margin: 4px 0 18px;
  color: var(--muted);
}

.consult-section input,
.consult-section textarea {
width: 100%;
  padding: 11px 12px;
  border: 1px solid #b9cbd5;
  border-radius: 9px;
}

.consult-section textarea {
grid-column: 1 / -1;
}

.consult-section input[type="submit"] {
grid-column: 1 / -1;
  max-width: 220px;
  margin: 18px auto 0;
  color: #fff;
  background: var(--accent);
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.hidden-frame {
display: none;
}

.line-note {
text-align: center;
}

footer {
padding: 40px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #122b3b;
  text-align: center;
}

.footer-inner {
width: min(calc(100% - 36px), var(--page));
  margin: 0 auto;
}

footer a {
color: #aee4ff;
}

.footer-social {
display: flex;
  margin-top: 18px;
  justify-content: center;
  gap: 9px;
}

.footer-social a {
display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

@media (max-width: 1100px) {
  .nav-toggle {
display: inline-flex;
  }

  .nav-menu {
position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    display: none;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .nav-menu.active {
display: flex;
  }

  .dropdown-menu {
position: static;
    display: block;
    margin-left: 14px;
    background: var(--surface-alt);
    border: 0;
    box-shadow: none;
  }

  .social-group {
justify-content: center;
  }
}

@media (max-width: 700px) {
  .original-banner {
background: none;
  }

  .results-section {
flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .quick-summary,
  .content-section,
  .resource-section,
  .consult-section {
padding: 40px 0;
  }

  .section-heading {
margin-bottom: 22px;
  }

  #quick-summary {
padding-bottom: 22px;
  }

  #exam-compare {
padding-top: 22px;
  }

  .plan-table {
min-width: 680px;
  }

  .compare-cards {
display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .compare-card {
overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 5px solid var(--brand);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(10, 50, 73, 0.08);
  }

  .compare-card.appraiser-exam {
border-top-color: var(--accent);
  }

  .compare-card h3 {
margin: 0;
    padding: 15px 17px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    text-align: center;
  }

  .compare-card dl {
margin: 0;
  }

  .compare-card dl > div {
display: grid;
    padding: 11px 16px;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 10px;
    border-bottom: 1px solid var(--line);
  }

  .compare-card dt {
color: var(--brand-dark);
    font-weight: 900;
  }

  .compare-card dd {
display: grid;
    margin: 0;
    gap: 3px;
  }

  .compare-card dd strong:not(:first-child) {
margin-top: 7px;
  }

  .compare-card dd span {
position: relative;
    padding-left: 0.9em;
  }

  .compare-card dd span::before {
position: absolute;
    left: 0;
    color: var(--accent);
    content: "•";
  }

  .compare-card > .table-link {
display: flex;
    margin: 14px 16px 16px;
    justify-content: center;
  }

  .table-responsive::before {
display: block;
    padding: 8px 12px;
    color: var(--muted);
    background: var(--surface-alt);
    content: "← 左右滑動查看完整表格 →";
    font-size: 0.82rem;
    text-align: center;
  }

  .consult-section textarea {
grid-column: auto;
  }

  .consult-panel {
grid-template-columns: 1fr;
  }

  .trial-box .btn {
width: 100%;
  }
}
