/* css.css - 消费投诉网 样式表 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "SimHei", Arial, sans-serif; background-color: #f0f2f5; color: #333; line-height: 1.6; }
a { text-decoration: none; color: #333; transition: color 0.2s; }
a:hover { color: #cc0000; } /* 警示红为主色调 */
ul, li { list-style: none; }
.container { width: 1200px; margin: 0 auto; overflow: hidden; }

/* Header (整合到各页面) */
.header { background-color: #fff; border-top: 4px solid #cc0000; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.top-bar { height: 100px; display: flex; align-items: center; justify-content: space-between; }
.logo h1 { font-size: 36px; font-weight: bold; color: #cc0000; display: flex; align-items: center; }
.logo h1 a { color: #cc0000; }
.logo span { font-size: 16px; font-weight: normal; color: #666; margin-left: 15px; border-left: 1px solid #ddd; padding-left: 15px; }
.search { display: flex; border: 2px solid #cc0000; border-radius: 4px; overflow: hidden; }
.search input { padding: 10px 15px; width: 300px; border: none; outline: none; font-size: 14px; }
.search button { padding: 10px 30px; background: #cc0000; color: #fff; border: none; cursor: pointer; font-size: 16px; font-weight: bold; }
.nav { background-color: #2b2b2b; }
.nav ul { display: flex; }
.nav li a { display: block; padding: 0 30px; line-height: 50px; color: #fff; font-size: 16px; font-weight: bold; }
.nav li a:hover, .nav li a.active { background-color: #cc0000; }

/* Layout */
.main { display: flex; justify-content: space-between; margin: 20px auto; }
.left-col { width: 850px; }
.right-col { width: 330px; }

/* Block Title */
.block-title { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #2b2b2b; margin-bottom: 15px; padding-bottom: 8px; }
.block-title h2 { font-size: 22px; color: #2b2b2b; border-left: 5px solid #cc0000; padding-left: 12px; line-height: 1.2; }
.block-title .more { font-size: 14px; color: #999; }

/* Index Alerts (曝光台) */
.alert-list { background: #fff; padding: 20px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 20px; }
.alert-list li { padding: 15px 0; border-bottom: 1px dashed #eee; display: flex; justify-content: space-between; align-items: center; }
.alert-list li:last-child { border-bottom: none; }
.alert-list .tag { display: inline-block; padding: 2px 8px; background: #ffeeee; color: #cc0000; font-size: 12px; border-radius: 2px; margin-right: 10px; border: 1px solid #ffcccc; }
.alert-list h3 { flex: 1; font-size: 18px; font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-list .date { color: #999; font-size: 14px; margin-left: 20px; }

/* List Page (投诉列表) */
.complaint-list .item { background: #fff; padding: 20px; margin-bottom: 15px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border-left: 4px solid transparent; transition: border-color 0.2s; }
.complaint-list .item:hover { border-left-color: #cc0000; }
.complaint-list .item h3 { font-size: 20px; margin-bottom: 10px; }
.complaint-list .item h3 a { color: #333; }
.complaint-list .item h3 a:hover { color: #cc0000; }
.complaint-list .item .desc { color: #666; font-size: 15px; line-height: 1.8; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.complaint-list .item .meta { display: flex; justify-content: space-between; color: #999; font-size: 13px; background: #f9f9f9; padding: 8px 15px; border-radius: 2px; }
.complaint-list .item .meta span { margin-right: 20px; }
.complaint-list .item .status { color: #cc0000; font-weight: bold; }

/* Sidebar Widget */
.widget { background: #fff; padding: 20px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 20px; border-top: 3px solid #2b2b2b; }
.widget-title { font-size: 18px; font-weight: bold; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.rank-list li { margin-bottom: 12px; display: flex; align-items: center; }
.rank-list .num { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; background: #eee; color: #666; font-size: 12px; margin-right: 10px; }
.rank-list li:nth-child(1) .num { background: #cc0000; color: #fff; }
.rank-list li:nth-child(2) .num { background: #e63900; color: #fff; }
.rank-list li:nth-child(3) .num { background: #ff6600; color: #fff; }
.rank-list a { flex: 1; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Warning Box (企业黑榜等) */
.warning-box { background: #fff5f5; border: 1px solid #ffcccc; padding: 15px; border-radius: 4px; }
.warning-box li { padding: 8px 0; display: flex; align-items: center; }
.warning-box li::before { content: '⚠'; color: #cc0000; margin-right: 8px; }

/* Breadcrumb & Pagination */
.breadcrumb { background: #fff; padding: 15px 20px; margin-bottom: 20px; font-size: 14px; border-radius: 4px; color: #666; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.breadcrumb a { color: #333; }
.pagination { text-align: center; margin: 30px 0; }
.pagination li { display: inline-block; }
.pagination a, .pagination span { display: inline-block; padding: 8px 15px; margin: 0 5px; background: #fff; border: 1px solid #ddd; border-radius: 2px; }
.pagination .thisclass, .pagination a:hover { background: #cc0000; color: #fff; border-color: #cc0000; font-weight: bold; }

/* Article Content */
.article-box { background: #fff; padding: 40px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.article-title { text-align: center; margin-bottom: 25px; }
.article-title h1 { font-size: 26px; margin-bottom: 15px; color: #000; font-weight: bold; }
.article-meta { color: #888; font-size: 13px; text-align: center; padding: 15px 0; border-top: 1px dashed #eee; border-bottom: 1px solid #eee; margin-bottom: 30px; background: #fafafa; }
.article-meta span { margin: 0 15px; }
.article-content { font-size: 16px; line-height: 2; color: #333; }
.article-content p { margin-bottom: 20px; text-align: justify; }
.article-content img { max-width: 100%; height: auto; display: block; margin: 20px auto; border: 1px solid #eee; padding: 2px; }
.article-nav { margin-top: 40px; padding: 20px; background: #f9f9f9; border-radius: 4px; font-size: 15px; border: 1px solid #eee; }
.article-nav p { margin-bottom: 10px; }
.article-nav p:last-child { margin-bottom: 0; }

/* Footer */
.footer { background: #2b2b2b; color: #999; text-align: center; padding: 40px 0; margin-top: 40px; border-top: 5px solid #cc0000; }
.footer p { margin-bottom: 10px; font-size: 14px; }
.footer a { color: #999; }
.footer a:hover { color: #fff; }
.safety-icons { margin-top: 20px; font-size: 24px; color: #555; letter-spacing: 15px; }