/* crulycn.cn 个人博客样式 */
:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #2b2f36;
  --muted: #6b7280;
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部 */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.logo-accent {
  color: var(--accent);
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 24px;
  padding-bottom: 4px;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--accent-dark);
}

.nav a.active {
  border-bottom: 2px solid var(--accent);
}

/* 首页 */
.hero {
  padding: 72px 0 40px;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--accent-dark);
  margin-bottom: 20px;
}

.hero-desc {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.btn-ghost {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-ghost:hover {
  background: #eff6ff;
}

/* 通用区块 */
.section {
  padding: 24px 0 56px;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}

/* 卡片 */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.card h3 a {
  color: var(--text);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--accent);
}

.card .meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* 文章/关于页卡片 */
.article-body h1 {
  font-size: 1.7rem;
  margin: 24px 0 12px;
}

.article-body p {
  margin-bottom: 14px;
}

.article-body ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

/* 页脚 */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--accent);
}

/* 响应式 */
@media (max-width: 560px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
    gap: 8px;
  }
  .nav a {
    margin: 0 10px;
  }
  .hero {
    padding: 48px 0 24px;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
