/* css.css - 车评网样式表 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", Arial, sans-serif; background-color: #f5f5f5; color: #333; line-height: 1.6; }
a { text-decoration: none; color: #333; transition: color 0.3s; }
a:hover { color: #e60000; }
ul, li { list-style: none; }
.container { width: 1200px; margin: 0 auto; overflow: hidden; }

/* Header */
.header { background-color: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.1); margin-bottom: 20px; }
.top-bar { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.logo h1 { font-size: 32px; color: #e60000; font-weight: bold; }
.logo h1 a { color: #e60000; }
.search input { padding: 8px 12px; width: 250px; border: 1px solid #ddd; outline: none; }
.search button { padding: 8px 20px; background: #e60000; color: #fff; border: none; cursor: pointer; }
.nav { background-color: #333; height: 50px; }
.nav ul { display: flex; }
.nav li { font-size: 16px; }
.nav li a { display: block; padding: 0 25px; line-height: 50px; color: #fff; }
.nav li a:hover, .nav li a.active { background-color: #e60000; color: #fff; }

/* Layout */
.main { display: flex; justify-content: space-between; margin-bottom: 20px; }
.left-box { width: 850px; }
.right-box { width: 320px; }

/* Section Title */
.sec-title { border-bottom: 2px solid #333; margin-bottom: 15px; padding-bottom: 5px; }
.sec-title h2 { font-size: 20px; border-left: 4px solid #e60000; padding-left: 10px; line-height: 1; }

/* Index Articles */
.news-list li { display: flex; background: #fff; padding: 15px; margin-bottom: 15px; border-radius: 4px; transition: box-shadow 0.3s; }
.news-list li:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.news-list .pic { width: 220px; height: 140px; margin-right: 20px; overflow: hidden; flex-shrink: 0; }
.news-list .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.news-list .pic:hover img { transform: scale(1.05); }
.news-list .info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.news-list .info h3 { font-size: 20px; margin-bottom: 10px; }
.news-list .info p { color: #666; font-size: 14px; line-height: 1.8; max-height: 50px; overflow: hidden; }
.news-list .info .meta { color: #999; font-size: 13px; }
.news-list .info .meta span { margin-right: 15px; }

/* Sidebar */
.side-box { background: #fff; padding: 20px; margin-bottom: 20px; border-radius: 4px; }
.rank-list li { line-height: 36px; border-bottom: 1px dashed #eee; font-size: 15px; display: flex; align-items: center; }
.rank-list li i { font-style: normal; display: inline-block; width: 20px; height: 20px; background: #eee; color: #999; text-align: center; line-height: 20px; margin-right: 10px; font-size: 12px; }
.rank-list li:nth-child(1) i { background: #e60000; color: #fff; }
.rank-list li:nth-child(2) i { background: #ff6600; color: #fff; }
.rank-list li:nth-child(3) i { background: #ff9900; color: #fff; }
.rank-list li a { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* List Page */
.breadcrumb { background: #fff; padding: 15px; margin-bottom: 20px; font-size: 14px; border-radius: 4px; color: #666; }
.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: #e60000; color: #fff; border-color: #e60000; }

/* Article Page */
.article-box { background: #fff; padding: 40px; border-radius: 4px; }
.article-title { text-align: center; margin-bottom: 30px; }
.article-title h1 { font-size: 28px; margin-bottom: 15px; color: #222; }
.article-meta { color: #999; font-size: 13px; text-align: center; padding-bottom: 20px; border-bottom: 1px solid #eee; margin-bottom: 30px; }
.article-meta span { margin: 0 10px; }
.article-content { font-size: 16px; line-height: 2; color: #333; }
.article-content p { margin-bottom: 15px; }
.article-content img { max-width: 100%; height: auto; display: block; margin: 20px auto; }
.article-page { margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; font-size: 15px; }
.article-page p { margin-bottom: 10px; }

/* Footer */
.footer { background: #222; color: #888; text-align: center; padding: 40px 0; margin-top: 30px; }
.footer p { margin-bottom: 10px; font-size: 14px; }
.footer a { color: #888; }
.footer a:hover { color: #fff; }