* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #1f2d3d;
    background: #f7f9fb;
    min-height: 100vh;
}

/* 顶部导航栏 */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e6eaf0;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.66rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2d3d;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #1f2d3d;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #2AA63E;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: #2AA63E;
    transition: all 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.24rem 0.55rem;
    transition: box-shadow 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 0 0 3px rgba(58, 122, 254, 0.15);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    padding: 0.35rem;
    width: 200px;
    font-size: 0.9rem;
    color: #1f2d3d;
}

.search-box button {
    border: none;
    background: #2AA63E;
    color: white;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #187327;
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

.section {
    margin-bottom: 2.5rem;
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e6eaf0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #1f2d3d;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #2AA63E;
    border-radius: 2px;
}

.manga-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.manga-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.manga-card a {
    display: block;
    color: inherit;
}

.manga-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.manga-image {
    width: 100%;
    aspect-ratio: 425 / 560;
    height: auto;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

.manga-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.manga-card:hover .manga-image img {
    transform: scale(1.1);
}

.manga-card .manga-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.5rem 0.75rem 0.55rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.75);
    color: #f8fafc;
}

.manga-card .manga-title {
    font-weight: bold;
    margin-bottom: 0;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.manga-meta {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.manga-status {
    background: #2AA63E;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
}

/* 分页器 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-btn {
    background: #ffffff;
    border: 1px solid #2AA63E;
    color: #2AA63E;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(.disabled) {
    background: #2AA63E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(58, 122, 254, 0.2);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    background: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    color: #1f2d3d;
    border: 1px solid #e6eaf0;
}

/* 底部footer */
.footer {
    background: #f1f5f9;
    color: #5b6674;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 1px solid #e6eaf0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #5b6674;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2AA63E;
}

/* 移动端汉堡菜单 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .manga-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .manga-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .search-box input {
        width: 150px;
    }

    .main-content {
        padding: 1rem;
    }

    .section {
        padding: 1rem;
    }

    .manga-image {
        height: 150px;
    }

    .footer-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    .search-box {
        padding: 0.3rem 0.8rem;
    }

    .search-box input {
        width: 120px;
        font-size: 0.8rem;
    }
}

/* 动画效果 */
.manga-card a{
    text-decoration: none;
}
a{
    text-decoration: none;
}