/* ========================================
   SimpleBlog - 简洁大气博客主题
   配色：纯白背景，灰黑白低饱和
   ======================================== */

:root {
  --bg: #ffffff;
  --bg-secondary: #fafafa;
  --text: #222222;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border: #eeeeee;
  --border-light: #f5f5f5;
  --accent: #000000;
  --link: #333333;
  --link-hover: #000000;
  --max-width: 1080px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #1a1a1a;
  --bg-secondary: #222222;
  --text: #e0e0e0;
  --text-secondary: #aaaaaa;
  --text-muted: #777777;
  --border: #333333;
  --border-light: #2a2a2a;
  --accent: #ffffff;
  --link: #cccccc;
  --link-hover: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.scroll-fix {
  overflow: hidden;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--link-hover);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   Header
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

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

.site-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.site-logo img {
  max-height: 36px;
  width: auto;
  display: block;
}

.blog-header-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 8px;
  margin-left: auto;
}

.blog-header-toggle:hover {
  color: var(--text);
}

#navbarResponsive {
  display: block;
}

/* 导航样式 - 覆盖默认 blog_navi() 输出 */
.blog-header-nav .nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.blog-header-nav .list-item {
  position: relative;
  list-style: none;
}

.blog-header-nav .nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: 4px;
  white-space: nowrap;
}

.blog-header-nav .nav-link:hover,
.blog-header-nav .nav-link[aria-current="page"] {
  color: var(--text);
  background: var(--bg-secondary);
}

.blog-header-nav .has-down::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
}

/* 导航栏搜索框 */
.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 16px;
  flex-shrink: 0;
}

.nav-search-input {
  width: 180px;
  height: 34px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.nav-search-input:focus {
  width: 220px;
  border-color: var(--text);
  background: var(--bg);
}

.nav-search-input::placeholder {
  color: var(--text-muted);
}

.nav-search-btn {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.nav-search-btn:hover {
  background: var(--text);
  color: var(--bg);
}

/* 下拉菜单 */
.dropdown-menus {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 120px;
  padding: 6px 0;
  list-style: none;
  z-index: 200;
}

.list-menu:hover > .dropdown-menus {
  display: block;
}

.dropdown-menus .nav-link {
  padding: 8px 16px;
  font-size: 14px;
  text-align: center;
}

.dropdown-menus .nav-link:hover {
  background: var(--bg-secondary);
}

/* 用户头像 */
.header-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  vertical-align: middle;
}

.user-menu-label {
  display: none;
}

/* 移动端菜单遮罩 */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99;
}

.nav-overlay.show {
  display: block;
}

/* ========================================
   Main Content
   ======================================== */
.site-main {
  padding: 24px 0 60px;
  min-height: calc(100vh - 200px);
}

/* ========================================
   Post List - 左文右图
   ======================================== */
.post-list {
  margin-bottom: 40px;
}

.post-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.post-item:last-child {
  border-bottom: none;
}

.post-body {
  flex: 1;
  min-width: 0;
}

.post-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
}

.post-title a {
  color: var(--text);
}

.post-title a:hover {
  color: var(--accent);
}

/* 置顶标记 */
.log-topflg {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
  line-height: 1.6;
}

.post-title .iconfont {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 6px;
  vertical-align: middle;
}

.post-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.post-meta a {
  color: var(--text-muted);
}

.post-meta a:hover {
  color: var(--text);
}

.loglist-sort a {
  color: var(--text-muted);
}

.post-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-secondary);
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.post-thumb:hover img {
  transform: scale(1.05);
}

/* 无缩略图时全宽 */
.post-item:not(:has(.post-thumb)) .post-body {
  width: 100%;
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
  text-align: center;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  display: inline-block;
  min-width: 36px;
  height: 36px;
  line-height: 36px;
  padding: 0 10px;
  margin: 0 2px;
  font-size: 14px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  text-align: center;
}

.pagination a:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.pagination .current {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ========================================
   Post Detail
   ======================================== */
.post-detail {
  max-width: 100%;
}

.detail-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.detail-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.detail-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.detail-meta a {
  color: var(--text-muted);
}

.detail-meta a:hover {
  color: var(--text);
}

.detail-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 32px;
}

.detail-content p {
  margin-bottom: 16px;
}

.detail-tags {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 32px;
}

.detail-tags .tags {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 3px 10px;
  margin-right: 8px;
  margin-bottom: 6px;
  border: 1px solid var(--border);
  border-radius: 3px;
}

.detail-tags .tags:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ========================================
   Neighbor Log (上下篇)
   ======================================== */
.neighbor-log {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.neighbor-log .prev-log,
.neighbor-log .next-log {
  flex: 1;
  max-width: 48%;
}

.neighbor-log .next-log {
  text-align: right;
}

.neighbor-link {
  display: block;
  font-size: 14px;
}

.neighbor-dir {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.neighbor-title {
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.neighbor-link:hover .neighbor-title {
  color: var(--text);
}

/* ========================================
   Comments
   ======================================== */
.comment-header {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.comment {
  display: flex;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}

.comment:last-child {
  border-bottom: none;
}

.comment .avatar {
  flex-shrink: 0;
}

.comment .avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.comment-infos {
  flex: 1;
  min-width: 0;
  position: relative;
}

.comment-infos b {
  font-size: 14px;
  font-weight: 600;
  margin-right: 8px;
}

.comment-time {
  font-size: 12px;
  color: var(--text-muted);
}

.comment-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: 6px;
  word-break: break-word;
}

.comment-reply {
  margin-top: 8px;
}

.com-reply {
  font-size: 12px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.com-reply:hover {
  color: var(--text);
}

/* 子评论 */
.comment-children {
  margin-left: 52px;
  padding-top: 0;
}

.comment-children .comment {
  padding: 16px 0;
}

/* 评论表单 */
.comment-post {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.commentform textarea,
.commentform input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.commentform textarea:focus,
.commentform input:focus {
  border-color: var(--text-muted);
}

.log_comment {
  min-height: 120px;
  resize: vertical;
  margin-bottom: 12px;
}

.comment-info {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.com_control {
  flex: 1;
  min-width: 120px;
}

.captcha-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-container img {
  height: 40px;
  cursor: pointer;
  border-radius: 4px;
}

.com_submit_p {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cancel-reply {
  display: none;
  background: var(--bg);
  color: var(--text-secondary);
  border-color: var(--border);
}

.cancel-reply:hover {
  color: var(--text);
  border-color: var(--text-muted);
  opacity: 1;
}

/* 评论分页 */
#pagenavi {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
}

#pagenavi a,
#pagenavi span {
  display: inline-block;
  min-width: 32px;
  height: 32px;
  line-height: 32px;
  padding: 0 8px;
  margin: 0 2px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
}

#pagenavi .current {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-content {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-content a {
  color: var(--text-muted);
}

.footer-content a:hover {
  color: var(--text);
}

/* ========================================
   Side Toolbar (返回顶部/主题切换)
   ======================================== */
.side-toolbar {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.side-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: block;
}

/* ========================================
   Auth Modal (登录/注册弹窗)
   ======================================== */
.auth-modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--bg);
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.auth-modal-close:hover {
  color: var(--text);
}

.auth-modal-head h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
}

.auth-modal-alert {
  display: none;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  border-radius: 6px;
  background: #fff2f0;
  color: #cf1322;
  border: 1px solid #ffccc7;
}

.auth-modal-alert.show {
  display: block;
}

.auth-modal-alert.success {
  background: #f6ffed;
  color: #389e0d;
  border-color: #b7eb8f;
}

.auth-form-row {
  margin-bottom: 14px;
}

.auth-form-row input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  outline: none;
}

.auth-form-row input:focus {
  border-color: var(--text-muted);
}

.auth-captcha-row {
  display: flex;
  gap: 10px;
}

.auth-captcha-row input {
  flex: 1;
}

.auth-captcha-row img {
  height: 42px;
  border-radius: 6px;
  cursor: pointer;
}

.auth-inline-row {
  display: flex;
  gap: 10px;
}

.auth-inline-row input {
  flex: 1;
}

.auth-inline-btn {
  white-space: nowrap;
  padding: 0 16px;
  height: 42px;
  font-size: 13px;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  cursor: pointer;
}

.auth-checkbox input {
  width: auto;
  height: auto;
}

.auth-submit {
  width: 100%;
  height: 42px;
  font-size: 15px;
  margin-bottom: 16px;
}

.auth-modal-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-modal-switch a {
  color: var(--text-secondary);
  margin: 0 8px;
}

.auth-modal-switch a:hover {
  color: var(--text);
}

.auth-login-ext {
  margin-top: 16px;
  text-align: center;
}

/* ========================================
   Markdown Body
   ======================================== */
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  font-weight: 600;
  line-height: 1.4;
  margin: 28px 0 16px;
}

.markdown-body h1 { font-size: 24px; }
.markdown-body h2 { font-size: 20px; }
.markdown-body h3 { font-size: 18px; }
.markdown-body h4 { font-size: 16px; }

.markdown-body p {
  margin-bottom: 16px;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.markdown-body li {
  margin-bottom: 6px;
}

.markdown-body blockquote {
  padding: 12px 20px;
  margin: 16px 0;
  border-left: 3px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-radius: 0 4px 4px 0;
}

.markdown-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
}

.markdown-body pre {
  padding: 16px;
  margin: 16px 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  background: var(--bg-secondary);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.markdown-body pre code {
  padding: 0;
  background: none;
}

.markdown-body img {
  border-radius: 4px;
  margin: 16px 0;
  cursor: zoom-in;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.markdown-body th,
.markdown-body td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.markdown-body th {
  background: var(--bg-secondary);
  font-weight: 600;
}

.markdown-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* ========================================
   Sidebar (如果开启)
   ======================================== */
.side-bar .widget {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.widget-title h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.widget-list,
.unstyle-li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-list li,
.unstyle-li li {
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
}

.widget-list li:last-child,
.unstyle-li li:last-child {
  border-bottom: none;
}

.tag-container a {
  display: inline-block;
  font-size: 13px;
  padding: 3px 10px;
  margin: 0 6px 6px 0;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-secondary);
}

.tag-container a:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.bloggerinfo {
  text-align: center;
}

.bloggerinfo-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.bloginfo-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.bloginfo-descript {
  font-size: 13px;
  color: var(--text-muted);
}

.search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  margin-bottom: 8px;
}

.archive {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
}

/* ========================================
   404 Page
   ======================================== */
.page-404 {
  text-align: center;
  padding: 80px 20px;
}

.code-404 {
  font-size: 80px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 16px;
}

.page-404 p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.back-home {
  display: inline-block;
  padding: 10px 28px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  font-size: 14px;
}

.back-home:hover {
  color: var(--bg);
  opacity: 0.85;
}

/* ========================================
   Zoom (图片放大)
   ======================================== */
.zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  cursor: zoom-out;
}

.zoom-img {
  cursor: zoom-out;
  position: relative;
  z-index: 2001;
  transition: transform 0.3s ease;
}

.zoom-img-wrap {
  position: relative;
  z-index: 2001;
  transition: transform 0.3s ease;
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .site-main {
    padding: 24px 0 40px;
  }

  .blog-header-toggle {
    display: flex;
  }

  .nav-search {
    display: none;
  }

  #navbarResponsive {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    padding: 20px;
    overflow-y: auto;
    z-index: 100;
  }

  #navbarResponsive.show {
    display: block;
  }

  .blog-header-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .blog-header-nav .nav-link {
    padding: 14px 16px;
    font-size: 16px;
    border-bottom: 1px solid var(--border-light);
  }

  .dropdown-menus {
    display: block;
    position: static;
    transform: none;
    border: none;
    box-shadow: none;
    padding-left: 20px;
    background: var(--bg-secondary);
    border-radius: 0;
  }

  .list-menu:hover > .dropdown-menus {
    display: block;
  }

  .post-item {
    flex-direction: column-reverse;
    gap: 16px;
    padding: 20px 0;
  }

  .post-thumb {
    width: 100%;
    height: 180px;
  }

  .post-title {
    font-size: 17px;
  }

  .detail-title {
    font-size: 22px;
  }

  .neighbor-log {
    flex-direction: column;
    gap: 16px;
  }

  .neighbor-log .prev-log,
  .neighbor-log .next-log {
    max-width: 100%;
    text-align: left;
  }

  .side-toolbar {
    right: 12px;
    bottom: 20px;
  }

  .side-btn {
    width: 36px;
    height: 36px;
  }

  .auth-modal-card {
    padding: 24px 20px;
  }

  .comment-children {
    margin-left: 20px;
  }
}

/* Banner Slider 轮播横幅 */
.banner-slider {
  padding: 30px 0 20px;
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease;
}

.slider-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 40px;
  background: var(--bg-secondary);
  border-radius: 16px;
  gap: 24px;
}

.slide-content {
  flex: 1;
}

.slide-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.slide-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.slide-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.slide-link:hover {
  color: #000;
}

.slide-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
}

.slide-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  width: 20px;
  border-radius: 4px;
  background: var(--text);
}

[data-theme="dark"] .slider-slide {
  background: #1a1a1a;
}

[data-theme="dark"] .slide-icon {
  background: #252525;
}

[data-theme="dark"] .dot {
  background: #333;
}

[data-theme="dark"] .dot.active {
  background: #fff;
}

@media (max-width: 768px) {
  .banner-slider {
    padding: 20px 0 16px;
  }

  .slider-slide {
    padding: 24px 20px;
    flex-direction: column-reverse;
    text-align: center;
    align-items: center;
  }

  .slide-icon {
    width: 60px;
    height: 60px;
  }

  .slide-title {
    font-size: 18px;
  }
}

/* 两栏布局 */
.content-wrapper {
  display: flex;
  gap: 32px;
}

.main-content {
  flex: 1;
  min-width: 0;
}

.sidebar {
  width: 280px;
  flex-shrink: 0;
}

/* 侧边栏通用widget */
.widget {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

/* 个人资料卡片 */
.profile-card {
  text-align: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.profile-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 16px;
  line-height: 1.6;
}

.profile-stats {
  font-size: 12px;
  color: var(--text-secondary);
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

/* 广告位 */
.ad-widget {
  padding: 16px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.ad-widget:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

[data-theme="dark"] .ad-widget:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.ad-label {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 1;
}

.ad-link {
  display: block;
  text-decoration: none;
}

.ad-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s ease;
}

.ad-widget:hover .ad-img {
  transform: scale(1.02);
}

.ad-placeholder {
  width: 100%;
  aspect-ratio: 3/2;
  border: 2px dashed var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
  gap: 4px;
}

.ad-placeholder small {
  font-size: 11px;
  opacity: 0.7;
}

/* 官方widget样式适配 */
.sidebar .widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar .widget-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.sidebar .widget-list li:last-child {
  border-bottom: none;
}

.sidebar .widget-list a {
  color: var(--text);
  text-decoration: none;
}

.sidebar .widget-list a:hover {
  color: #000;
}

.sidebar .widget-title,
.sidebar .widget-title.m {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar .widget-title h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  padding: 0;
  border: none;
}

[data-theme="dark"] .widget {
  background: #1a1a1a;
}

[data-theme="dark"] .ad-placeholder {
  border-color: #333;
}

/* 响应式 - 移动端侧边栏移到下方 */
@media (max-width: 900px) {
  .content-wrapper {
    flex-direction: column;
    gap: 0;
  }

  .sidebar {
    display: none;
  }

  .widget {
    padding: 20px;
  }
}

/* 搜索框美化 */
.sidebar form[name="keyform"] {
  position: relative;
  display: flex;
  align-items: center;
}

.sidebar form[name="keyform"] input.search {
  width: 100%;
  height: 40px;
  padding: 0 44px 0 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.sidebar form[name="keyform"] input.search:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.sidebar form[name="keyform"] input.search::placeholder {
  color: var(--text-muted);
}

.sidebar form[name="keyform"] input[type="submit"] {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--text);
  cursor: pointer;
  font-size: 0;
  line-height: 1;
  overflow: hidden;
  transition: opacity 0.2s, transform 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar form[name="keyform"] input[type="submit"]:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

[data-theme="dark"] .sidebar form[name="keyform"] input.search:focus {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

[data-theme="dark"] .sidebar form[name="keyform"] input[type="submit"]:hover {
  opacity: 0.9;
}

/* 最新文章序号样式 */
.sidebar .widget:has(.blog-lates) ul.unstyle-li {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: newlog-counter;
}

.sidebar .widget:has(.blog-lates) .blog-lates {
  counter-increment: newlog-counter;
  position: relative;
  padding: 10px 0 10px 36px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s, padding-left 0.2s;
  border-radius: 8px;
}

.sidebar .widget:has(.blog-lates) .blog-lates:last-child {
  border-bottom: none;
}

.sidebar .widget:has(.blog-lates) .blog-lates::before {
  content: counter(newlog-counter);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.sidebar .widget:has(.blog-lates) .blog-lates:nth-child(1)::before {
  background: #ff4757;
  color: #fff;
}

.sidebar .widget:has(.blog-lates) .blog-lates:nth-child(2)::before {
  background: #ff6b81;
  color: #fff;
}

.sidebar .widget:has(.blog-lates) .blog-lates:nth-child(3)::before {
  background: #ffa502;
  color: #fff;
}

.sidebar .widget:has(.blog-lates) .blog-lates:hover {
  background: var(--bg-secondary);
  padding-left: 42px;
}

.sidebar .widget:has(.blog-lates) .blog-lates:hover::before {
  transform: translateY(-50%) scale(1.1);
}

.sidebar .widget:has(.blog-lates) .blog-lates a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}

.sidebar .widget:has(.blog-lates) .blog-lates:hover a {
  color: #000;
}

/* 隐藏封面图样式，统一为序号列表 */
.sidebar .widget:has(.blog-lates) .side-cover-image {
  background: none !important;
  padding: 0;
}

.sidebar .widget:has(.blog-lates) .side-title-container {
  position: static;
  padding: 0;
  background: none;
}

[data-theme="dark"] .sidebar .widget:has(.blog-lates) .blog-lates:hover {
  background: #252525;
}

[data-theme="dark"] .sidebar .widget:has(.blog-lates) .blog-lates:hover a {
  color: #fff;
}

/* ========== 全站hover交互统一样式 ========== */

/* 文章列表卡片hover */
.post-item {
  transition: transform 0.25s ease, padding 0.25s ease;
  border-radius: 8px;
  padding: 24px 12px;
  margin: 0 -12px;
}

.post-item:hover {
  transform: translateY(-2px);
  background: var(--bg-secondary);
}

.post-title a {
  transition: color 0.2s;
}

.post-title a:hover {
  color: #000;
}

/* 文章缩略图hover */
.post-thumb img {
  transition: transform 0.3s ease;
}

.post-item:hover .post-thumb img {
  transform: scale(1.03);
}

/* 导航链接hover */
.nav a {
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: #000;
}

/* 分页按钮hover */
.pagination a,
.pagination span {
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-1px);
}

/* 标签hover */
.tag-box a {
  transition: all 0.2s;
}

.tag-box a:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-1px);
}

/* 分类、元信息链接hover */
.post-meta a,
.detail-meta a {
  transition: color 0.2s;
}

.post-meta a:hover,
.detail-meta a:hover {
  color: #000;
}

/* 上下篇导航hover */
.neighbor-log a {
  transition: all 0.2s;
  border-radius: 8px;
}

.neighbor-log a:hover {
  background: var(--bg-secondary);
  transform: translateY(-1px);
}

/* 评论按钮hover */
.comment-btn,
#comment-submit {
  transition: all 0.2s;
}

.comment-btn:hover,
#comment-submit:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* 侧边工具栏按钮hover */
.toolbar-item {
  transition: all 0.2s;
}

.toolbar-item:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}

/* 个人资料头像hover */
.profile-avatar {
  transition: transform 0.3s;
}

.profile-card:hover .profile-avatar {
  transform: scale(1.05);
}

/* widget卡片统一hover（有链接的） */
.widget {
  transition: box-shadow 0.3s;
}

/* 搜索框聚焦已在前面定义 */

/* 链接统一下划线动画 */
a {
  transition: color 0.2s;
}

/* 深色模式适配 */
[data-theme="dark"] .post-item:hover {
  background: #252525;
}

[data-theme="dark"] .post-title a:hover {
  color: #fff;
}

[data-theme="dark"] .nav a:hover {
  color: #fff;
}

[data-theme="dark"] .post-meta a:hover,
[data-theme="dark"] .detail-meta a:hover {
  color: #fff;
}

[data-theme="dark"] .neighbor-log a:hover {
  background: #252525;
}

[data-theme="dark"] .toolbar-item:hover {
  background: #fff;
  color: #000;
}

[data-theme="dark"] .pagination a:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

[data-theme="dark"] .tag-box a:hover {
  background: #fff;
  color: #000;
}

/* ========== APP展示页面样式 ========== */
.detail-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 8px 0 0;
}

.app-showcase {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.app-card {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.app-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-info {
  flex: 1;
  min-width: 0;
}

.app-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}

.app-tag {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.app-badge {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(255,107,107,0.3);
}

.app-badge.badge-blue {
  background: linear-gradient(135deg, #4834d4, #686de0);
  box-shadow: 0 2px 8px rgba(72,52,212,0.3);
}

.app-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.app-desc p {
  margin: 0;
}

.app-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
}

.feature-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,184,148,0.3);
}

.app-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.app-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.app-qrcode img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.qrcode-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg);
}

.qrcode-placeholder small {
  font-size: 10px;
  margin-top: 4px;
}

.qrcode-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  height: 52px;
  background: linear-gradient(135deg, #2d3436, #000000);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 26px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  opacity: 0.95;
}

.btn-download.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
  box-shadow: none;
}

.btn-download.btn-secondary:hover {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.app-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.app-notice {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 28px;
  margin-top: 8px;
  border: 1px solid var(--border-light);
}

.app-notice h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-notice h3::before {
  content: "💡";
  font-size: 18px;
}

.app-notice ul {
  margin: 0;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 2.2;
}

.app-notice strong {
  color: var(--text);
}

/* 深色模式适配 */
[data-theme="dark"] .app-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

[data-theme="dark"] .btn-download:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

[data-theme="dark"] .app-qrcode img {
  border-color: #2a2a2a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .app-card {
    padding: 24px;
    border-radius: 16px;
  }

  .app-header {
    flex-wrap: wrap;
    gap: 16px;
  }

  .app-badge {
    order: 3;
    width: 100%;
    text-align: center;
  }

  .app-name {
    font-size: 20px;
  }

  .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .btn-download {
    max-width: 100%;
  }

  .app-notice {
    padding: 20px;
  }
}
