/* 
 * 大众消费网 - 统一样式表
 * 风格：亲民、明快、消费引导感、现代生活化
 * 配色：#ff4d4f (消费红 - 热点/促销), #1890ff (生活蓝 - 资讯/理性), #333 (文字), #fafafa (背景)
 */

/* 1. 全局基础 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; color: #333; line-height: 1.6; background: #f5f5f5; }
a { text-decoration: none; color: #333; transition: 0.2s; }
a:hover { color: #ff4d4f; }
ul { list-style: none; }
img { max-width: 100% !important; height: auto !important; display: block; }

.container { width: 1200px; margin: 0 auto; }
.clearfix::after { content: ""; display: block; clear: both; }

/* 2. 头部设计 */
.top-header { background: #fff; border-bottom: 1px solid #eee; padding: 5px 0; font-size: 12px; color: #999; }
.header-main { background: #fff; padding: 25px 0; border-bottom: 2px solid #ff4d4f; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo h1 { font-size: 32px; color: #ff4d4f; font-weight: 900; letter-spacing: -1px; }
.logo span { color: #1890ff; font-weight: 300; font-size: 18px; margin-left: 5px; }

/* 3. 导航 */
.nav-wrap { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.nav { display: flex; height: 45px; align-items: center; }
.nav li a { display: block; padding: 0 25px; line-height: 45px; font-size: 15px; font-weight: bold; }
.nav li a:hover, .nav li.active a { color: #ff4d4f; background: #fff1f0; }

/* 4. 消费导购入口 */
.quick-entry { background: #fff; margin: 20px 0; padding: 20px 0; border-radius: 8px; display: flex; justify-content: space-around; }
.entry-item { text-align: center; flex: 1; border-right: 1px solid #f0f0f0; }
.entry-item:last-child { border-right: none; }
.entry-item i { display: block; font-size: 24px; margin-bottom: 8px; color: #ff4d4f; }
.entry-item span { font-weight: bold; color: #555; }

/* 5. 首页资讯网格 */
.main-grid { display: grid; grid-template-columns: 820px 360px; gap: 20px; margin-bottom: 40px; }

/* 精选卡片 */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.consume-card { background: #fff; border-radius: 8px; overflow: hidden; transition: 0.3s; border: 1px solid #eee; }
.consume-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.consume-img { height: 180px; overflow: hidden; position: relative; }
.consume-img img { width: 100%; height: 100%; object-fit: cover; }
.consume-tag { position: absolute; top: 12px; left: 12px; background: #ff4d4f; color: #fff; padding: 2px 10px; font-size: 12px; border-radius: 4px; }
.consume-info { padding: 15px; }
.consume-info h3 { font-size: 16px; height: 44px; overflow: hidden; margin-bottom: 10px; line-height: 1.4; }
.consume-meta { display: flex; justify-content: space-between; font-size: 12px; color: #999; }

/* 6. 侧边栏 */
.sidebar-box { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.sidebar-title { font-size: 18px; font-weight: 800; color: #333; margin-bottom: 15px; border-left: 4px solid #ff4d4f; padding-left: 12px; }
.rank-list li { padding: 10px 0; border-bottom: 1px solid #f0f0f0; display: flex; gap: 10px; align-items: center; }
.rank-idx { width: 20px; height: 20px; background: #f0f0f0; color: #999; font-size: 11px; text-align: center; line-height: 20px; border-radius: 2px; }
.rank-list li:nth-child(-n+3) .rank-idx { background: #ff4d4f; color: #fff; }

/* 7. 内容页样式 */
.article-wrap { background: #fff; padding: 40px; border-radius: 12px; }
.article-header { border-bottom: 1px solid #f0f0f0; padding-bottom: 25px; margin-bottom: 30px; }
.article-header h1 { font-size: 28px; line-height: 1.4; color: #1a1a1a; margin-bottom: 15px; }
.article-body { font-size: 16px; line-height: 1.8; color: #444; }
.article-body p { margin-bottom: 20px; }

/* 8. 分页与页脚 */
.pagination { margin: 30px 0; text-align: center; }
.pagination li { display: inline-block; margin: 0 3px; }
.pagination li a { padding: 5px 12px; background: #fff; border: 1px solid #ddd; border-radius: 4px; }
.pagination li.thisclass a { background: #ff4d4f; color: #fff; border-color: #ff4d4f; }

.footer { background: #262626; color: #8c8c8c; padding: 50px 0 30px; margin-top: 50px; }
.footer-flex { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; }
.footer h4 { color: #fff; margin-bottom: 20px; }
.footer-links a { color: #8c8c8c; display: block; margin-bottom: 10px; font-size: 13px; }
.footer-bottom { border-top: 1px solid #333; margin-top: 40px; padding-top: 25px; text-align: center; font-size: 12px; }
