@charset "utf-8";

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  color: #333; line-height: 1.7; background: #f5f7fa; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: all .3s; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== 容器 ===== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title {
  font-size: 22px; font-weight: 700; color: #1a1a2e;
  margin-bottom: 25px; padding-bottom: 12px;
  border-bottom: 2px solid #6c63ff; position: relative;
}
.section-title::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 60px; height: 2px; background: linear-gradient(90deg, #6c63ff, #3b82f6);
}

/* ===== 头部 ===== */
.header {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 0; width: 100%;
  box-shadow: 0 2px 20px rgba(26,26,46,0.15);
  position: fixed; top: 0; left: 0; z-index: 1000;
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 100px; height: 60px;
}
.logo { flex-shrink: 0; }
.logo-text {
  font-size: 26px; font-weight: 800; color: #fff; white-space: nowrap;
}

/* 导航 */
.nav { background: transparent; }
.nav-menu { display: flex; align-items: center; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  padding: 18px 20px; font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.85);
  display: block; white-space: nowrap;
}
.header-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.nav-menu > li.has-sub.header-user > a { padding: 14px 20px; }
.nav-menu > li > a:hover, .nav-menu > li.active > a { color: #fff; }
.nav-menu > li > a::after {
  content: ''; position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: linear-gradient(90deg, #6c63ff, #3b82f6); transition: width .3s;
}
.nav-menu > li:hover > a::after, .nav-menu > li.active > a::after { width: 80%; }
.nav-menu > li.has-sub > a::before {
  content: '▾'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 11px; color: rgba(255,255,255,0.6);
}

/* 二级导航 */
.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 180px;
  background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-radius: 0 0 12px 12px; padding: 10px 0;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s; z-index: 100;
}
.nav-menu > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a {
  display: block; padding: 10px 20px; font-size: 14px; color: #333;
}
.sub-menu a:hover { background: #f8f9fa; color: #6c63ff; padding-left: 25px; }
.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* 搜索框 */
.header-search { display: flex; align-items: center; margin-left: 20px; flex-shrink: 0; }
.header-search input {
  height: 36px; padding: 0 14px; border: none; border-radius: 20px 0 0 20px;
  font-size: 13px; width: 120px; outline: none; background: rgba(255,255,255,0.1);
  color: #fff; transition: all .3s; box-sizing: border-box;
}
.header-search input::placeholder { color: rgba(255,255,255,0.5); }
.header-search input:focus { background: rgba(255,255,255,0.15); width: 140px; }
.header-search button {
  height: 36px; padding: 0 16px; border: none; background: linear-gradient(135deg, #6c63ff, #3b82f6); color: #fff;
  border-radius: 0 20px 20px 0; cursor: pointer; font-size: 13px; font-weight: 500;
  transition: all .3s; white-space: nowrap; box-sizing: border-box; line-height: 1;
}
.header-search button:hover { opacity: 0.9; }

/* ===== Banner轮播 ===== */
.hero-banner {
  height: 520px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0a0a1a, #1a1a2e, #0f3460);
  margin-top: 60px;
}
.hero-particles { position: absolute; width: 100%; height: 100%; z-index: 1; }
.hero-particles span {
  position: absolute; border-radius: 50%; background: rgba(108,99,255,0.3);
  animation: floatParticle linear infinite;
}
.hero-particles span:nth-child(1) { width:4px;height:4px;left:10%;animation-duration:12s;animation-delay:0s; }
.hero-particles span:nth-child(2) { width:6px;height:6px;left:20%;animation-duration:15s;animation-delay:1s; }
.hero-particles span:nth-child(3) { width:3px;height:3px;left:35%;animation-duration:10s;animation-delay:2s; }
.hero-particles span:nth-child(4) { width:5px;height:5px;left:45%;animation-duration:14s;animation-delay:0.5s; }
.hero-particles span:nth-child(5) { width:4px;height:4px;left:55%;animation-duration:11s;animation-delay:3s; }
.hero-particles span:nth-child(6) { width:7px;height:7px;left:65%;animation-duration:16s;animation-delay:1.5s; }
.hero-particles span:nth-child(7) { width:3px;height:3px;left:75%;animation-duration:13s;animation-delay:2.5s; }
.hero-particles span:nth-child(8) { width:5px;height:5px;left:85%;animation-duration:17s;animation-delay:0s; }
.hero-particles span:nth-child(9) { width:4px;height:4px;left:92%;animation-duration:9s;animation-delay:4s; }
.hero-particles span:nth-child(10) { width:6px;height:6px;left:8%;animation-duration:18s;animation-delay:1s; }
.hero-particles span:nth-child(11) { width:3px;height:3px;left:28%;animation-duration:11s;animation-delay:3.5s; }
.hero-particles span:nth-child(12) { width:5px;height:5px;left:42%;animation-duration:14s;animation-delay:2s; }
.hero-particles span:nth-child(13) { width:4px;height:4px;left:58%;animation-duration:12s;animation-delay:0.5s; }
.hero-particles span:nth-child(14) { width:6px;height:6px;left:72%;animation-duration:15s;animation-delay:4.5s; }
.hero-particles span:nth-child(15) { width:3px;height:3px;left:88%;animation-duration:10s;animation-delay:1.5s; }
.hero-particles span:nth-child(16) { width:5px;height:5px;left:15%;animation-duration:13s;animation-delay:3s; }
.hero-particles span:nth-child(17) { width:4px;height:4px;left:38%;animation-duration:16s;animation-delay:0s; }
.hero-particles span:nth-child(18) { width:7px;height:7px;left:52%;animation-duration:11s;animation-delay:2.5s; }
.hero-particles span:nth-child(19) { width:3px;height:3px;left:68%;animation-duration:14s;animation-delay:5s; }
.hero-particles span:nth-child(20) { width:5px;height:5px;left:82%;animation-duration:17s;animation-delay:1s; }
@keyframes floatParticle { 0% { bottom:-10px; opacity:0; } 10% { opacity:1; } 90% { opacity:1; } 100% { bottom:110%; opacity:0; } }

.hero-slide {
  position: absolute; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(10,10,26,0.9), rgba(26,26,46,0.7), rgba(15,52,96,0.8));
}
.hero-slide::before {
  content: ''; position: absolute; width: 100%; height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(108,99,255,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(59,130,246,0.1) 0%, transparent 50%);
}
.hero-content { display: flex; align-items: center; justify-content: center; gap: 80px; color: #fff; position: relative; z-index: 2; max-width: 950px; margin: 0 auto; }
.hero-text { animation: fadeInUp 1s ease; }
.hero-badge {
  display: inline-block; padding: 6px 18px; margin-bottom: 20px;
  background: rgba(108,99,255,0.15); border: 1px solid rgba(108,99,255,0.3);
  border-radius: 30px; font-size: 14px; color: rgba(255,255,255,0.9);
  animation: fadeInUp 1s ease; backdrop-filter: blur(10px);
}
.hero-text h1 {
  font-size: 52px; font-weight: 800; margin-bottom: 18px; line-height: 1.2;
  background: linear-gradient(135deg, #fff, #c4b5fd, #6c63ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; animation: fadeInUp 1s ease 0.2s both;
}
.hero-text p { font-size: 18px; color: rgba(255,255,255,0.7); max-width: 500px; margin-bottom: 30px; animation: fadeInUp 1s ease 0.4s both; }
.hero-buttons { display: flex; gap: 15px; animation: fadeInUp 1s ease 0.6s both; }
.hero-btn {
  padding: 12px 32px; border-radius: 30px; font-size: 15px; font-weight: 600;
  transition: all .3s; text-decoration: none;
}
.hero-btn-primary {
  background: linear-gradient(135deg, #6c63ff, #3b82f6); color: #fff;
  box-shadow: 0 5px 25px rgba(108,99,255,0.4);
}
.hero-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(108,99,255,0.6); }
.hero-btn-outline {
  border: 2px solid rgba(255,255,255,0.3); color: #fff; backdrop-filter: blur(10px);
}
.hero-btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); transform: translateY(-3px); }
.hero-avatar { position: relative; animation: fadeIn 1.5s ease 0.5s both; }
.hero-avatar img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; position: relative; z-index: 3; animation: rotateAvatar 25s linear infinite; }
.avatar-ring { position: absolute; border-radius: 50%; border: 2px solid transparent; }
.avatar-ring-1 { top:-15px;left:-15px;right:-15px;bottom:-15px;border-top-color:#6c63ff;border-right-color:#3b82f6;animation:ringRotate1 4s linear infinite; }
.avatar-ring-2 { top:-25px;left:-25px;right:-25px;bottom:-25px;border-bottom-color:#a855f7;border-left-color:#6c63ff;animation:ringRotate2 6s linear infinite; }
.avatar-ring-3 { top:-35px;left:-35px;right:-35px;bottom:-35px;border-top-color:#3b82f6;border-bottom-color:#06b6d4;animation:ringRotate1 8s linear infinite reverse; }
@keyframes ringRotate1 { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes ringRotate2 { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes rotateAvatar { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rotateGlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.hero-wave { position: absolute; bottom: 0; left: 0; width: 100%; z-index: 2; line-height: 0; }
.hero-wave svg { display: block; width: 100%; height: 60px; }
.hero-wave path { fill: #f5f7fa; }

/* ===== 主体布局 ===== */
.main-wrapper { padding: 40px 0; margin-top: 60px; }
.main-layout { display: flex; gap: 30px; }
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 320px; flex-shrink: 0; }

/* ===== 侧边栏模块 ===== */
.widget {
  background: #fff; border-radius: 12px; padding: 20px;
  margin-bottom: 25px; box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}
.widget-title {
  font-size: 16px; font-weight: 700; color: #1a1a2e;
  margin-bottom: 15px; padding-bottom: 10px;
  border-bottom: 2px solid #6c63ff;
}

/* 个人中心 */
.profile-card { text-align: center; }
.profile-avatar {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 15px;
  background: linear-gradient(135deg, #6c63ff, #3b82f6); padding: 3px;
}
.profile-avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff;
}
.profile-name { font-size: 18px; font-weight: 700; margin-bottom: 5px; }
.profile-bio { color: #666; font-size: 14px; margin-bottom: 15px; }
.profile-stats { display: flex; justify-content: space-around; padding: 15px 0; background: #f8f9fa; border-radius: 10px; }
.profile-stat { text-align: center; }
.profile-stat-num { font-size: 20px; font-weight: 700; color: #6c63ff; }
.profile-stat-label { font-size: 12px; color: #999; }
.profile-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 15px; }
.profile-social a {
  width: 35px; height: 35px; border-radius: 10px; overflow: hidden;
  background: #f5f7fa; display: flex; align-items: center; justify-content: center;
  transition: all .3s; box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.profile-social a:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(108,99,255,0.35); }
.profile-social a img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* 微信二维码弹窗 */
.wechat-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7); z-index: 3000;
  display: flex; align-items: center; justify-content: center;
}
.wechat-modal-content {
  background: #fff; border-radius: 16px; padding: 30px;
  max-width: 350px; width: 90%; text-align: center; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalFadeIn .3s ease;
}
@keyframes modalFadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.wechat-modal-close {
  position: absolute; top: 10px; right: 15px;
  background: none; border: none; font-size: 28px; cursor: pointer;
  color: #999; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  transition: color .3s;
}
.wechat-modal-close:hover { color: #333; }
.wechat-modal-content h3 { font-size: 18px; color: #1a1a2e; margin: 0 0 20px; }
.wechat-modal-content img { width: 250px; height: 250px; border-radius: 12px; object-fit: cover; }
.wechat-modal-content p { color: #666; font-size: 14px; margin: 15px 0 0; }

/* 最新文章/热门文章 */
.post-list li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed #eee; }
.post-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.post-list a {
  display: flex; gap: 12px; align-items: center;
}
.post-list-thumb { width: 70px; height: 50px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.post-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-list-title { font-size: 14px; color: #333; line-height: 1.4; }
.post-list-title:hover { color: #6c63ff; }
.post-list-date { font-size: 12px; color: #999; margin-top: 3px; }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  padding: 5px 12px; background: #f0f0f0; border-radius: 20px;
  font-size: 13px; color: #666; transition: all .3s;
}
.tag-cloud a:hover { background: linear-gradient(135deg, #6c63ff, #3b82f6); color: #fff; }

/* 分类列表 */
.category-list li { margin-bottom: 8px; }
.category-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 15px; background: #f8f9fa; border-radius: 8px;
  font-size: 14px; color: #333;
}
.category-list a:hover { background: linear-gradient(135deg, #6c63ff, #3b82f6); color: #fff; }
.category-list .count { background: #6c63ff; color: #fff; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.category-list a:hover .count { background: #fff; color: #6c63ff; }

/* 存档 */
.archive-list li { margin-bottom: 8px; }
.archive-list a {
  display: flex; justify-content: space-between; padding: 8px 15px;
  border-radius: 8px; font-size: 14px; color: #333;
}
.archive-list a:hover { background: #f0f0f0; color: #6c63ff; }

/* 最新评论（侧边栏） */
.comment-list li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed #eee; }
.comment-list li:last-child { border-bottom: none; }
.comment-list .comment-item { display: flex; gap: 10px; }
.comment-list .comment-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.comment-list .comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-list .comment-content { flex: 1; min-width: 0; }
.comment-list .comment-author { font-size: 13px; font-weight: 600; color: #6c63ff; }
.comment-list .comment-text { font-size: 13px; color: #666; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comment-list .comment-date { font-size: 11px; color: #999; margin-top: 3px; }

/* 文章详情页评论区 */
.comment-list-detailed .comment-item { display: flex; gap: 15px; padding: 20px 0; border-bottom: 1px solid #eee; }
.comment-list-detailed .comment-item:last-child { border-bottom: none; }
.comment-user-avatar { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.comment-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-main { flex: 1; min-width: 0; }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 10px; flex-wrap: wrap; }
.comment-author-name { font-weight: 600; color: #6c63ff; }
.comment-time { font-size: 12px; color: #999; flex-shrink: 0; }
.comment-main .comment-text { font-size: 15px; color: #333; line-height: 1.7; margin-bottom: 10px; word-wrap: break-word; overflow-wrap: break-word; white-space: normal; }
.comment-actions { display: flex; gap: 15px; flex-wrap: wrap; }
/* 日历 */
.calendar { background: #fff; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.calendar-header a { color: #6c63ff; font-size: 14px; }
.calendar-header h4 { font-size: 16px; color: #1a1a2e; }
.calendar-table { width: 100%; text-align: center; }
.calendar-table th { padding: 8px; font-size: 12px; color: #999; }
.calendar-table td { padding: 8px; font-size: 13px; }
.calendar-table td a {
  display: block; width: 30px; height: 30px; line-height: 30px;
  margin: 0 auto; border-radius: 50%;
}
.calendar-table td a:hover { background: #6c63ff; color: #fff; }
.calendar-table td.has-post a { background: linear-gradient(135deg, #6c63ff, #3b82f6); color: #fff; }

/* 微语 */
.shuoshuo-list { }
.shuoshuo-item { padding: 12px 0; border-bottom: 1px dashed #eee; }
.shuoshuo-item:last-child { border-bottom: none; }
.shuoshuo-content { font-size: 14px; color: #333; line-height: 1.6; margin-bottom: 8px; }
.shuoshuo-meta { font-size: 12px; color: #999; }

/* ===== 文章卡片 ===== */
.post-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  margin-bottom: 30px; box-shadow: 0 3px 15px rgba(0,0,0,0.05);
  transition: all .3s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(108,99,255,0.15); }
.post-card-thumb { height: 220px; overflow: hidden; position: relative; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card-thumb img { transform: scale(1.1); }
.post-card-category {
  position: absolute; top: 15px; left: 15px; padding: 5px 15px;
  background: linear-gradient(135deg, #6c63ff, #3b82f6); color: #fff;
  border-radius: 20px; font-size: 12px;
}
.post-card-body { padding: 25px; }
.post-card-title { font-size: 20px; font-weight: 700; color: #1a1a2e; margin-bottom: 12px; }
.post-card-title:hover { color: #6c63ff; }
.post-card-excerpt { color: #666; font-size: 14px; line-height: 1.7; margin-bottom: 15px; }
.post-card-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: #999; }
.post-card-meta span { display: flex; align-items: center; gap: 5px; }
.post-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; margin-top: 15px; border-top: 1px solid #eee; }
.post-card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.post-card-tags a { padding: 3px 10px; background: #f0f0f0; border-radius: 15px; font-size: 12px; color: #666; }
.post-card-tags a:hover { background: #6c63ff; color: #fff; }
.read-more { color: #6c63ff; font-weight: 500; }
.read-more:hover { text-decoration: underline; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a {
  padding: 10px 16px; background: #fff; border-radius: 8px;
  color: #333; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.pagination a:hover, .pagination a.active { background: linear-gradient(135deg, #6c63ff, #3b82f6); color: #fff; }

/* ===== 文章详情 ===== */
.post-detail { background: #fff; border-radius: 12px; padding: 40px; margin-bottom: 30px; overflow: hidden; }
.post-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.post-header h1 { font-size: 28px; color: #1a1a2e; margin-bottom: 15px; }
.post-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: #999; }
.post-meta span { display: flex; align-items: center; gap: 5px; }
.post-cover { margin-bottom: 30px; border-radius: 12px; overflow: hidden; height: 400px; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { line-height: 1.9; font-size: 16px; color: #333; overflow-wrap: break-word; word-break: break-word; overflow: hidden; }
.post-body p { margin-bottom: 20px; overflow-wrap: break-word; word-break: break-word; }
.post-body a { overflow-wrap: break-word; word-break: break-word; }
.post-body h2 { font-size: 24px; color: #1a1a2e; margin: 40px 0 20px; padding-left: 15px; border-left: 4px solid #6c63ff; }
.post-body h3 { font-size: 20px; color: #1a1a2e; margin: 30px 0 15px; }
.post-body ul, .post-body ol { margin: 20px 0; padding-left: 25px; overflow-wrap: break-word; word-break: break-word; }
.post-body li { margin-bottom: 8px; overflow-wrap: break-word; word-break: break-word; }
.post-body blockquote {
  margin: 30px 0; padding: 20px 25px; background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-left: 4px solid #6c63ff; border-radius: 0 12px 12px 0;
}
.post-body img { border-radius: 12px; margin: 25px 0; }
.post-body code { background: #f5f5f5; padding: 2px 8px; border-radius: 4px; font-family: 'Consolas', monospace; }
.post-body pre { background: #1a1a2e; color: #fff; padding: 20px; border-radius: 10px; overflow-x: auto; margin: 20px 0; }
.post-body pre code { background: none; padding: 0; color: inherit; }

.post-tags { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }
.post-tags .section-title { font-size: 16px; margin-bottom: 12px; }

/* 上下篇导航 */
.post-nav {
  display: flex; justify-content: space-between; gap: 20px;
  margin-bottom: 30px; flex-wrap: wrap;
}
.post-nav-item {
  flex: 1; background: #fff; border-radius: 12px; padding: 20px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}
.post-nav-label { font-size: 12px; color: #999; margin-bottom: 8px; }
.post-nav-title { font-size: 15px; color: #333; font-weight: 500; }
.post-nav-title:hover { color: #6c63ff; }

/* 相关文章 */
.related-posts { background: #fff; border-radius: 12px; padding: 30px; margin-bottom: 30px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related-item { border-radius: 10px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,0.08); }
.related-item-thumb { height: 120px; overflow: hidden; }
.related-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-item-title { padding: 12px; font-size: 14px; color: #333; }
.related-item-title:hover { color: #6c63ff; }

/* ===== 评论区 ===== */
.comments-section { background: #fff; border-radius: 12px; padding: 30px; margin-bottom: 30px; }
.comments-title { font-size: 20px; font-weight: 700; color: #1a1a2e; margin-bottom: 25px; padding-bottom: 12px; border-bottom: 2px solid #eee; }
.comment-actions a { font-size: 13px; color: #999; }
.comment-actions a:hover { color: #6c63ff; }

.comment-form { margin-top: 30px; padding-top: 20px; border-top: 2px solid #eee; }
.comment-form h3 { font-size: 18px; margin-bottom: 20px; }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #333; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 15px; border: 2px solid #e9ecef;
  border-radius: 10px; font-size: 14px; transition: all .3s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: #6c63ff; box-shadow: 0 0 0 4px rgba(108,99,255,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.submit-btn {
  padding: 12px 40px; background: linear-gradient(135deg, #6c63ff, #3b82f6);
  color: #fff; border: none; border-radius: 25px; font-size: 15px;
  cursor: pointer; transition: all .3s;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(108,99,255,0.3); }

/* ===== 单页（无侧边栏） ===== */
.page-full { max-width: 900px; margin: 60px auto 0; padding: 40px 0; }
.page-box { background: #fff; border-radius: 12px; padding: 50px; }
.page-box h1 { font-size: 32px; color: #1a1a2e; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 2px solid #eee; }
.page-content { line-height: 1.9; color: #333; font-size: 16px; }
.page-content p { margin-bottom: 20px; }
.page-content h2 { font-size: 24px; color: #1a1a2e; margin: 40px 0 20px; padding-left: 15px; border-left: 4px solid #6c63ff; }

/* ===== 友情链接 ===== */
.friend-links { background: #fff; border-radius: 12px; padding: 25px; margin-bottom: 30px; }
.friend-links-grid { display: flex; flex-wrap: wrap; gap: 15px; }
.friend-link {
  padding: 8px 18px; background: #f0f0f0; border-radius: 20px;
  font-size: 14px; color: #333; transition: all .3s;
}
.friend-link:hover { background: linear-gradient(135deg, #6c63ff, #3b82f6); color: #fff; }

/* ===== 友情链接区域 ===== */
.links-section {
  background: #1a1a2e; padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.links-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.links-container {
  display: flex; align-items: center; flex-wrap: wrap;
  justify-content: center; gap: 15px; padding: 10px 0;
}
.links-title { font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.7); white-space: nowrap; }
.links-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.links-list .link-item {
  display: inline-block; padding: 5px 15px;
  background: rgba(255,255,255,0.08); border-radius: 20px;
  font-size: 13px; color: rgba(255,255,255,0.7); transition: all .3s;
  text-decoration: none;
}
.links-list .link-item:hover { background: #6c63ff; color: #fff; }

/* ===== 页脚 ===== */
footer {
  background: #1a1a2e; color: rgba(255,255,255,0.6);
  padding: 30px 0; text-align: center;
}
.footer-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; line-height: 1.6; font-size: 14px; }
.footer-content a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color .3s; }
.footer-content a:hover { color: #6c63ff; text-decoration: underline; }
.footer-icp {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 20px; margin-top: 10px;
}
.footer-icp span { display: inline-flex; align-items: center; white-space: nowrap; }

/* 返回顶部 */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px;
  background: linear-gradient(135deg, #6c63ff, #3b82f6); color: #fff;
  border: none; border-radius: 50%; font-size: 18px; cursor: pointer;
  box-shadow: 0 5px 15px rgba(108,99,255,0.4); opacity: 0; visibility: hidden;
  transition: all .3s; z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }

/* 搜索弹窗 */
.search-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8); z-index: 2000;
  display: none; align-items: flex-start; justify-content: center; padding-top: 100px;
}
.search-modal.active { display: flex; }
.search-modal-content { width: 100%; max-width: 600px; }
.search-modal input {
  width: 100%; padding: 20px 25px; font-size: 18px;
  border: none; border-radius: 12px; outline: none;
}

/* 响应式 */
@media (max-width: 992px) {
  .sidebar { width: 100%; }
  .main-layout { flex-direction: column; }
  .hero-content { flex-direction: column !important; gap: 30px; text-align: center; }
  .hero-text p { max-width: 100%; }
  .hero-avatar img { width: 150px; height: 150px; }
  .hero-content h1 { font-size: 36px; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-toggle { display: block; }
  .header-search { display: none; }
  .hero-banner { height: 300px; }
  .hero-content h1 { font-size: 28px; }
  .post-detail { padding: 25px; }
  .page-box { padding: 30px 20px; }
  .form-row { flex-direction: column; }
  .sub-menu { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: #f8f9fa; border-radius: 0; }
  .sub-menu a { padding-left: 40px; }
}

/* ===== Emlog组件样式 ===== */

/* 侧边栏搜索框 */
.widget-search .sidebar-search-form { display: flex; gap: 8px; align-items: center; }
.widget-search .sidebar-search-input { flex: 1; padding: 10px 14px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 14px; background: #fff; transition: border-color .3s; }
.widget-search .sidebar-search-input:focus { outline: none; border-color: #6c63ff; }
.widget-search .sidebar-search-input::placeholder { color: #aaa; }
.widget-search .sidebar-search-btn { padding: 10px 18px; background: linear-gradient(135deg, #6c63ff, #3b82f6); color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .3s; white-space: nowrap; }
.widget-search .sidebar-search-btn:hover { opacity: 0.85; }

/* 侧边栏友情链接 */
.friend-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.friend-link-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: #f8f9fa; border-radius: 10px; font-size: 13px;
  color: #333; border: 1px solid #e9ecef; transition: all .3s;
}
.friend-link-item:hover {
  background: linear-gradient(135deg, #6c63ff, #3b82f6); color: #fff;
  border-color: transparent; transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(108,99,255,0.3);
}
.friend-link-icon { font-size: 14px; }
.friend-link-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 侧边栏列表 */
.post-list { list-style: none; }
.post-list li { margin-bottom: 12px; }
.post-list li a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; transition: background .3s; }
.post-list li a:hover { background: #f8f9fa; }
.post-list-thumb { width: 50px; height: 50px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.post-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-list-title { font-size: 13px; font-weight: 500; color: #333; line-height: 1.4; }
.post-list-date { font-size: 12px; color: #999; margin-top: 4px; }

/* 侧边栏分类 */
.category-list { list-style: none; }
.category-list li { margin-bottom: 8px; }
.category-list li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: #f8f9fa; border-radius: 8px; font-size: 14px; color: #333;
}
.category-list li a:hover { background: #6c63ff; color: #fff; }
.category-list .count { background: rgba(0,0,0,0.1); padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.category-list li a:hover .count { background: rgba(255,255,255,0.2); }

/* 侧边栏存档 */
.archive-list { list-style: none; }
.archive-list li { margin-bottom: 8px; }
.archive-list li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: #f8f9fa; border-radius: 8px; font-size: 14px; color: #333;
}
.archive-list li a:hover { background: #6c63ff; color: #fff; }
.archive-list .count { background: rgba(0,0,0,0.1); padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.archive-list li a:hover .count { background: rgba(255,255,255,0.2); }

/* 侧边栏微语 */
.shuoshuo-list { overflow: hidden; }
.shuoshuo-item { padding: 12px; background: #f8f9fa; border-radius: 8px; margin-bottom: 10px; border-left: 3px solid #6c63ff; }
.shuoshuo-content-wrapper { overflow: hidden; }
.shuoshuo-content { font-size: 13px; color: #333; line-height: 1.6; margin-bottom: 8px; overflow-wrap: break-word; word-break: break-all; white-space: pre-wrap; }
.shuoshuo-content a,
.shuoshuo-content span.twitter-url-breaker { 
  overflow-wrap: break-word !important; 
  word-break: break-all !important; 
  white-space: pre-wrap !important; 
  max-width: 100%; 
  display: inline;
  word-wrap: break-word !important;
}
.shuoshuo-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #999; }
.shuoshuo-author { font-weight: 500; color: #6c63ff; }
.shuoshuo-date { }

/* 侧边栏链接列表 */
.link-list { list-style: none; }
.link-list li { margin-bottom: 6px; }
.link-list li a {
  display: block; padding: 8px 12px; background: #f8f9fa; border-radius: 8px;
  font-size: 14px; color: #333; transition: all .3s;
}
.link-list li a:hover { background: #6c63ff; color: #fff; }

/* 侧边栏评论列表 */
.widget-comment-list { list-style: none; }
.widget-comment-list .comment-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eee; }
.widget-comment-list .comment-user-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.widget-comment-list .comment-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.widget-comment-list .comment-main { flex: 1; min-width: 0; }
.widget-comment-list .comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.widget-comment-list .comment-author-name { font-size: 13px; font-weight: 600; color: #6c63ff; }
.widget-comment-list .comment-text { font-size: 13px; color: #333; line-height: 1.5; overflow-wrap: break-word; }
.widget-comment-list .comment-time { font-size: 12px; color: #999; margin-top: 5px; }

/* 侧边栏日历 */
.calendar-wrapper { }
.calendartop { width: 100%; margin-bottom: 10px; }
.calendartop td { padding: 5px; text-align: center; }
.calendartop a { color: #6c63ff; font-size: 14px; text-decoration: none; }
.calendartop a:hover { color: #3b82f6; }
.calendar { width: 100%; border-collapse: collapse; }
.calendar td { padding: 6px 4px; text-align: center; font-size: 13px; }
.calendar .week { font-size: 12px; color: #999; font-weight: 500; padding: 8px; }
.calendar .sun { font-size: 12px; color: #ff6b6b; font-weight: 500; padding: 8px; }
.calendar td a {
  display: inline-block; width: 28px; height: 28px; line-height: 28px;
  text-align: center; border-radius: 50%; color: #6c63ff; font-weight: 600;
  transition: all .3s;
}
.calendar td a:hover { background: #6c63ff; color: #fff; }
.calendar td.day { background: #f8f9fa; }
.calendar td.day a { background: linear-gradient(135deg, #6c63ff, #3b82f6); color: #fff; }
.calendar td.day a:hover { opacity: 0.9; }
.calendar td.day2 a { background: linear-gradient(135deg, #6c63ff, #3b82f6); color: #fff; }
.calendar td.day2 a:hover { opacity: 0.9; }

/* 相关文章推荐（Emlog组件） */
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related-item { border-radius: 10px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,0.08); }
.related-item-thumb { height: 120px; overflow: hidden; background: #f0f0f0; }
.related-item-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.related-item:hover .related-item-thumb img { transform: scale(1.1); }
.related-item-thumb.no-cover {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6c63ff, #3b82f6);
}
.related-item-thumb.no-cover span { font-size: 40px; color: #fff; font-weight: 700; }
.related-item-title { padding: 12px; font-size: 14px; color: #333; }
.related-item-title:hover { color: #6c63ff; }

/* 登录注册弹窗 */
.auth-modal-mask {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 3000;
}
.auth-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 3001;
}
.auth-modal-card {
  background: #fff; border-radius: 16px; padding: 40px;
  max-width: 420px; width: 90%; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.auth-modal-close {
  position: absolute; top: 15px; right: 15px;
  background: none; border: none; font-size: 24px; cursor: pointer;
  color: #999; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
}
.auth-modal-close:hover { color: #333; }
.auth-modal-head { margin-bottom: 25px; text-align: center; }
.auth-modal-head h3 { font-size: 22px; color: #1a1a2e; margin: 0; }
.auth-modal-alert {
  display: none; padding: 10px 15px; margin-bottom: 20px;
  background: #fff3cd; color: #856404; border-radius: 8px;
  font-size: 14px; text-align: center;
}
.auth-form-row { margin-bottom: 15px; }
.auth-form-row input {
  width: 100%; padding: 12px 15px; border: 2px solid #e9ecef;
  border-radius: 8px; font-size: 14px; box-sizing: border-box;
}
.auth-form-row input:focus { outline: none; border-color: #6c63ff; }
.auth-captcha-row { display: flex; gap: 10px; align-items: center; }
.auth-captcha-row input { flex: 1; }
.auth-captcha-row img { height: 40px; border-radius: 4px; }
.auth-checkbox {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: #666; margin-bottom: 20px;
}
.auth-checkbox input { width: auto !important; }
.auth-submit {
  width: 100%; padding: 12px; background: linear-gradient(135deg, #6c63ff, #3b82f6);
  color: #fff; border: none; border-radius: 8px; font-size: 16px;
  font-weight: 600; cursor: pointer; transition: all .3s;
}
.auth-submit:hover { opacity: 0.9; transform: translateY(-2px); }
.auth-modal-switch {
  display: flex; justify-content: space-between; margin-top: 20px;
  font-size: 14px;
}
.auth-modal-switch a { color: #6c63ff; }
.auth-modal-switch a:hover { text-decoration: underline; }
.auth-reset-step-2 { margin-top: 15px; }
.auth-inline-btn { padding: 12px 20px; background: #6c63ff; color: #fff; border: none; border-radius: 8px; cursor: pointer; }

/* 用户中心 */
.user-center { display: flex; gap: 30px; margin-top: 40px; }
.user-sidebar { width: 280px; background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 3px 15px rgba(0,0,0,0.05); }
.user-profile { text-align: center; margin-bottom: 25px; }
.user-profile img { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 15px; object-fit: cover; }
.user-profile h3 { font-size: 18px; color: #1a1a2e; }
.user-menu { list-style: none; }
.user-menu li { margin-bottom: 8px; }
.user-menu a {
  display: block; padding: 12px 15px; border-radius: 8px;
  font-size: 15px; color: #333;
}
.user-menu a:hover { background: #f0f0f0; color: #6c63ff; }
.user-content { flex: 1; background: #fff; border-radius: 12px; padding: 30px; }
.user-content h2 { margin-bottom: 20px; color: #1a1a2e; }
.user-content .form-group { margin-bottom: 20px; }
.user-content .form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.user-content .form-group input, .user-content .form-group textarea {
  width: 100%; padding: 10px 15px; border: 2px solid #e9ecef; border-radius: 8px; box-sizing: border-box;
}
.user-content .form-group textarea { min-height: 100px; resize: vertical; }
.user-login-tip { text-align: center; margin-top: 80px; }
.user-login-tip h2 { font-size: 24px; color: #1a1a2e; margin-bottom: 10px; }
.user-login-tip p { color: #666; margin-bottom: 20px; }
.user-login-tip .btn {
  display: inline-block; padding: 12px 32px; background: linear-gradient(135deg, #6c63ff, #3b82f6);
  color: #fff; border-radius: 25px; font-weight: 600;
}

/* 单页全宽布局 */
.main-layout-single { display: block; }
.main-content-full { max-width: 900px; margin: 0 auto; }

/* Emlog评论表单 */
.commentform { margin-top: 30px; }
.commentform textarea {
  width: 100%; padding: 15px; border: 2px solid #e9ecef;
  border-radius: 12px; min-height: 150px; font-size: 15px;
  resize: vertical; box-sizing: border-box;
}
.commentform textarea:focus { outline: none; border-color: #6c63ff; }
#comment-info { display: flex; gap: 15px; margin: 15px 0; flex-wrap: wrap; }
#comment-info input { flex: 1; padding: 10px 15px; border: 2px solid #e9ecef; border-radius: 8px; }
.com_submit_p { display: flex; gap: 10px; align-items: center; margin-top: 15px; }
.com_submit_p .btn {
  padding: 10px 30px; background: linear-gradient(135deg, #6c63ff, #3b82f6);
  color: #fff; border: none; border-radius: 20px; font-size: 14px; cursor: pointer;
}
.com_submit_p .cancel-reply { background: #e9ecef; color: #666; }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.comment-header b { font-size: 18px; color: #1a1a2e; }
/* 评论区 - 参考默认模板 float+margin 布局 */
.comment {
  margin: 10px 0; padding: 10px 0; font-size: 14px; overflow: hidden; color: #333;
}
.comment .avatar { float: left; margin: 5px 4px; }
.comment .avatar img {
  width: 40px; height: 40px; margin-top: 9px; margin-right: 4px; border-radius: 50%;
}
.comment-infos {
  background: #f0f2f5; padding: 12px 12px 5px; border-radius: 8px;
  margin-top: 9px; margin-left: 58px; color: #333; position: relative;
}
.comment-infos b { color: #333; font-size: 15px; }
.comment .comment-time { color: #999; display: inline; font-size: 12px; margin-left: 8px; }
.comment .comment-content { margin: 8px 0 0 0; word-break: break-word; overflow-wrap: break-word; color: #333; }
.comment .comment-reply { float: right; font-size: 12px; cursor: pointer; margin-top: -15px; }
.comment .comment-reply .com-reply { color: #6c63ff; }
.comment .comment-reply .com-reply:hover { text-decoration: underline; }
/* 评论嵌套 */
.comment-children { margin: 15px 10px 10px 20px; clear: both; border: none; padding: 0; }
.comment-children .comment-infos { background: #f5f7fa; }
#pagenavi { margin-top: 30px; text-align: center; }

/* 上下篇导航 */
.post-nav { display: flex; gap: 20px; margin-bottom: 30px; }
.prev-log, .next-log { flex: 1; }
.neighbor-link {
  display: block; padding: 20px; background: #fff; border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}
.neighbor-dir { font-size: 12px; color: #999; margin-bottom: 8px; }
.neighbor-title { font-size: 15px; color: #333; font-weight: 500; }
.neighbor-link:hover .neighbor-title { color: #6c63ff; }

/* Emlog标签 */
.tags { display: inline-block; padding: 4px 12px; background: #f0f0f0; border-radius: 15px; font-size: 12px; color: #666; margin: 5px; }
.tags:hover { background: #6c63ff; color: #fff; }
.tags-side { display: inline-block; padding: 4px 10px; background: #f0f0f0; border-radius: 15px; margin: 3px; }
.tags-side:hover { background: #6c63ff; color: #fff; }
.post-tag { padding: 4px 12px; background: #f0f0f0; border-radius: 15px; font-size: 12px; color: #666; margin: 3px; display: inline-block; }
.post-tag:hover { background: #6c63ff; color: #fff; }

/* 置顶标签 */
.top-tag, .log-topflg {
  display: inline-block; padding: 2px 8px; background: #ff6b6b;
  color: #fff; border-radius: 4px; font-size: 12px; margin-left: 8px;
}
.sort-tag { display: inline-block; padding: 2px 8px; background: #6c63ff; color: #fff; border-radius: 4px; font-size: 12px; margin-left: 8px; }
.sort-tag a { color: #fff; }

/* Markdown样式增强 */
.markdown h1, .markdown h2, .markdown h3 { margin: 30px 0 15px; }
.markdown h2 { padding-left: 15px; border-left: 4px solid #6c63ff; }
.markdown p { margin-bottom: 20px; line-height: 1.9; }
.markdown img { border-radius: 12px; margin: 25px auto; display: block; }
.markdown pre { background: #1a1a2e; color: #fff; padding: 20px; border-radius: 10px; overflow-x: auto; }
.markdown blockquote { margin: 30px 0; padding: 20px 25px; background: #f8f9fa; border-left: 4px solid #6c63ff; border-radius: 0 12px 12px 0; }
.markdown code { background: #f5f5f5; padding: 2px 8px; border-radius: 4px; font-family: Consolas, monospace; }

/* 日历组件 */
.calendar-wrapper { margin: 0 auto; }
.calendar-table { width: 100%; border-collapse: collapse; }
.calendar-table th { padding: 8px; text-align: center; font-size: 12px; color: #999; }
.calendar-table td { padding: 8px; text-align: center; font-size: 13px; }
.calendar-table td a { color: #6c63ff; }
.calendar-table td a:hover { color: #3b82f6; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.calendar-header h4 { font-size: 16px; color: #1a1a2e; }
.calendar-header a { color: #6c63ff; font-size: 14px; }

/* 移动端菜单激活状态 */
.nav-menu.active { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: #1a1a2e; padding: 10px 0; }
.nav-menu.active > li > a { padding: 12px 20px; }
.nav-menu.active .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; }
.nav-menu.active .sub-menu a { padding-left: 40px; color: rgba(255,255,255,0.85); }

/* 响应式增强 */
@media (max-width: 1200px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .user-center { flex-direction: column; }
  .user-sidebar { width: 100%; }
}
@media (max-width: 768px) {
  .related-grid { grid-template-columns: 1fr; }
  .post-nav { flex-direction: column; }
  .auth-modal-card { padding: 25px; }
  #comment-info { flex-direction: column; }
  .friend-links-grid { grid-template-columns: 1fr; }
}
