/* 全局样式重置 */
*{margin:0;padding:0;box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}

/* 全局背景渐变 - 统一蓝紫浅色调，更柔和 */
body{
  background:linear-gradient(120deg, #f0f4f8 0%, #e8eaf6 100%);
  color:#222;
  line-height:1.65;
  min-height:100vh;
  font-size: 14px; /* SEO基础字体，统一基准 */
}

/* 导航栏优化 - 统一蓝紫渐变+优化类栏目名 */
.header{width:100%;background:linear-gradient(90deg, #5a67d8 0%, #805ad5 100%);box-shadow:0 4px 12px rgba(0,0,0,0.1);position:sticky;top:0;z-index:999;}
.nav{max-width:1200px;margin:0 auto;padding:0 16px;display:flex;align-items:center;height:70px;justify-content:space-between;}
.logo{font-size:20px;font-weight:700;color:#fff;text-decoration:none;letter-spacing:1px;} /* 从22px→20px */
.nav-list{display:flex;list-style:none;gap:28px;}
.nav-list a{color:#fff;text-decoration:none;font-size:14px;font-weight:500;padding:8px 12px;border-radius:6px;transition:all 0.3s ease;} /* 从15px→14px */
.nav-list a:hover{background:rgba(255,255,255,0.2);transform:scale(1.05);}

/* 布局容器 */
.wrapper{max-width:1200px;margin:0 auto;padding:24px 16px;display:flex;gap:24px;flex-wrap:wrap;}
.container{flex:1;min-width:600px;}
.sidebar{width:320px;flex-shrink:0;}

/* 文章封面 */
.article-img{width:100%;height:260px;object-fit:cover;border-radius:16px;margin-bottom:20px;box-shadow:0 6px 16px rgba(0,0,0,0.1);}

/* 文章主体 - SEO友好的字体层级 */
.article{background:#fff;border-radius:20px;padding:30px 28px;box-shadow:0 4px 16px rgba(0,0,0,0.06);margin-bottom:20px;border:1px solid #f0f2f7;}
.title{font-size:24px;font-weight:700;line-height:1.4;margin-bottom:16px;color:#111;} /* 从26px→24px */
.meta{font-size:12px;color:#888;margin-bottom:22px;} /* 从13px→12px */
.meta span{margin-right:12px;background:#f7f8fa;padding:4px 10px;border-radius:8px;}

/* 正文 - SEO核心字体优化 */
.content{font-size:15px;line-height:1.8;color:#333;} /* 从16px→15px */
.content p{margin-bottom:20px;}
/* 二级标题 - SEO层级优化 */
.content h2{
  font-size:18px;font-weight:600;margin:30px 0 16px;
  padding:10px 14px;background:linear-gradient(90deg, #f5f6ff 0%, #edf2f7 100%);
  color:#5a67d8;border-radius:10px;border-left:4px solid #7c3aed;
} /* 从19px→18px */

/* 原创声明 */
.original{
  margin-top:30px;padding:16px 18px;
  background:linear-gradient(90deg, #f5f6ff 0%, #f0f4ff 100%);
  border-left:4px solid #5a67d8;border-radius:10px;
  font-size:12px;color:#555;
} /* 从13px→12px */

/* 通用卡片样式 */
.box{background:linear-gradient(135deg, #ffffff 0%, #fafbff 100%);border-radius:20px;padding:22px 24px;margin-bottom:20px;box-shadow:0 4px 12px rgba(0,0,0,0.05);border:1px solid #e8eef8;transition:all 0.4s ease;position:relative;overflow:hidden;}
.box::before{content:'';position:absolute;top:0;left:0;width:100%;height:4px;background:linear-gradient(90deg, #5a67d8 0%, #7c3aed 100%);border-radius:20px 20px 0 0;}
.box:hover{transform:translateY(-4px);box-shadow:0 8px 20px rgba(0,0,0,0.08);}
.box h3{font-size:16px;font-weight:600;color:#222;margin-bottom:18px;padding-left:12px;border-left:4px solid #5a67d8;} /* 从17px→16px */

/* 作者信息卡片 */
.author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px !important;
}
.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(90, 103, 216, 0.2);
  border: 2px solid #f5f6ff;
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-name {
  font-size:16px;font-weight:700;color:#222;margin-bottom:8px;letter-spacing:0.5px;
} /* 从17px→16px */
.author-desc {
  font-size:13px;color:#666;line-height:1.7;padding:0 8px;margin:0;
} /* 从14px→13px */

/* 图片+标题+时间 列表 - SEO友好字体 */
.item{
  display:flex;
  gap: 16px !important;
  margin-bottom: 18px !important;
  padding: 12px 10px !important;
  border-bottom:1px solid #f5f7fa;
  transition:all 0.3s ease;
  align-items:center;
  border-radius: 8px;
}
.item:last-child{
  margin-bottom:0 !important;
  padding-bottom:0 !important;
  border-bottom:none;
}
.item:hover{
  background:rgba(245,246,255,0.5);
  padding-left:10px !important;
}
.item-img{
  width: 70px !important;
  height: 70px !important;
  object-fit:cover !important;
  border-radius:8px !important;
  flex-shrink:0;
  box-shadow:0 2px 8px rgba(0,0,0,0.08);
}
.item-info{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding: 4px 0;
}
.item-title{
  font-size:14px;color:#222;line-height:1.5;margin-bottom:8px !important;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;transition:color 0.3s ease;
} /* 从15px→14px */
.item-title:hover{color:#5a67d8;}
.item-time{font-size:12px;color:#999;}

/* 分享卡片样式 */
.share-box{display:flex;justify-content:space-around;align-items:center;padding:20px 0;margin-top:10px;}
.share-item{display:flex;flex-direction:column;align-items:center;gap:8px;color:#666;text-decoration:none;transition:all 0.3s ease;}
.share-item:hover{color:#5a67d8;transform:translateY(-4px) scale(1.08);}
.share-icon{width:45px;height:45px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:22px;box-shadow:0 3px 10px rgba(0,0,0,0.1);}
.share-icon.qqzone{background:linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);color:#fff;}
.share-icon.weibo{background:linear-gradient(135deg, #ec4899 0%, #db2777 100%);color:#fff;}
.share-icon.wechat{background:linear-gradient(135deg, #10b981 0%, #059669 100%);color:#fff;}
.share-text{font-size:12px;font-weight:500;} /* 从13px→12px */

/* 评论区样式 */
.comment-form{margin-bottom:24px;padding:20px;background:linear-gradient(135deg, #f5f6ff 0%, #f0f4ff 100%);border-radius:12px;}
.form-group{margin-bottom:14px;}
.form-group label{display:block;font-size:13px;color:#333;margin-bottom:8px;font-weight:500;} /* 从14px→13px */
.form-group input,.form-group textarea{width:100%;padding:12px 14px;border:1px solid #eaeef5;border-radius:8px;font-size:13px;outline:none;transition:all 0.3s ease;background:#fff;} /* 从14px→13px */
.form-group input:focus,.form-group textarea:focus{border-color:#5a67d8;box-shadow:0 0 0 3px rgba(90, 103, 216, 0.1);}
.form-group textarea{min-height:120px;resize:vertical;}
.submit-btn{background:linear-gradient(90deg, #5a67d8 0%, #7c3aed 100%);color:#fff;border:none;padding:12px 24px;border-radius:8px;font-size:14px;cursor:pointer;transition:all 0.3s ease;font-weight:500;} /* 从15px→14px */
.submit-btn:hover{transform:scale(1.03);box-shadow:0 4px 12px rgba(90, 103, 216, 0.3);}
.comment-list{margin-top:10px;}
.comment-item{padding:16px 0;border-bottom:1px solid #f1f3f6;animation:fadeIn 0.5s ease;}
@keyframes fadeIn {
    from {opacity:0;transform:translateY(10px);}
    to {opacity:1;transform:translateY(0);}
}
.comment-name{font-size:13px;font-weight:600;margin-bottom:6px;color:#222;} /* 从14px→13px */
.comment-text{font-size:13px;color:#555;line-height:1.7;} /* 从14px→13px */
.comment-time{font-size:12px;color:#999;margin-top:8px;}

/* 底部 */
.footer{max-width:1200px;margin:0 auto;text-align:center;padding:28px 16px;font-size:13px;color:#e2e8f0;background:linear-gradient(180deg, #1e293b 0%, #0f172a 100%);border-radius:20px 20px 0 0;margin-top:30px;box-shadow:0 -4px 12px rgba(0,0,0,0.1);} /* 从14px→13px */
.footer a{color:#a5b4fc;text-decoration:none;transition:color 0.3s ease;}
.footer a:hover{color:#c7d2fe;text-decoration:underline;}

a{text-decoration:none;color:inherit}

/* 手机端适配 - 同步优化字体 */
@media (max-width:992px){
    .wrapper{flex-direction:column;gap:20px;padding:20px 16px;}
    .sidebar,.container{width:100%;min-width:auto;}
    .share-box{justify-content:space-between;}
    .nav-list{gap:16px;}
    .logo{font-size:18px;} /* 从20px→18px */
    .box{padding:20px 20px;}
    /* 移动端作者卡片 */
    .author-avatar {width: 45px;height: 45px;}
    .author-name {font-size:14px;} /* 从15px→14px */
    .author-desc {font-size:12px;} /* 从13px→12px */
    /* 移动端卡片 */
    .item{gap: 14px !important;padding: 10px 8px !important;margin-bottom: 16px !important;}
    .item-img{width:60px !important;height:60px !important;}
}

/* 微信分享提示弹窗 */
#wechatTip{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.8);z-index:9999;justify-content:center;align-items:center;}
#wechatTip > div{background:linear-gradient(135deg, #ffffff 0%, #fafbff 100%);padding:24px;border-radius:16px;text-align:center;max-width:320px;box-shadow:0 8px 32px rgba(0,0,0,0.2);}
#wechatTip .fa-weixin{font-size:70px;color:#10b981;margin-bottom:12px;}
#wechatTip p{font-size:16px;margin-bottom:12px;color:#333;} /* 从17px→16px */
#wechatTip button{background:linear-gradient(90deg, #5a67d8 0%, #7c3aed 100%);color:#fff;border:none;padding:10px 24px;border-radius:8px;cursor:pointer;font-size:14px;transition:all 0.3s ease;} /* 从15px→14px */
#wechatTip button:hover{transform:scale(1.05);box-shadow:0 4px 12px rgba(90, 103, 216, 0.3);}