/* Modern refresh for Typecho default theme — 2026-12-04 */
:root {
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f6f8fb;
  --card: #ffffff;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.8;
}
a { color: var(--accent); }
a:hover, a:active { color: #1d4ed8; }

#header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding-top: 28px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .04);
}
#logo { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.description { color: var(--muted); font-style: normal; font-size: 13px; margin-top: 4px; }
#nav-menu { margin: 20px 0 0; }
#nav-menu a {
  float: none; display: inline-block;
  border: none; border-radius: 8px;
  margin: 0 6px 8px 0; padding: 7px 16px;
  height: auto; line-height: 1.5;
  font-size: 14px; color: var(--muted);
  transition: background .18s, color .18s;
}
#nav-menu a:hover { background: var(--accent-soft); color: var(--accent); }
#nav-menu .current { background: var(--accent); color: #fff; }
#nav-menu .current:hover { color: #fff; background: #1d4ed8; }

#body { padding-top: 28px; padding-bottom: 40px; }
.post, .widget, .comment-post, #comments {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, .04);
}
.post { padding: 24px 28px; margin-bottom: 22px; }
.post-title { font-size: 1.35rem; font-weight: 700; line-height: 1.45; margin: 0 0 6px; }
.post-title a { color: var(--ink); }
.post-title a:hover { color: var(--accent); }
.post-meta { color: var(--muted); font-size: 12.5px; margin-bottom: 14px; }
.post-content { font-size: 15px; color: #374151; }
.post-content h2, .post-content h3 { margin-top: 1.6em; font-weight: 700; }
.post-content img { max-width: 100%; height: auto; border-radius: 8px; }

.widget { padding: 20px 22px; margin-bottom: 20px; }
.widget-title {
  font-size: 14px; font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 12px;
}
.widget ul, .widget ol { margin: 0; padding-left: 18px; }
.widget li { padding: 4px 0; border-bottom: 1px dashed #f1f5f9; }
.widget li:last-child { border-bottom: none; }
.widget a { font-size: 13.5px; }

#search input[type="text"] {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 14px;
}
#search .submit {
  border: none; border-radius: 8px; background: var(--accent); color: #fff;
  padding: 8px 14px; cursor: pointer; font-size: 14px;
}
#search .submit:hover { background: #1d4ed8; }

input[type="text"], input[type="email"], input[type="url"], input[type="password"], textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 14px;
}
button, .submit { border-radius: 8px !important; }
pre, code { border-radius: 6px; }
blockquote { border-left-color: var(--accent); background: var(--accent-soft); padding: 10px 16px; border-radius: 0 8px 8px 0; }
table th { background: #f8fafc; }

#footer { color: var(--muted); font-size: 13px; padding: 24px 0 40px; text-align: center; }

@media (max-width: 767px) {
  #header { padding-top: 18px; }
  #logo { font-size: 1.6rem; }
  .post { padding: 18px; }
  .widget { padding: 16px; }
  #nav-menu a { padding: 6px 12px; }
}
