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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #1a0000, #2d0a0a, #1a0000);
    overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(139, 0, 0, 0.5);
    border-bottom: 1px solid rgba(220, 20, 60, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #dc143c;
    text-shadow: 0 0 15px rgba(220, 20, 60, 0.8), 0 0 30px rgba(220, 20, 60, 0.4);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: #dc143c;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.6);
}

/* Hero区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 20px 50px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(139, 0, 0, 0.3), transparent 70%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="50" opacity="0.05">🕰️</text></svg>') repeat;
    animation: float 20s linear infinite;
}

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

.blood-drip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(139, 0, 0, 0.5), transparent);
    animation: drip 3s ease-in-out infinite;
}

@keyframes drip {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 5rem;
    font-weight: bold;
    color: #dc143c;
    text-shadow: 0 0 20px rgba(220, 20, 60, 0.8), 0 0 40px rgba(220, 20, 60, 0.5), 0 5px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.hero-subtitle {
    font-size: 2rem;
    color: #b8b8d1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: #9999aa;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #dc143c, #8b0000);
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(220, 20, 60, 0.7);
}

/* 通用区域样式 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #dc143c;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(220, 20, 60, 0.5);
}

.section-desc {
    text-align: center;
    font-size: 1.1rem;
    color: #b8b8d1;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 游戏介绍 */
.about {
    padding: 100px 20px;
    background: rgba(0, 0, 0, 0.4);
}

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

.about-card {
    background: rgba(139, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 20, 60, 0.3);
    transition: all 0.3s;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: rgba(220, 20, 60, 0.6);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
    background: rgba(139, 0, 0, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    color: #dc143c;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: #b8b8d1;
    line-height: 1.8;
}

/* 角色阵营 */
.roles {
    padding: 100px 20px;
}

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

.role-card {
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid;
    transition: all 0.3s;
}

.role-card.townsfolk {
    background: rgba(65, 105, 225, 0.1);
    border-color: rgba(65, 105, 225, 0.4);
}

.role-card.outsider {
    background: rgba(128, 128, 128, 0.1);
    border-color: rgba(128, 128, 128, 0.4);
}

.role-card.minion {
    background: rgba(139, 0, 0, 0.1);
    border-color: rgba(220, 20, 60, 0.4);
}

.role-card.demon {
    background: rgba(75, 0, 130, 0.1);
    border-color: rgba(138, 43, 226, 0.4);
}

.role-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.4);
}

.role-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.role-card h3 {
    color: #dc143c;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.role-card p {
    color: #b8b8d1;
    line-height: 1.6;
}

/* 特色功能 */
.features {
    padding: 100px 20px;
    background: rgba(0, 0, 0, 0.4);
}

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

.feature-item {
    background: rgba(139, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 20, 60, 0.2);
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 20, 60, 0.5);
    background: rgba(139, 0, 0, 0.2);
    box-shadow: 0 10px 25px rgba(220, 20, 60, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: #dc143c;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.feature-item p {
    color: #9999aa;
    line-height: 1.6;
}

/* 下载区域 */
.download {
    padding: 100px 20px;
    text-align: center;
}

.download-subtitle {
    font-size: 1.3rem;
    color: #b8b8d1;
    margin-bottom: 3rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2.5rem;
    background: rgba(139, 0, 0, 0.2);
    border: 2px solid rgba(220, 20, 60, 0.4);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.download-btn:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 20, 60, 0.7);
    background: rgba(139, 0, 0, 0.3);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4);
}

.btn-icon {
    font-size: 2.5rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-label {
    font-size: 0.9rem;
    color: #9999aa;
}

.btn-platform {
    font-size: 1.2rem;
    color: #dc143c;
    font-weight: 600;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(220, 20, 60, 0.3);
}

.footer p {
    color: #9999aa;
    margin: 0.5rem 0;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #b8b8d1;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #dc143c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .about-content,
    .roles-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 0.5rem;
        font-size: 0.8rem;
    }
}

