/* ========================================
   南京东沪网络科技有限公司 - 全站样式重写
   ======================================== */

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    color: #1D2129;
    line-height: 1.6;
    background-color: #F7F8FA;
    font-size: 14px;
}

ul, li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== 头部导航 ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding: 0 20px;
}

header.scrolled {
    background-color: #FFFFFF;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-bottom-color: #F0F2F5;
}

.navbar {
    height: 70px;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #1D2129;
}



/* 导航菜单 - 桌面端显示 */
.nav-links {
    display: none;
    align-items: center;
    gap: 32px;
}

@media (min-width: 992px) {
    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 85%;
        left: 50%;
        transform: translateX(-50%);
        padding: 0;
    }
    
    .nav-links {
        display: flex;
    }
}

.nav-links > li > a {
    font-size: 16px;
    font-weight: 500;
    color: #4E5969;
    padding: 8px 0;
    position: relative;
}

.nav-links > li > a:hover {
    color: #165DFF;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #165DFF;
    transition: width 0.3s ease;
}

.nav-links > li > a:hover::after {
    width: 100%;
}

/* 登录注册模块 */
#_userlogin {
    display: flex;
    align-items: center;
    gap: 16px;
}

#_userlogin li {
    list-style: none;
}

#_userlogin li a {
    font-size: 15px !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    display: inline-block;
}

#_userlogin li:first-child a {
    color: #165DFF;
    border: 1px solid #165DFF;
    background: transparent;
}

#_userlogin li:first-child a:hover {
    background-color: #E8F3FF;
}

#_userlogin li:last-child a {
    background-color: #165DFF;
    color: #FFFFFF !important;
    border: 1px solid #165DFF;
}

#_userlogin li:last-child a:hover {
    background-color: #0E42D2;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

/* ===== 英雄区域 ===== */
.hero {
    padding: 140px 20px 100px;
    background: linear-gradient(135deg, #E8F3FF 0%, #F0F7FF 50%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(22, 93, 255, 0.05);
    filter: blur(60px);
    z-index: 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1D2129;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero p {
    font-size: 16px;
    color: #4E5969;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero p span {
    font-size: 16px !important;
    color: #4E5969;
}

/* ===== 通用按钮 ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    margin-right: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn {
    background-color: #FF7D00;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(255, 125, 0, 0.2);
}

.btn:hover {
    background-color: #E66A00;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 125, 0, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #165DFF;
    border: 1px solid #165DFF !important;
    box-shadow: none;
}

.btn-outline:hover {
    background-color: #E8F3FF;
    transform: translateY(-2px);
    box-shadow: none;
}

/* ===== 通用区块 ===== */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #F7F8FA;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1D2129;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #165DFF, #4080FF);
    border-radius: 2px;
}

/* ===== 漫画列表区域 ===== */
.comic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.comic-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    cursor: pointer;
}

.comic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(22, 93, 255, 0.12);
}

.comic-cover {
    position: relative;
    height: 340px;
    overflow: hidden;
}

.comic-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.comic-card:hover .comic-cover img {
    transform: scale(1.08);
}

.comic-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background-color: #FF7D00;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(255, 125, 0, 0.3);
}

.comic-info {
    padding: 20px;
}

.comic-title {
    font-size: 18px;
    font-weight: 600;
    color: #1D2129;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.comic-card:hover .comic-title {
    color: #165DFF;
}

.comic-author {
    font-size: 14px;
    color: #86909C;
    margin-bottom: 8px;
}

.comic-rating {
    color: #FFB900;
    font-size: 14px;
    letter-spacing: 1px;
}

/* ===== 页脚 ===== */
footer {
    background-color: #1D2129;
    color: #FFFFFF;
    padding: 50px 20px 30px;
}

.footer-bottom,
.footer-bottom2 {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 14px;
    color: #86909C;
    line-height: 2;
}

.footer-bottom {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-bottom p {
    margin-top: 8px;
}

.footer-bottom2 a {
    color: #FFFFFF !important;
    transition: color 0.3s ease;
}

.footer-bottom2 a:hover {
    color: #4080FF !important;
}

/* ===== 滚动动画 ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 响应式适配 ===== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .section-title h2 {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p,
    .hero p span {
        font-size: 14px !important;
    }
    
    .hero .btn {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .comic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .comic-cover {
        height: 240px;
    }
    
    .section {
        padding: 50px 20px;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .section-title h2 {
        font-size: 22px;
    }
    
    .footer-bottom,
    .footer-bottom2 {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .comic-grid {
        grid-template-columns: 1fr;
    }
    
    .comic-cover {
        height: 300px;
    }
}