:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #222; background: #f3f3f3; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.9; }
.resume-page { max-width: 960px; margin: 28px auto; padding: 32px 52px 48px; background: #fff; border: 1px solid #e1e1e1; }
.document-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; font-size: 12px; }
a { color: #225b89; text-decoration: none; overflow-wrap: anywhere; }
a:hover { text-decoration: underline; }
.document-actions a, .document-actions button { color: #555; }
button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid #225b89; outline-offset: 4px; }
h1, h2, h3 { color: #161616; line-height: 1.5; }
h1 { margin: 0 0 5px; font-size: 32px; letter-spacing: 1px; }
h2 { margin: 28px 0 14px; padding-bottom: 6px; border-bottom: 1px solid #bdbdbd; font-size: 18px; }
h3 { margin: 20px 0 10px; font-size: 15px; font-weight: 650; }
p { margin: 11px 0; }
main > h1 + p { margin-top: 0; font-size: 15px; }
main > h1 + p + p { margin-top: 9px; color: #444; font-size: 13px; }
strong { font-weight: 650; color: #222; }
ul, ol { padding-left: 21px; margin: 12px 0; }
li { padding-left: 2px; margin: 10px 0; }
li > p { margin: 0; }
main > :last-child { margin-bottom: 0; }
h2[id], h3[id] { scroll-margin-top: 20px; }
hr { border: 0; border-top: 1px solid #d6d6d6; margin-block: 20px; }
blockquote { margin: 16px 0; padding-left: 16px; border-left: 2px solid #bdbdbd; color: #555; }
table { width: 100%; border-collapse: collapse; font-size: inherit; }
th, td { padding: 8px 10px; border: 1px solid #ddd; text-align: left; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; background: #f6f6f6; }
code { font-family: Consolas, monospace; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }
.load-note { font-size: 12px; color: #666; padding: 10px; border: 1px solid #ddd; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  :root { background: white; }
  .resume-page { margin: 0; padding: 20px 22px 34px; border: 0; }
  body { font-size: 13px; line-height: 1.95; }
  .document-actions { font-size: 11px; gap: 16px; margin-bottom: 20px; }
  h1 { font-size: 28px; }
  h2 { font-size: 17px; margin-top: 25px; }
  h3 { font-size: 14px; }
  main > h1 + p { font-size: 14px; }
  main > h1 + p + p { font-size: 12px; }
  ul, ol { padding-left: 19px; }
}
@media print {
  @page { size: A4; margin: 15mm; }
  :root, body { background: white; color: #111; }
  body { font-size: 10pt; line-height: 1.75; }
  .resume-page { max-width: none; margin: 0; padding: 0; border: 0; }
  .document-actions, .load-note { display: none !important; }
  h1 { font-size: 23pt; }
  h2 { font-size: 13pt; margin-top: 19px; break-after: avoid; }
  h3 { font-size: 11pt; margin-top: 16px; break-after: avoid; }
  main > h1 + p { font-size: 11pt; }
  main > h1 + p + p { font-size: 9pt; }
  a { color: inherit; }
  p { orphans: 3; widows: 3; }
  li { break-inside: avoid; }
}
