/* deepseek.wang — 浅底 · 深蓝结构色 · 紧凑 */
:root {
  --blue: #1d4ed8;
  --blue-dark: #0f2a6b;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 15.5px;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 18px; }

/* 非官方横幅 */
.banner {
  background: #fff7e0; border-bottom: 1px solid #f0dfae; color: #7a5b00;
  text-align: center; font-size: 12.5px; padding: 5px 12px;
}
.banner a { color: #7a5b00; text-decoration: underline; }

/* 头部 */
header { border-bottom: 2px solid var(--blue-dark); background: var(--bg-soft); }
.hdr { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; }
.brand { font-size: 20px; font-weight: 700; color: var(--blue-dark); text-decoration: none; }
.brand .logo { margin-right: 6px; }
.brand .dom { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.lang-sw {
  border: 1px solid var(--blue); color: var(--blue); padding: 2px 12px;
  border-radius: 4px; text-decoration: none; font-size: 13px; font-weight: 600;
}
nav.wrap { display: flex; flex-wrap: wrap; gap: 2px; padding-bottom: 0; }
nav.wrap a {
  padding: 8px 11px; color: var(--ink); text-decoration: none; font-size: 14px;
  border-bottom: 3px solid transparent;
}
nav.wrap a:hover { color: var(--blue); }
nav.wrap a.on { color: var(--blue); font-weight: 600; border-bottom-color: var(--blue); }

main { padding: 26px 18px 40px; }

/* 首页 hero */
.hero { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 30px 28px; margin-bottom: 30px; }
.hero h1 { color: var(--blue-dark); font-size: 28px; margin-bottom: 10px; }
.hero p { max-width: 720px; color: var(--ink); }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.hero a { color: var(--blue); }

section { margin-bottom: 30px; }
section h2 { font-size: 18px; border-left: 4px solid var(--blue); padding-left: 10px;
  margin-bottom: 12px; }
section h2 a { color: var(--ink); text-decoration: none; }

/* 卡片网格 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.post-card {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
  background: #fff; transition: border-color .15s;
}
.post-card:hover { border-color: var(--blue); }
.pc-t { color: var(--ink); font-weight: 600; font-size: 14.5px; line-height: 1.45; }
.pc-m { color: var(--muted); font-size: 12px; }

/* 文章页 */
article { max-width: 780px; margin: 0 auto; }
article .meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
article h1 { font-size: 26px; color: var(--blue-dark); margin-bottom: 18px; line-height: 1.35; }
article h2 { font-size: 20px; margin: 26px 0 10px; border-left: 4px solid var(--blue); padding-left: 10px; }
article h3 { font-size: 16.5px; margin: 20px 0 8px; color: var(--blue-dark); }
article p { margin: 10px 0; }
article ul, article ol { margin: 10px 0 10px 22px; }
article li { margin: 4px 0; }
article a { color: var(--blue); }
article img { max-width: 100%; height: auto; border-radius: 6px; margin: 8px 0;
  border: 1px solid var(--line); }
article table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14px; }
article th, article td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
article th { background: var(--bg-soft); }
article pre { background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 8px;
  overflow-x: auto; font-size: 13px; line-height: 1.55; margin: 12px 0; }
article code { font-family: ui-monospace, "SF Mono", Consolas, monospace; }
article pre code { background: none; color: inherit; }
article :not(pre) > code { background: var(--bg-soft); border: 1px solid var(--line);
  padding: 1px 5px; border-radius: 4px; font-size: 13px; }
article blockquote { border-left: 4px solid var(--line); margin: 12px 0; padding: 6px 16px;
  color: var(--muted); background: var(--bg-soft); border-radius: 0 6px 6px 0; }
.orig-link {
  display: inline-block; margin-bottom: 16px; font-size: 13px; color: var(--blue);
  border: 1px solid var(--blue); border-radius: 5px; padding: 3px 12px; text-decoration: none;
}
.orig-link:hover { background: var(--bg-soft); }
.cat-desc { color: var(--muted); margin-bottom: 16px; }

/* 页脚 */
footer { border-top: 3px solid var(--blue-dark); background: var(--bg-soft); padding: 22px 0 28px; }
.foot-note { font-size: 12.5px; color: var(--muted); max-width: 860px; margin-bottom: 8px; }
footer p { font-size: 13px; color: var(--muted); }
footer a { color: var(--blue); }

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  article h1 { font-size: 22px; }
  .hero h1 { font-size: 23px; }
}
