/* resume-site · 极简留白 · 系统字体 · 打印友好 */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --fg: #1a1a1a;
  --fg-muted: #666;
  --border: #e5e5e5;
  --bg: #fff;
  --bg-soft: #fafafa;
  --accent: #000;
  --max-width: 760px;
}

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration: none; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.site-header h1 {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.subtitle {
  margin-top: 4px;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.tabs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-top: 1px solid transparent;
}

.tab, .tab-link {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 16px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--fg-muted);
  cursor: pointer;
  text-decoration: none;
  margin-bottom: -1px;
}

.tab:hover, .tab-link:hover {
  color: var(--fg);
}

.tab.active {
  color: var(--fg);
  border-bottom-color: var(--accent);
  font-weight: 500;
}

.tab-link {
  margin-left: auto;
  color: var(--fg-muted);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 720px) {
  .container { grid-template-columns: 1fr; }
}

.resume {
  font-size: 0.95rem;
}

.resume h1, .resume h2, .resume h3, .resume h4 {
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 1.6em 0 0.6em;
}

.resume h1 { font-size: 1.5rem; }
.resume h2 { font-size: 1.25rem; padding-bottom: 0.25em; border-bottom: 1px solid var(--border); }
.resume h3 { font-size: 1.05rem; }
.resume h4 { font-size: 1rem; color: var(--fg-muted); }

.resume p, .resume ul, .resume ol {
  margin: 0.6em 0;
}

.resume ul, .resume ol {
  padding-left: 1.4em;
}

.resume li { margin: 0.25em 0; }

.resume code {
  font-family: "SF Mono", Menlo, Consolas, "Courier New", monospace;
  font-size: 0.88em;
  background: var(--bg-soft);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

.resume pre {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}

.resume pre code { background: none; padding: 0; }

.resume blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1em;
  color: var(--fg-muted);
  margin: 0.8em 0;
}

.resume hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

.resume table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.resume th, .resume td {
  text-align: left;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
}

.resume th { font-weight: 600; }

.loading {
  color: var(--fg-muted);
  font-style: italic;
}

.downloads {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.downloads h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.downloads ul {
  list-style: none;
  padding: 0;
}

.downloads li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.downloads li:last-child { border-bottom: none; }

.downloads .hint {
  color: var(--fg-muted);
  font-size: 0.85em;
  margin-left: 4px;
}

.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 24px;
  color: var(--fg-muted);
  font-size: 0.85rem;
}

@media print {
  .tabs, .downloads, .site-footer, .site-header { display: none !important; }
  .site-header { border-bottom: none; }
  .container { padding: 0; }
  body { font-size: 11pt; }
  .resume { max-width: 100%; }
  a { text-decoration: none; color: var(--fg); }
}
