/* 导入公共样式 */
@import url('index.css');

/* 角色页面专属样式 */
.banner {
    height: 400px;
}

.main-content {
    padding: 50px;
}

/* 角色部分通用样式 */
.character-section {
    margin-bottom: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.character-section h2 {
    font-size: 36px;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.character-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #e6c068;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* 职业系统样式 */
.card-container {
    display: block;
    overflow: hidden;
}

.character-card {
    width: 23%;
    float: left;
    margin: 0 1%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.character-card:hover {
    transform: translateY(-10px);
}

.character-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.role-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.skill-list li::before {
    content: '•';
    color: #e6c068;
    position: absolute;
    left: 0;
    top: 0;
}

/* 属性系统样式 */
.attribute-container {
    padding: 20px;
}

.attribute-group {
    margin-bottom: 30px;
    overflow: hidden;
}

.attribute-item {
    width: 48%;
    float: left;
    margin: 1%;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.attribute-item img {
    width: 50px;
    height: 50px;
    float: left;
    margin-right: 20px;
}

.attribute-info {
    overflow: hidden;
}

.attribute-info h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.attribute-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.attribute-bar {
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.health { background: #ff4d4d; width: 90%; }
.stamina { background: #4dff4d; width: 80%; }
.hunger { background: #ffd700; width: 70%; }
.thirst { background: #4d4dff; width: 75%; }
.temperature { background: #ff8c00; width: 85%; }
.immunity { background: #9932cc; width: 65%; }

/* 技能树系统样式 */
.skill-tree-container {
    display: block;
    overflow: hidden;
}

.skill-category {
    width: 23%;
    float: left;
    margin: 0 1%;
    text-align: center;
}

.skill-category h3 {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.skill-tree {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.skill-tree img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.skill-info ul {
    list-style: none;
    text-align: left;
    padding: 0 10px;
}

.skill-info li {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.skill-info li::before {
    content: '→';
    color: #e6c068;
    position: absolute;
    left: 0;
    top: 0;
}

/* 装备系统样式 */
.equipment-container {
    display: block;
    overflow: hidden;
}

.equipment-category {
    width: 48%;
    float: left;
    margin: 1%;
}

.equipment-category h3 {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: center;
}

.equipment-grid {
    display: block;
    overflow: hidden;
}

.equipment-item {
    width: 48%;
    float: left;
    margin: 1%;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.equipment-item:hover {
    transform: translateY(-5px);
}

.equipment-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.equipment-item h4 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.equipment-item p {
    font-size: 14px;
    color: #666;
}

/* 响应式布局 */
@media screen and (max-width: 1200px) {
    .main-content {
        width: 95%;
        padding: 20px;
    }

    .character-card {
        width: 48%;
        margin: 1%;
    }

    .skill-category {
        width: 48%;
        margin: 1%;
        margin-bottom: 20px;
    }

    .equipment-category {
        width: 98%;
        margin: 1%;
    }
}

@media screen and (max-width: 768px) {
    .character-card {
        width: 98%;
        margin: 1%;
        margin-bottom: 20px;
    }

    .attribute-item {
        width: 98%;
        margin: 1%;
        margin-bottom: 20px;
    }

    .skill-category {
        width: 98%;
        margin: 1%;
        margin-bottom: 20px;
    }

    .equipment-item {
        width: 98%;
        margin: 1%;
        margin-bottom: 20px;
    }
} 