/* 最新韩漫样式 */
      /* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff6b6b;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background: linear-gradient(to right, #4a00e0, #8e2de2);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.nav-menu {
    display: flex;
}

.nav-item {
    margin: 0 15px;
    padding: 8px 0;
    position: relative;
    color: white;
    font-weight: 500;
}

.nav-item:hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 15px;
    border: none;
    border-radius: 20px 0 0 20px;
    outline: none;
    width: 250px;
}

.search-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 0 20px 20px 0;
    background: #ff6b6b;
    color: white;
    cursor: pointer;
}

/* 主内容区样式 */
.main-content {
    padding: 30px 0;
}

.section-title {
    position: relative;
    margin-bottom: 25px;
    padding-left: 15px;
    font-size: 22px;
    font-weight: bold;
}

.section-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 5px;
    background: #8e2de2;
    border-radius: 3px;
}

/* 轮播图样式 */
.banner {
    height: 300px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.banner-slide {
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.banner-item {
    min-width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #6366F1, #8B5CF6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.banner-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
}

.banner-dot.active {
    background: white;
}

/* 分类导航 */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 10px;
}

.category-item {
    padding: 8px 15px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.category-item:hover {
    background: #8e2de2;
    color: white;
}

/* 漫画列表 */
.comic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.comic-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.comic-card:hover {
    transform: translateY(-5px);
}

.comic-cover {
    height: 220px;
    background: linear-gradient(45deg, #FF6B6B, #FF9E6B);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.comic-info {
    padding: 15px;
}

.comic-title {
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comic-desc {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comic-update {
    font-size: 12px;
    color: #8e2de2;
}

/* 热门分类区域 */
.hot-category {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.category-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.category-tab {
    padding: 10px 20px;
    cursor: pointer;
}

.category-tab.active {
    color: #8e2de2;
    border-bottom: 2px solid #8e2de2;
}

/* 页脚样式 */
footer {
    background: #2d3748;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-links a {
    display: block;
    color: #cbd5e0;
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
    color: #cbd5e0;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
flex-direction: column;
align-items: flex-start;
    }
    
    .nav-menu {
margin-top: 15px;
flex-wrap: wrap;
    }
    
    .nav-item {
margin: 5px 10px;
    }
    
    .search-box {
margin-top: 15px;
width: 100%;
    }
    
    .search-input {
width: 100%;
    }
    
    .comic-grid {
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .banner {
height: 200px;
    }
}