/* =============================================
   小溪的博客 — 极简风覆盖层 v1.0
   在 main.css + enhance.css 之上覆盖,去掉"AI 味":
   - 蓝紫渐变 → 黑白灰极简
   - 毛玻璃/彩色阴影 → 无/极淡
   - 花哨动效 → 克制/移除
   ============================================= */

/* ── 1. 配色:极简但保留蓝色主题 ── */
:root {
  --bg: #ffffff;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-light: #444444;
  --text-muted: #999999;
  --accent: #2563eb;          /* 蓝色主题色(极简,不用渐变) */
  --accent-h: #1d4ed8;
  --accent2: #2563eb;
  --accent2-h: #1d4ed8;
  --border: #e8e8e8;
  --radius: 4px;              /* 小圆角,更克制 */
  --shadow: none;             /* 去阴影 */
  --shadow-h: none;
  --shadow-card: none;
  --header-h: 56px;
  --font: -apple-system,"PingFang SC","Noto Sans SC","Microsoft YaHei","Helvetica Neue",sans-serif;
}

/* 暗色模式:深灰底 + 亮蓝 */
body.dark {
  --bg: #111111;
  --card: #181818;
  --text: #e5e5e5;
  --text-light: #b0b0b0;
  --text-muted: #666666;
  --accent: #60a5fa;
  --accent-h: #93c5fd;
  --accent2: #60a5fa;
  --accent2-h: #93c5fd;
  --border: #2a2a2a;
  --shadow: none;
  --shadow-h: none;
  --shadow-card: none;
}

/* ── 2. 移除毛玻璃 / 渐变 / 彩色元素 ── */
.header {
  background: var(--bg) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid var(--border);
  box-shadow: none !important;
}

/* 作者卡片:去掉彩色渐变背景 */
.author-bg {
  background: var(--border) !important;
  height: 4px;               /* 渐变头缩成一条细线 */
  border-radius: 0 !important;
}
/* 头像不再上浮覆盖(渐变头已变细线,负 margin 会造成错位) */
.author-body {
  margin-top: 12px !important;
}

/* 阅读进度条:去渐变,纯黑细线 */
.read-progress .bar {
  background: var(--accent) !important;
}

/* 头像默认圆角方形感(去掉厚边框) */
.avatar {
  border: 1px solid var(--border);
  border-radius: 50%;
}

/* 评论区头像:去渐变背景 */
.comment-avatar {
  background: var(--border) !important;
  color: var(--text) !important;
}

/* ── 3. 卡片:去阴影,细边框,少圆角 ── */
.post-item,
.post-full,
.s-card,
.admin-table,
.comments-section,
.login-box,
.modal-box,
.profile-modal {
  box-shadow: none !important;
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
}

/* hover 不上浮,只加深边框 */
.post-item:hover,
.s-card:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: var(--text-muted);
}
.post-item::before { display: none !important; }   /* 去掉左侧渐变指示条 */

/* ── 4. 按钮:黑白,直角,无彩色 ── */
.btn-primary,
.btn-submit,
.cf-submit,
.vtop-btn,
.slot-btn {
  background: var(--accent) !important;
  color: var(--bg) !important;
  border: none !important;
  border-radius: var(--radius) !important;
}
.btn-primary:hover,
.btn-submit:hover,
.cf-submit:hover {
  background: var(--accent-h) !important;
  opacity: 1 !important;
}

/* 普通按钮:白底黑边 */
.btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── 5. 链接:蓝色主题,无花哨 ── */
a { color: var(--accent); }
a:hover { color: var(--accent-h); text-decoration: underline; text-underline-offset: 3px; }

/* 正文标题保持深色,链接用蓝 */
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--accent); }
.s-list a { color: var(--text-light); }
.s-list a:hover { color: var(--accent); }

/* 导航:去掉下划线动效和 hover 背景 */
.nav-links a::after { display: none !important; }
.nav-links a { border-radius: 0 !important; padding: 6px 12px; }
.nav-links a:hover { background: none !important; }
.nav-links a.active { background: none !important; color: var(--accent) !important; font-weight: 600; border-bottom: 2px solid var(--accent); }

/* ── 6. 移除/克制动效 ── */
.post-item, .post-full, .comments-section, .s-card { animation: none !important; }
.post-item, .s-card { transition: none !important; }
.post-body img { box-shadow: none !important; cursor: default; }
.post-body a { border-bottom: none !important; }
.post-body p { text-align: left; }
.story-card.stuck { box-shadow: none !important; }
.logo { transition: none !important; }
.logo:hover { transform: none !important; }

/* 回到顶部:黑色小方块,极简 */
.vtop-btn {
  width: 38px; height: 38px;
  border-radius: 2px !important;
  box-shadow: none !important;
  font-size: 0.9rem;
}
.vtop-btn:hover { transform: none; }

/* 搜索建议下拉:细边框无阴影 */
.ss-dropdown {
  border-radius: 2px !important;
  box-shadow: none !important;
}

/* 浮点数导航(考试/移动端)极简化 */
.float-nav-btn {
  border-radius: 2px !important;
  box-shadow: none !important;
}

/* ── 7. 正文排版:更简洁 ── */
.post-full { padding: 40px 48px; }
.post-full h1 { font-size: 24px; font-weight: 600; letter-spacing: 0; }
.post-body { font-size: 15px; line-height: 1.9; color: var(--text-light); }
.post-body h2 { border-bottom: 1px solid var(--border); font-size: 19px; }
.post-body blockquote { border-left: 2px solid var(--text-muted); background: none; }
.post-body code { background: #f5f5f5; }
body.dark .post-body code { background: #242424; }

/* 侧边栏卡片头部:去掉图标间距花哨感 */
.s-card-head { letter-spacing: 0; border-bottom: 1px solid var(--border); }

/* 页码:蓝色当前页,细边框 */
.pagination a, .pagination span {
  border: 1px solid var(--border) !important;
  border-radius: 2px !important;
  background: var(--bg) !important;
  color: var(--text) !important;
}
.pagination .curr {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
}

/* ── 8. 移动端适配保持简洁 ── */
@media (max-width: 768px) {
  .post-full { padding: 24px 20px; }
  .nav-links a.active { border-bottom: none; background: none; }
}
