/* ========== Footer Minimal Restore ========== */
.site-footer { margin-top:40px; padding:32px 0 36px; background:#2E4A40; color:#fff; }
.site-footer .footer-inner { max-width:880px; margin:0 auto; padding:0 22px; display:flex; flex-direction:column; gap:14px; }
.site-footer .footer-info { font-size:12px; line-height:1.6; opacity:.9; }
.site-footer .footer-info a { color:#fff; text-decoration:none; border-bottom:1px dotted rgba(255,255,255,.4); }
.site-footer .footer-info a:hover { opacity:1; border-color:transparent; }
.site-footer .footer-social { list-style:none; margin:0; padding:0; display:flex; gap:14px; flex-wrap:wrap; }
.site-footer .footer-social li { line-height:1; }
.site-footer .footer-social a { display:flex; width:34px; height:34px; align-items:center; justify-content:center; background:rgba(255,255,255,.12); color:#fff; border-radius:10px; font-size:16px; transition:.25s; }
.site-footer .footer-social a:hover { background:var(--main-color); color:#fff; transform:translateY(-2px); }
[data-theme="dark"] .site-footer { background:#1f1f1f; }
[data-theme="dark"] .site-footer .footer-social a { background:rgba(255,255,255,.08); }
[data-theme="dark"] .site-footer .footer-social a:hover { background:var(--dark-main-color); }
/* Mao WordPress主题样式 - 基于Gridea Mao主题 */
/* Mao WordPress主题样式 - 基于Gridea Mao主题 */
/* 主题颜色变量 */

/* 主题颜色变量 */
:root {
  /* 全屏覆盖式菜单重构 注：移动到顶部后保持变量块结构 */
  --darker-main-color: #2B5942;
  --dark-main-color: #52846F;
  --main-color: #79AE9C;
  --light-main-color: #8DD592;
  --lighter-main-color: #D7FEF3;
  --black: #000000;
  --white: #FFFFFF;
  --odd-color: #d7e6e0;
  --even-color: #bacec5;
  --border-color: #f4f6f8;
  --darker-gray: #333333;
  --dark-gray: #5E5E5E;
  --default-gray: #CCCCCC;
  --light-gray: #E6E6E6;
  --lighter-gray: #F3F3F3;
  --dark-color: rgba(0,0,0,.85);
  --default-color: rgba(0,0,0,.65);
  --light-color: rgba(0,0,0,.45);
  --lighter-color: rgba(0,0,0,.25);
  /* 浅色主题变量 */
  --bg-primary: #FFFFFF;
  --bg-secondary: #f8f9fa;
  --text-primary: #333333;
  --text-secondary: #666666;
  --border-primary: #f0f0f0;
}
/* 主导航基础样式 */
.primary-nav { 
  position: relative; 
  z-index: 1000;
}
.primary-nav .nav-list { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
}
.primary-nav .nav-list > li { 
  position: relative; 
}
.primary-nav .nav-list > li > a {
  display: block;
  padding: 9px 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.4;
  border-radius: 6px;
  transition: all 0.25s ease;
}
.primary-nav .nav-list > li > a:hover {
  background: var(--main-color);
  color: #fff;
}

/* 旧 nav-mode / hamburger 保留以防模板引用，可后续删除 */
/* (legacy .nav-mode-* hooks removed) */
[data-theme="dark"] .primary-nav .nav-list > li > a:hover { background:var(--dark-main-color); color:#fff; }

/* 新汉堡按钮 */
.hamburger-btn { position:relative; width:38px; height:38px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:5px; border:none; background:linear-gradient(145deg,#ffffff,#f5f5f7); color:#444; border-radius:8px; cursor:pointer; transition:background .25s, box-shadow .25s; }
.hamburger-btn .bar { width:20px; height:3px; background:currentColor; border-radius:2px; transition:transform .35s cubic-bezier(.5,-0.35,.35,1.5), opacity .25s; }
.hamburger-btn:focus-visible { outline:2px solid var(--main-color); outline-offset:2px; }
.hamburger-btn:hover { box-shadow:0 4px 10px rgba(0,0,0,.08),0 0 0 1px rgba(0,0,0,.08); }
.hamburger-btn[aria-expanded="true"] .bar:nth-child(1) { transform:translateY(8px) rotate(45deg); }
.hamburger-btn[aria-expanded="true"] .bar:nth-child(2) { opacity:0; }
.hamburger-btn[aria-expanded="true"] .bar:nth-child(3) { transform:translateY(-8px) rotate(-45deg); }
[data-theme="dark"] .hamburger-btn { background:linear-gradient(145deg,#2f2f2f,#262626); color:#ddd; }
[data-theme="dark"] .hamburger-btn:hover { box-shadow:0 4px 14px rgba(0,0,0,.5); }

/* 旧动画版 primary-nav.dropdown 删除，使用下方统一版本 */

/* 二级菜单样式已合并到移动端和桌面端样式中 */

/* 桌面端主导航样式 (>=960px) - 抽屉型下拉菜单 */
@media (min-width: 960px) {
  #primary-nav { 
    position: absolute; 
    top: calc(100% + 8px); 
    right: 0; 
    z-index: 1600; 
    min-width: 280px;
    max-width: 320px;
  }
  
  #primary-nav[hidden] { 
    display: none; 
  }
  
  #primary-nav[data-open="true"] {
    display: block;
  }
  
  #primary-nav .nav-list { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    background: var(--bg-primary); 
    border: 1px solid var(--border-primary); 
    border-radius: 12px; 
    display: flex; 
    flex-direction: column; 
    gap: 0; 
    box-shadow: 0 8px 32px -8px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.05); 
    transform: translateY(-8px) scale(.98); 
    opacity: 0; 
    visibility: hidden; 
    pointer-events: none; 
    transition: all .2s cubic-bezier(.4,.14,.3,1);
    overflow: hidden;
  }
  
  #primary-nav[data-open="true"] .nav-list {
    transform: translateY(0) scale(1); 
    opacity: 1; 
    visibility: visible; 
    pointer-events: auto;
  }
  
  #primary-nav .nav-list > li { 
    border-bottom: 1px solid var(--border-primary);
  }
  
  #primary-nav .nav-list > li:last-child { 
    border-bottom: none; 
  }
  
  #primary-nav .nav-list > li > a { 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    padding: 16px 20px; 
    text-decoration: none; 
    color: var(--text-primary); 
    font-size: 15px; 
    font-weight: 500;
    line-height: 1.4; 
    transition: all .2s ease; 
    background: transparent;
    position: relative;
  }
  
  #primary-nav .nav-list > li > a:hover { 
    background: var(--main-color); 
    color: #fff; 
  }
  
  #primary-nav .nav-list > li > a:active {
    background: var(--dark-main-color);
  }
  
  #primary-nav .nav-list li ul { 
    position: relative; 
    top: auto; 
    left: auto; 
    background: rgba(0,0,0,.02); 
    border: none; 
    padding: 0; 
    border-radius: 0; 
    box-shadow: none; 
    min-width: auto; 
    display: none; 
    margin: 0; 
    border-top: 1px solid var(--border-primary);
  }
  
  #primary-nav .nav-list li.open > ul { 
    display: block; 
  }
  
  #primary-nav .nav-list li ul a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: all .2s ease;
    border-bottom: 1px solid rgba(0,0,0,.05);
  }
  
  #primary-nav .nav-list li ul a:hover {
    background: var(--main-color);
    color: #fff;
  }
  
  #primary-nav .nav-list li ul li:last-child a {
    border-bottom: none;
  }
  
  #primary-nav .submenu-toggle { 
    position: relative;
    width: 24px; 
    height: 24px; 
    border: none; 
    background: transparent; 
    cursor: pointer; 
    border-radius: 4px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all .2s ease;
    margin-left: 8px;
  }
  
  #primary-nav .submenu-toggle:before {
    content: ""; 
    width: 6px; 
    height: 6px; 
    border: 2px solid currentColor; 
    border-left: none; 
    border-top: none; 
    transform: rotate(45deg); 
    transition: transform .2s ease;
  }
  
  #primary-nav li.open > .submenu-toggle:before {
    transform: rotate(-135deg);
  }
  
  #primary-nav .submenu-toggle:hover {
    background: rgba(0,0,0,.08);
  }
  
  #primary-nav .nav-list li.menu-item-has-children > a { 
    padding-right: 20px; 
  }
  
  [data-theme="dark"] #primary-nav .nav-list { 
    background: #1f1f1f; 
    border-color: #333;
  }
  
  [data-theme="dark"] #primary-nav .nav-list > li {
    border-color: #333;
  }
  
  [data-theme="dark"] #primary-nav .nav-list li ul {
    background: rgba(255,255,255,.02);
    border-color: #333;
  }
  
  [data-theme="dark"] #primary-nav .nav-list li ul a {
    border-color: rgba(255,255,255,.05);
  }
  
  [data-theme="dark"] #primary-nav .submenu-toggle:hover {
    background: rgba(255,255,255,.08);
  }
}

/* 统一顶部图标颜色与尺寸 - 已整合到下方统一规则中 */

/* 统一图标尺寸 */
.icon-uniform {width:20px;height:20px;display:block;}
.header-right .header-btn .icon-uniform {width:20px;height:20px;}

/* 搜索条按钮图标化 */
.search-bar-submit {display:flex;align-items:center;justify-content:center;gap:4px;min-width:44px;padding:8px 14px;}
.search-bar-submit .icon-uniform {margin:0;}
.search-bar-close {width:38px;height:38px;}
.search-bar-close .icon-uniform {width:20px;height:20px;}
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0;}
[data-theme="dark"] .header-right .header-btn {color:#d0d4d6;}
[data-theme="dark"] .header-right .header-btn:hover {color:#ffffff;}
[data-theme="dark"] .menu-toggle-btn .bar {background:currentColor;}

/* （原被破坏的结束括号已修复上方） */

/* 深色主题 */
[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --border-primary: #404040;
  --odd-color: #2d2d2d;
  --even-color: #404040;
}

/* 基础样式重置 */
*,
:after,
:before {
  box-sizing: border-box;
}

body,
html {
  height: 100%;
}

html {
  font-family: sans-serif;
  line-height: 1.15;
  -ms-overflow-style: scrollbar;
  -ms-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #fff;
  color: var(--default-color);
  font-variant: tabular-nums;
  font-size: 14px;
  font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.5;
}

hr {
  overflow: visible;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
  margin: 12px 0;
  border: 0;
  border-top: 1px solid #f4f6f9;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
  font-weight: 500;
  font-family: Avenir, "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  margin: 1.6em 0 0.6em;
}

/* 文章页面标题样式优先级 - 排除文章内容中的标题 */
.single-content h1,
.single-content h2,
.single-content h3,
.single-content h4,
.single-content h5,
.single-content h6 {
  font-family: inherit;
}

/* 确保文章内容中的标题不受通用样式影响 */
.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
  font-family: inherit;
  color: inherit;
  font-weight: inherit;
  margin: inherit;
}

p {
  margin: 1em 0;
  cursor: default;
}

li {
  list-style: none;
  cursor: default;
}

dl,
ol,
ul {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  cursor: default;
}

ol ol,
ol ul,
ul ol,
ul ul {
  margin-bottom: 0;
}

blockquote {
  margin: 1.6em 0;
  padding-left: 8px;
  border-left: 4px solid #ebedf0;
  color: var(--main-color);
}

blockquote p {
  margin: 0;
}

pre {
  margin: 1.6em 0;
  padding: 24px 18px;
  border-radius: 4px;
  background: #e6f7ff;
  white-space: pre-wrap;
}

code {
  margin: 0 4px;
  padding: 3px 8px 2px;
  border: 1px solid rgba(82, 132, 111, 0.4);
  border-radius: 4px;
  background-color: rgba(121, 174, 156, 0.3);
  vertical-align: middle;
  font-size: 12px;
  font-family: Inconsolata, monospace, sans-serif;
}

pre code {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 13px;
}

figure {
  margin: 0;
  border: 0;
  vertical-align: baseline;
}

strong,
b {
  font-weight: 500;
}

a {
  outline: none;
  background-color: transparent;
  color: var(--main-color);
  text-decoration: none;
  cursor: pointer;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
  -webkit-text-decoration-skip: objects;
}

a:focus {
  -webkit-text-decoration-skip: ink;
  text-decoration-skip: ink;
}

a:hover,
a:active {
  color: var(--dark-main-color);
  outline: 0;
  text-decoration: none;
}

img {
  border-style: none;
  vertical-align: middle;
}

table {
  border-collapse: collapse;
}

mark {
  padding: 0.2em;
  background-color: #feffe6;
}

::-moz-selection {
  background: var(--main-color);
  color: #fff;
}

::selection {
  background: var(--main-color);
  color: #fff;
}

/* 工具类 */
.fa {
  display: inline-block;
  text-align: center;
  text-transform: none;
  font-style: normal;
  line-height: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.btn {
  position: relative;
  display: inline-block;
  padding: 0 15px;
  height: 32px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  background-color: #fff;
  background-image: none;
  -webkit-box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
  color: var(--default-color);
  text-align: center;
  white-space: nowrap;
  font-weight: 400;
  font-size: 14px;
  line-height: 32px;
  cursor: pointer;
  -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  -moz-user-select: none;
  -ms-touch-action: manipulation;
  -ms-user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  user-select: none;
}

.btn:active,
.btn:focus {
  outline: 0;
}

.btn:focus,
.btn:hover {
  border-color: var(--dark-main-color);
  color: var(--dark-main-color);
}

.btn.disabled,
.btn[disabled] {
  border-color: #d9d9d9;
  background-color: #f5f5f5;
  box-shadow: none;
  color: rgba(0, 0, 0, 0.25);
  cursor: not-allowed;
}

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

.btn.btn-primary:hover {
  background-color: var(--dark-main-color);
  border-color: var(--dark-main-color);
}

.clearfix {
  zoom: 1;
}

.clearfix:after,
.clearfix:before {
  display: table;
  content: "";
}

.clearfix:after {
  clear: both;
}

/* 布局容器 */
.layout {
  display: flex;
  overflow-x: hidden;
  min-height: 100vh;
  background: #fff;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
  -ms-transition: all 0.3s ease-out;
  flex-direction: column;
  flex: auto;
}

/* 网格系统 */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 15px;
}

.col-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
  padding: 0 15px;
}

.col-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 15px;
}

/* 头部样式 - 现代化按钮式布局 */
.layout-header {
  position: relative;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.layout-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 左侧：Logo和副标题 */
.header-left {
  display: flex;
  align-items: center;
}

.site-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 15px;
  transition: all 0.3s ease;
}

.site-brand:hover {
  transform: translateY(-1px);
}

.site-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
}

.site-brand:hover .site-logo {
  border-color: #79AE9C;
  box-shadow: 0 4px 15px rgba(121, 174, 156, 0.3);
}

.site-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-title {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  margin: 0;
  line-height: 1.2;
}

.site-description {
  font-size: 13px;
  color: #666666;
  margin: 0;
  line-height: 1.2;
}

/* 右侧：按钮组 */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: var(--surface, #ffffff);
  color: #666666;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.05);
}

.header-icon-btn {
  background: linear-gradient(145deg, #ffffff, #f5f5f7);
}

[data-theme="dark"] .header-icon-btn {
  background: linear-gradient(145deg, #2f2f2f, #262626);
  color: #c9c9c9;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
}

.header-btn:hover {
  background: #f0f0f0;
  color: #333333;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.08);
}

[data-theme="dark"] .header-btn:hover {
  background: #3a3a3a;
  color: #ffffff;
}

.header-btn:active {
  background: #e0e0e0;
  transform: translateY(1px);
}

[data-theme="dark"] .header-btn:active {
  background: #444444;
}

.header-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* (Removed old .search-modal styles; using #search-drawer now) */

/* 旧的移动端菜单样式已移除，统一使用主导航 */

/* Toast提示样式 */
.toast {
/* 旧的RSS复制样式已移除，统一使用下方的对号图标样式 */

  position: fixed;
  top: 20px;
  right: 20px;
  background: #333333;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

/* 深色主题下的Toast */
[data-theme="dark"] .toast {
  background: #79AE9C;
  color: #FFFFFF;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header-right {
    gap: 6px;
  }
  
  .header-btn {
    width: 32px;
    height: 32px;
  }
  
  .header-btn svg {
    width: 14px;
    height: 14px;
  }
  
  .site-title {
    font-size: 16px;
  }
  
  .site-description {
    font-size: 12px;
  }
  
  .search-modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .mobile-menu {
    width: 280px;
  }
  
  .toast {
    top: 10px;
    right: 10px;
    left: 10px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .layout-header {
    height: auto;
    padding: 10px 0;
  }
  
  .layout-header .container {
    padding: 0 10px;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .site-logo {
    width: 40px;
    height: 40px;
  }
  
  .site-info {
    gap: 1px;
  }
  
  .site-title {
    font-size: 15px;
  }
  
  .site-description {
    font-size: 11px;
  }
  
  .header-btn {
    width: 28px;
    height: 28px;
  }
  
  .header-btn svg {
    width: 12px;
    height: 12px;
  }
  
  /* 移动端菜单样式已统一到主导航中 */
}

/* 导航样式 - 根据设计图重新设计 */

/* 横幅样式 - 通栏显示 */
.layout-banner {
  position: relative;
  width: 100vw;
  height: 300px;
  margin-left: calc(-50vw + 50%);
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 主要内容样式 - 根据设计图重新设计 */
.layout-main, .lauout-main { /* 保留旧类名兼容缓存 */
  position: relative;
  margin: 0;
  background: #FFFFFF;
}

.layout-content {
  margin: 0;
  padding: 40px 0;
  min-height: 0;
  flex: auto;
}

.layout-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 分类菜单样式 - 简化版 */
.category-menu {
  margin: 20px 0;
  padding: 15px 0;
  background: transparent;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.category-item {
  display: inline-block;
  padding: 6px 12px;
  background: #f8f9fa;
  color: #666666;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: normal;
  border: 1px solid #e9ecef;
  transition: color 0.2s ease;
}

.category-item:hover {
  color: #79AE9C;
  background: #f8f9fa;
  border-color: #79AE9C;
}

/* 年份标题样式 */
.year-header {
  margin: 40px 0 20px 0;
  padding-left: 20px;
  border-left: 3px solid #333333;
  font-size: 20px;
  font-weight: bold;
  color: #333333;
}

/* ===== 归档 / 标签 / 分类 列表统一样式 ===== */

/* Header 重写布局 */
.header-inner {display:flex;align-items:center;justify-content:space-between;gap:24px;padding:10px 0;}
.brand-compact .logo-wrap {display:flex;align-items:center;gap:14px;text-decoration:none;}
.brand-compact .logo-img {width:42px;height:42px;border-radius:12px;object-fit:cover;box-shadow:0 4px 14px -4px rgba(0,0,0,.25);}
.brand-compact .logo-divider {width:2px;height:30px;background:linear-gradient(180deg,var(--main-color),var(--dark-main-color));border-radius:2px;display:inline-block;}
.brand-compact .site-subtitle {font-size:.85rem;letter-spacing:.5px;color:var(--text-secondary);max-width:180px;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
[data-theme="dark"] .brand-compact .logo-img {box-shadow:0 4px 14px -4px rgba(0,0,0,.6);}

.header-actions.icon-row {display:flex;align-items:center;gap:6px;position:relative;}
.icon-btn {
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .25s;
  position: relative;
  width: 38px;
  height: 38px;
  box-sizing: border-box;
}

/* 强制统一所有图标尺寸和样式 */
.icon-btn svg,
.menu-toggle svg,
.search-toggle svg,
.rss-copy svg {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
  transition: all 0.3s ease !important;
  display: block !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

/* 统一图标hover效果 */
.icon-btn:hover,
.menu-toggle:hover,
.search-toggle:hover,
.rss-copy:hover {
  color: var(--main-color) !important;
  transform: scale(1.05) !important;
}

.icon-btn:hover svg,
.menu-toggle:hover svg,
.search-toggle:hover svg,
.rss-copy:hover svg {
  fill: currentColor !important;
  transform: scale(1.1) !important;
}

.icon-btn:active,
.menu-toggle:active,
.search-toggle:active,
.rss-copy:active {
  transform: scale(0.95) !important;
}

/* 深色主题hover效果 */
[data-theme="dark"] .icon-btn:hover,
[data-theme="dark"] .menu-toggle:hover,
[data-theme="dark"] .search-toggle:hover,
[data-theme="dark"] .rss-copy:hover {
  color: var(--dark-main-color) !important;
}

[data-theme="dark"] .icon-btn:hover svg,
[data-theme="dark"] .menu-toggle:hover svg,
[data-theme="dark"] .search-toggle:hover svg,
[data-theme="dark"] .rss-copy:hover svg {
  fill: currentColor !important;
}

/* 重复的图标样式已整合到上方统一规则中 */

/* 文章反应组件样式 - 简洁设计 */
.post-reactions {
  margin: 40px 0;
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

.reactions-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 600px;
}

.reaction-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: 25px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  min-width: 70px;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.reaction-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: #999;
}

.reaction-btn.active {
  border-color: #4CAF50;
  background: #f1f8e9;
  color: #2e7d32;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.reaction-emoji {
  font-size: 18px;
  line-height: 1;
}

.reaction-count {
  font-size: 15px;
  font-weight: 600;
  color: #666;
  line-height: 1;
}

.reaction-btn.active .reaction-count {
  color: #2e7d32;
}

/* 文章标题区域样式 */
.title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.title h1 {
  flex: 1;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: #333;
}

.title-category {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.category-badge {
  display: inline-block;
  background: #4CAF50;
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
  transition: all 0.2s ease;
}

.category-badge:hover {
  background: #45a049;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.4);
}

/* 文章元信息样式 - 精简版 */
.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 15px 0;
  padding: 15px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.meta-left {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex: 1;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #888;
}

.meta-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.meta-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.keywords-section {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.keyword-tag {
  display: inline-block;
  background: #f0f0f0;
  color: #666;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.keyword-tag:hover {
  background: #e0e0e0;
  color: #333;
}

/* 响应式设计 - 标题区域 */
@media (max-width: 768px) {
  .title {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .title h1 {
    font-size: 24px;
  }
  
  .title-category {
    align-self: flex-start;
  }
  
  .category-badge {
    font-size: 11px;
    padding: 4px 10px;
  }
}

/* 响应式设计 - 精简版 */
@media (max-width: 768px) {
  .post-meta {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .meta-left {
    gap: 15px;
  }
  
  .meta-item {
    font-size: 12px;
  }
  
  .meta-right {
    align-self: flex-start;
  }
  
  .keyword-tag {
    font-size: 10px;
    padding: 1px 6px;
  }
}


/* RSS复制成功反馈效果 */
.rss-copy.copied {
  color: #4CAF50 !important;
  animation: copySuccess 2s ease-in-out;
}

@keyframes copySuccess {
  0% { 
    color: #4CAF50;
    transform: scale(1);
  }
  50% { 
    color: #4CAF50;
    transform: scale(1.1);
  }
  100% { 
    color: var(--text-secondary);
    transform: scale(1);
  }
}

/* RSS复制成功时的对号图标 */
.rss-copy.copied svg {
  display: none !important;
}

.rss-copy.copied::after {
  content: "";
  display: block !important;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234CAF50'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: checkmarkPulse 0.6s ease-in-out;
}

@keyframes checkmarkPulse {
  0% { 
    transform: scale(0.8);
    opacity: 0.7;
  }
  50% { 
    transform: scale(1.2);
    opacity: 1;
  }
  100% { 
    transform: scale(1);
    opacity: 1;
  }
} 

/* 移动端主导航样式 (<960px) - 抽屉型下拉菜单 */
@media (max-width: 959px) {
  #primary-nav {
    position: absolute; 
    top: calc(100% + 8px); 
    right: 0; 
    z-index: 1600; 
    min-width: 280px;
    max-width: 320px;
  }
  
  #primary-nav[hidden] {
    display: none;
  }
  
  #primary-nav[data-open="true"] {
    display: block;
  }
  
  #primary-nav .nav-list {
    list-style: none; 
    margin: 0; 
    padding: 0; 
    background: var(--bg-primary); 
    border: 1px solid var(--border-primary); 
    border-radius: 12px; 
    display: flex; 
    flex-direction: column; 
    gap: 0; 
    box-shadow: 0 8px 32px -8px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.05); 
    transform: translateY(-8px) scale(.98); 
    opacity: 0; 
    visibility: hidden; 
    pointer-events: none; 
    transition: all .2s cubic-bezier(.4,.14,.3,1);
    overflow: hidden;
  }
  
  #primary-nav[data-open="true"] .nav-list {
    transform: translateY(0) scale(1); 
    opacity: 1; 
    visibility: visible; 
    pointer-events: auto;
  }
  
  #primary-nav .nav-list > li { 
    border-bottom: 1px solid var(--border-primary);
  }
  
  #primary-nav .nav-list > li:last-child { 
    border-bottom: none; 
  }
  
  #primary-nav .nav-list > li > a {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    padding: 16px 20px; 
    text-decoration: none; 
    color: var(--text-primary); 
    font-size: 15px; 
    font-weight: 500;
    line-height: 1.4; 
    transition: all .2s ease; 
    background: transparent;
    position: relative;
  }
  
  #primary-nav .nav-list > li > a:hover {
    background: var(--main-color); 
    color: #fff;
  }
  
  #primary-nav .nav-list > li > a:active {
    background: var(--dark-main-color);
  }
  
  #primary-nav .submenu-toggle {
    position: relative;
    width: 24px; 
    height: 24px; 
    border: none; 
    background: transparent; 
    cursor: pointer; 
    border-radius: 4px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all .2s ease;
    margin-left: 8px;
  }
  
  #primary-nav .submenu-toggle:before {
    content: ""; 
    width: 6px; 
    height: 6px; 
    border: 2px solid currentColor; 
    border-left: none; 
    border-top: none; 
    transform: rotate(45deg); 
    transition: transform .2s ease;
  }
  
  #primary-nav li.open > .submenu-toggle:before {
    transform: rotate(-135deg);
  }
  
  #primary-nav .submenu-toggle:hover {
    background: rgba(0,0,0,.08);
  }
  
  #primary-nav .nav-list li.menu-item-has-children > a { 
    padding-right: 20px; 
  }
  
  #primary-nav .nav-list li ul { 
    position: relative; 
    top: auto; 
    left: auto; 
    background: rgba(0,0,0,.02); 
    border: none; 
    padding: 0; 
    border-radius: 0; 
    box-shadow: none; 
    min-width: auto; 
    display: none; 
    margin: 0; 
    border-top: 1px solid var(--border-primary);
  }
  
  #primary-nav .nav-list li.open > ul { 
    display: block; 
  }
  
  #primary-nav .nav-list li ul a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: all .2s ease;
    border-bottom: 1px solid rgba(0,0,0,.05);
  }
  
  #primary-nav .nav-list li ul a:hover {
    background: var(--main-color);
    color: #fff;
  }
  
  #primary-nav .nav-list li ul li:last-child a {
    border-bottom: none;
  }
  
  [data-theme="dark"] #primary-nav .nav-list {
    background: #1f1f1f;
    border-color: #333;
  }
  
  [data-theme="dark"] #primary-nav .nav-list > li {
    border-color: #333;
  }
  
  [data-theme="dark"] #primary-nav .nav-list li ul {
    background: rgba(255,255,255,.02);
    border-color: #333;
  }
  
  [data-theme="dark"] #primary-nav .nav-list li ul a {
    border-color: rgba(255,255,255,.05);
  }
  
  [data-theme="dark"] #primary-nav .submenu-toggle:hover {
    background: rgba(255,255,255,.08);
  }
}

/* 图标按钮 hover 强调 - 已整合到上方统一规则中 */
.brand-block .site-brand {display:flex;align-items:center;gap:14px;text-decoration:none;}
.site-logo {width:48px;height:48px;border-radius:14px;object-fit:cover;}
.site-info {display:flex;flex-direction:column;line-height:1.2;}
.site-title {font-size:18px;font-weight:600;color:var(--dark-color);}
.site-description {font-size:12px;color:var(--light-color);margin-top:2px;}
.header-center {display:flex;align-items:center;justify-content:center;}
.actions-block {display:flex;align-items:center;gap:10px;}

/* 搜索抽屉（统一，去重） */
/* 默认不显示任何半透明/模糊，防止页面一直朦胧；打开时再加背景与模糊 */
/* 全屏搜索框样式 */
.search-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1600;
  transition: all .3s ease;
  pointer-events: none;
  background: transparent;
  backdrop-filter: none;
}

.search-drawer[aria-hidden="true"],
.search-drawer[data-open="false"] {
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.search-drawer[data-open="true"] {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

/* 磨砂层背景 */
.search-drawer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity .3s ease;
}

.search-drawer[data-open="true"] .search-drawer-backdrop {
  opacity: 1;
}

/* 搜索框内容区域 */
.search-drawer-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 30px 60px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-drawer[data-open="true"] .search-drawer-inner {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 搜索表单 */
.search-drawer-form {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(121, 174, 156, 0.2);
  padding: 12px 16px;
  border-radius: 12px;
  transition: all .3s ease;
}

.search-drawer-form:focus-within {
  border-color: var(--main-color);
  box-shadow: 0 0 0 2px rgba(121, 174, 156, 0.1);
}

.search-drawer-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 400;
}

.search-drawer-input::placeholder {
  color: var(--text-secondary);
  font-weight: 400;
}

.search-drawer-submit {
  border: none;
  background: var(--main-color);
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 2px 8px rgba(121, 174, 156, 0.2);
}

.search-drawer-submit:hover {
  background: var(--dark-main-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(121, 174, 156, 0.3);
}

.search-drawer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all .3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.search-drawer-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
  transform: scale(1.1);
}

/* 关键词区域 */
.search-keywords {
  text-align: center;
}

.search-keywords h3 {
  margin: 0 0 15px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.keywords-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.keyword-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(121, 174, 156, 0.08);
  color: var(--main-color);
  border: 1px solid rgba(121, 174, 156, 0.15);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: all .3s ease;
}

.keyword-tag:hover {
  background: var(--main-color);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(121, 174, 156, 0.2);
}

/* 暗色主题适配 */
[data-theme="dark"] .search-drawer-inner {
  background: rgba(31, 31, 31, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .search-drawer-form {
  background: rgba(31, 31, 31, 0.8);
  border-color: rgba(121, 174, 156, 0.3);
}

[data-theme="dark"] .search-drawer-backdrop {
  background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .keyword-tag {
  background: rgba(121, 174, 156, 0.15);
  border-color: rgba(121, 174, 156, 0.3);
} 

@media (max-width:640px){
  .site-title {font-size:16px;}
  .site-logo {width:42px;height:42px;}
  .search-drawer-inner {
    width: 95%;
    max-width: 400px;
    padding: 25px 50px 25px 20px;
    gap: 15px;
  }
  .search-drawer-form {
    padding: 10px 14px;
    gap: 10px;
  }
  .search-drawer-input {
    font-size: 15px;
  }
  .search-drawer-submit {
    width: 36px;
    height: 36px;
  }
  .search-drawer-close {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
  .keywords-list {
    gap: 6px;
  }
  .keyword-tag {
    padding: 3px 8px;
    font-size: 11px;
  }
  .search-keywords h3 {
    font-size: 13px;
    margin-bottom: 12px;
  }
}

.layout-archives, .layout-tags { margin-top:20px; }
.layout-archives .archive-list, .layout-tags .tag-posts { display:flex; flex-direction:column; gap:20px; }

/* 通用项目块 */
.archive-item, .tag-post-item { position:relative; padding:18px 20px 16px; border:1px solid var(--border-primary); background:var(--bg-primary); border-radius:14px; box-shadow:0 2px 6px rgba(0,0,0,.04); transition:box-shadow .25s, border-color .25s, transform .25s; }
.archive-item:hover, .tag-post-item:hover { box-shadow:0 6px 18px -4px rgba(0,0,0,.15); border-color:var(--main-color); transform:translateY(-2px); }

/* 标题 */
.archive-title, .tag-post-title { margin:0 0 8px; font-size:18px; line-height:1.4; font-weight:600; }
.archive-title a, .tag-post-title a { color:var(--dark-color); text-decoration:none; background:linear-gradient(120deg, rgba(121,174,156,.18), rgba(82,132,111,.18)); background-size:0 100%; background-repeat:no-repeat; transition:color .25s, background-size .35s ease; padding:2px 6px; border-radius:8px; }
.archive-title a:hover, .tag-post-title a:hover { color:#fff; background-size:100% 100%; background-image:linear-gradient(120deg, var(--main-color), var(--dark-main-color)); }

/* Meta 信息 */
.archive-meta, .tag-post-meta { font-size:12px; color:var(--light-color); display:flex; flex-wrap:wrap; align-items:center; gap:6px; line-height:1.4; }
.archive-meta a, .tag-post-meta a { color:var(--main-color); text-decoration:none; }
.archive-meta a:hover, .tag-post-meta a:hover { color:var(--dark-main-color); text-decoration:underline; }
.archive-meta .meta-sep { color:var(--lighter-color); }

/* 分类/标签徽标可后续拓展 */
.meta-tags a, .meta-cats a { font-size:12px; position:relative; }

/* 无结果提示 */
.layout-archives .no-posts, .layout-tags .no-posts { margin:40px 0; text-align:center; color:var(--light-color); font-size:14px; }

/* taxonomy header */
.taxonomy-header { margin:0 0 28px; }
.taxonomy-title { margin:0 0 10px; font-size:26px; font-weight:700; letter-spacing:.5px; color:var(--dark-color); }
.taxonomy-description { font-size:14px; color:var(--text-secondary); line-height:1.6; }

/* 暗色适配 */
[data-theme="dark"] .archive-item, [data-theme="dark"] .tag-post-item { background:#1f1f1f; border-color:#323232; box-shadow:0 2px 8px -2px rgba(0,0,0,.6); }
[data-theme="dark"] .archive-item:hover, [data-theme="dark"] .tag-post-item:hover { border-color:var(--dark-main-color); }
[data-theme="dark"] .archive-title a, [data-theme="dark"] .tag-post-title a { color:#e6e6e6; }
[data-theme="dark"] .taxonomy-title { color:#fff; }
[data-theme="dark"] .taxonomy-description { color:#aaa; }

/* 数字分页 */
.paginator-numeric { margin:36px 0 10px; }
.paginator-numeric .page-numbers-list { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.paginator-numeric .page-numbers-list li a, .paginator-numeric .page-numbers-list li span { display:inline-block; min-width:40px; text-align:center; padding:8px 12px; border:1px solid var(--border-primary); border-radius:10px; background:var(--bg-primary); font-size:14px; color:var(--text-secondary); line-height:1.2; transition:.25s; text-decoration:none; }
.paginator-numeric .page-numbers-list li a:hover { background:linear-gradient(135deg,var(--main-color),var(--dark-main-color)); color:#fff; border-color:var(--main-color); }
.paginator-numeric .page-numbers-list li.active span { background:linear-gradient(135deg,var(--main-color),var(--dark-main-color)); color:#fff; border-color:var(--main-color); font-weight:600; }
.paginator-numeric .page-numbers-list li .prev, .paginator-numeric .page-numbers-list li .next { font-weight:500; }
[data-theme="dark"] .paginator-numeric .page-numbers-list li a, [data-theme="dark"] .paginator-numeric .page-numbers-list li span { background:#1f1f1f; border-color:#333; color:#bbb; }
[data-theme="dark"] .paginator-numeric .page-numbers-list li a:hover { border-color:var(--dark-main-color); }
[data-theme="dark"] .paginator-numeric .page-numbers-list li.active span { border-color:var(--dark-main-color); }

@media (min-width:680px){
  .archive-title, .tag-post-title { font-size:20px; }
  .archive-item, .tag-post-item { padding:22px 26px 20px; }
}


.year-header:first-child {
  margin-top: 0;
}

/* 文章卡片样式 - 与第一版一致 */
.layout-card {
  position: relative;
  box-sizing: border-box;
  margin: 0 0 15px 0;
  border-radius: 4px;
  background: var(--odd-color);
  color: #333333;
  list-style: none;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.3s ease;
}

.layout-card:nth-child(even) {
  background: var(--even-color);
}

.layout-card:hover {
  background-color: #79AE9C;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.layout-card:hover .card-title h2 {
  color: #FFFFFF;
}

.layout-card:hover .card-mate {
  color: #FFFFFF;
}

.layout-card .card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
}

.layout-card .card-title {
  flex: 1;
  margin: 0;
}

.layout-card .card-title h2 {
  margin: 0;
  font-size: 16px;
  color: #333333;
  line-height: 1.4;
  font-weight: normal;
  transition: all 0.3s ease;
}

.layout-card:hover .card-title h2 {
  color: #FFFFFF;
}

.layout-card .card-mate {
  color: #999999;
  font-size: 14px;
  white-space: nowrap;
  margin-left: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.layout-card .post-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.layout-card .comment-count,
.layout-card .view-count {
  color: #999999;
}

.layout-card:hover .post-date {
  display: none;
}

.layout-card:hover .post-stats {
  display: flex !important;
}

.layout-card:hover .comment-count,
.layout-card:hover .view-count {
  color: #FFFFFF;
}

.layout-paginator {
  text-align: center;
}

.layout-paginator .btn-next {
  margin: 1rem 0 0;
}

/* 文章页面样式 */
.layout-post {
  position: relative;
  box-sizing: border-box;
  margin: 0 0 24px;
  padding: 0;
}

.layout-post-body {
  position: relative;
  margin: 0;
  padding: 24px 0;
}

.post-main {
  overflow: visible;
  line-height: 2;
}

.post-header {
  margin: 0 0 1.6em;
}

.post-header .title {
  margin: 0;
  font-variant: tabular-nums;
  font-family: Avenir, "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.5;
}

.post-header .title h1 {
  color: var(--dark-main-color);
  font-weight: 500;
  font-variant: tabular-nums;
  font-size: 24px;
  cursor: default;
}

.post-header .title h1:hover {
  color: var(--darker-main-color);
}

.post-header .mate {
  position: relative;
  display: flex;
  margin: 1rem 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f4f6f9;
  font-size: 0;
}

.post-header .mate-list {
  position: relative;
  display: inline-block;
  color: rgba(0, 0, 0, 0.45);
  text-transform: capitalize;
  font-size: 14px;
  line-height: 22px;
  margin-left: 24px;
  cursor: pointer;
}

.post-header .mate-list:first-child {
  flex: 1 1;
  margin: 0;
}

.post-header .mate-list:last-child::after {
  content: "|";
  position: absolute;
  top: 0px;
  left: -14px;
}

.post-content {
  overflow: visible;
  margin: 0 0 24px;
  padding: 0;
  height: auto;
  text-align: justify;
  font-size: 14px;
  line-height: 2;
}

.post-body ul > li {
  margin-left: 20px;
  padding-left: 4px;
  list-style-type: circle;
}

.post-body img {
  display: flex;
  margin: 0 auto;
  max-width: 100%;
  border-radius: 2px;
  -webket-transition: all .3s ease-out;
  -moz-transition: all .3s ease-out;
  -ms-transition: all .3s ease-out;
  transition: all .3s ease-out;
}

.post-body table {
  line-height: 1.7;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 1em 0;
  width: 100%;
  max-width: 100%;
  border-width: 1px;
  border-style: solid;
  background-color: transparent;
  border-spacing: 0;
  word-break: normal;
}

.post-body table,
.post-body table tr,
.post-body table tr td,
.post-body table tr th {
  border-color: #E6E6E6;
}

.post-body table th {
  font-weight: bold;
  background-color: #FDFDFD;
}

.post-body tr th {
  border-bottom-width: 1px;
  border-bottom-style: solid;
  text-align: left;
}

.post-body tr th,
.post-body tr td {
  padding: 10px 20px;
  border-right: 1px solid;
  border-bottom: 1px solid #E6E6E6;
}

.post-body tbody tr:last-child td {
  border-bottom: 0;
}

.post-body tr th:last-child,
.post-body tr td:last-child {
  border-right: 0;
}

.post-body table tbody > tr:nth-child(odd) > td,
.post-body table tbody > tr:nth-child(odd) > th {
  background-color: #F9F9F9;
}

.post-footer {
  position: relative;
  overflow: hidden;
  margin: 1.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.post-navbar {
  position: relative;
  display: flex;
  align-items: center;
}

.post-navbar:nth-child(even) {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
}

.post-navbar .title {
  font-size: 14px;
}

.post-link {
  flex: 1 1;
  text-align: right;
}

.post-link:hover h2,
.post-link:focus h2 {
  color: var(--dark-main-color);
}

.post-link h2 {
  margin: 0;
  font-size: 14px;
  font-weight: normal;
  color: var(--main-color);
}

.post-zan {
  position: relative;
  padding: 4rem 0;
  margin-bottom: 1.5rem;
}

.zan-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-zan {
  display: block;
  width: 100%;
  font-size: 21px;
  text-align: center;
}

.zan-title {
  display: inline-block;
}

/* 回到顶部按钮 */
.layout-totop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 4px;
  text-align: center;
  background: var(--darker-main-color);
  -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.layout-totop:hover {
  background-color: var(--main-color);
}

.layout-totop i {
  font-size: 20px;
  color: #fff;
}


/* 回到顶部图标修复：保证 flex 居中 */
.layout-totop { display:flex; align-items:center; justify-content:center; }
.layout-totop i { line-height:1; }

/* （去重：原重复 footer 块已合并） */


/* 评论区域样式 */
.post-comment {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.comment-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--dark-main-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

/* WordPress默认评论样式 */
/* 评论区域样式 - 重构版本 */
.comments-section {
  margin: 40px 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

/* 评论标题 */
.comments-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.comments-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-count {
  background: var(--main-color);
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* 评论列表 */
.comments-list {
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
}

.comment-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  padding: 15px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  flex-shrink: 0;
}

.comment-item:hover {
  background: #f5f5f5;
  border-color: var(--main-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 回复样式 - 简化版 */
.comment-reply {
  background: #f0f8f5;
  border-left: 3px solid var(--main-color);
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.comment-reply::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid var(--main-color);
}

.comment-reply:hover {
  background: #e8f5f0;
  border-left-color: var(--dark-main-color);
}

.comment-reply:hover::before {
  border-right-color: var(--dark-main-color);
}

/* 回复标记 */
.reply-to {
  color: var(--main-color);
  font-size: 12px;
  font-weight: 500;
  background: rgba(121, 174, 156, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
}

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

.comment-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e8e8e8;
}

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

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.author-name {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.author-badge {
  background: var(--main-color);
  color: white;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 500;
}

.comment-meta {
  color: #999;
  font-size: 12px;
  margin-left: 8px;
}

/* 回复按钮悬浮显示 */
.comment-actions {
  display: none;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.comment-item:hover .comment-actions {
  display: flex;
  opacity: 1;
}

.comment-text {
  line-height: 1.5;
  color: #555;
  margin-bottom: 10px;
  font-size: 14px;
}

.comment-text p {
  margin: 0 0 8px 0;
}

.comment-text p:last-child {
  margin-bottom: 0;
}

.comment-actions {
  display: flex;
  gap: 10px;
}

.comment-reply-link {
  color: var(--main-color);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.comment-reply-link svg {
  fill: var(--main-color);
  transition: fill 0.3s ease;
}

.comment-reply-link:hover {
  background: rgba(121, 174, 156, 0.1);
  color: var(--dark-main-color);
  transform: scale(1.1);
}

.comment-reply-link:hover svg {
  fill: var(--dark-main-color);
}

/* 评论表单样式 - 完全匹配设计图 */
.comment-respond {
  margin-top: 2rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.comment-form {
  display: block;
  gap: 0;
}

/* 评论标题 */
.comment-title {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 20px;
  padding: 0;
}

/* 评论操作链接 - 在textarea上方 */
.comment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-bottom: 10px;
  padding: 0;
}

.comment-actions a {
  color: #999999;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.comment-actions a:hover {
  color: #79AE9C;
}

.comment-actions .divider {
  color: #e0e0e0;
  font-size: 12px;
}

/* 评论输入区域 */
.comment-form-comment {
  margin-bottom: 20px;
}

.comment-form-comment textarea {
  width: 100%;
  min-height: 120px;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  background: #ffffff;
  color: #333333;
  transition: border-color 0.3s ease;
}

.comment-form-comment textarea:focus {
  outline: none;
  border-color: #79AE9C;
  box-shadow: 0 0 0 2px rgba(121, 174, 156, 0.1);
}

.comment-form-comment textarea::placeholder {
  color: #999999;
}

/* 用户信息区域 - 包含提交按钮 */
.comment-fields {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  background: #f5f5f5;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 15px;
  margin-right: 0;
}


.comment-form-author,
.comment-form-email,
.comment-form-url {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
  font-size: 12px;
  color: #999999;
  font-weight: normal;
  margin: 0;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  background: #ffffff;
  color: #333333;
  transition: border-color 0.3s ease;
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
  outline: none;
  border-color: #79AE9C;
}

/* 提交按钮 - 在用户信息区域内 */
.form-submit {
  flex-shrink: 0;
  margin: 0;
  margin-left: 15px;
  background: #f5f5f5;
  padding: 15px;
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
}

/* 当提交按钮紧跟在用户信息区域后面时 */
.comment-fields + .form-submit {
  margin-top: -15px;
  margin-left: 0;
  background: #f5f5f5;
  border-radius: 0 4px 4px 0;
  padding-left: 0;
  padding-right: 15px;
}

#submit {
  background: #79AE9C;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 80px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#submit:hover {
  background: #52846F;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(121, 174, 156, 0.3);
}

#submit:active {
  transform: translateY(0);
}

/* 保存信息复选框 */
.comment-form-cookies-consent {
  margin-bottom: 20px;
  padding: 0 5px;
}

.comment-form-cookies-consent input[type="checkbox"] {
  margin-right: 8px;
}

.comment-form-cookies-consent label {
  font-size: 12px;
  color: #666666;
  line-height: 1.4;
  cursor: pointer;
}

/* 评论表单响应式设计 */
@media (max-width: 768px) {
  .comment-fields {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  
  .comment-form-author,
  .comment-form-email,
  .comment-form-url {
    flex: none;
  }
  
  .form-submit {
    align-self: center;
  }
  
  #submit {
    width: 100%;
    max-width: 200px;
  }
  
  .comment-actions {
    justify-content: center;
    margin-bottom: 15px;
  }
  
  .comment-form-cookies-consent {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .comment-form-comment textarea {
    min-height: 100px;
    padding: 12px;
  }
  
  .comment-fields {
    padding: 12px;
  }
  
  .comment-form-author input,
  .comment-form-email input,
  .comment-form-url input {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  #submit {
    padding: 12px 24px;
    font-size: 15px;
  }
  
  .comment-form-cookies-consent label {
    font-size: 11px;
    line-height: 1.3;
  }
}


#vcomments .vmeta {
  margin-top: 10px;
}

#vcomments .vat {
  color: var(--main-color);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.3s ease;
}

#vcomments .vat:hover {
  color: var(--dark-main-color);
}

/* 响应式样式 */
@media (max-width: 992px) {
  .container {
    padding: 0 20px;
  }
  
}

@media (max-width: 768px) {
  .layout-header .container {
    padding: 0 15px;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  /* 移动端导航样式已合并到主导航中 */
  
  .layout-content .container {
    padding: 0 15px;
  }
  
  .layout-banner {
    height: 200px;
  }
  
  .category-list {
    gap: 8px;
  }
  
  .category-item {
    padding: 5px 10px;
    font-size: 12px;
  }
  
  .layout-card .card-body {
    padding: 15px 20px;
  }
  
  .layout-card .card-title h2 {
    font-size: 15px;
  }
  
  .layout-card .card-mate {
    font-size: 13px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .footer-actions {
    justify-content: center;
  }
}


/* 页面模板样式 */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--dark-main-color);
  margin-bottom: 1rem;
}

.page-description {
  font-size: 1.1rem;
  color: var(--light-color);
  margin: 0;
}

/* 友情链接页面样式 */
.links-page {
  max-width: 1000px;
  margin: 0 auto;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.link-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid var(--main-color);
  transition: all 0.3s ease;
}

.link-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-left-color: var(--dark-main-color);
}

.link-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.link-image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
}

.link-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-info {
  flex: 1;
}

.link-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.link-title a {
  color: var(--dark-main-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.link-description {
  color: var(--default-color);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 0.5rem;
}

.link-meta {
  font-size: 0.8rem;
  color: var(--light-color);
}

.link-url {
  word-break: break-all;
}

.no-links {
  text-align: center;
  padding: 3rem;
  color: var(--light-color);
}

.links-apply {
  background: linear-gradient(135deg, var(--main-color), var(--light-main-color));
  color: white;
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.links-apply h3 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
}

.links-apply p {
  margin: 0 0 1rem;
  opacity: 0.9;
}

.links-apply ul {
  margin: 0;
  padding-left: 1.5rem;
}

.links-apply li {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

/* 关于页面样式 */
.about-page {
  max-width: 900px;
  margin: 0 auto;
}

.about-profile {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--lighter-main-color), #f8f9fa);
  border-radius: 12px;
}

.profile-avatar {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--main-color);
}

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

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 2rem;
  font-weight: 500;
  color: var(--dark-main-color);
  margin: 0 0 0.5rem;
}

.profile-title {
  font-size: 1.1rem;
  color: var(--light-color);
  margin: 0 0 1.5rem;
}

.profile-stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--main-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--light-color);
}

.about-text {
  margin-bottom: 3rem;
}

.about-text h3 {
  color: var(--dark-main-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.about-text .content {
  line-height: 1.8;
  color: var(--default-color);
}

.about-text .content p {
  margin-bottom: 1rem;
}

.about-skills {
  margin-bottom: 3rem;
}

.about-skills h3 {
  color: var(--dark-main-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.skills-grid {
  display: grid;
  gap: 1rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill-name {
  min-width: 100px;
  font-weight: 500;
  color: var(--dark-main-color);
}

.skill-bar {
  flex: 1;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--main-color), var(--light-main-color));
  border-radius: 4px;
  transition: width 1s ease;
}

.about-contact {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
}

.about-contact h3 {
  color: var(--dark-main-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.contact-methods {
  display: grid;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.contact-item i {
  width: 20px;
  color: var(--main-color);
}

.contact-item a {
  color: var(--main-color);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--dark-main-color);
}

/* 响应式样式 */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }
  
  .links-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .about-profile {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-stats {
    justify-content: center;
  }
  
  .skill-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .skill-name {
    min-width: auto;
  }
}

/* 移动端banner响应式 */
@media (max-width: 576px) {
  .layout-banner {
    height: 150px;
  }
}

/* 隐藏类 */
.d-none {
  display: none !important;
}

/* 评论表单样式 - 精简版本 */
.comment-respond {
  margin-top: 30px;
  padding: 20px;
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 评论内容输入 */
.comment-form-content {
  margin-bottom: 15px;
}

.comment-form-content textarea {
  width: 100%;
  min-height: 100px;
  padding: 15px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  transition: all 0.3s ease;
  background: white;
}

.comment-form-content textarea:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 0 0 3px rgba(121, 174, 156, 0.1);
}

.comment-form-content textarea::placeholder {
  color: #999;
  font-style: italic;
}

/* 用户信息输入 */
.comment-form-author,
.comment-form-email,
.comment-form-url {
  flex: 1;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 0 0 3px rgba(121, 174, 156, 0.1);
}

.comment-form-author input::placeholder,
.comment-form-email input::placeholder,
.comment-form-url input::placeholder {
  color: #999;
}

/* 记住信息复选框 */
.comment-form-cookies {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-form-cookies label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
}

.comment-form-cookies input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--main-color);
}

/* 提交按钮 */
.comment-form-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.comment-submit-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--main-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(121, 174, 156, 0.3);
}

.comment-submit-btn:hover {
  background: var(--dark-main-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(121, 174, 156, 0.4);
}

.comment-submit-btn:active {
  transform: translateY(0);
}

.comment-submit-btn svg {
  transition: transform 0.3s ease;
}

.comment-submit-btn:hover svg {
  transform: translateX(2px);
}

/* AJAX提交按钮状态 */
.comment-submit-btn[data-loading="true"] {
  pointer-events: none;
  opacity: 0.7;
}

.comment-submit-btn[data-loading="true"] .btn-text,
.comment-submit-btn[data-loading="true"] .btn-icon {
  display: none;
}

.comment-submit-btn[data-loading="true"] .btn-loading {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.loading-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 评论高亮效果 */
.comment-highlight {
  animation: commentHighlight 2s ease-in-out;
  border-color: var(--main-color) !important;
  background: rgba(121, 174, 156, 0.1) !important;
}

@keyframes commentHighlight {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(121, 174, 156, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(121, 174, 156, 0.1);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(121, 174, 156, 0);
  }
}

/* 提示消息样式 */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 15px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  max-width: 300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.toast.toast-show {
  transform: translateX(0);
}

.toast-success {
  border-left: 4px solid #4CAF50;
  background: #f1f8e9;
}

.toast-error {
  border-left: 4px solid #f44336;
  background: #ffebee;
}

.toast-info {
  border-left: 4px solid #2196F3;
  background: #e3f2fd;
}

.toast-message {
  flex: 1;
  font-size: 14px;
  color: #333;
}

.toast-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.toast-close:hover {
  background: #f5f5f5;
  color: #666;
}

/* 评论已关闭 */
.comments-closed {
  text-align: center;
  padding: 40px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
}

.comments-closed p {
  margin: 0;
  color: #666;
  font-size: 16px;
}

/* 评论导航 */
.comments-navigation {
  margin-top: 30px;
  text-align: center;
}

.comments-pagination {
  margin-bottom: 20px;
}

.comments-pagination .pagination-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.comments-pagination .pagination-links a,
.comments-pagination .pagination-links span {
  padding: 8px 12px;
  background: #f8f9fa;
  color: #666;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 1px solid #e8e8e8;
  font-size: 14px;
}

.comments-pagination .pagination-links a:hover {
  background: var(--main-color);
  color: white;
  border-color: var(--main-color);
  transform: translateY(-2px);
}

.comments-pagination .pagination-links .current {
  background: var(--main-color);
  color: white;
  border-color: var(--main-color);
}

/* 加载更多评论按钮 */
.comments-load-more {
  margin-top: 20px;
}

.btn-load-more-comments {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--main-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(121, 174, 156, 0.3);
}

.btn-load-more-comments:hover {
  background: var(--dark-main-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(121, 174, 156, 0.4);
}

.btn-load-more-comments.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-load-more-comments svg {
  transition: transform 0.3s ease;
}

.btn-load-more-comments:hover svg {
  transform: rotate(90deg);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .comment-respond {
    padding: 15px;
    margin-top: 20px;
  }
  
  .comment-form-content textarea {
    min-height: 80px;
    padding: 12px;
  }
  
  .comment-form-author input,
  .comment-form-email input,
  .comment-form-url input {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .comment-submit-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .comment-item {
    padding: 12px;
    margin-bottom: 12px;
  }
  
  .comment-avatar img {
    width: 32px;
    height: 32px;
  }
  
  .comment-reply::before {
    left: -10px;
    border-right-width: 6px;
  }
  
  .comment-actions {
    display: flex !important;
    opacity: 1 !important;
  }
}

@media (max-width: 576px) {
  .comment-respond {
    padding: 12px;
  }
  
  .comment-form-content textarea {
    min-height: 70px;
    padding: 10px;
  }
  
  .comment-submit-btn {
    width: 100%;
    justify-content: center;
  }
  
  .comment-item {
    padding: 10px;
    gap: 10px;
  }
  
  .comment-avatar img {
    width: 28px;
    height: 28px;
  }
  
  .comment-actions {
    display: flex !important;
    opacity: 1 !important;
  }
  
  .comment-reply::before {
    left: -8px;
    border-right-width: 5px;
  }
}

