/* 英雄详情弹窗样式 */
.hero-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--secondary-color);
    max-width: 900px;
    margin: 40px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s;
    position: relative;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2 {
    font-size: 28px;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 30px;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 0;
    min-height: 400px;
}

/* 标签页样式 */
.strategy-tabs {
    display: flex;
    background-color: var(--highlight-color);
    border-bottom: 1px solid var(--accent-color);
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    color: var(--text-color);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.tab-btn:hover {
    background-color: rgba(200, 170, 110, 0.1);
}

.tab-btn.active {
    color: var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    background-color: var(--secondary-color);
}

/* 标签内容区域 */
.tab-content {
    display: none;
    padding: 30px;
    min-height: 300px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 内容样式 */
.tab-content h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--accent-color);
    border-bottom: 1px solid rgba(200, 170, 110, 0.3);
    padding-bottom: 10px;
}

.tab-content h4 {
    font-size: 18px;
    margin: 20px 0 10px 0;
    color: var(--accent-color);
}

.tab-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.tab-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.tab-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.tab-content strong {
    color: var(--accent-color);
}

.tab-content .item-combo {
    background-color: var(--highlight-color);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-color);
}

.tab-content .combo-title {
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.tab-content .combo-desc {
    color: var(--text-color);
}

.placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-style: italic;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px auto;
        width: 95%;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-header h2 {
        font-size: 22px;
    }

    .tab-btn {
        padding: 12px 15px;
        font-size: 14px;
        min-width: 100px;
    }

    .tab-content {
        padding: 20px;
    }

    .tab-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .strategy-tabs {
        flex-direction: column;
    }

    .tab-btn {
        flex: none;
        width: 100%;
        text-align: left;
        padding: 12px 20px;
    }

    .modal-body {
        min-height: 300px;
    }
}