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

/* 基础样式 */
.hjdl-main-body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    overflow-x: hidden;
}

.hjdl-container-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航 */
.hjdl-header-nav {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.hjdl-header-nav .hjdl-container-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
}

.hjdl-logo-section {
    flex-shrink: 0;
}

.hjdl-site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.hjdl-home-link, .hjdl-brand-link {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.hjdl-home-link:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255,255,255,0.6);
}

.hjdl-main-navigation {
    display: flex;
    gap: 30px;
    align-items: center;
}

.hjdl-nav-item {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    position: relative;
}

.hjdl-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.hjdl-nav-item:hover, .hjdl-nav-item.hjdl-active {
    background: rgba(255,255,255,0.15);
}

.hjdl-nav-item:hover::after {
    width: 80%;
}

.hjdl-user-actions {
    display: flex;
    gap: 12px;
}

.hjdl-btn-login, .hjdl-btn-register {
    padding: 10px 24px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hjdl-btn-login {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.hjdl-btn-login:hover {
    background: #ffffff;
    color: #1e3c72;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}

.hjdl-btn-register {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.hjdl-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

/* 主视觉横幅 */
.hjdl-hero-banner {
    background: linear-gradient(135deg, rgba(30,60,114,0.9) 0%, rgba(42,82,152,0.9) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%231e3c72" width="1200" height="600"/><circle cx="200" cy="150" r="100" fill="%232a5298" opacity="0.3"/><circle cx="900" cy="400" r="150" fill="%23667eea" opacity="0.2"/><circle cx="600" cy="250" r="80" fill="%23764ba2" opacity="0.25"/></svg>');
    background-size: cover;
    background-position: center;
    min-height: 550px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hjdl-banner-overlay {
    width: 100%;
    position: relative;
    z-index: 1;
}

.hjdl-hero-content {
    text-align: center;
    color: #ffffff;
    padding: 60px 20px;
}

.hjdl-hero-title {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: hjdl-fade-in-up 0.8s ease;
}

.hjdl-hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 400;
    animation: hjdl-fade-in-up 1s ease;
}

.hjdl-hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: hjdl-fade-in-up 1.2s ease;
}

.hjdl-btn-primary, .hjdl-btn-secondary {
    padding: 16px 40px;
    border: none;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hjdl-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.hjdl-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102,126,234,0.4);
}

.hjdl-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.hjdl-btn-secondary:hover {
    background: #ffffff;
    color: #1e3c72;
    transform: translateY(-3px);
}

/* 动画 */
@keyframes hjdl-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 通用区块样式 */
.hjdl-popular-section, .hjdl-update-section, .hjdl-category-section,
.hjdl-ranking-section, .hjdl-about-section {
    padding: 80px 0;
}

.hjdl-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.hjdl-section-title {
    font-size: 38px;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

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

.hjdl-section-desc {
    font-size: 17px;
    color: #5a6c7d;
    margin-top: 20px;
}

/* 热门漫画卡片 */
.hjdl-manga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.hjdl-manga-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hjdl-manga-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.hjdl-card-image {
    position: relative;
    overflow: hidden;
    height: 360px;
}

.hjdl-manga-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hjdl-manga-card:hover .hjdl-manga-cover {
    transform: scale(1.1);
}

.hjdl-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(245,87,108,0.4);
}

.hjdl-badge-new {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 15px rgba(79,172,254,0.4);
}

.hjdl-card-info {
    padding: 20px;
}

.hjdl-manga-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.hjdl-manga-desc {
    font-size: 14px;
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hjdl-manga-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hjdl-tag {
    background: linear-gradient(135deg, #e0e7ff 0%, #cfd9ff 100%);
    color: #4c51bf;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.hjdl-views {
    color: #8b95a5;
    font-size: 13px;
    margin-left: auto;
}

/* 最新更新列表 */
.hjdl-update-section {
    background: #ffffff;
}

.hjdl-update-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.hjdl-update-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.hjdl-update-item:hover {
    background: #ffffff;
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(102,126,234,0.15);
    transform: translateX(5px);
}

.hjdl-update-thumb {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.hjdl-update-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hjdl-update-title {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
}

.hjdl-update-chapter {
    font-size: 14px;
    color: #5a6c7d;
    margin-bottom: 8px;
}

.hjdl-update-time {
    font-size: 13px;
    color: #8b95a5;
}

/* 分类卡片 */
.hjdl-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.hjdl-category-card {
    position: relative;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hjdl-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.hjdl-cat-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hjdl-category-card:hover .hjdl-cat-bg {
    transform: scale(1.15);
}

.hjdl-cat-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    color: #ffffff;
}

.hjdl-cat-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.hjdl-cat-count {
    font-size: 14px;
    opacity: 0.9;
}

/* 排行榜 */
.hjdl-ranking-section {
    background: #ffffff;
}

.hjdl-ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.hjdl-tab-btn {
    padding: 12px 32px;
    border: 2px solid #e2e8f0;
    background: transparent;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    color: #5a6c7d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hjdl-tab-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.hjdl-tab-btn.hjdl-tab-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
}

.hjdl-ranking-list {
    max-width: 800px;
    margin: 0 auto;
}

.hjdl-rank-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 16px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hjdl-rank-item:hover {
    background: #ffffff;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    transform: translateX(8px);
}

.hjdl-rank-number {
    font-size: 24px;
    font-weight: 700;
    color: #8b95a5;
    min-width: 40px;
    text-align: center;
}

.hjdl-rank-gold {
    color: #fbbf24;
    font-size: 32px;
}

.hjdl-rank-silver {
    color: #9ca3af;
    font-size: 30px;
}

.hjdl-rank-bronze {
    color: #cd7f32;
    font-size: 28px;
}

.hjdl-rank-cover {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.hjdl-rank-info {
    flex: 1;
}

.hjdl-rank-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
}

.hjdl-rank-author {
    font-size: 14px;
    color: #5a6c7d;
    margin-bottom: 8px;
}

.hjdl-rank-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #8b95a5;
}

/* 关于我们 */
.hjdl-about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hjdl-about-text h1 {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
}

.hjdl-about-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #5a6c7d;
    margin-bottom: 20px;
}

.hjdl-about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.hjdl-feature-item {
    text-align: center;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.hjdl-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.hjdl-feature-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.hjdl-feature-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.hjdl-feature-item p {
    font-size: 14px;
    color: #5a6c7d;
}

.hjdl-about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.hjdl-about-pic {
    width: 100%;
    height: auto;
    display: block;
}

/* 底部 */
.hjdl-footer-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    padding: 60px 0 30px;
}

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

.hjdl-footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.hjdl-footer-links li {
    margin-bottom: 12px;
}

.hjdl-footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.hjdl-footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.hjdl-social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hjdl-social-btn {
    padding: 8px 18px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.hjdl-social-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.hjdl-footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.hjdl-copyright {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hjdl-header-nav .hjdl-container-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    .hjdl-main-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .hjdl-hero-title {
        font-size: 36px;
    }

    .hjdl-hero-subtitle {
        font-size: 16px;
    }

    .hjdl-manga-grid, .hjdl-category-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .hjdl-about-content {
        grid-template-columns: 1fr;
    }

    .hjdl-about-features {
        grid-template-columns: 1fr;
    }
}