/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* 导航栏 */
.navbar {
    background: #2c3e50;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    color: #ecf0f1;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a.active {
    color: #3498db;
    border-bottom: 2px solid #3498db;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        background: #2c3e50;
        width: 100%;
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }
}

/* 首页横幅 */
.banner {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
}

.banner-text blockquote {
    font-size: 1.8rem;
    font-style: italic;
}

/* 快速入口 */
.quick-access {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.card {
    background: #f5f6fa;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.character-preview {
    margin: 1rem 0;
    text-align: center;
}

.character-preview img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3498db;
}

/* 页脚 */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* 新增通用样式 */
details {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
}

details summary {
    font-weight: bold;
    color: #3498db;
}

blockquote {
    background: #1a9ebe;
    border-left: 4px solid #94c743;
    padding: 1rem;
    margin: 1rem 0;
}

@media (max-width: 480px) {
    /* 移动端表格优化 */
    .comparison-table {
        display: block;
        overflow-x: auto;
    }
    
    /* 作者卡片适配 */
    .author-card {
        flex-direction: column;
        text-align: center;
    }
}