/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.haijiao-main-body {
    min-height: 100vh;
    overflow-x: hidden;
}

/* 头部导航样式 */
.haijiao-header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.haijiao-logo-wrapper {
    flex: 1;
}

.haijiao-site-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.haijiao-site-title a {
    color: #fff;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.haijiao-site-title a:hover {
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.haijiao-main-navigation {
    flex: 2;
    display: flex;
    justify-content: flex-end;
}

.haijiao-nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.haijiao-nav-item {
    position: relative;
}

.haijiao-nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: block;
}

.haijiao-nav-link:hover,
.haijiao-nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 横幅区域 */
.haijiao-hero-banner {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-bottom: 4rem;
}

.haijiao-banner-content {
    position: relative;
    height: 100%;
}

.haijiao-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.haijiao-banner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
}

.haijiao-banner-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.haijiao-banner-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.2s ease;
}

.haijiao-cta-button {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
    animation: fadeInUp 1.4s ease;
}

.haijiao-cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(245, 87, 108, 0.6);
}

/* 内容容器 */
.haijiao-content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.haijiao-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #2d3748;
    position: relative;
    padding-bottom: 1rem;
}

.haijiao-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* 精选漫画区域 */
.haijiao-featured-section {
    padding: 4rem 0;
    background: #fff;
}

.haijiao-manga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.haijiao-manga-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.haijiao-manga-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.haijiao-card-image-wrapper {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.haijiao-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.haijiao-update-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(102, 126, 234, 0.9);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.haijiao-update-badge.hot-badge {
    background: rgba(245, 87, 108, 0.9);
}

.haijiao-card-content {
    padding: 1.5rem;
}

.haijiao-manga-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #2d3748;
}

.haijiao-manga-description {
    color: #718096;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.haijiao-card-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.haijiao-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.haijiao-views {
    color: #a0aec0;
    font-size: 0.9rem;
    margin-left: auto;
}

/* 分类区域 */
.haijiao-category-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.haijiao-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.haijiao-category-item {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.haijiao-category-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.haijiao-category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.haijiao-category-item:hover .haijiao-category-image {
    transform: scale(1.15);
}

.haijiao-category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 1.5rem;
    color: #fff;
}

.haijiao-category-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.haijiao-category-count {
    font-size: 1rem;
    opacity: 0.9;
}

/* 更新动态区域 */
.haijiao-updates-section {
    padding: 4rem 0;
    background: #fff;
}

.haijiao-updates-list {
    display: grid;
    gap: 1.5rem;
}

.haijiao-update-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.haijiao-update-item:hover {
    background: #edf2f7;
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.haijiao-update-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.haijiao-update-info {
    flex: 1;
}

.haijiao-update-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.haijiao-update-chapter {
    color: #718096;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.haijiao-update-time {
    color: #a0aec0;
    font-size: 0.9rem;
}

/* 排行榜区域 */
.haijiao-rankings-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.haijiao-rankings-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.haijiao-ranking-list {
    display: grid;
    gap: 1.2rem;
}

.haijiao-ranking-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.haijiao-ranking-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.haijiao-rank-number {
    font-size: 2rem;
    font-weight: 800;
    color: #667eea;
    min-width: 50px;
    text-align: center;
}

.rank-position-01 .haijiao-rank-number {
    color: #f5576c;
    font-size: 2.5rem;
}

.rank-position-02 .haijiao-rank-number {
    color: #f093fb;
    font-size: 2.3rem;
}

.rank-position-03 .haijiao-rank-number {
    color: #4facfe;
    font-size: 2.1rem;
}

.haijiao-rank-thumb {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.haijiao-rank-details {
    flex: 1;
}

.haijiao-rank-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.haijiao-rank-stats {
    color: #718096;
    font-size: 1rem;
}

/* 社区互动区域 */
.haijiao-community-section {
    padding: 4rem 0;
    background: #fff;
}

.haijiao-community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.haijiao-community-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.haijiao-community-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.haijiao-community-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.haijiao-community-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
}

.haijiao-community-desc {
    color: #718096;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.haijiao-community-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
}

.haijiao-community-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.5);
}

/* 页脚区域 */
.haijiao-footer-section {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #e2e8f0;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.haijiao-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.haijiao-footer-column {
    padding: 1rem;
}

.haijiao-footer-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.haijiao-footer-heading a {
    color: #e2e8f0;
    text-decoration: none;
}

.haijiao-footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

.haijiao-footer-text {
    line-height: 1.8;
    color: #a0aec0;
}

.haijiao-footer-links {
    list-style: none;
}

.haijiao-footer-links li {
    margin-bottom: 0.8rem;
}

.haijiao-footer-link {
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.haijiao-footer-link:hover {
    color: #fff;
    padding-left: 5px;
}

.haijiao-qr-code {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    margin-top: 1rem;
}

.haijiao-footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 2rem;
    text-align: center;
}

.haijiao-copyright {
    color: #a0aec0;
    font-size: 0.95rem;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 分类页面样式 */
.category-hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    text-align: center;
    color: #fff;
}

.category-page-heading {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.category-page-description {
    font-size: 1.3rem;
    opacity: 0.95;
}

.category-main-section {
    padding: 4rem 0;
    background: #f7fafc;
}

.category-filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-filter-button {
    background: #fff;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-filter-button:hover,
.category-filter-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
}

.category-display-grid {
    display: grid;
    gap: 2rem;
}

.category-manga-item {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-manga-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-manga-thumb-wrapper {
    position: relative;
    width: 200px;
    flex-shrink: 0;
}

.category-manga-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-manga-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.badge-hot {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

.badge-update {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.badge-new {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.badge-daily {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.badge-complete {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.category-manga-details {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.category-manga-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #2d3748;
}

.category-manga-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.category-manga-summary {
    color: #718096;
    line-height: 1.8;
    margin-bottom: 1rem;
    flex: 1;
}

.category-manga-stats {
    display: flex;
    gap: 1.5rem;
    color: #a0aec0;
    font-size: 0.95rem;
}

.stat-views::before {
    content: '📖 ';
}

.stat-chapters::before {
    content: '📚 ';
}

.category-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.pagination-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

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

.pagination-current {
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .haijiao-header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .haijiao-nav-list {
        flex-direction: column;
        gap: 0.5rem;
    }

    .haijiao-banner-title {
        font-size: 2.5rem;
    }

    .haijiao-banner-subtitle {
        font-size: 1.2rem;
    }

    .haijiao-section-title {
        font-size: 1.8rem;
    }

    .haijiao-manga-grid,
    .haijiao-category-grid,
    .haijiao-community-grid {
        grid-template-columns: 1fr;
    }

    .category-manga-item {
        flex-direction: column;
    }

    .category-manga-thumb-wrapper {
        width: 100%;
        height: 250px;
    }
}