:root {
  color-scheme: light;
  --navy: #10283f;
  --dark: #0b2034;
  --ivory: #f7f6f2;
  --gold: #b99b65;
  --light-gold: #e5ca96;
  --ink: #122940;
  --muted: #475968;
  --line: #dddcd5;
  --gutter: clamp(20px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 17px/1.75 "Microsoft JhengHei", "Noto Sans TC", "PingFang TC", sans-serif; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.4; }
h2 { font-size: clamp(28px, 3.2vw, 43px); letter-spacing: -.025em; }
h3 { font-size: clamp(22px, 2.35vw, 32px); }
h4 { font-size: 21px; }
p { color: var(--muted); }
a { color: inherit; text-underline-offset: .26em; }
[id] { scroll-margin-top: 24px; }
:focus-visible { outline: 3px solid #82551d; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1200px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip { position: absolute; z-index: 3; left: 20px; top: 12px; padding: 8px 14px; background: white; }
.skip:not(:focus) { clip-path: inset(50%); }

.site-header { border-bottom: 1px solid var(--line); background: white; }
.navigation, .nav-links { display: flex; align-items: center; flex-wrap: wrap; }
.navigation { min-height: 80px; gap: 9px 28px; justify-content: space-between; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: clamp(17px, 1.7vw, 21px); font-weight: 700; text-decoration: none; }
.brand-mark { flex: none; width: 27px; height: 27px; border: 1px solid #967744; background: var(--navy); border-radius: 3px; position: relative; }
.brand-mark::before { content: ""; position: absolute; inset: 6px; border: solid var(--light-gold); border-width: 0 0 1px 1px; }
.brand-mark::after { content: ""; position: absolute; top: 8px; left: 11px; width: 8px; height: 5px; border-block: 1px solid var(--light-gold); }
.nav-links { gap: 2px 14px; }
.nav-links a { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; font-size: 15px; font-weight: 700; text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }
.nav-cta { padding-inline: 8px; border-bottom: 1px solid var(--gold); }

.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--dark); color: white; }
.hero-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 355px; object-fit: cover; object-position: 53% 36%; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, #0b203410 0, #0b203420 110px, #0b2034c9 226px, #0b2034 352px); }
.hero-content { position: relative; display: grid; align-items: end; min-height: 640px; padding-block: 218px 43px; }
.hero h1 { color: white; font-size: clamp(31px, 7.4vw, 51px); font-weight: 800; line-height: 1.27; letter-spacing: -.035em; }
.hero-intro { max-width: 37em; margin-top: 16px; color: #f2f2f0; }
.wide-break { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.button { display: inline-flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 7px; min-height: 48px; padding: 8px 13px; border: 1px solid transparent; border-radius: 4px; font-family: inherit; line-height: 1.55; font-size: 16px; font-weight: 700; text-decoration: none; }
.button-gold:disabled { background: var(--light-gold); color: var(--dark); opacity: 1; cursor: not-allowed; }
.button-gold span { font-size: 13px; border-inline-start: 1px solid #836b40; padding-inline-start: 7px; }
.button-light { border-color: #ffffff9c; color: white; }
.button-light:hover { background: #ffffff24; }
.hero :focus-visible, .contact-section :focus-visible { outline-color: var(--light-gold); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 17px; color: #f0dfb8; font-size: 15px; }
.photo-caption { position: absolute; right: 0; bottom: 11px; padding: 1px 7px; border-radius: 3px; background: #0b2034db; color: white; font-size: 12px; }
.draft-notice { background: #ede8db; border-bottom: 1px solid #ded3bc; }
.draft-notice p { padding-block: 10px; font-size: 14px; color: #4e4538; }

.section { padding-block: clamp(49px, 7vw, 100px); }
.section-heading { margin-bottom: clamp(23px, 4vw, 44px); }
.section-heading h2::after { content: ""; display: block; width: 42px; margin-top: 12px; border-bottom: 2px solid var(--gold); }
.section-heading p { max-width: 48em; margin-top: 12px; }
.situation-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.situation { min-width: 0; background: white; border: 1px solid var(--line); }
.situation a { height: 100%; display: flex; flex-direction: column; text-decoration: none; }
.situation img { width: 100%; aspect-ratio: 1.8; object-fit: cover; }
.situation a:hover .text-link { text-decoration: underline; }
.situation a:hover { background: #fcfaf5; }
.situation-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 18px; }
.situation h3 { font-size: 21px; }
.situation p { flex: 1; margin-top: 8px; }
.text-link { color: #55401e; margin-top: 14px; font-weight: 700; font-size: 15px; }

.service-section { background: white; border-block: 1px solid var(--line); }
.service-list { display: grid; gap: clamp(37px, 6vw, 76px); }
.service-row { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 18px; }
.service-row img { width: 100%; aspect-ratio: 1.58; object-fit: cover; }
.service-copy p { margin-top: 10px; }
.service-copy ul { margin: 13px 0 0; padding-inline-start: 1.25em; color: var(--muted); }
.service-copy li + li { margin-top: 4px; }
.service-copy li::marker { color: #836336; }
.service-row:target, .extension article:target { outline: 2px solid #967744; outline-offset: 7px; }
.extension-title { margin-block: clamp(34px, 6vw, 63px) 16px; }
.extension { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.extension article { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; min-width: 0; padding: 18px; border-top: 2px solid var(--gold); background: var(--ivory); }
.extension img { width: 100%; aspect-ratio: 1.9; object-fit: cover; }
.extension p, .role-grid h3 + p { margin-top: 6px; }
.role-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.role-grid article { padding-block: 15px; border-top: 1px solid var(--gold); }
.role-grid h3 { font-size: 24px; }
.role-label { margin-bottom: 4px; color: #665022; font-size: 15px; font-weight: 700; }
.role-note { border-inline-start: 3px solid var(--gold); padding: 8px 14px; margin-top: 20px; }

.process-section { border-block: 1px solid var(--line); background: #eceff0; }
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; margin-inline-start: 15px; padding: 0 0 23px 31px; border-inline-start: 1px solid #a48b5b; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: -15px; top: 0; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--navy); color: white; font: 700 13px/1 system-ui, sans-serif; }
.steps li:last-child { border-color: transparent; padding-bottom: 0; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { font-size: 16px; }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 20px; }
.article-card { min-width: 0; border-top: 1px solid var(--gold); background: white; }
.article-card summary { display: block; padding: 16px; list-style: none; cursor: pointer; }
.article-card summary::-webkit-details-marker { display: none; }
.article-card summary:hover { background: #fbf8ee; }
.article-card h3 { font-size: 20px; }
.article-card summary > span { display: block; margin-top: 8px; color: #604923; font-size: 15px; font-weight: 700; }
.article-card details[open] summary > span span { display: none; }
.article-card p { padding: 0 16px 16px; }
.faq { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: clamp(35px, 5vw, 67px); }
.faq .section-heading { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 13px 6px; font-weight: 700; cursor: pointer; }
.faq-list summary:hover { color: #634719; }
.faq-list p { padding: 0 6px 16px; }

.contact-section { background: linear-gradient(125deg, var(--navy), #1e415d); color: white; }
.contact-layout { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; padding-block: clamp(31px, 5vw, 65px); }
.contact-layout h2 { font-size: clamp(25px, 3vw, 38px); }
.contact-layout p { color: #e5e8eb; margin-top: 10px; }
.privacy { padding-block: 32px; }
.privacy h2 { font-size: 23px; }
.privacy p { margin-top: 8px; max-width: 55em; }
.site-footer { border-top: 1px solid var(--line); background: white; padding-block: 22px; }
.footer-layout, .footer-layout > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; font-size: 15px; }

@media (min-width: 620px) {
  .situation-grid, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
  .extension { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-content { padding-block: 68px; min-height: 610px; align-items: center; }
  .hero-photo { height: 100%; object-position: 57% 39%; }
  .hero::after { background: linear-gradient(90deg, #0b2034fa 0%, #0b2034e0 36%, #0b203481 65%, #0b203422 100%); }
  .hero h1 { font-size: clamp(39px, 4.1vw, 58px); }
  .hero-intro { max-width: min(80%, 35em); font-size: 18px; }
  .service-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 5vw, 74px); }
  .service-row:nth-child(even) img { order: 1; }
  .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
  .steps li { margin: 12px 0 0; padding: 22px 13px 0 0; border-inline-start: 0; border-top: 1px solid #a48b5b; }
  .steps li:nth-child(n) { border-top-color: #a48b5b; }
  .steps li::before { top: -15px; left: 0; }
}
@media (min-width: 1000px) {
  .wide-break { display: initial; }
  .situation-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hero-content { min-height: clamp(610px, 45vw, 680px); }
}
@media (max-width: 389px) {
  .hero h1 { font-size: 29px; }
  .button { padding-inline: 9px; }
}

.button-gold {
  background: var(--light-gold);
  color: var(--dark);
}
.button-gold:hover { background: #f0d8aa; }
.line-service-entry { padding-block: 24px 0; }
.line-contact-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.line-qr { margin: 0; width: 166px; max-width: 100%; text-align: center; }
.line-qr img { width: 154px; margin-inline: auto; }
.line-qr figcaption { margin-top: 5px; color: #e5e8eb; font-size: 13px; }
.line-mobile-entry { display: none; }

@media (max-width: 619px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .line-mobile-entry {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--navy);
    border-top: 1px solid var(--gold);
  }
  .line-mobile-entry .button { width: min(100%, 320px); }
}
