/* 极简头条风 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "PingFang SC", sans-serif; background: #f4f5f6; color: #222; }
a { text-decoration: none; color: inherit; }

/* 顶部 */
.top-bar { position: sticky; top: 0; z-index: 99; background: #fff; border-bottom: 1px solid #e8e8e8; }
.logo { display: inline-flex; align-items: center; gap: 6px; padding: 12px 16px; font-size: 20px; font-weight: 700; color: #e53935; }
.logo i { font-size: 22px; }

.cat-nav { display: inline-flex; gap: 2px; }
.cat-nav button { background: none; border: none; padding: 12px 14px; font-size: 14px; color: #666; cursor: pointer; border-radius: 0; transition: .2s; }
.cat-nav button:hover { color: #e53935; }
.cat-nav button.active { color: #e53935; font-weight: 600; border-bottom: 2px solid #e53935; }
.cat-nav button i { margin-right: 4px; font-size: 12px; }

.search { display: inline-flex; float: right; padding: 10px 16px; }
.search input { width: 140px; padding: 6px 12px; border: 1px solid #ddd; border-radius: 16px 0 0 16px; font-size: 13px; outline: none; }
.search input:focus { border-color: #e53935; }
.search button { padding: 6px 14px; background: #e53935; color: #fff; border: none; border-radius: 0 16px 16px 0; cursor: pointer; }

/* 内容 */
.main { max-width: 900px; margin: 16px auto; padding: 0 12px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card { background: #fff; border-radius: 8px; padding: 20px 16px; text-align: center; transition: .2s; display: flex; flex-direction: column; align-items: center; }
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.ico { font-size: 36px; color: #e53935; margin-bottom: 12px; }
.name { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: #333; }
.desc { font-size: 12px; color: #999; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 加载 */
.loading { text-align: center; padding: 60px; color: #999; }
.loading i { font-size: 24px; }
.empty { text-align: center; padding: 60px; color: #999; font-size: 14px; }

/* 底部 */
.foot { text-align: center; padding: 24px; font-size: 12px; color: #bbb; }
.foot a { color: #bbb; }

/* 响应式 */
@media (max-width: 768px) {
    .grid { grid-template-columns: 1fr; }
    .cat-nav { display: flex; flex-wrap: wrap; gap: 0; }
    .cat-nav button { padding: 10px 12px; font-size: 13px; }
    .search { display: flex; width: 100%; padding: 0 12px 12px; }
    .search input { flex: 1; }
}

/* 资讯滚动 */
.news-ticker { background: #fff3f3; border-bottom: 1px solid #ffe0e0; display: flex; align-items: center; padding: 0; overflow: hidden; }
.ticker-label { background: #e53935; color: #fff; padding: 8px 14px; font-size: 13px; font-weight: bold; white-space: nowrap; flex-shrink: 0; }
.ticker-content { flex: 1; padding: 8px 16px; overflow: hidden; white-space: nowrap; }
.ticker-content a { color: #d32f2f; text-decoration: none; font-size: 13px; margin-right: 8px; }
.ticker-content a:hover { text-decoration: underline; }
.ticker-content .sep { color: #ccc; margin-right: 8px; }
.ticker-content .loading { color: #999; font-size: 13px; }
