* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    margin-right: 20px;
    color: #333;
}

.nav-path {
    font-size: 14px;
    color: #999;
}

.page-title {
    font-size: 28px;
    margin: 20px 0;
    color: #333;
    text-align: left;
    font-weight: bold;
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.hero-types {
    display: flex;
    gap: 15px;
}

.type-item {
    cursor: pointer;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 16px;
}

.type-item:hover, .type-item.active {
    background-color: #3388ff;
    color: #fff;
}

.search-box {
    display: flex;
}

#hero-search {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 3px 0 0 3px;
    width: 200px;
    font-size: 14px;
}

#search-btn {
    padding: 8px 15px;
    background-color: #3388ff;
    color: white;
    border: none;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    font-size: 14px;
}

#search-btn:hover {
    background-color: #2277ee;
}

.heroes-container {
    padding: 20px 0;
}

#heroes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    border: 2px solid;
    border-color: #3388ff; /* 默认边框颜色 */
    border-radius: 4px;
    overflow: hidden;
    padding-bottom: 0;
    margin-bottom: 10px;
    background-color: #fff;
}

/* 根据英雄类型设置不同的边框颜色 */
.hero-item[data-type="warrior"] {
    border-color: #f1a93a; /* 战士-橙色 */
}
.hero-item[data-type="mage"] {
    border-color: #3388ff; /* 法师-蓝色 */
}
.hero-item[data-type="assassin"] {
    border-color: #ff3366; /* 刺客-红色 */
}
.hero-item[data-type="tank"] {
    border-color: #66cc99; /* 坦克-绿色 */
}
.hero-item[data-type="shooter"] {
    border-color: #cc33ff; /* 射手-紫色 */
}
.hero-item[data-type="support"] {
    border-color: #33cccc; /* 辅助-青色 */
}

.hero-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* 英雄名称容器 */
.hero-name-container {
    background-color: #f5f5f5;
    padding: 5px 0;
    width: 100%;
}

/* 英雄名称样式 */
.hero-name {
    margin: 0;
    font-size: 13px;
    color: #333;
    font-weight: normal;
    line-height: 1.4;
}

footer {
    margin-top: 30px;
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #999;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .hero-types {
        flex-wrap: wrap;
    }
    
    #heroes-list {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 10px;
    }
    
    .hero-name {
        font-size: 12px;
    }
    
    .hero-type {
        font-size: 10px;
    }
}

.hero-count {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

/* 英雄类型样式 - 隐藏，因为官网不显示 */
.hero-type {
    display: none;
} 