/* ------------------------------------
 * Typecho Default Theme
 *
 * @author  Typecho Team
 * @link  http: //typecho.org/
 * @update  2013-10-28
 * --------------------------------- */

/* ------------------
 * Global style
 * --------------- */
 body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
  background: linear-gradient(90deg, #fdf3f3 0%, #fff 50%, #eaf6fa 100%);
  color: #222;
}
.site-header {
  width: 100%;
  background: transparent;
  margin-bottom: 0;
}
.header-banner {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  margin-bottom: -60px; /* 创建重叠效果 */
}
.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg,rgba(0,0,0,0.4) 0%,rgba(0,0,0,0.2) 50%,rgba(0,0,0,0.1) 80%,rgba(255,255,255,0.98) 100%);
    z-index: 1;
}
.banner-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  z-index: 2;
  text-align: center;
  color: #fff;
}
.site-title {

  font-size: 2.8rem;
  font-weight: bold;
  margin: 0 0 10px 0;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.site-desc {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 8px 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.site-motto {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  margin: 0px;
  padding: 20px 0px 0px 0px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  font-weight: 400;
  letter-spacing: 0.3px;
  line-height: 1.4;
  max-width: 800px;
  margin: 0 auto;
  min-height: 1.4em;
  position: relative;
  overflow: hidden;
  font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.motto-icon-left,
.motto-icon-right {
  font-size: 1.4rem;
  opacity: 0.9;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  animation: iconGlow 2s ease-in-out infinite alternate;
  flex-shrink: 0;
}

.motto-text {
  flex: 1;
  text-align: center;
  min-height: 1.4em;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes iconGlow {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 0 32px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    backdrop-filter: blur(5px);
  }
.nav-left {
  display: flex;
  align-items: center;
}
.nav-left > a, .nav-left > .nav-dropdown > a {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-right: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
    transition: background 0.18s, color 0.18s;
    text-shadow: 0 1px 4px rgba(0,0,0,0.10);
    display: inline-flex;
    align-items: center;
}
.nav-left > a:hover, .nav-left > .nav-dropdown > a:hover {
  background: rgba(255,255,255,0.18);
  color: #ffe066;
}
.nav-logo {
  font-size: 1.6rem;
  margin-right: 18px;
  color: #fff;
  text-decoration: none;
}
.nav-logo img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.nav-menu {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.08rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav-menu li a:hover {
  background: rgba(255,255,255,0.18);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 40px;
}
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 1.25rem;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  margin-left: 2px;
  position: relative;
  z-index: 1002;
}
.nav-icon:hover {
  background: rgba(255,255,255,0.28);
  color: #ffe066;
}
.admin-link {
  cursor: pointer;
}

.admin-btn-wrapper {
  position: relative;
  z-index: 2000;
}

#adminLoginBtn {
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
@media (max-width: 768px) {
  .nav-icon {
    width: 44px;
    height: 44px;
  }
  .nav-right {
    margin-right: 20px;
  }
  
  /* 移动端专用后台登录按钮 */
  .mobile-admin-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(33, 118, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1500;
    transition: all 0.3s ease;
  }
  
  .mobile-admin-btn:hover, .mobile-admin-btn:active {
    transform: scale(1.05);
    background: rgba(33, 118, 255, 1);
  }
  
  .mobile-admin-icon {
    font-size: 24px;
    color: white;
  }
}

/* 在PC端隐藏移动端专用按钮 */
@media (min-width: 769px) {
  .mobile-admin-btn {
    display: none;
  }
}
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown-content {
  display: none;
  position: absolute;
  background: rgba(255,255,255,0.98);
  min-width: 120px;
  box-shadow: 0 2px 12px rgba(33,118,255,0.10);
  z-index: 1002;
  border-radius: 8px;
  margin-top: 4px;
  overflow: hidden;
}
.nav-dropdown-content a {
  color: #2176ff;
  padding: 10px 18px;
  display: block;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 0;
  transition: background 0.18s, color 0.18s;
}
.nav-dropdown-content a:hover {
  background: #f4f6fa;
  color: #3354AA;
}
.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

/* PC端导航菜单样式 */
.nav-menu-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

.nav-menu-desktop > a, .nav-menu-desktop > .nav-dropdown > a {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin-right: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
  transition: background 0.18s, color 0.18s;
  text-shadow: 0 1px 4px rgba(0,0,0,0.10);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-menu-desktop > a:hover, .nav-menu-desktop > .nav-dropdown > a:hover {
  background: rgba(255,255,255,0.18);
  color: #ffe066;
}

/* PC端显示桌面菜单，隐藏汉堡菜单 */
@media (min-width: 769px) {
  .nav-menu-desktop {
    display: flex;
  }
  
  .menu-toggle {
    display: none;
  }
}

/* 移动端导航样式 */
@media (max-width: 768px) {
  .main-nav {
    padding: 0 16px;
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(5px);
  }
  
  .nav-menu-desktop {
    display: none;
  }
  
  .nav-left > a:not(.nav-logo), .nav-left > .nav-dropdown {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 8px;
    transition: background 0.2s;
  }
  
  .menu-toggle:hover {
    background: rgba(255,255,255,0.25);
  }
  
  .nav-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transition: left 0.3s ease;
    box-shadow: 2px 0 20px rgba(0,0,0,0.15);
    padding: 70px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: auto;
    box-sizing: border-box;
  }
  
  .nav-drawer.active {
    left: 0;
  }
  
  .nav-drawer > a, .nav-drawer > .nav-dropdown {
    display: block !important;
    color: #333 !important;
    padding: 12px 16px;
    border-radius: 8px;
    text-shadow: none !important;
  }
  
  .nav-drawer > a:hover {
    background: #f5f5f5;
    color: #2176ff !important;
  }
  
  .menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .drawer-open {
    overflow: hidden;
  }
  
  .drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .drawer-overlay.active {
    opacity: 1;
    visibility: visible;
    z-index: 999;
    pointer-events: none;
  }
  .drawer-close-area {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    bottom: 0;
    z-index: 1000;
    pointer-events: auto;
  }
  .nav-drawer {
    z-index: 1001 !important;
    pointer-events: auto;
  }
  .nav-drawer {
    z-index: 1001 !important;
    pointer-events: auto;
  }
  
  .drawer-overlay.active {
    opacity: 1;
    visibility: visible;
    left: 280px;
  }
}

/* 仅在桌面端隐藏抽屉和菜单按钮 */
@media (min-width: 769px) {
  .nav-drawer {
    display: none;
  }
  .menu-toggle, .menu-close {
    display: none;
  }
  
  /* 确保PC端导航菜单项显示 */
  .nav-left > a:not(.nav-logo), .nav-left > .nav-dropdown {
    display: inline-flex !important;
  }
  
  /* PC端导航栏背景优化 */
  .main-nav {
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(5px);
  }
}
.site-main {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    gap: 16px;
    min-height: 600px;
    padding-top: 80px;
    position: relative;
    z-index: 2;
    align-items: flex-start;
}
#main {
    padding-top: 7px;
}
.post-list-cards,
.widget:first-child,
.post-card,
.widget {
    margin-top: 0 !important;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 24px;
  margin-bottom: 32px;
  transition: box-shadow 0.2s;
  position: relative;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
::-webkit-scrollbar {
  width: 8px;
  background: #e3eafc;
}
::-webkit-scrollbar-thumb {
  background: #b3cfff;
  border-radius: 8px;
}
a {
color: #3354AA;
text-decoration: none;
}
a:hover, a:active {
color: #444;
}
pre, code { 
background: #F3F3F3;
font-family: Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
font-size: .92857em;
}
code { padding: 2px 4px; color: #B94A48; }
pre {
padding: 8px;
overflow: auto;
max-height: 400px;
}
pre code {
padding: 3px;
color: #444;
}

blockquote {
margin: 1em 0;
padding-left: 1.5em;
border-left: 4px solid #eee;
color: #666;
}

table {
border: 1px solid #ddd;
width: 100%;
}
table th,
table td {
padding: 5px 10px;
border: 1px solid #eee;
}
table th {
background: #f3f3f3;
}

h1, h2, h3, h4, h5, h6 {
font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei","Microsoft Yahei", sans-serif;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
padding: 5px;
border: 1px solid #E9E9E9;
width: 100%;

border-radius: 2px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
textarea {
resize: vertical;
}


/* Special link style */
.post-meta a,
.post-content a,
.widget a,
.comment-content a {
border-bottom: 1px solid #EEE;
}

.post-meta a:hover,
.post-content a:hover,
.widget a:hover,
.comment-content a:hover {
border-bottom-color: transparent;
}

/* ------------------
* Header
* --------------- */

#header {
padding-top: 35px;
border-bottom: 1px solid #EEE;
}

#logo {
color: #333;
font-size: 2.5em;
}
#logo img {
  max-height: 64px;
}

.description {
margin: .5em 0 0;
color: #999;
font-style: italic;
}

/* Navigation menu */
#nav-menu {
margin: 25px 0 0;
padding: 0;
}
#nav-menu a {
display: block;
margin-right: -1px;
padding: 0 20px;
border: 1px solid #EEE;
border-bottom: none;
height: 32px;
line-height: 32px;
color: #444;
float: left;
}
#nav-menu a:hover,
#nav-menu .current {
background: #F6F6F6;
}

/* Search */
#search {
position: relative;
margin-top: 15px;
}
#search input {
padding-right: 30px;
}
#search button {
position: absolute;
right: 4px;
top: 2px;
border: none;
padding: 0;
width: 24px;
height: 24px;
background: transparent url(img/icon-search.png) no-repeat center center;
direction: ltr; /* fix RTL language */
text-indent: -9999em;
}

@media 
(-webkit-min-device-pixel-ratio: 2), 
(min-resolution: 192dpi) {
#search button {
  background-image: url(img/icon-search@2x.png);
  -webkit-background-size: 24px 24px;
  -moz-background-size: 24px 24px;
  -o-background-size: 24px 24px;
  background-size: 24px 24px;
}
}


/* ------------------
* Main
* --------------- */

.post {
padding: 15px 0 20px;
border-bottom: 1px solid #EEE;
}
.post-title {
margin: .83em 0;
font-size: 1.4em;
}
.post-meta {
margin-top: -0.5em;
padding: 0;
color: #999;
font-size: .92857em;
}
.post-meta li {
display: inline-block;
margin: 0 8px 0 0;
padding-left: 12px;
border-left: 1px solid #EEE;
}
.post-meta li:first-child {
margin-left: 0;
padding-left: 0;
border: none;
}
.post-content {
line-height: 1.5;
}
.post .tags {
clear: both;
}

.post-near {
list-style: none;
margin: 30px 0;
padding: 0;
color: #999;
}
.post-near li {
margin: 10px 0;
}

.archive-title {
margin: 1em 0 -1em;
padding-top: 20px;
color: #999;
font-size: 1em;
}
.more {
text-align: center;
}
.more a {
border: none;
}
.protected .text {
width: 50%;
}

/* Page nav */

.page-navigator {
list-style: none;
margin: 25px 0;
padding: 0;
text-align: center;
}
.page-navigator li {
display: inline-block;
margin: 0 4px;
}
.page-navigator a {
display: inline-block;
padding: 0 10px;
height: 30px;
line-height: 30px;
}
.page-navigator a:hover {
background: #EEE;
text-decoration: none;
}

.page-navigator .current a {
color: #444;
background: #EEE;
}

/* ------------------
* Comment list
* --------------- */
#comments {
padding-top: 25px;
margin-top: 30px;
/* 移除背景和卡片效果，使其透明 */
}
.comment-list-container {
margin-top: 20px;
/* 为已有评论添加卡片效果 */
background: #fff;
padding: 24px;
border-radius: 16px;
box-shadow: 0 4px 24px rgba(0,0,0,0.05);
margin-bottom: 30px;
}
.comment-list, .comment-list ol {
list-style: none;
margin: 0;
padding: 0;
}
.comment-list li {
padding: 24px;
margin-top: 16px;
border-radius: 12px;
box-shadow: 0 2px 12px rgba(0,0,0,0.05);
background: #fff;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
border: 1px solid #f5f5f5;
}
.comment-list li:hover {
box-shadow: 0 8px 24px rgba(0,0,0,0.1);
transform: translateY(-3px);
border-color: #e0e0e0;
}
.comment-list li.comment-level-odd {
background: #fafbff;
}
.comment-list li.comment-level-even {
background: #fff;
}
.comment-list li.comment-by-author {
background: #fff9f0;
border-left: 4px solid #ff9500;
}

/* 嵌套评论缩进样式 */
.comment-list li.comment-indent-1 {
padding-left: 30px;
}
.comment-list li.comment-indent-2 {
padding-left: 60px;
}
.comment-list li.comment-indent-3 {
padding-left: 90px;
}
.comment-list li.comment-indent-4 {
padding-left: 120px;
}
.comment-list li.comment-indent-5 {
padding-left: 150px;
}

/* 嵌套评论连接线样式 */
.comment-list li.comment-child {
position: relative;
}
.comment-list li.comment-child::before {
content: '';
position: absolute;
left: 24px;
top: 48px;
bottom: 0;
width: 1px;
background: #e0e0e0;
}

/* 修复评论头像和连接线的重叠问题 */
.comment-list li.comment-child .comment-author {
position: relative;
z-index: 1;
}

/* 图标样式 */
.far {
font-family: 'Font Awesome 5 Free';
font-weight: 400;
}
.comment-list li .comment-reply {
text-align: right;
font-size: .92857em;
margin-top: 12px;
}
.comment-reply a {
color: #2176ff;
text-decoration: none;
font-size: 0.85rem;
padding: 4px 10px;
border-radius: 4px;
background: rgba(33, 118, 255, 0.05);
transition: all 0.2s;
display: inline-flex;
align-items: center;
gap: 4px;
}
.comment-reply a:hover {
background: rgba(33, 118, 255, 0.15);
transform: translateY(-1px);
}
.comment-meta {
margin-bottom: 8px;
display: flex;
justify-content: space-between;
align-items: center;
}
.comment-meta a {
color: #6b7280;
font-size: 0.85rem;
}
.comment-meta time {
color: #9ca3af;
font-size: 0.8rem;
margin-left: 8px;
display: flex;
align-items: center;
gap: 3px;
}
.comment-author {
 display: flex;
align-items: center;
margin-bottom: 12px;
}
.comment-author .avatar {
width: 48px;
height: 48px;
border-radius: 50%;
margin-right: 14px;
object-fit: cover;
border: 2px solid #f0f0f0;
box-shadow: 0 2px 6px rgba(0,0,0,0.05);
transition: transform 0.3s ease;
}
.comment-list li:hover .comment-author .avatar {
  transform: scale(1.05);
}
.comment-author cite {
font-weight: 600;
font-style: normal;
color: #111827;
font-size: 1rem;
margin-right: 8px;
}
.comment-by-author .author-badge {
background: #ff9500;
color: white;
font-size: 0.7rem;
padding: 2px 6px;
border-radius: 4px;
margin-left: 4px;
}
.comment-content {
color: #374151;
line-height: 1.7;
font-size: 0.97rem;
padding: 14px 0;
border-top: 1px solid #f0f0f0;
border-bottom: 1px solid #f0f0f0;
}
.comment-content p {
margin: 0 0 12px 0;
}
.comment-content p:last-child {
margin-bottom: 0;
}
.comment-content a {
color: #2176ff;
text-decoration: none;
border-bottom: 1px solid rgba(33, 118, 255, 0.3);
transition: color 0.2s, border-color 0.2s;
}
.comment-content a:hover {
color: #0056b3;
border-color: #0056b3;
}
.comment-content blockquote {
margin: 16px 0;
padding: 12px 16px;
border-left: 3px solid #e5e7eb;
background: #f9fafb;
border-radius: 0 4px 4px 0;
color: #6b7280;
}
.comment-actions {
margin-top: 12px;
display: flex;
justify-content: flex-end;
align-items: center;
}

/* Comment reply */
.comment-list .respond {
margin-top: 20px;
border-top: 1px solid #EEE;
padding-top: 20px;
}

/* 移除之前的分隔线样式 */
.comment-list-container {
margin-bottom: 30px;
}

/* Comment form styling */
#comment-form {
margin-top: 40px;
background: #f9fafb;
padding: 24px;
border-radius: 12px;
box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
#comment-form textarea.textarea {
width: 100%;
padding: 12px 16px;
border: 1px solid #e0e0e0;
border-radius: 12px;
font-size: 1rem;
line-height: 1.6;
resize: vertical;
min-height: 80px;
max-height: 200px;
margin-bottom: 16px;
transition: all 0.3s ease;
background: #fff;
box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

#comment-form textarea.textarea:hover {
border-color: #c0c6cc;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#comment-form textarea.textarea:focus {
outline: none;
border-color: #2176ff;
box-shadow: 0 0 0 2px rgba(33, 118, 255, 0.2);
transform: translateY(-1px);
}

#comment-form textarea.textarea::placeholder {
color: #9ca3af;
font-style: italic;
opacity: 0.7;
}
#comment-form input[type="text"],
#comment-form input[type="email"],
#comment-form input[type="url"] {
width: 100%;
padding: 12px 16px;
border: 1px solid #e0e0e0;
border-radius: 12px;
margin-bottom: 16px;
transition: all 0.3s ease;
font-size: 0.95rem;
background: #fff;
box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

#comment-form input[type="text"]:hover,
#comment-form input[type="email"]:hover,
#comment-form input[type="url"]:hover {
border-color: #c0c6cc;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#comment-form input[type="text"]:focus,
#comment-form input[type="email"]:focus,
#comment-form input[type="url"]:focus {
outline: none;
border-color: #2176ff;
box-shadow: 0 0 0 2px rgba(33, 118, 255, 0.15);
transform: translateY(-1px);
}
#comment-form input[type="text"]:focus,
#comment-form input[type="email"]:focus,
#comment-form input[type="url"]:focus {
outline: none;
border-color: #2176ff;
box-shadow: 0 0 0 2px rgba(33, 118, 255, 0.1);
}
#comment-form button {
background: #2176ff;
color: white;
border: none;
padding: 10px 20px;
border-radius: 8px;
font-size: 0.95rem;
cursor: pointer;
transition: background 0.2s, transform 0.2s;
}
#comment-form button:hover {
background: #0056b3;
transform: translateY(-1px);
}
.respond .cancel-comment-reply {
float: right;
margin-top: 15px;
font-size: .92857em;
color: #6b7280;
text-decoration: none;
}
.respond .cancel-comment-reply:hover {
color: #2176ff;
}
#comment-form label {
display: block;
margin-bottom: .5em;
font-weight: bold;
}
#comment-form .required:after {
content: " *";
color: #C00;
}

/* ------------------
* secondary
* --------------- */
#secondary {
    width: calc(100% - 50px);
    min-width: 250px;
    max-width: 350px;
}
#secondary .widget:first-child {
  margin-top: 0;
}
.widget {
margin-bottom: 30px;
}
.widget-list {
list-style: none;
padding: 0;
}
.widget-list li {
margin: 5px 0;
line-height: 1.6;
}

.widget-list li ul {
margin-left: 15px;
}

/* 个人资料卡片样式 */
.profile-card {
  margin-bottom: 24px;
}
.profile-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 24px;
  color: white;
  position: relative;
  overflow: hidden;
}
.profile-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="city" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><rect width="20" height="20" fill="rgba(255,255,255,0.1)"/><rect x="0" y="0" width="2" height="20" fill="rgba(255,255,255,0.2)"/><rect x="0" y="0" width="20" height="2" fill="rgba(255,255,255,0.2)"/></pattern></defs><rect width="100" height="100" fill="url(%23city)"/></svg>');
  opacity: 0.3;
}
.profile-avatar {
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.profile-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.profile-info {
  text-align: center;
  position: relative;
  z-index: 1;
}
.profile-name {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: white;
}
.profile-motto {
  font-size: 0.9rem;
  margin: 0 0 20px 0;
  opacity: 0.9;
  font-style: italic;
}
.profile-stats {
  display: flex;
  justify-content: space-around;
  gap: 8px;
}
.stat-item {
  text-align: center;
  flex: 1;
}
.stat-number {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffe066;
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 2px;
}

/* 链接图标样式 */
.widget-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
}
.link-icon {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-left: 8px;
}

/* 状态点样式 */
.status-dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot.red { background: #ff6b6b; }
.dot.yellow { background: #ffd93d; }
.dot.green { background: #6bcf7f; }

/* 联系信息样式 */
.contact-info {
  line-height: 1.6;
}
.contact-info p {
  margin: 8px 0;
  font-size: 0.9rem;
}
.contact-note {
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
  margin-top: 12px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #2176ff;
}

/* 优化原有widget样式 */
.widget {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
}
.widget-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 18px 0;
  color: #333;
  display: flex;
  align-items: center;
}
.widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget-list li {
  margin: 10px 0;
  line-height: 1.6;
  font-size: 0.95rem;
}
.widget-list a {
  color: #2176ff;
  text-decoration: none;
  transition: color 0.2s;
}
.widget-list a:hover {
  color: #0056b3;
  text-decoration: underline;
}


/* ------------------
* Footer 
* --------------- */
#footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 2em 0;
    margin-top: 3em;
    line-height: 1.5;
    text-align: center;
    color: #6c757d;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
#footer a {
    color: #2176ff;
    text-decoration: none;
}
#footer a:hover {
    color: #0056b3;
    text-decoration: underline;
}


/* -----------------
* Error page
* -------------- */
.error-page {
margin-top: 100px;
margin-bottom: 100px;
}


/* -----------------
* Content format
*--------------- */
.post-content, .comment-content {
line-height: 1.6;
word-wrap: break-word;
}
.post-content h2, .comment-content h2 {
font-size: 1.28571em;
}
.post-content img, .comment-content img,
.post-content video, .comment-content video {
max-width: 100%;
border-radius: 6px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
margin: 12px 0;
}
.post-content a img,
.comment-content a img {
background: #FFF;
position: relative;
bottom: -4px;  /* hidden img parent link border  */
}
.post-content hr, .comment-content hr {
margin: 2em auto;
width: 100px;
border: 1px solid #E9E9E9;
border-width: 2px 0 0 0;
}


/* -----------------
* Misc
*--------------- */
.aligncenter, div.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
.alignleft {
float: left;
}
.alignright {
float: right;
}
img.alignleft {
margin: 0 15px 0 0;
}
img.alignright {
margin: 0 0 0 15px;
}


/* -----------------
* Responsive
*--------------- */
@media (max-width: 767px) {
body {
  font-size: 81.25%;
}
#nav-menu a {
  float: none;
  display: inline-block;
  margin: 0 -2px;
}
}

@media (max-width: 768px) {
#header,
.post-title,
.post-meta {
  text-align: center;
}
}

@media (min-width: 992px) {

}

@media (min-width: 1200px) {
.container {
  max-width: 952px;
}
}


/*
* Hide from both screenreaders and browsers: h5bp.com/u
*/
.hidden {
display: none !important;
visibility: hidden; }

/*
* Hide only visually, but have it available for screenreaders: h5bp.com/v
*/
.sr-only {
border: 0;
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px; }

/*
* Extends the .sr-only class to allow the element to be focusable
* when navigated to via the keyboard: h5bp.com/p
*/
.sr-only.focusable:active,
.sr-only.focusable:focus {
clip: auto;
height: auto;
margin: 0;
overflow: visible;
position: static;
width: auto; }

/*
* Hide visually and from screenreaders, but maintain layout
*/
.invisible {
visibility: hidden; }

/* 首页内容区卡片风格 */
.post-list-cards {
  display: flex;
  flex-direction: column;
  gap: 40px; /* 增大卡片间距 */
  margin-top: 0;
}
.post-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  padding: 40px 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* 卡片内容容器 */
.post-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 8px;
  box-sizing: border-box;
}

/* 当头部没有内容时，移除间距 */
.post-card-content:has(.post-card-header:empty) {
  gap: 0;
}

/* 兼容性更好的解决方案 */
.post-card-header:empty {
  display: none;
}

/* 确保卡片内容在垂直方向上居中 */
.post-card:empty::before {
  content: '';
  display: block;
  height: 100%;
}
.post-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
}
.post-card-header {
  margin-bottom: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

/* 当有内容时设置最小高度 */
.post-card-header:not(:empty) {
  min-height: 24px;
}
.post-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 3px 8px;
  margin-right: 6px;
  margin-bottom: 4px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-sticky {
  background: linear-gradient(135deg,#ff6b6b,#ffd93d);
  color: #000;
  box-shadow: 0 2px 8px rgba(255,107,107,0.3);
}
.badge-tag {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
}
.post-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-align: center;
  width: 100%;
}
.post-card-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.post-card-title a:hover {
  color: #ffe066;
}

/* 时间显示样式 */
.post-card-time {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  width: 100%;
}
.post-card-excerpt {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.7;
  font-weight: 400;
  text-align: center;
  width: 100%;
}
.post-card-footer {
  display: none;
  width: 100%;
}
.post-card-footer span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  justify-content: center;
}
.post-meta-comments a {
  color: #ffe066;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}
.post-meta-comments a:hover {
  color: #fff;
  text-decoration: none;
  transform: translateX(2px);
}
  @media (max-width: 991px) {
    .post-card {
      padding: 32px 20px;
      min-height: 180px;
    }
    .post-list-cards {
      gap: 24px;
    }
    .post-card-title {
      font-size: 1.4rem;
    }
    .post-card-excerpt {
      font-size: 0.9rem;
    }
    .post-card-content {
      gap: 6px;
    }
  }

  @media (max-width: 767px) {
    .post-card {
      padding: 24px 16px;
      min-height: 160px;
    }
    .post-card-title {
      font-size: 1.2rem;
    }
    .post-card-content {
      gap: 4px;
    }
  }
