:root {
  --brand: #0052d9;
  --text: #222;
  --text-2: #555;
  --text-3: #888;
  --line: #e6e6e6;
  --bg: #fff;
  --font: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body.article {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 18px; }

.header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.header .name { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: .5px; }
.header .name a { color: var(--text); text-decoration: none; }
.header .menu ul { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.header .menu a { color: var(--text-3); text-decoration: none; font-size: 13.5px; }
.header .menu a:hover { color: var(--brand); }

.main { flex: 1; padding: 20px 0 40px; }

.sitemap { font-size: 12.5px; color: var(--text-3); margin-bottom: 22px; }
.sitemap a { color: var(--text-3); }

.post { }
.post h1 {
  font-size: 23px;
  line-height: 1.5;
  font-weight: 600;
  margin: 0 0 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.postcon h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--text);
}

.postcon p { margin: 0 0 14px; color: var(--text-2); }

.postcon strong { color: var(--text); font-weight: 600; }

.postcon img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 4px 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.keyword {
  display: inline-block;
  padding: 0 6px;
  color: #c2410c;
  background: #fff3e8;
  border-radius: 3px;
  font-weight: 600;
}

.mark {
  color: #c2410c;
  background: #fff3e8;
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 600;
}

.hint { color: var(--text-3); font-size: 13.5px; }

.tip-title { display: block; margin-top: 26px; }

.tip-box {
  padding: 12px 14px;
  background: #f7f8fa;
  border-left: 3px solid var(--brand);
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.85;
}

.cta { display: flex; gap: 10px; margin: 30px 0 10px; flex-wrap: wrap; justify-content: center; }

.cta--single .cta-btn {
  flex: 0 0 auto;
  min-width: 280px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 160px;
  min-height: 44px;
  padding: 8px 20px;
  font-size: 15px;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 6px;
  text-decoration: none;
  transition: background-color .2s;
}

.cta-btn:hover { background: #366ef4; border-color: #366ef4; color: #fff; }

.cta-btn--ghost { color: var(--text); background: #fff; border-color: #ddd; }
.cta-btn--ghost:hover { background: #f5f5f5; color: var(--text); }

.footer { border-top: 1px solid var(--line); padding: 18px 0; }
.footer p { margin: 0; font-size: 12.5px; color: var(--text-3); text-align: center; }

@media (max-width: 480px) {
  body.article { font-size: 14.5px; }
  .post h1 { font-size: 20px; }
  .cta { flex-direction: column; }
  .cta-btn { width: 100%; }
}
