* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
#loadListBtn {
    margin-top: 20px;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

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

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.controls {
    text-align: center;
    margin-bottom: 30px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

/* 英雄列表网格 */
.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.hero-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #eee;
}

.hero-info {
    padding: 15px;
    text-align: center;
}

.hero-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.hero-type {
    font-size: 14px;
    color: #7f8c8d;
    background-color: #ecf0f1;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-btn:hover {
    color: #000;
}

/* 详情内容样式 */
.detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.detail-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid #3498db;
}

.detail-title h2 {
    margin-bottom: 5px;
    font-size: 24px;
}

.detail-desc {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.detail-section {
    margin-top: 20px;
}

.detail-section h3 {
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
    padding-left: 10px;
}

.skill-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.skill-item {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    text-align: left;
    cursor: pointer; /* 添加手型光标，提示可点击 */
    transition: background-color 0.2s;
}

.skill-item:hover {
    background-color: #f0f0f0;
}

.skill-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.skill-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    margin-bottom: 0;
}

.skill-name {
    font-weight: bold;
    font-size: 16px;
}

.skill-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.skill-video-container {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    background: #000;
    margin-top: 10px;
}

.skill-video {
    width: 100%;
    display: block;
    max-height: 200px; /* 限制视频高度，避免太占空间 */
    object-fit: cover; /* 保持比例填充 */
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}
