/* 商城风格模板 - 卡片网格双栏布局 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif; background: #f4f4f4; color: #333; font-size: 14px; line-height: 1.6; }
a { color: #333; text-decoration: none; }
a:hover { color: #e63946; }

/* 主容器 */
#app_home { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* 头部 */
#app_header { background: #fff; padding: 20px 0; border-bottom: 1px solid #eee; margin-bottom: 20px; }
#blogtitle { display: flex; justify-content: space-between; align-items: center; }
#blogtitle h1 { font-size: 24px; font-weight: 700; color: #e63946; }
#navlist { list-style: none; display: flex; gap: 6px; }
#navlist a { display: block; padding: 6px 14px; background: #f8f8f8; border-radius: 4px; font-size: 13px; transition: all 0.2s; }
#navlist a:hover, #navlist a.cur { background: #e63946; color: #fff; }

/* 横幅 */
#app_banner { margin-bottom: 20px; border-radius: 8px; overflow: hidden; }
#app_banner img { width: 100%; height: auto; max-height: 180px; object-fit: contain; display: block; }

/* 主内容区 */
#app_main { display: flex; gap: 20px; padding-bottom: 30px; }
#maincontent { flex: 1; }

/* 双列卡片网格 */
.forflow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.app_day { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: all 0.3s; }
.app_day:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.daytitle { padding: 12px 14px 6px; font-size: 11px; color: #999; }
.posttitle { padding: 6px 14px; font-size: 15px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.posttitle a { color: #333; }
.c_b_p_desc { padding: 0 14px; font-size: 13px; color: #888; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; display: none; }
.c_b_p_desc a { color: #e63946; }
.postdesc { padding: 12px 14px; font-size: 12px; color: #e63946; font-weight: 600; }

/* 侧边栏 */
#app_sidebar { width: 260px; flex-shrink: 0; }
.sidebar-block { background: #fff; border-radius: 8px; padding: 16px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.catlisttitle { font-size: 15px; font-weight: 700; color: #333; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #e63946; }
.sidebar-block ul { list-style: none; }
.sidebar-block li { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #f5f5f5; }
.sidebar-block li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-block a { font-size: 13px; color: #666; display: block; transition: color 0.2s; }
.sidebar-block a:hover { color: #e63946; }
.clear { clear: both; }

/* 底部 */
#app_footer { background: #333; text-align: center; padding: 24px 0; color: #999; font-size: 13px; }
#app_footer a { color: #e63946; }

/* 文章页 */
#topics { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.posttitle { font-size: 22px; font-weight: 700; color: #333; margin-bottom: 12px; line-height: 1.4; }
.postdesc { font-size: 13px; color: #999; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.postbody { font-size: 15px; line-height: 1.8; color: #555; }
.postbody p { margin-bottom: 14px; }

/* 响应式 */
@media (max-width: 800px) {
    #app_main { flex-direction: column; }
    #app_sidebar { width: 100%; }
    .forflow { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
