
:root { color-scheme: light; font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; color: #17212b; }
* { box-sizing: border-box; }
body { margin: 0; background: #f2f5f8; line-height: 1.65; }
.sitebar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; background: #18324b; color: #fff; box-shadow: 0 2px 8px #13233433; }
.sitebar a, .sitebar button { display: inline-block; border: 1px solid #ffffff66; border-radius: 6px; padding: 8px 13px; color: #fff; background: transparent; font: inherit; text-decoration: none; cursor: pointer; }
.sitebar .primary { border-color: #fff; color: #18324b; background: #fff; font-weight: 700; }
.sitebar a:hover, .sitebar button:hover { background: #ffffff20; }
.document-header { max-width: 210mm; margin: 22px auto 0; padding: 12px 18mm; background: #fff; border-bottom: 1px solid #d5dde5; color: #18324b; font-size: 10pt; }
.document-header .brand-logo { display: block; width: min(170px, 42vw); height: auto; margin: 0 0 10px; }
.document-content { max-width: 210mm; min-height: 245mm; margin: 0 auto 36px; padding: 14mm 18mm 18mm; background: #fff; box-shadow: 0 4px 20px #13233412; overflow-x: auto; }
.document-content table { max-width: 100%; }
.document-content table td p { color: #17212b !important; }
.document-content img { max-width: 100%; height: auto; }
.document-content p { orphans: 3; widows: 3; }
.signature-heading { margin-top: 8mm; font-weight: 700; }
.signature-block { width: 100%; table-layout: fixed; }
.signature-block td { vertical-align: top; }
.signature-block .signature-signature td { height: 24mm; vertical-align: bottom; }
.signature-block .company-seal td { height: 48mm; }
.signature-block .company-seal td::after,
.signature-block .representative-seal td::after { content: ""; display: block; margin: 2mm auto 0; border: 1px dashed #687989; }
.signature-block .company-seal td::after { width: 40mm; height: 40mm; }
.signature-block .representative-seal td { height: 33mm; }
.signature-block .representative-seal td::after { width: 25mm; height: 25mm; }
.directory { max-width: 1100px; margin: 42px auto; padding: 0 22px 48px; }
.directory h1 { margin: 0 0 8px; color: #18324b; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.directory .intro { margin: 0 0 24px; color: #536475; }
.doc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 14px; }
.doc-card { display: flex; flex-direction: column; gap: 12px; min-height: 142px; padding: 18px; border: 1px solid #dce3e9; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px #18324b0a; }
.doc-card h2 { margin: 0; color: #18324b; font-size: 1.05rem; line-height: 1.45; }
.doc-card .code { color: #687989; font-size: .85rem; }
.doc-card .links { display: flex; gap: 14px; margin-top: auto; }
.doc-card a { color: #245b82; font-weight: 650; text-decoration: none; }
.doc-card a:hover { text-decoration: underline; }
.note { margin-top: 24px; padding: 14px 16px; border-left: 4px solid #a1844f; background: #fff; color: #536475; }
@media (max-width: 650px) {
  .document-header { margin-top: 0; padding: 12px 16px; }
  .document-content { margin: 0; padding: 18px 16px 30px; }
  .sitebar { position: static; }
}
@media print {
  @page { size: A4 portrait; margin: 16mm 16mm 17mm; }
  html, body { background: #fff !important; color: #000; }
  .sitebar, .no-print { display: none !important; }
  .document-header { max-width: none; margin: 0 0 7mm; padding: 0 0 3mm; border-bottom: .4pt solid #777; box-shadow: none; }
  .document-content { max-width: none; min-height: 0; margin: 0; padding: 0; overflow: visible; box-shadow: none; }
  .document-content table { max-width: 100%; }
  .document-content tr { break-inside: avoid; page-break-inside: avoid; }
  .directory { max-width: none; margin: 0; padding: 0; }
  .doc-list { display: block; }
  .doc-card { min-height: 0; margin: 0 0 8mm; break-inside: avoid; box-shadow: none; }
  .doc-card a[href]:after { content: none; }
}
