/*
Theme Name: XiaoMa Glass
Theme URI: https://www.mamian.top
Author: XiaoMa
Author URI: https://www.mamian.top
Description: 基于 Glassmorphism 毛玻璃风格的个人博客 WordPress 主题，三列布局，深色模式，响应式设计。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xiaoma-glass
Tags: blog, glassmorphism, dark-mode, responsive, three-columns
*/

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

/* ===== CSS 变量 ===== */
:root {
  --page-bg: #FFFFFF;
  --page-bg2: #f5f6f8;
  --label-primary: rgba(0,0,0,0.88);
  --label-secondary: rgba(0,0,0,0.62);
  --label-tertiary: rgba(0,0,0,0.42);
  --fill-primary: rgba(0,0,0,0.08);
  --fill-secondary: rgba(0,0,0,0.05);
  --accent: #5f6775;
  --accent-soft: rgba(95,103,117,0.10);
  --accent-hover: #4a515e;

  --lg-glass-bg: rgba(255,255,255,0.16);
  --lg-glass-border: 1px solid rgba(255,255,255,0.26);
  --lg-blur: blur(40px) saturate(160%);
  --lg-shadow: 0 1px 2px rgba(0,0,0,0.02), 0 4px 16px rgba(0,0,0,0.04);

  --thin-bg: rgba(255,255,255,0.20);
  --thin-border: 1px solid rgba(255,255,255,0.30);
  --thin-blur: blur(16px) saturate(140%);
  --thin-shadow: 0 1px 2px rgba(0,0,0,0.01), 0 2px 8px rgba(0,0,0,0.03);

  --regular-bg: rgba(255,255,255,0.26);
  --regular-border: 1px solid rgba(255,255,255,0.33);
  --regular-blur: blur(24px) saturate(150%);
  --regular-shadow: 0 1px 2px rgba(0,0,0,0.02), 0 6px 20px rgba(0,0,0,0.04);

  --clear-bg: rgba(255,255,255,0.12);
  --clear-border: 1px solid rgba(255,255,255,0.16);
  --clear-blur: blur(20px) saturate(130%);

  --thick-bg: rgba(255,255,255,0.34);
  --thick-border: 1px solid rgba(255,255,255,0.40);
  --thick-blur: blur(20px) saturate(150%);

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-2xl: 28px;
  --text-primary: var(--label-primary);
  --text-secondary: var(--label-secondary);
  --text-muted: var(--label-tertiary);
  --border-light: var(--fill-primary);
  --radius-sm: var(--r-sm);
  --radius-md: var(--r-md);
  --radius-lg: var(--r-lg);
}

/* ===== 深色模式 ===== */
body.dark {
  --page-bg: #121218;
  --page-bg2: #181820;
  --text-primary: rgba(255,255,255,0.90);
  --text-secondary: rgba(255,255,255,0.65);
  --text-muted: rgba(255,255,255,0.40);
  --fill-primary: rgba(255,255,255,0.08);
  --fill-secondary: rgba(255,255,255,0.05);
  --accent: #9aa7b9;
  --accent-soft: rgba(154,167,185,0.12);
  --accent-hover: #b0bed0;

  --lg-glass-bg: rgba(255,255,255,0.05);
  --lg-glass-border: 1px solid rgba(255,255,255,0.08);
  --lg-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.10);

  --thin-bg: rgba(255,255,255,0.04);
  --thin-border: 1px solid rgba(255,255,255,0.07);
  --thin-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 2px 8px rgba(0,0,0,0.06);

  --regular-bg: rgba(255,255,255,0.04);
  --regular-border: 1px solid rgba(255,255,255,0.08);
  --regular-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 6px 20px rgba(0,0,0,0.08);

  --clear-bg: rgba(255,255,255,0.03);
  --clear-border: 1px solid rgba(255,255,255,0.06);

  --thick-bg: rgba(255,255,255,0.06);
  --thick-border: 1px solid rgba(255,255,255,0.10);
}
body.dark .orb-1 { background: radial-gradient(circle, rgba(80,120,230,0.45) 0%, transparent 70%); }
body.dark .orb-2 { background: radial-gradient(circle, rgba(170,80,230,0.35) 0%, transparent 70%); }
body.dark .orb-3 { background: radial-gradient(circle, rgba(40,130,230,0.35) 0%, transparent 70%); }

/* ===== 基础 ===== */
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(145deg, var(--page-bg), var(--page-bg2));
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--fill-primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--label-tertiary); }

/* ===== 装饰光晕 ===== */
.space-orbs {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(110px);
  animation: float 20s ease-in-out infinite alternate;
  transition: background 0.6s ease;
}
.orb-1 {
  width: 500px; height: 500px; top: -120px; left: -100px;
  background: radial-gradient(circle, rgba(140,180,255,0.30) 0%, transparent 70%);
}
.orb-2 {
  width: 400px; height: 400px; bottom: -80px; right: -80px;
  background: radial-gradient(circle, rgba(210,160,255,0.25) 0%, transparent 70%);
  animation-delay: -6s;
}
.orb-3 {
  width: 350px; height: 350px; top: 40%; left: 50%;
  background: radial-gradient(circle, rgba(100,200,255,0.20) 0%, transparent 70%);
  animation-delay: -12s;
}
@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -40px) scale(1.05); }
  66%  { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(10px, -20px) scale(1.02); }
}

/* ===== 三列主布局 ===== */
.app {
  position: relative; z-index: 1;
  max-width: 1380px; margin: 0 auto; padding: 24px 20px;
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 28px;
  min-height: 100vh;
}

/* ===== Glass 类 ===== */
.glass-card {
  backdrop-filter: var(--regular-blur); -webkit-backdrop-filter: var(--regular-blur);
  background: var(--regular-bg); border: var(--regular-border);
  box-shadow: var(--regular-shadow); border-radius: var(--radius-lg);
}
.glass-card-thin {
  backdrop-filter: var(--thin-blur); -webkit-backdrop-filter: var(--thin-blur);
  background: var(--thin-bg); border: var(--thin-border);
  box-shadow: var(--thin-shadow); border-radius: var(--radius-md);
}
.glass-nav {
  backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur);
  background: var(--lg-glass-bg); border: var(--lg-glass-border);
  box-shadow: var(--lg-shadow); border-radius: var(--r-xl);
}

/* ===== 左侧导航栏 ===== */
.sidebar-left {
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  position: sticky;
  top: 24px;
  height: fit-content;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.sidebar-left-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--fill-primary);
  margin-bottom: 8px;
}
.sidebar-logo {
  width: 38px; height: 38px; border-radius: var(--radius-md);
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; letter-spacing: 0.5px;
  flex-shrink: 0; overflow: hidden;
}
.sidebar-logo img {
  width: 100%; height: 100%; object-fit: cover;
}
.sidebar-title { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.sidebar-subtitle {
  font-size: 11px; color: var(--text-muted);
  font-weight: 400; display: block; margin-top: -2px;
}
.sidebar-left-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  margin: 8px 0;
}
.sidebar-left-nav a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 14px; font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-left-nav a .nav-icon {
  width: 22px;
  text-align: center;
  font-size: 16px;
  flex-shrink: 0;
}
.sidebar-left-nav a:hover { background: var(--fill-primary); color: var(--text-primary); }
.sidebar-left-nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* ===== 左侧常用网站（伙伴站点卡片样式 · 窄栏适配） ===== */
.sidebar-quicklinks {
  margin: 2px 0 6px;
  padding-top: 12px;
  border-top: 1px solid var(--fill-primary);
}
.sidebar-quicklinks-title {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  padding: 2px 14px 6px; letter-spacing: 0.5px;
}
.sidebar-quicklinks .friend-list { gap: 6px; }
.sidebar-quicklinks .friend-card { padding: 7px 10px; gap: 10px; }
.sidebar-quicklinks .friend-avatar { width: 34px; height: 34px; font-size: 15px; }
.sidebar-quicklinks .friend-name { font-size: 13px; gap: 4px; }
.sidebar-quicklinks .friend-desc {
  font-size: 11px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 1100px) {
  .sidebar-quicklinks { display: none; }
}
.sidebar-left-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--fill-primary);
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* 主题切换按钮 */
.theme-btn {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  background: var(--fill-primary); color: var(--text-secondary);
  transition: all 0.25s ease;
}
.theme-btn:hover { background: var(--accent-soft); color: var(--accent); }

/* ===== 中间工作区 ===== */
.main-content { min-width: 0; }

/* ===== Hero ===== */
.hero {
  text-align: center; padding: 44px 20px 36px; margin-bottom: 28px;
}
.hero h1 {
  font-size: 36px; font-weight: 800; letter-spacing: -1px; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent), #8b9bb5);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p {
  font-size: 15px; color: var(--text-secondary);
  max-width: 480px; margin: 0 auto; line-height: 1.7;
}
.hero-meta {
  margin-top: 18px; display: flex; justify-content: center;
  gap: 24px; font-size: 13px; color: var(--text-muted);
  flex-wrap: wrap;
}
.hero-meta span { display: flex; align-items: center; gap: 4px; }

/* ===== 搜索栏 ===== */
.search-bar {
  max-width: 480px; margin: -16px auto 28px; position: relative;
}
.search-bar input[type="search"] {
  width: 100%; padding: 11px 16px 11px 40px;
  border: none; outline: none;
  background: var(--clear-bg);
  backdrop-filter: var(--clear-blur); -webkit-backdrop-filter: var(--clear-blur);
  border: var(--clear-border);
  border-radius: 100px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.25s ease;
}
.search-bar input[type="search"]::placeholder { color: var(--text-muted); }
.search-bar input[type="search"]:focus {
  background: var(--thin-bg);
  border: var(--thin-border);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-bar .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 16px; pointer-events: none;
}

/* ===== 文章卡片 ===== */
.post-card {
  padding: 28px; margin-bottom: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.5s ease forwards;
}
.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.10s; }
.post-card:nth-child(3) { animation-delay: 0.15s; }
.post-card:nth-child(4) { animation-delay: 0.20s; }
.post-card:nth-child(5) { animation-delay: 0.25s; }
.post-card:nth-child(n+6) { animation-delay: 0.30s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.02), 0 12px 36px rgba(0,0,0,0.06);
}
.post-tags { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.post-tag {
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 100px; background: var(--accent-soft);
  color: var(--accent); letter-spacing: 0.3px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.post-tag:hover { opacity: 0.7; }
.post-tag.green  { background: rgba(52,199,89,0.10); color: #1a8a3a; }
.post-tag.orange { background: rgba(255,159,10,0.10); color: #b87503; }
.post-tag.purple { background: rgba(175,82,222,0.10); color: #8b3faf; }
.post-tag.blue   { background: rgba(0,122,255,0.10); color: #0063cc; }

body.dark .post-tag.green  { background: rgba(52,199,89,0.15); color: #4cd964; }
body.dark .post-tag.orange { background: rgba(255,159,10,0.15); color: #ffb340; }
body.dark .post-tag.purple { background: rgba(175,82,222,0.15); color: #c77dff; }
body.dark .post-tag.blue   { background: rgba(0,122,255,0.15); color: #409cff; }

.post-title {
  font-size: 21px; font-weight: 700; margin-bottom: 8px; line-height: 1.4;
}
.post-title a {
  text-decoration: none; color: var(--text-primary);
  transition: color 0.2s;
}
.post-title a:hover { color: var(--accent); }

.post-excerpt {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 14px;
}
.post-footer {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-muted);
  padding-top: 14px; border-top: 1px solid var(--fill-primary);
  flex-wrap: wrap; gap: 8px;
}
.post-footer-left { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.post-footer-left span { display: flex; align-items: center; gap: 4px; }
.post-readmore {
  text-decoration: none; color: var(--accent);
  font-weight: 600; font-size: 13px; transition: opacity 0.2s;
}
.post-readmore:hover { opacity: 0.7; }

/* ===== 单篇文章页 ===== */
.single-post {
  padding: 36px;
}
.single-post .post-title {
  font-size: 28px; margin-bottom: 12px;
}
.single-post .post-content {
  font-size: 15px; color: var(--text-primary);
  line-height: 1.8; margin-top: 20px;
}
.single-post .post-content h2 { font-size: 22px; margin: 24px 0 12px; }
.single-post .post-content h3 { font-size: 18px; margin: 20px 0 10px; }
.single-post .post-content p { margin-bottom: 16px; }
.single-post .post-content a { color: var(--accent); text-decoration: underline; }
.single-post .post-content code {
  background: var(--fill-primary); padding: 2px 6px; border-radius: 4px;
  font-size: 13px; font-family: "SF Mono", "Fira Code", monospace;
}
.single-post .post-content pre {
  background: var(--fill-primary); padding: 16px; border-radius: var(--radius-md);
  overflow-x: auto; margin: 16px 0;
}
.single-post .post-content pre code { background: none; padding: 0; }
.single-post .post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 16px; margin: 16px 0;
  color: var(--text-secondary); background: var(--fill-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.single-post .post-content img {
  max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 16px 0;
}
.single-post .post-content ul, .single-post .post-content ol {
  padding-left: 24px; margin-bottom: 16px;
}

/* ===== 文章导航 ===== */
.post-navigation {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 24px; flex-wrap: wrap;
}
.post-navigation a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 13px; padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--fill-secondary); transition: all 0.2s;
}
.post-navigation a:hover { background: var(--accent-soft); color: var(--accent); }

/* ===== 分页 ===== */
.pagination {
  display: flex; justify-content: center; gap: 6px; margin: 20px 0 8px;
}
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  text-decoration: none; color: var(--text-secondary);
  background: var(--fill-secondary);
  transition: all 0.2s ease;
}
.pagination a:hover { background: var(--fill-primary); color: var(--text-primary); }
.pagination .current {
  background: var(--accent); color: #fff;
}
.pagination .arrow { font-size: 16px; }

/* ===== 右侧个人简介 ===== */
.sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 24px;
  height: fit-content;
}
.sidebar-widget { padding: 24px; }
.sidebar-widget h3 {
  font-size: 13px; font-weight: 700; margin-bottom: 14px;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--text-muted);
}

.sidebar-profile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.profile-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b9bb5);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; margin-bottom: 14px;
  flex-shrink: 0; overflow: hidden;
}
.profile-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.profile-name { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.profile-bio { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.profile-ai-note {
  font-size: 12px; color: var(--text-muted); line-height: 1.6;
  margin-top: 8px; padding: 8px 10px;
  background: var(--accent-soft); border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent);
}
.profile-stats {
  display: flex; gap: 20px; margin-top: 14px; justify-content: center;
  padding-top: 14px; border-top: 1px solid var(--fill-primary); width: 100%;
}
.profile-stats .stat-item { text-align: center; }
.profile-stats .stat-num {
  font-size: 18px; font-weight: 700; color: var(--text-primary);
}
.profile-stats .stat-label {
  font-size: 11px; color: var(--text-muted);
}
.profile-social {
  display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; justify-content: center;
}
.profile-social a {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--fill-secondary);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s ease;
}
.profile-social a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ===== 建站信息 ===== */
.site-info-widget { padding: 24px; }
.site-info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; font-size: 13px;
  border-bottom: 1px solid var(--fill-secondary);
}
.site-info-row:last-child { border-bottom: none; }
.site-info-label {
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 4px;
}
.site-info-value {
  color: var(--text-primary); font-weight: 600;
  text-align: right;
}
.site-info-value.site-days {
  color: var(--accent);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* ===== 分类列表 ===== */
.sidebar-cats { list-style: none; }
.sidebar-cats li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; font-size: 14px;
  border-bottom: 1px solid var(--fill-secondary);
}
.sidebar-cats li:last-child { border-bottom: none; }
.sidebar-cats a {
  text-decoration: none; color: var(--text-secondary);
  transition: color 0.2s;
}
.sidebar-cats a:hover { color: var(--accent); }
.sidebar-cats .count {
  color: var(--text-muted); font-size: 12px;
  background: var(--fill-secondary);
  padding: 0 8px; border-radius: 10px; line-height: 20px;
}

/* ===== 标签云 ===== */
.tag-cloud, .sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a, .sidebar-tags a {
  text-decoration: none; font-size: 12px;
  padding: 4px 12px; border-radius: 100px;
  background: var(--fill-secondary);
  color: var(--text-secondary);
  transition: all 0.2s;
}
.tag-cloud a:hover, .sidebar-tags a:hover { background: var(--accent-soft); color: var(--accent); }

/* ===== 页脚 ===== */
.footer {
  grid-column: 1 / -1;
  margin-top: 12px; padding: 28px 24px;
  text-align: center; font-size: 13px; color: var(--text-muted);
}
.footer a { color: var(--text-secondary); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-links {
  display: flex; justify-content: center; gap: 20px; margin-bottom: 10px;
  flex-wrap: wrap;
}

/* ===== 回到顶部 ===== */
.back-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 44px; height: 44px; border-radius: var(--radius-md);
  backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur);
  background: var(--lg-glass-bg); border: var(--lg-glass-border);
  box-shadow: var(--lg-shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--text-secondary);
  cursor: pointer; z-index: 99;
  opacity: 0; transform: translateY(16px);
  transition: all 0.3s ease; pointer-events: none;
}
.back-top.visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.back-top:hover {
  background: var(--thick-bg); border: var(--thick-border);
  color: var(--accent); transform: translateY(-2px);
}

/* ===== WordPress 评论样式 ===== */
.comments-area { margin-top: 28px; }
.comments-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.comment-list, .commentlist { list-style: none; }
.comment-list .comment, .commentlist .comment {
  padding: 16px; margin-bottom: 12px; border-radius: var(--radius-md);
  background: var(--fill-secondary);
}
.comment-list .children, .commentlist .children { list-style: none; padding-left: 20px; margin-top: 12px; }
.comment-author { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.comment-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-avatar-picker { display: flex; align-items: center; gap: 8px; margin: 10px 0 14px; flex-wrap: wrap; }
.comment-avatar-picker .picker-label { font-size: 13px; color: var(--text-muted); margin-right: 4px; }
.avatar-option { cursor: pointer; line-height: 0; }
.avatar-option input { display: none; }
.avatar-option img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 2px solid transparent; }
.avatar-option input:checked + img { border-color: var(--accent); }
.comment-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.comment-reply-link { color: var(--accent); text-decoration: none; font-size: 12px; }

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
  width: 100%; padding: 10px 14px; margin-bottom: 12px;
  border: var(--clear-border); border-radius: var(--radius-sm);
  background: var(--clear-bg); color: var(--text-primary);
  font-size: 14px; font-family: inherit; outline: none;
  transition: all 0.25s ease;
}
#commentform input:focus, #commentform textarea:focus {
  background: var(--thin-bg); border: var(--thin-border);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
#commentform textarea { min-height: 100px; resize: vertical; }
#commentform .submit {
  padding: 10px 24px; border: none; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: opacity 0.2s;
}
#commentform .submit:hover { opacity: 0.85; }

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
  .app {
    grid-template-columns: 60px 1fr 240px;
    gap: 20px;
  }
  .sidebar-left {
    padding: 20px 10px;
    align-items: center;
  }
  .sidebar-left-brand {
    flex-direction: column;
    gap: 6px;
    padding-bottom: 14px;
  }
  .sidebar-title, .sidebar-subtitle { display: none; }
  .sidebar-left-nav a {
    justify-content: center;
    padding: 10px;
    font-size: 18px;
  }
  .sidebar-left-nav a .nav-text { display: none; }
  .sidebar-left-nav a .nav-icon { width: auto; font-size: 20px; }
}

@media (max-width: 860px) {
  .app {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sidebar-left {
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 14px 18px;
    max-height: none;
    order: -1;
  }
  .sidebar-left-brand {
    flex-direction: row;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  .sidebar-title, .sidebar-subtitle { display: block; }
  .sidebar-left-nav {
    flex-direction: row;
    margin: 0 12px;
    flex: 1;
    justify-content: center;
  }
  .sidebar-left-nav a {
    padding: 8px 14px;
    font-size: 14px;
  }
  .sidebar-left-nav a .nav-text { display: inline; }
  .sidebar-left-nav a .nav-icon { width: 22px; font-size: 16px; }
  .sidebar-left-footer {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
  .sidebar-right { position: static; }
  .hero h1 { font-size: 30px; }
}

@media (max-width: 600px) {
  .sidebar-left-nav { display: none; }
  .mobile-nav-open .sidebar-left-nav {
    display: flex;
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--lg-glass-bg);
    backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur);
    border: var(--lg-glass-border);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: var(--lg-shadow);
    flex-direction: column;
  }
  .mobile-nav-toggle {
    display: flex !important;
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    border: none; cursor: pointer;
    align-items: center; justify-content: center;
    font-size: 20px;
    background: var(--fill-primary); color: var(--text-secondary);
  }
  .sidebar-left { position: relative; }
  .app { padding: 16px 12px; }
  .hero { padding: 20px 14px 18px; }
  .hero h1 { font-size: 24px; }
  .post-card { padding: 20px; }
  .post-title { font-size: 18px; }
  .single-post { padding: 20px; }
  .single-post .post-title { font-size: 22px; }
  .search-bar { margin: -10px auto 20px; }
}
@media (min-width: 601px) {
  .mobile-nav-toggle { display: none !important; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .mobile-nav-toggle { display: none !important; }
}

/* ===== 页脚版权 ===== */
.footer-credit {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-credit a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px dashed var(--fill-primary);
  transition: all 0.2s ease;
}
.footer-credit a:hover {
  color: var(--accent);
}

/* ===== 暂无结果 ===== */
.no-results {
  text-align: center; padding: 60px 20px; font-size: 16px;
  color: var(--text-muted);
}

/* ===== 伙伴站点 ===== */
.friend-section { margin-bottom: 28px; }
.friend-section h2 {
  font-size: 18px; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.friend-list { display: flex; flex-direction: column; gap: 10px; }
.friend-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.25s ease; cursor: pointer;
}
.friend-card:hover {
  background: var(--regular-bg);
  border: var(--regular-border);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.friend-avatar {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, #6a8dca, #8b6ad0);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
  overflow: hidden;
}
.friend-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.friend-info { min-width: 0; flex: 1; }
.friend-name {
  font-size: 15px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 3px;
  display: flex; align-items: center; gap: 6px;
}
.friend-name .friend-arrow {
  font-size: 12px; color: var(--text-muted);
  transition: transform 0.2s ease;
}
.friend-card:hover .friend-name .friend-arrow {
  transform: translate(2px, -2px);
  color: var(--accent);
}
.friend-desc {
  font-size: 12px; color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== 点赞按钮 ===== */
.like-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--fill-primary); color: var(--text-secondary);
  border: none; border-radius: 100px;
  padding: 3px 12px; font-size: 13px; line-height: 1.6;
  cursor: pointer; transition: background 0.2s ease, color 0.2s ease;
  vertical-align: middle;
}
.like-btn:hover {
  background: var(--accent-soft); color: var(--accent);
}
.like-btn.liked {
  background: var(--accent-soft); color: var(--accent);
}
.like-btn .like-count {
  font-weight: 700;
}
