/* screen-mode.css - 屏幕模式，保留旧模板配色与结构，并重构类名 */
@import url("https://blog-api.pylab.me/css?family=Noto+Sans+SC&family=Noto+Serif+SC&display=swap");

@font-face {
  font-family: "Maple Mono";
  src: url("https://pub-249b7f2460704252abb1f6d6fb2a89bf.r2.dev/MapleMono-Regular.woff2") format("truetype");
}

body {
  margin: 0;
  font-family: -apple-system, "Noto Sans SC", "Noto Serif SC", sans-serif;
  background-color: #f7f9fc;
  color: #333;
  line-height: 1.65;
  font-size: 16px;
}

.en {
  font-family: "Maple Mono", monospace;
}

.invalid {
  border-color: red;
}

.resume-grid {
  display: grid;
  grid-template-columns: 280px auto;
  min-height: 100vh;
}

.resume-sidebar {
  background-color: #f0f3f6;
  padding: 30px 24px;
  border-right: 1px solid #ddd;
}

.resume-main {
  padding: 36px 48px;
  max-width: 880px;
  margin: 0 auto;
}

.resume-sidebar h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 6px;
}

.resume-sidebar .contact-info {
  font-style: italic;
  font-size: 0.92rem;
  color: #444;
  margin: 4px 0;
}

.resume-sidebar a {
  color: #333;
  text-decoration: none;
}

.resume-sidebar a:hover {
  text-decoration: underline;
}

.tag {
  background: #d4e6fb;
  color: #034ea2;
  border-radius: 4px;
  padding: 4px 10px;
  margin: 6px 6px 6px 0;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
}

.section-heading {
  border-left: 4px solid #0066cc;
  padding-left: 12px;
  margin-top: 42px;
  margin-bottom: 16px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #003c7e;
}

.job-item {
  margin-bottom: 32px;
}

.job-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 1.05rem;
}

.job-title {
  font-weight: 500;
  color: #555;
  margin: 4px 0 8px;
}

.job-details {
  padding-left: 1.3em;
}

.job-details li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.project-item {
  margin-bottom: 24px;
}

.project-item h5 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
}

.project-item p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0.3em 0 0.6em;
}

.project-item p strong {
  font-weight: 500;
  color: #000;
}

.mt-2 {
  margin-top: 12px;
}

.text-muted {
  color: #777;
}

.education-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.education-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.edu-school {
  font-weight: bold;
}

.edu-degree {
  flex: 1;
  text-align: center;
  color: #555;
}

.edu-time {
  flex: 1;
  text-align: right;
  color: #777;
  font-size: 0.9rem;
}

#print-btn,
#lang-toggle {
  position: fixed;
  bottom: 20px;
  z-index: 9999;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#print-btn {
  left: 20px;
  background-color: #0066cc;
  color: white;
}

#print-btn:hover {
  background-color: #004c99;
}

#lang-toggle {
  right: 20px;
  background-color: #888;
  color: white;
}

.project-details {
  display: block;
}

@media (max-width: 768px) {
  .resume-grid {
    display: block;
  }

  .resume-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  .resume-main {
    padding: 24px;
  }
}

.print-summary {
  display: none !important;
}

.icon-fa {
  width: 1em;
  color: #555;
  margin-right: 6px;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  font-size: 14px;
}

.contact-info a.link-with-icon {
  color: #0366d6;
  font-weight: 500;
  text-decoration: none;
}

.contact-info a.link-with-icon:hover {
  text-decoration: underline;
  color: #024ea2;
}

.text-muted {
  color: #666;
  font-style: italic;
}

.contact-section {
  margin-bottom: 1.5rem;
}

.contact-info.status-tip {
  color: #888;
  font-size: 13px;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-info.status-tip .icon-fa {
  color: #999;
}

.icon-fa {
  width: 1.2em;
  text-align: center;
  color: #555;
  flex-shrink: 0;
}

.tag {
  display: inline-block;
  margin: 4pt 8pt 6pt 0;
  padding: 4pt 10pt;
  font-size: 10pt;
  border: 1px solid transparent;
  border-radius: 6pt;
  line-height: 1.4;
}

.tag-code {
  color: #303080;
  background-color: #f3f3ff;
  border-color: #7080d0;
}

.tag-tool {
  color: #1b6f42;
  background-color: #f1faf5;
  border-color: #3a9d6a;
}

.tag-audit {
  color: #aa6f00;
  background-color: #fef5e5;
  border-color: #e5a800;
}

.tag-default {
  color: #111;
  background-color: #f9f9f9;
  border-color: #bbb;
}
