/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 图标基础样式 */
.fas, .fab {
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    font-style: normal;
    display: inline-block;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0f0f1a;
    background-image: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background-color: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2a2a3e;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo h1 {
    color: #ff6b9d;
    font-size: 28px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 i {
    color: #6c5ce7;
}

.tagline {
    color: #a0a0c0;
    font-size: 14px;
}

/* 导航菜单 */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    color: #c0c0e0;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: #6c5ce7;
    color: white;
}

/* 搜索框 */
.search-box {
    display: flex;
    background: #1a1a2e;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid #2a2a3e;
}

.search-box input {
    background: transparent;
    border: none;
    padding: 10px 20px;
    color: white;
    width: 250px;
    outline: none;
}

.search-box button {
    background: #6c5ce7;
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #5b4bd4;
}

/* 用户操作 */
.user-actions {
    display: flex;
    gap: 15px;
}

.btn-login, .btn-register {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-login {
    color: #c0c0e0;
    border: 1px solid #2a2a3e;
}

.btn-register {
    background: #ff6b9d;
    color: white;
}

.btn-login:hover {
    background: #2a2a3e;
    color: white;
}

.btn-register:hover {
    background: #ff4d8d;
}

/* 轮播图 */
.hero-slider {
    position: relative;
    margin: 30px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 40px;
}

.slide-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #ff6b9d;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #c0c0e0;
}

.btn-watch {
    display: inline-block;
    background: #6c5ce7;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-watch:hover {
    background: #5b4bd4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

/* 轮播控制 */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.slider-controls button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s;
}

.slider-controls button:hover {
    background: rgba(108, 92, 231, 0.8);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #6c5ce7;
}

/* 通用区域样式 */
.section {
    margin: 60px 0;
}

.section-title {
    color: white;
    font-size: 28px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #ff6b9d;
}

/* 动漫网格 */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.anime-item {
    background: #1a1a2e;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #2a2a3e;
}

.anime-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: #6c5ce7;
}

.anime-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.anime-info {
    padding: 15px;
}

.anime-title {
    color: white;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anime-meta {
    display: flex;
    justify-content: space-between;
    color: #a0a0c0;
    font-size: 14px;
}

.anime-rating {
    color: #ffd700;
}

/* 分类网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.category-item {
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #c0c0e0;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.category-item:hover {
    background: #6c5ce7;
    color: white;
    border-color: #6c5ce7;
    transform: translateY(-5px);
}

.category-item i {
    font-size: 30px;
    color: #ff6b9d;
}

.category-item:hover i {
    color: white;
}

/* 展示网格 */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.showcase-item {
    background: #1a1a2e;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #2a2a3e;
}

.showcase-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.showcase-content {
    padding: 20px;
}

.showcase-title {
    color: white;
    font-size: 20px;
    margin-bottom: 10px;
}

.showcase-desc {
    color: #a0a0c0;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* 页脚 */
.footer {
    background: #0a0a14;
    border-top: 1px solid #2a2a3e;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section h3 i {
    color: #ff6b9d;
    margin-right: 10px;
}

.footer-section p {
    color: #a0a0c0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #a0a0c0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #6c5ce7;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1a1a2e;
    border-radius: 50%;
    color: #a0a0c0;
    font-size: 18px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #6c5ce7;
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #2a2a3e;
    color: #a0a0c0;
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.baidu-seo {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.baidu-seo span {
    background: #2a2a3e;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .slide-content h2 {
        font-size: 28px;
    }
    
    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 24px;
    }
    
    .main-nav ul {
        gap: 10px;
    }
    
    .main-nav a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .slide img {
        height: 400px;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .user-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-login, .btn-register {
        width: 100%;
        text-align: center;
    }
    
    .slide img {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 20px;
    }
    
    .anime-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
