/* ── promise1220.com custom overrides ── */

/* Google Fonts: Noto Serif SC for Chinese body text, Lato for UI */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Noto+Serif+SC:wght@400;600;700&display=swap');

/* ── CSS variables ── */
:root {
  --brand-color:      #3a6ea8;   /* calm blue */
  --brand-dark:       #2c5282;
  --brand-light:      #ebf2fb;
  --text-color:       #2d2d2d;
  --text-muted:       #718096;
  --border-color:     #e2e8f0;
  --bg-light:         #f7f9fc;
  --max-width:        760px;
  --font-body:        'Noto Serif SC', 'Songti SC', Georgia, serif;
  --font-ui:          'Lato', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ── Base typography ── */
body {
  font-family: var(--font-body);
  color: var(--text-color);
  font-size: 17px;
  line-height: 1.85;
  background: #fff;
}

h1, h2, h3, h4, h5, h6,
.navbar, nav, .button, button, label, .breadcrumb {
  font-family: var(--font-ui);
}

/* ── Navbar ── */
#navbar {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

#navbar a {
  color: var(--text-color);
  font-weight: 400;
  letter-spacing: .02em;
}

#navbar a:hover,
#navbar a.active {
  color: var(--brand-color);
}

/* dropdown under 博客 */
.dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
}

.dropdown-menu a {
  font-size: 15px;
  padding: .45rem 1.1rem;
}

/* ── Hero / home banner ── */
.hero-unit {
  background: var(--brand-light);
  border-bottom: 1px solid var(--border-color);
  padding: 4rem 1rem;
  text-align: center;
}

.hero-unit h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: .5rem;
}

.hero-unit p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ── Blog listing ── */
.list-item {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.6rem 2rem;
  margin-bottom: 1.4rem;
  background: #fff;
  transition: box-shadow .18s, transform .18s;
}

.list-item:hover {
  box-shadow: 0 4px 18px rgba(58,110,168,.12);
  transform: translateY(-2px);
}

.list-item h2 a {
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
}

.list-item h2 a:hover {
  color: var(--brand-color);
}

.list-item .list-blog-meta {
  font-family: var(--font-ui);
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: .6rem;
}

/* ── Single blog post ── */
.item-page .content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
}

.item-page h1.page-title {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: .35rem;
}

.item-page .blog-post-date {
  font-family: var(--font-ui);
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.item-page p {
  margin-bottom: 1.5rem;
}

/* ── Category header ── */
.blog-list-title {
  font-size: 1.1rem;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: .5rem;
  margin-bottom: 1.6rem;
  font-family: var(--font-ui);
}

/* ── Sidebar / category links ── */
.sidebar-sticky ul li a {
  font-family: var(--font-ui);
  color: var(--text-color);
  font-size: .92rem;
}

.sidebar-sticky ul li a:hover {
  color: var(--brand-color);
}

/* ── Buttons ── */
.button,
.button:visited {
  background: var(--brand-color);
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: .9rem;
  padding: .5rem 1.3rem;
  border: none;
}

.button:hover {
  background: var(--brand-dark);
}

/* ── Pagination ── */
.pagination .page-item .page-link {
  font-family: var(--font-ui);
  color: var(--brand-color);
  border-radius: 5px;
  border-color: var(--border-color);
}

.pagination .page-item.active .page-link {
  background: var(--brand-color);
  border-color: var(--brand-color);
  color: #fff;
}

/* ── Footer ── */
#footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-light);
  font-family: var(--font-ui);
  font-size: .85rem;
  color: var(--text-muted);
  padding: 1.5rem 0;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero-unit h1 { font-size: 1.6rem; }
  .list-item     { padding: 1.2rem 1.2rem; }
}
