/* Shared presentation layer: loaded after the archived CMS stylesheet. */
:root {
  --ink: #102f45;
  --ink-soft: #466071;
  --teal: #087b83;
  --teal-dark: #075960;
  --gold: #d2a44b;
  --canvas: #f4f7f9;
  --surface: #ffffff;
  --line: #dce5ea;
  --shadow: 0 16px 36px rgba(16, 47, 69, .09);
  font-family: Inter, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
html { background: var(--canvas); scroll-padding-top: 6rem; }
body { min-width: 320px; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
body::selection { color: #fff; background: var(--teal); }
.container { width: min(100% - 3rem, 74rem); }
a { color: var(--teal-dark); text-underline-offset: .18em; }
a:hover { color: var(--teal); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #e5b74f; outline-offset: 3px; }
img, video { max-width: 100%; height: auto; }
p, li { color: var(--ink-soft); }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.2; }
h2 { margin-top: 2.8rem; font-size: clamp(1.55rem, 2.8vw, 2.35rem); }
h2::before, h2::after { height: .22rem; }
h2::after { background: var(--gold); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.45; }
table { display: block; overflow-x: auto; width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: .75rem; background: #fff; }
th, td { padding: .85rem 1rem; border-color: var(--line) !important; vertical-align: top; }
th { background: #edf4f6; color: var(--ink); }
.btn, button.btn { min-height: 2.85rem; padding: .62rem 1.1rem; border: 0; border-radius: .42rem; background: var(--teal-dark); color: #fff; font-weight: 700; letter-spacing: .01em; box-shadow: 0 .35rem .9rem rgba(7,89,96,.18); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover, button.btn:hover { color: #fff; background: var(--teal); transform: translateY(-2px); box-shadow: 0 .6rem 1.25rem rgba(7,89,96,.22); }
.btn--outline { background: #fff !important; color: var(--teal-dark) !important; border: 1px solid var(--teal-dark) !important; box-shadow: none; }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(220,229,234,.85); background: rgba(255,255,255,.94); box-shadow: 0 .3rem 1.1rem rgba(16,47,69,.05); backdrop-filter: blur(12px); }
.site-header .header { min-height: 4.8rem; gap: 1.25rem; }
.site-header .header .logo img { width: 7.6rem; }
.site-header .header .menu { gap: .15rem; align-items: center; }
.site-header .header .menu a { padding: .48rem .6rem; border-radius: .35rem; color: var(--ink); font-size: .92rem; font-weight: 650; white-space: nowrap; }
.site-header .header .menu a:hover { color: var(--teal-dark); background: #edf6f6; }
.site-header .header .menu a.secondary { margin-left: .3rem; border: 1px solid var(--teal-dark); color: #fff; background: var(--teal-dark); }
.site-header .header .menu a.secondary:hover { color: #fff; background: var(--teal); }
.site-header .header .menu a.secondary::before { display: none; }
.main { background: var(--canvas); }
.site-footer { margin-top: 0; padding: 3rem 0; background: var(--ink); }
.site-footer, .site-footer span, .site-footer p { color: #d6e0e6; }
.site-footer a { color: #fff; }.site-footer a:hover { color: #9bd8d5; }
.site-footer .footer { gap: 1.2rem; }.site-footer .contact { border-color: rgba(255,255,255,.2); }

/* Homepage */
._index .top { min-height: clamp(31rem, 68vh, 43rem); isolation: isolate; background: var(--ink); }
._index .top::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,30,46,.94) 0%, rgba(8,30,46,.70) 48%, rgba(8,30,46,.35) 100%); }
._index .top .content { max-width: 46rem; }. _index .top .content h1 { text-shadow: none; }
._index .top .content h1 span, ._index .top .content h1 em { font-style: normal; color: #fff; }
._index .top .content h1 em { color: #8ed7d3; }
._index .top .content .action { gap: .75rem; }. _index .top .content .action .btn { min-width: 10rem; }
._index .top .content .action .btn:nth-child(1) { background: var(--gold); color: #172c3a; }
._index .top .content .action .btn--index-outline { color: #fff; border-color: rgba(255,255,255,.75); }
._index .promotion { padding: 2rem 0 0; background: var(--canvas); }. _index .promotion .banners { gap: 1rem; }
._index .promotion .banners a { overflow: hidden; border-radius: .75rem; box-shadow: var(--shadow); }. _index .promotion .banners img { transition: transform .25s ease; }. _index .promotion .banners a:hover img { transform: scale(1.03); }
.journey { background: #eef5f6; }.journey h2 { margin-top: .4rem; }
._index .info, ._index .certificates, ._index .articles, ._index .enterprise { padding: 4.8rem 0; }
._index .info { background: var(--surface); }. _index .info .info-row { gap: 2rem; }
._index .info .news, ._index .info .about, ._index .info .period { border: 1px solid var(--line); border-radius: .8rem; background: #fff; padding: 1.5rem; box-shadow: 0 .45rem 1.2rem rgba(16,47,69,.04); }
._index .info h2, ._index .certificates h2, ._index .articles h2, ._index .enterprise h2 { margin-top: 0; }
._index .info .news li { border-color: var(--line); }. _index .info .news li a { padding: .8rem 0; font-weight: 650; }
._index .info .period .item, ._index .certificates .certificate-list .item { border-radius: .7rem; box-shadow: none; }
._index .certificates { background: #eef5f6; }. _index .certificates .certificate-list .item { border: 1px solid var(--line); background: #fff; }. _index .certificates .certificate-list .item .title { background: #f8fafb; }
._index .articles { background: #fff; }. _index .articles .article-list .item { border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; padding: 0; box-shadow: 0 .45rem 1.2rem rgba(16,47,69,.04); }. _index .articles .article-list .item .title, ._index .articles .article-list .item .desc { padding: 0 1.2rem; }. _index .articles .article-list .item .desc { padding-bottom: 1.2rem; }
._index .enterprise { background: var(--canvas); }

/* Information, article, FAQ, policy, and application pages */
._faq .top, ._article .top, ._apply .top { padding: 4.2rem 0 3.3rem; min-height: auto; background: linear-gradient(135deg, #e7f1f2, #fff); border-bottom: 1px solid var(--line); }
._faq .top h1, ._article .top h1, ._apply .top h1 { color: var(--ink); text-shadow: none; }
._faq .faq-content, ._article .article-content, ._apply .apply .main-content { max-width: 56rem; margin-top: 2rem; margin-bottom: 4rem; padding: clamp(1.25rem, 3vw, 3rem); border: 1px solid var(--line); border-radius: .8rem; background: #fff; box-shadow: 0 .4rem 1.3rem rgba(16,47,69,.05); }
._faq .faq-nav { border: 1px solid var(--line); border-radius: .75rem; background: #fff; padding: 1rem; box-shadow: 0 .35rem 1rem rgba(16,47,69,.04); }. _faq .faq-nav > div { border-color: var(--line); }. _faq .faq-nav a { color: var(--ink); font-weight: 650; }
._faq .faq-content h3 { margin-top: 2.5rem; padding-bottom: .45rem; border-bottom: 1px solid var(--line); }. _faq .faq-content .back { background: transparent; }. _faq .faq-content .back a { font-size: .9rem; }
._article .article-content img, ._faq .faq-content img { border-radius: .65rem; box-shadow: 0 .4rem 1rem rgba(16,47,69,.08); }
._apply .apply .main-content .confirm { border: 1px solid var(--line); border-radius: .65rem; background: #f5faf9; padding: 1.25rem; }
.experience-page .site-header { position: sticky; }.experience-page .site-header .menu { display: flex; }

@media (max-width: 1100px) { .site-header .header .menu a { padding: .42rem; font-size: .84rem; }.site-header .header .logo img { width: 6.7rem; } }
@media (max-width: 767px) {
  .container { width: min(100% - 2rem, 44rem); }
  .site-header .header { min-height: 4.35rem; }.site-header .header .logo img { width: 6.5rem; }
  .site-header .header .rwd-menu-icon button { color: var(--ink); }
  .site-header .header .menu { top: 4.35rem; padding: .8rem; border: 1px solid var(--line); border-radius: 0 0 .7rem .7rem; background: #fff; box-shadow: var(--shadow); }
  .site-header .header .menu a { padding: .7rem .75rem; font-size: .96rem; }.site-header .header .menu a.secondary { margin: .25rem 0 0; text-align: center; }
  .experience-page .site-header .header { align-items: flex-start; padding: .75rem 0; }.experience-page .site-header .header .menu { position: static; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); width: 100%; box-shadow: none; border: 0; padding: .2rem 0 0; }.experience-page .site-header .header .menu a { white-space: normal; }
  ._index .top { min-height: 35rem; }. _index .top video { opacity: .32; }. _index .top .kv { opacity: .18; }. _index .top .content { padding: 7rem 0 3rem; }. _index .top .content .action { display: grid; grid-template-columns: 1fr; }. _index .top .content .action .btn { width: 100%; }
  ._index .info, ._index .certificates, ._index .articles, ._index .enterprise { padding: 3.2rem 0; }. _index .info .news, ._index .info .about, ._index .info .period { padding: 1.15rem; }
  ._faq .top, ._article .top, ._apply .top { padding: 2.5rem 0; }. _faq .faq-content, ._article .article-content, ._apply .apply .main-content { margin-top: 1rem; margin-bottom: 2.5rem; padding: 1.15rem; border-radius: .6rem; }
  th, td { min-width: 9rem; }.site-footer { padding: 2.5rem 0; }
}
@media (max-width: 420px) { h1 { font-size: 2rem; } .site-header .header .menu a { font-size: .88rem; } .experience-page .site-header .header .menu { grid-template-columns: 1fr; } }

/* Compact, button-controlled navigation below the desktop breakpoint. */
@media (max-width: 1299px) {
  .site-header .header,
  .experience-page .site-header .header {
    height: 4.8rem;
    min-height: 4.8rem;
    grid-template-columns: 1fr auto;
    padding: 0;
  }
  .site-header .header .rwd-menu-icon { display: block !important; }
  .site-header .header .rwd-menu-icon button {
    display: inline-grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: .45rem;
    color: var(--ink);
    cursor: pointer;
  }
  .site-header .header .menu,
  .experience-page .site-header .header .menu,
  .site-header .header .menu.active,
  .experience-page .site-header .header .menu.active {
    position: fixed !important;
    top: 4.8rem;
    right: 0;
    bottom: 0;
    left: auto;
    display: block !important;
    width: min(22rem, 88vw) !important;
    max-width: none;
    transform: translateX(100%) !important;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0 0 0 .8rem;
    background: #fff;
    box-shadow: -1rem 1rem 2.5rem rgba(16,47,69,.14);
    transition: transform .22s ease;
  }
  .site-header .header .menu.active,
  .experience-page .site-header .header .menu.active {
    transform: translateX(0) !important;
    inset: 4.8rem 0 0 auto !important;
    height: calc(100dvh - 4.8rem) !important;
    min-height: calc(100dvh - 4.8rem);
    visibility: visible;
    pointer-events: auto;
    z-index: 100;
  }
  .site-header .header .menu a {
    display: block;
    min-height: 2.8rem;
    padding: .7rem .75rem;
    border-bottom: 1px solid var(--line);
    white-space: normal;
  }
  .site-header .header .menu a.secondary { margin: .55rem 0 0; text-align: center; }
  .site-header .header .menu.active a,
  .experience-page .site-header .header .menu.active a {
    display: block !important;
    min-height: 3rem;
    box-sizing: border-box;
    visibility: visible;
    opacity: 1;
    color: var(--ink);
  }
  .site-header .header .menu.active a.secondary { color: #fff; }
}
