:root {
  --night: #f5f2eb;
  --night-2: #ebe7dc;
  --paper: #1d201e;
  --paper-dim: #706f67;
  --line: rgba(29, 32, 30, .16);
  --line-dark: rgba(29, 32, 30, .2);
  --acid: #9b4f3b;
  --orange: #777158;
  --display: "Arial Narrow", "Noto Sans TC", "PingFang TC", sans-serif;
  --body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --serif: "Noto Serif TC", "Songti TC", Georgia, serif;
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--paper); background: var(--night); font-family: var(--body); font-size: 14px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.site-header, .home, .detail, .site-footer { width: min(calc(100% - 88px), var(--max)); margin: 0 auto; }
.site-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 16px; }
.mark { display: inline-block; color: var(--acid); font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.24em; transform: skewX(-19deg); }
.wordmark b, .wordmark small { display: block; line-height: 1; }
.wordmark b { font-size: 15px; font-weight: 600; letter-spacing: .08em; }
.wordmark small { margin-top: 7px; color: var(--paper-dim); font-family: var(--display); font-size: 8px; letter-spacing: .2em; }
.header-status { color: var(--paper-dim); font-family: var(--display); font-size: 9px; letter-spacing: .13em; }
.header-status strong { margin-left: 22px; color: var(--paper); font-weight: 500; }
.header-tools { display: flex; align-items: center; gap: 24px; }
.language-switch { padding: 5px 0; border-bottom: 1px solid var(--acid); color: var(--acid); font-family: var(--display); font-size: 10px; letter-spacing: .12em; transition: color .2s, border-color .2s; }
.language-switch:hover { border-color: var(--paper); color: var(--paper); }
.status-light { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px rgba(217,255,114,.7); }
.hero { padding: 35px 0 130px; }
.hero-top, .hero-index, .nav-caption, .department-no, .department-count, .role-no, .role-dept, .manifesto-label, .block-label, .detail-meta-top, .site-footer, .not-found > span { color: var(--paper-dim); font-family: var(--display); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.hero-top { display: flex; justify-content: space-between; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.hero-main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: 100px; align-items: end; padding-top: 50px; }
.hero-index { margin: 0 0 25px; color: var(--acid); }
.hero h1 { max-width: 920px; margin: 0; font-family: var(--serif); font-size: clamp(44px, 7.3vw, 104px); font-weight: 400; letter-spacing: -.1em; line-height: 1.07; }
.hero h1 em, .manifesto h2 em { color: var(--acid); font-style: normal; }
.hero-note { padding: 0 0 7px 26px; border-left: 1px solid var(--orange); }
.hero-note p { margin: 0 0 22px; color: var(--paper); font-size: 15px; line-height: 1.9; }
.hero-note span { color: var(--paper-dim); font-size: 12px; line-height: 2; }
.directory-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 88px; padding-bottom: 140px; }
.dept-nav { position: sticky; top: 30px; align-self: start; }
.nav-caption { margin-bottom: 17px; color: var(--acid); }
.dept-nav a { display: grid; grid-template-columns: 31px 1fr; gap: 10px; padding: 10px 0; color: var(--paper-dim); font-size: 12px; line-height: 1.5; transition: color .2s, padding-left .2s; }
.dept-nav a span { color: var(--orange); font-family: var(--display); font-size: 10px; }
.dept-nav a:hover { padding-left: 7px; color: var(--paper); }
.department { scroll-margin-top: 28px; margin-bottom: 82px; }
.department-head { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 20px 0 24px; border-top: 1px solid var(--paper); }
.department-no { color: var(--acid); padding-top: 6px; }
.department-head h2 { margin: 0; font-family: var(--serif); font-size: clamp(23px, 3vw, 34px); font-weight: 400; letter-spacing: -.06em; line-height: 1.2; }
.department-head p { max-width: 480px; margin: 10px 0 0; color: var(--paper-dim); font-size: 12px; }
.department-count { padding-top: 8px; color: var(--orange); }
.role-list { border-top: 1px solid var(--line); }
.role-card { display: grid; grid-template-columns: 52px minmax(0, 1fr) 180px; gap: 20px; align-items: start; padding: 27px 0 29px; border-bottom: 1px solid var(--line); transition: background .2s, padding .2s; }
.role-card:hover { margin: 0 -14px; padding-left: 14px; padding-right: 14px; background: var(--night-2); }
.role-no { padding-top: 5px; color: var(--orange); }
.role-content b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 400; letter-spacing: -.04em; line-height: 1.4; }
.role-content small { display: block; max-width: 590px; margin-top: 5px; color: var(--paper-dim); font-size: 12px; line-height: 1.7; }
.role-dept { display: flex; justify-content: flex-end; align-items: center; gap: 13px; padding-top: 7px; font-size: 9px; text-align: right; }
.arrow { color: var(--acid); font-size: 18px; line-height: 1; transition: transform .2s; }
.role-card:hover .arrow, .related a:hover .arrow, .back:hover .arrow { transform: translate(3px, -3px); }
.manifesto { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 88px; padding: 66px 0 125px; border-top: 1px solid var(--line); }
.manifesto-label { padding-top: 11px; color: var(--orange); }
.manifesto h2 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 5vw, 68px); font-weight: 400; letter-spacing: -.1em; line-height: 1.15; }
.manifesto p { max-width: 430px; margin: 24px 0 0; color: var(--paper-dim); font-size: 13px; line-height: 2; }
.site-footer { display: flex; justify-content: space-between; padding: 22px 0 27px; border-top: 1px solid var(--line); font-size: 9px; }
.site-footer span:first-child { color: var(--paper); }
.detail { padding: 40px 0 120px; }
.back { display: inline-flex; align-items: center; gap: 11px; color: var(--paper-dim); font-size: 12px; transition: color .2s; }
.back:hover { color: var(--paper); }
.detail-hero { max-width: 1020px; padding: 88px 0 100px; }
.detail-meta-top { display: flex; gap: 20px; color: var(--orange); }
.detail-meta-top span + span { padding-left: 20px; border-left: 1px solid var(--line); }
.detail-hero h1 { margin: 24px 0 25px; font-family: var(--serif); font-size: clamp(45px, 8vw, 104px); font-weight: 400; letter-spacing: -.1em; line-height: 1.04; }
.detail-hero p { max-width: 650px; margin: 0; color: var(--paper-dim); font-size: 16px; line-height: 2; }
.detail-sections { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); gap: 86px; padding: 63px 0 100px; border-top: 1px solid var(--paper); }
.block-label { color: var(--acid); }
.block-label span { margin-right: 10px; color: var(--orange); }
.detail-block h2 { margin: 17px 0 30px; font-family: var(--serif); font-size: 31px; font-weight: 400; letter-spacing: -.06em; }
.bullet-list { margin: 0; padding: 0; list-style: none; }
.bullet-list li { display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 15px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--paper); font-size: 14px; line-height: 1.9; }
.numbered { counter-reset: roleitem; }
.list-index { color: var(--orange); font-family: var(--display); font-size: 10px; letter-spacing: .1em; padding-top: 5px; }
.requirements { padding-left: 40px; border-left: 1px solid var(--line); }
.requirements .bullet-list li { grid-template-columns: 12px minmax(0, 1fr); gap: 11px; color: var(--paper-dim); font-size: 13px; }
.bullet { width: 6px; height: 6px; margin-top: 10px; border: 1px solid var(--acid); border-radius: 50%; }
.related { padding: 31px 0 46px; border-top: 1px solid var(--paper); }
.related-list { margin-top: 18px; border-top: 1px solid var(--line); }
.related a { display: grid; grid-template-columns: 48px minmax(0, 1fr) 25px; gap: 15px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.related a > span { color: var(--orange); font-family: var(--display); font-size: 10px; }
.related a b { font-family: var(--serif); font-size: 17px; font-weight: 400; }
.related a .arrow { justify-self: end; }
.bottom-back { margin-top: 52px; color: var(--acid); }
.not-found { min-height: 65vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 25px; }
.not-found h1 { max-width: 750px; margin: 0; font-family: var(--serif); font-size: clamp(42px, 7vw, 92px); font-weight: 400; letter-spacing: -.1em; line-height: 1.08; }
@media (max-width: 900px) {
  .site-header, .home, .detail, .site-footer { width: min(calc(100% - 48px), var(--max)); }
  .hero-main { grid-template-columns: 1fr; gap: 42px; }
  .hero-note { max-width: 440px; }
  .directory-layout { grid-template-columns: 1fr; gap: 0; }
  .dept-nav { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 22px; margin-bottom: 70px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .nav-caption { grid-column: 1 / -1; }
  .manifesto { grid-template-columns: 1fr; gap: 22px; }
  .detail-sections { grid-template-columns: 1fr; gap: 72px; }
  .requirements { padding: 58px 0 0; border-top: 1px solid var(--line); border-left: 0; }
}
@media (max-width: 560px) {
  .site-header, .home, .detail, .site-footer { width: calc(100% - 32px); }
  .site-header { min-height: 78px; }
  .header-status { display: none; }
  .hero { padding: 29px 0 84px; }
  .hero-top { display: block; line-height: 2; }
  .hero-top span:last-child { display: block; margin-top: 5px; }
  .hero-main { padding-top: 39px; }
  .hero h1 { font-size: 49px; }
  .hero-note { padding-left: 16px; }
  .dept-nav { grid-template-columns: 1fr; margin-bottom: 54px; }
  .department { margin-bottom: 65px; }
  .department-head { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .department-count { grid-column: 2; padding-top: 0; }
  .role-card { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 23px 0; }
  .role-card:hover { margin: 0; padding-left: 0; padding-right: 0; background: transparent; }
  .role-dept { grid-column: 2; justify-content: flex-start; padding-top: 0; text-align: left; }
  .role-content b { font-size: 18px; }
  .manifesto { padding: 46px 0 84px; }
  .manifesto h2 { font-size: 40px; }
  .detail { padding-top: 29px; }
  .detail-hero { padding: 65px 0 65px; }
  .detail-hero h1 { font-size: 49px; }
  .detail-hero p { font-size: 14px; }
  .detail-sections { padding: 48px 0 70px; }
  .detail-block h2 { font-size: 27px; }
  .bullet-list li { grid-template-columns: 27px minmax(0, 1fr); gap: 10px; font-size: 13px; }
  .requirements .bullet-list li { grid-template-columns: 10px minmax(0, 1fr); }
  .site-footer span:nth-child(2) { display: none; }
}
