* {margin: 0;padding: 0;box-sizing: border-box;font-family: "微软雅黑", sans-serif;}
body {width: 100%;max-width: 1200px;margin: 0 auto;background-color: #f5f5f5;}
.header {width: 100%;background-color: #fff;padding: 15px 0;border-bottom: 2px solid #333;}
.header-top {display: flex;justify-content: space-between;align-items: center;padding: 0 20px;margin-bottom: 10px;}
.logo a{text-decoration: none;}
.logo img{width: 70px;height:70px;}

.search-box {flex: 1;  max-width: 500px; margin: 0 auto;  display: flex;}
.search-box input {width: calc(100% - 80px); height: 38px;padding: 0 15px;border: 2px solid #d93025;border-right: none;border-radius: 4px 0 0 4px;
    font-size: 14px;outline: none;}
.search-box input::placeholder { color: #999;}
.search-btn {width: 80px;height: 38px;background-color: #d93025;color: #fff;border: none;border-radius: 0 4px 4px 0;cursor: pointer;font-size: 14px;
    display: flex;align-items: center;justify-content: center;gap: 4px;}
.search-btn:hover {background-color: #c5281e;}

.login-register {width: 160px; text-align: right;}
.login-register a {color: #666;text-decoration: none;margin: 0 5px;font-size: 14px;}
.login-register a:hover {color: #d93025;}

.nav-bar {background-color: #333;}
.nav-bar ul {display: flex;list-style: none;padding: 0 20px;justify-content: center; }
.nav-bar ul li a {display: block;color: #fff;text-decoration: none;padding: 12px 25px;font-size: 14px;}
.nav-bar ul li a.active,.nav-bar ul li a:hover {background-color: #d93025;}
.main-container { display: flex; justify-content: space-between; margin: 15px 0; gap: 15px;}

.left-sidebar {width: 20%;background-color: #fff;padding: 15px;border: 1px solid #e0e0e0;}

.hot-recommend h3 {font-size: 16px;margin-bottom: 15px;padding-bottom: 5px;border-bottom: 1px solid #e0e0e0;}
.hot-item {display: flex;gap: 10px;margin-bottom: 15px;}
.hot-img {width: 60px;height: 80px;object-fit: cover;}
.hot-info .hot-title {font-weight: bold;margin-bottom: 5px;}
.hot-info .hot-desc {font-size: 12px;color: #666;}

.discuss-area {margin-top: 20px;}
.discuss-area h4 {font-size: 14px;margin-bottom: 10px;}
.discuss-item {display: flex; gap: 8px; margin-bottom: 8px;}

.avatar {width: 20px;height: 20px;border-radius: 50%;}

.discuss-item p { font-size: 12px;}
.discuss-item span {color: #d93025;}

.middle-content {width: 50%;display: flex;flex-direction: column;gap: 15px;}

.banner {width: 100%;height: 280px;position: relative;overflow: hidden;border: 1px solid #e0e0e0;}
.banner-wrap {width: 100%;height: 100%;position: relative;}
.banner-item {position: absolute;top: 0;left: 0;width: 100%;height: 100%;opacity: 0;transition: opacity 0.5s ease;}
.banner-item.active {opacity: 1;}
.banner-item img {width: 100%;height: 100%;object-fit: cover;}
.banner-btn {position: absolute;top: 50%;transform: translateY(-50%); width: 35px; height: 60px;background-color: rgba(0,0,0,0.3);color: #fff;
    border: none;cursor: pointer;font-size: 20px;z-index: 2;}

.prev-btn {left: 0;}

.next-btn {right: 0;}

.banner-btn:hover {background-color: rgba(0,0,0,0.5);}
.banner-dots {position: absolute;bottom: 15px;left: 50%;transform: translateX(-50%);display: flex;gap: 8px;z-index: 2;}

.dot { width: 10px; height: 10px;border-radius: 50%; background-color: rgba(255,255,255,0.6); cursor: pointer;}

.dot.active {background-color: #fff;}

.category-section {background-color: #fff;padding: 15px;border: 1px solid #e0e0e0;}
.category-section h3 {font-size: 18px;color: #333;margin-bottom: 15px;padding-bottom: 8px;border-bottom: 2px solid #f0f0f0;}
.category-card-list {display: flex;flex-wrap: wrap;gap: 12px;margin-bottom: 15px;}
.category-card {width: calc(50% - 6px); gap: 10px; padding: 10px; background-color: #f9f9f9; border-radius: 6px; border: 1px solid #eee;}
.category-card-img {width: 80px;height: 100px;flex-shrink: 0;}
.category-card-img img {width: 100%;height: 100%;object-fit: cover;border-radius: 4px;}
.category-card-info {flex: 1;display: flex;flex-direction: column;justify-content: space-between;}
.category-card-title {font-size: 16px;font-weight: bold;color: #333;margin-bottom: 5px;}
.category-card-desc {font-size: 12px;color: #666;line-height: 1.4;margin-bottom: 8px;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;overflow: hidden;}

.category-tag {display: flex;gap: 6px;margin-bottom: 5px;}
.category-tag span {font-size: 10px;padding: 2px 6px;border-radius: 3px;}
.category-tag span:nth-child(1) {background-color: #d93025;color: #fff;}
.category-tag span:nth-child(2) {background-color: #f0f0f0;color: #666;}
.category-more { font-size: 12px;color: #d93025;text-decoration: none;align-self: flex-start;}
.category-more:hover {text-decoration: underline;}
.category-quick-nav {display: flex;align-items: center;flex-wrap: wrap;gap: 8px;padding-top: 10px;border-top: 1px dashed #eee;}
.category-quick-nav span {font-size: 13px;color: #333;font-weight: bold;}

.category-quick-nav a {display: block;padding: 4px 10px;font-size: 13px;color: #666;text-decoration: none;background-color: #f5f5f5;border-radius: 4px;}
.category-quick-nav a:hover {background-color: #d93025;color: #fff;}

.right-sidebar { width: 25%; display: flex; flex-direction: column; gap: 15px;}

.update-section, .classic-recommend {background-color: #fff;padding: 15px;border: 1px solid #e0e0e0;}
.update-section h3, .classic-recommend h3 { font-size: 16px;margin-bottom: 15px;padding-bottom: 5px;border-bottom: 1px solid #e0e0e0;}
.update-item {display: flex;gap: 10px;margin-bottom: 15px;}
.update-img {width: 50px;height: 70px;object-fit: cover;}
.update-info { font-size: 12px;}
.update-title { font-weight: bold;margin-bottom: 3px;}
.update-author {color: #666;margin-bottom: 3px;}
.update-time {color: #999;}

.classic-list {display: flex;justify-content: space-around;}
.classic-img { width:60px; height: 80px;object-fit: cover;}

.footer {width: 100%;background-color: #333;padding: 15px 0;margin-top: 20px;color: #ccc;}
.footer-nav {display: flex;justify-content: center;gap: 20px;margin-bottom: 15px;}
.footer-nav a {color: #ccc;text-decoration: none;font-size: 14px;}
.footer-nav a:hover {color: #fff;}
.contact-info {text-align: center;font-size: 14px;line-height: 1.6;}