
/* 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; line-height: 1.6; color: #333; background: #f5f5f5; }
a { text-decoration: none; color: #0066cc; }
a:hover { color: #0052a3; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* 容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 头部导航 */
header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; max-width: 1200px; margin: 0 auto; }
.logo { font-size: 24px; font-weight: bold; color: #0066cc; }
nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; }
nav a { padding: 10px 15px; color: #333; font-weight: 500; transition: all 0.3s; white-space: nowrap; }
nav a:hover { color: #0066cc; background: #f0f0f0; border-radius: 4px; }

/* 移动端导航单行显示 */
@media (max-width: 768px) {
  .header-inner { padding: 10px 15px; }
  .logo { font-size: 18px; }
  nav { flex: 1; justify-content: space-between; margin-left: 10px; }
  nav a { flex: 1 1 0; min-width: 0; padding: 8px 5px; font-size: 13px; text-align: center; overflow: hidden; text-overflow: ellipsis; }
}

/* 主要内容区 */
main { padding: 30px 0; min-height: 60vh; }
.page-title { font-size: 32px; margin-bottom: 10px; color: #222; }
.page-desc { font-size: 16px; color: #666; margin-bottom: 30px; line-height: 1.8; }

/* 卡片列表 */
.card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; margin-top: 25px; }
.card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: all 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.card-title { font-size: 18px; font-weight: bold; padding: 15px; color: #222; }
.card-meta { padding: 0 15px 5px; font-size: 14px; color: #999; }
.card-desc { padding: 0 15px 15px; font-size: 14px; color: #666; line-height: 1.6; }
.card-link { display: inline-block; margin: 0 15px 15px; padding: 8px 16px; background: #0066cc; color: #fff; border-radius: 4px; font-size: 14px; transition: all 0.3s; }
.card-link:hover { background: #0052a3; color: #fff; }

/* 详情页 */
.detail-header { background: #fff; padding: 30px; border-radius: 8px; margin-bottom: 25px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.detail-title { font-size: 28px; margin-bottom: 20px; color: #222; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.meta-item { display: flex; gap: 8px; font-size: 15px; }
.meta-label { color: #999; }
.meta-value { color: #333; font-weight: 500; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.tag { padding: 4px 12px; background: #f0f0f0; color: #666; border-radius: 4px; font-size: 13px; }
.detail-section { background: #fff; padding: 30px; border-radius: 8px; margin-bottom: 25px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.section-title { font-size: 20px; margin-bottom: 15px; color: #222; border-left: 4px solid #0066cc; padding-left: 12px; }
.section-content { font-size: 15px; color: #555; line-height: 1.8; }

/* 推荐列表 */
.recommend-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.recommend-item { background: #f9f9f9; padding: 15px; border-radius: 6px; transition: all 0.3s; }
.recommend-item:hover { background: #f0f0f0; }
.recommend-title { font-size: 16px; font-weight: bold; color: #222; margin-bottom: 8px; }
.recommend-desc { font-size: 14px; color: #666; margin-bottom: 10px; line-height: 1.5; }
.recommend-link { color: #0066cc; font-size: 14px; }

/* 页脚 */
footer { background: #333; color: #fff; padding: 30px 0; margin-top: 50px; text-align: center; }
footer p { font-size: 14px; opacity: 0.8; }

/* 响应式 */
@media (max-width: 768px) {
  .page-title { font-size: 24px; }
  .card-list { grid-template-columns: 1fr; gap: 15px; }
  .detail-header, .detail-section { padding: 20px; }
  .detail-title { font-size: 22px; }
  .detail-meta { gap: 15px; }
  .recommend-list { grid-template-columns: 1fr; }
}

/* UI风格变体 */
body.ui-style-8 { --primary-color: #0066cc; --secondary-color: #f5f5f5; }
