* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary-color: #2c2c2c;
    --secondary-color: #6c757d;
    --accent-color: #8a7f8d;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --radius: 8px;
}

body {
    background-color: var(--white);
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 导航栏样式 */
nav {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* 页面内容样式 */
.page {
    display: none;
    padding: 3rem 0;
    min-height: 80vh;
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 首页样式 */
.hero {
    text-align: center;
    padding: 4rem 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.9) 100%);
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.icon-circle:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.icon-circle i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* 设定页面样式 */
.character-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.character-sidebar {
    flex: 0 0 250px;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.character-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.character-item:hover {
    background-color: var(--light-color);
}

.character-item.active {
    background-color: var(--light-color);
    border-left: 3px solid var(--accent-color);
}

.character-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--accent-color);
    overflow: hidden;
}

.character-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-details {
    flex: 1;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.character-content {
    display: none;
}

.character-content.active {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.character-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.character-image {
    width: 200px;
    height: 200px;
    border-radius: var(--radius);
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    overflow: hidden;
}

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

.character-info {
    flex: 1;
}

.character-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.character-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-color);
}

.stat-label {
    color: var(--secondary-color);
}

.stat-value {
    font-weight: 500;
}

.character-description {
    margin-bottom: 2rem;
}

.character-description h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.ability-chart {
    margin-top: 2rem;
}

.ability-chart h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* 进度条样式 - 移动端优化 */
.progress-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-label {
    width: 80px;
    font-weight: 500;
    color: var(--primary-color);
    flex-shrink: 0;
}

.progress-value {
    width: 60px;
    text-align: right;
    color: var(--secondary-color);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.progress-bar {
    flex: 1;
    min-width: 0;
    height: 10px;
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 10px;
    transition: width 1s ease;
    width: 0%;
}

/* 世界观页面样式 */
.worldview-container {
    text-align: center;
    padding: 4rem 0;
}

.worldview-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.worldview-container p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.redirect-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.redirect-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .contact-icons {
        gap: 1.5rem;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .icon-circle i {
        font-size: 1.5rem;
    }
    
    .character-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .character-sidebar {
        flex: 1;
        width: 100%;
    }
    
    .character-header {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .character-image {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        height: 200px;
    }
    
    .character-stats {
        grid-template-columns: 1fr;
    }
    
    .progress-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .progress-label {
        width: 70px;
        font-size: 0.9rem;
    }
    
    .progress-value {
        width: 50px;
        font-size: 0.85rem;
        margin-left: auto;
    }
    
    .progress-bar {
        flex-basis: 100%;
        order: 3;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 2.5rem 0;
    }
    
    .page {
        padding: 1.5rem 0;
    }
    
    .character-details {
        padding: 1.5rem;
    }
    
    .character-info h2 {
        font-size: 1.7rem;
    }
    
    .character-description h3, .ability-chart h3 {
        font-size: 1.3rem;
    }
    
    .contact-icons {
        gap: 1rem;
    }
    
    .icon-circle {
        width: 50px;
        height: 50px;
    }
    
    .icon-circle i {
        font-size: 1.3rem;
    }
    
    .worldview-container h2 {
        font-size: 2rem;
    }
    
    .worldview-container p {
        font-size: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
}