:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-soft: #f7f7f7;
  --text: #111111;
  --muted: #666666;
  --soft: #8a8a8a;
  --line: #e3e3e3;
  --line-strong: #111111;
  --accent: #111111;
  --accent-2: #111111;
  --accent-3: #111111;
  --border: #e3e3e3;
  --shadow: rgba(0, 0, 0, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 0;
  color: var(--muted);
  font-weight: 680;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.nav-links a:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: #fafafa;
}

.nav-links .admin {
  margin-left: 4px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: #fff;
}

.nav-links .admin:hover {
  color: #fff;
  background: #111;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.hero {
  padding: 78px 0 60px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  align-items: end;
}

.kicker {
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 14px 0 18px;
  font-size: clamp(42px, 6.5vw, 76px);
  line-height: .98;
  max-width: 850px;
  font-weight: 900;
}

.hero p, .lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  max-width: 760px;
}

.note-card {
  border: 1px solid var(--line);
  border-top: 2px solid var(--line-strong);
  background: #fff;
  border-radius: 0;
  padding: 22px;
}

.note-card strong { display: block; margin-bottom: 10px; font-size: 17px; }
.note-card p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--muted); }

.section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 850;
}

.section-desc { margin: 7px 0 0; color: var(--muted); line-height: 1.7; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.card, .post-card {
  display: block;
  min-height: 174px;
  padding: 25px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  transition: border-color .18s ease, transform .2s ease, box-shadow .2s ease, background .18s ease;
}

.card::before, .post-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #111;
  opacity: 0;
  transition: opacity .18s ease;
}

.card:hover, .post-card:hover {
  transform: translateY(-3px);
  border-color: #111;
  box-shadow: 0 16px 34px var(--shadow);
}

.card:hover::before, .post-card:hover::before { opacity: 1; }

.card small, .meta {
  display: block;
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 18px;
}

.card h3, .post-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 850;
}

.card p, .post-card p { margin: 0; color: var(--muted); line-height: 1.82; }

.post-list { display: grid; gap: 12px; }
.post-card { min-height: 0; padding: 22px 24px; }
.post-card h2 { font-size: 23px; }

.info-list { display: grid; gap: 9px; margin-top: 12px; color: var(--muted); }
.info-row { display: flex; gap: 10px; align-items: center; }
.info-row span:first-child { color: var(--text); font-weight: 800; min-width: 72px; }
.info-row p { margin: 0; }

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-left: 3px solid #111;
  background: #fff;
  border-radius: 0;
  padding: 20px 22px;
}

.cta-strip p { margin: 0; color: var(--muted); line-height: 1.7; }

.button-link {
  white-space: nowrap;
  border: 1px solid #111;
  color: #fff;
  background: #111;
  border-radius: 0;
  padding: 10px 14px;
  font-weight: 800;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.button-link:hover {
  color: #111;
  background: #fff;
  transform: translateY(-2px);
}

.article-wrap { max-width: 820px; margin: 0 auto; padding: 54px 24px 72px; }
.article-head { padding-bottom: 30px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.article-head h1 { font-size: clamp(36px, 6vw, 62px); }
.content { color: #222; font-size: 18px; line-height: 1.9; }
.content img { max-width: 100%; border-radius: 0; filter: grayscale(100%); }
.content a { color: #111; border-bottom: 1px solid #111; }
.content pre { overflow: auto; padding: 18px; border-radius: 0; background: #111; color: #fff; }
.content blockquote { margin-left: 0; padding-left: 18px; border-left: 3px solid #111; color: var(--muted); }

.tax-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 12px;
  background: #fff;
  color: var(--muted);
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.pill:hover { border-color: #111; color: #fff; background: #111; }

.empty { color: var(--muted); padding: 32px 0; }
.footer { padding: 34px 24px; text-align: center; color: var(--muted); }
.fade-in { animation: fadeIn .5s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.comment-panel {
  border: 1px solid var(--line);
  border-top: 2px solid #111;
  border-radius: 0;
  background: #fff;
  padding: 24px;
}
.comment-panel halo-comment,
.comment-panel comment-widget { display: block; }

.columns-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .columns-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .note-card { max-width: 520px; }
}

@media (max-width: 760px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .nav-links { justify-content: flex-start; }
  .hero { padding: 46px 0 44px; }
  h1 { font-size: 43px; }
  .grid { grid-template-columns: 1fr; }
  .section-head, .cta-strip { align-items: flex-start; flex-direction: column; }
  .article-wrap { padding-top: 34px; }
  .comment-panel { padding: 16px; }
}

@media (max-width: 640px) {
  .columns-grid { grid-template-columns: 1fr; }
}
