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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #2d1b69 0%, #11998e 100%);
    padding: 2rem 1.5rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.logo-section {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.logo-section a {
    text-decoration: none;
    color: inherit;
}

.logo-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.logo-section span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.main-nav ul {
    list-style: none;
}

.main-nav li {
    margin-bottom: 0.5rem;
}

.nav-item {
    display: block;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item:hover,
.nav-item.active {
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.3), rgba(254, 202, 87, 0.3));
    color: #fff;
    transform: translateX(8px);
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-item:hover::before,
.nav-item.active::before {
    transform: scaleY(1);
}

.search-section {
    margin: 2rem 0;
}

.search-input {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.search-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.social-links {
    display: flex;
    justify-content: space-around;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 0;
}

.top-header {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

.header-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.current-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.user-greeting {
    color: #feca57;
    font-weight: bold;
}

.hero-banner {
    position: relative;
    height: 60vh;
    overflow: hidden;
    margin-bottom: 3rem;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 4rem 3rem 3rem;
    color: #fff;
}

.banner-overlay h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-overlay p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.banner-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.banner-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
}

.prev-btn,
.next-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(255, 107, 107, 0.6);
    transform: scale(1.1);
}

.banner-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ff6b6b;
    transform: scale(1.3);
}

.content-grid {
    padding: 0 2rem 3rem;
}

.grid-section {
    margin-bottom: 4rem;
}

.grid-section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #feca57;
    position: relative;
    padding-left: 1rem;
}

.grid-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border-radius: 2px;
}

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

.anime-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.anime-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3);
}

.anime-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

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

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

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: #fff;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.card-content {
    padding: 1.5rem;
}

.card-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.card-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
       font-size: 0.9rem;
}

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

.rating {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.episodes {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.update-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.update-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.update-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.update-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.update-item img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.update-info {
    flex: 1;
}

.update-info h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.update-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.update-time {
    color: #feca57;
    font-size: 0.8rem;
    font-weight: bold;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.2), rgba(254, 202, 87, 0.2));
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tag:hover {
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.4), rgba(254, 202, 87, 0.4));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

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

.rank-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.rank-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.rank-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.rank-info {
    flex: 1;
}

.rank-info h6 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: #fff;
}

.rank-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.footer {
    background: linear-gradient(135deg, #0f0f23, #1a1a2e);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

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

.footer-section h4 {
    color: #feca57;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-links,
.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a,
.footer-tags a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-tags a:hover {
    color: #feca57;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: #feca57;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .banner-overlay h2 {
        font-size: 2.5rem;
    }
    
    .anime-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 1rem;
    }
    
    .hero-banner {
        height: 50vh;
    }
    
    .banner-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .banner-overlay h2 {
        font-size: 2rem;
    }
    
    .banner-overlay p {
        font-size: 1rem;
    }
    
    .content-grid {
        padding: 0 1rem 2rem;
    }
    
    .anime-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .update-list {
        grid-template-columns: 1fr;
    }
    
    .category-tags {
        gap: 0.5rem;
    }
    
    .tag {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }
    
    .hero-banner {
        height: 40vh;
    }
    
    .banner-overlay h2 {
        font-size: 1.5rem;
    }
    
    .anime-grid {
        grid-template-columns: 1fr;
    }
    
    .update-item a {
        flex-direction: column;
        text-align: center;
    }
    
    .update-item img {
        width: 100px;
        height: 100px;
    }
    
    .banner-controls {
        display: none;
    }
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #feca57, #ff6b6b);
}

