
/* 全局重置与变量 */
:root {
    --primary-color: #ff7eb3; /* 樱花粉 */
    --secondary-color: #7afcff; /* 科技蓝 */
    --accent-color: #feff9c; /* 活力黄 */
    --bg-dark: #1a1a2e;
    --bg-card: #16213e;
    --text-light: #ffffff;
    --text-dim: #a9a9a9;
    --gradient-main: linear-gradient(135deg, #ff7eb3 0%, #ff758c 100%);
    --shadow-glow: 0 0 20px rgba(255, 126, 179, 0.4);
}

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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* 顶部导航 */
.top-nav {
    background-color: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu {
    display: flex;
    gap: 30px;
}

.menu a {
    font-weight: 500;
    position: relative;
}

.menu a:hover, .menu a.active {
    color: var(--primary-color);
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.menu a:hover::after, .menu a.active::after {
    width: 100%;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-icon {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.btn-login {
    background: var(--gradient-main);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
}

.btn-login:hover {
    transform: scale(1.05);
}

/* 英雄横幅 */
.hero-banner {
    padding: 80px 0;
    background: radial-gradient(circle at top right, #2a2a4e 0%, var(--bg-dark) 60%);
    position: relative;
    overflow: hidden;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.glitch-text {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    position: relative;
    color: white;
    text-shadow: 2px 2px var(--primary-color), -2px -2px var(--secondary-color);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 30px;
}

.cta-group {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: var(--gradient-main);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    color: var(--primary-color);
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 126, 179, 0.6);
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: float 6s ease-in-out infinite;
}

.card-main {
    width: 300px;
    height: 400px;
    right: 50px;
    top: 0;
    z-index: 2;
}

.card-small {
    width: 150px;
    height: 150px;
    left: 20px;
    bottom: 50px;
    z-index: 3;
    animation-delay: 1s;
}

.floating-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* 热门推荐 */
.featured-section {
    padding: 60px 0;
}

.section-title {
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title h2 {
    font-size: 2rem;
    color: white;
}

.title-decoration {
    width: 50px;
    height: 4px;
    background: var(--gradient-main);
    margin-top: 10px;
    border-radius: 2px;
}

.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.anime-card {
    background-color: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.anime-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.card-image {
    position: relative;
    height: 350px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.score {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: var(--accent-color);
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: bold;
    border: 1px solid var(--accent-color);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tags {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 3px;
}

.update-info {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

/* 角色投票 */
.character-vote {
    padding: 60px 0;
    background-color: #1f1f3a;
}

.vote-header {
    text-align: center;
    margin-bottom: 40px;
}

.vote-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.vote-header p {
    color: var(--text-dim);
}

.vote-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.vote-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 300px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.vote-item.rank-1 { border-color: gold; box-shadow: 0 0 15px rgba(255, 215, 0, 0.2); }
.vote-item.rank-2 { border-color: silver; }
.vote-item.rank-3 { border-color: #cd7f32; }

.rank-badge {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.vote-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.vote-info {
    flex: 1;
}

.vote-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.votes {
    font-size: 0.8rem;
    color: var(--primary-color);
}

.btn-vote {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-vote:hover {
    background: var(--primary-color);
    color: white;
}

/* 页脚 */
.site-footer {
    background-color: #111122;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-left h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.footer-left p {
    color: var(--text-dim);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 0.9rem;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    color: #555;
    font-size: 0.8rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }

    .menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero-visual {
        width: 100%;
        height: 300px;
    }

    .card-main {
        right: 50%;
        transform: translateX(50%);
    }

    .cta-group {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}
