/* ===== 全局基础样式（所有页面共用） ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; background: #f5f7fa; color: #1a2332; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 导航栏 ===== */
.header { background: #0b2b5c; padding: 16px 0; color: white; }
.header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.logo { font-size: 24px; font-weight: 700; }
.logo span { font-weight: 300; color: rgba(255,255,255,0.7); }
.nav a { color: rgba(255,255,255,0.85); text-decoration: none; margin-left: 20px; font-size: 15px; }
.nav a:hover { color: white; }

/* ===== 页脚 ===== */
.footer { background: #0b2b5c; color: rgba(255,255,255,0.6); padding: 30px 0; text-align: center; margin-top: 20px; font-size: 14px; }

/* ===== 徽章 ===== */
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 12px; border-radius: 20px; margin-right: 8px; }
.badge-premium { background: #fef3c7; color: #b45309; }
.badge-free { background: #dbeafe; color: #1a4b8c; }
.badge-category { background: #eef2f6; color: #4a5a72; }

/* ===== 侧边栏卡片 ===== */
.sidebar-card { background: white; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.sidebar-card h3 { font-size: 16px; font-weight: 600; color: #0b2b5c; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #eef2f6; }
.sidebar-card .hot-item { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f5f7fa; }
.sidebar-card .hot-item:last-child { border-bottom: none; }
.sidebar-card .hot-item .num { font-weight: 700; color: #8896ab; min-width: 24px; }
.sidebar-card .hot-item a { color: #1a2332; text-decoration: none; font-size: 14px; }
.sidebar-card .hot-item a:hover { color: #0b2b5c; }

/* ===== 搜索框 ===== */
.search-box { display: flex; gap: 8px; margin-bottom: 20px; }
.search-box input { flex: 1; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; }
.search-box button { padding: 10px 18px; background: #0b2b5c; color: white; border: none; border-radius: 8px; cursor: pointer; }
.search-box button:hover { background: #1a4b8c; }
.search-box .reset { display: inline-flex; align-items: center; padding: 0 14px; color: #8896ab; text-decoration: none; }
.search-info { background: #dbeafe; padding: 12px 20px; border-radius: 8px; margin-bottom: 16px; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; align-items: flex-start; }
    .nav a { margin-left: 0; margin-right: 14px; }
}