/* ==================== 特长系统页面专属样式 ==================== */
/* 荣耀战魂信息站 - 特长系统页面样式 */
/* 创建日期：2025-10-24 */

/* ==================== 搜索容器样式 ==================== */
.search-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(40, 35, 30, 0.9);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
}

.search-input {
    width: calc(100% - 120px);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: rgba(20, 15, 10, 0.8);
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.clear-search-btn {
    padding: 0.75rem 1.5rem;
    margin-left: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    color: var(--gold-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.clear-search-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.search-results {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==================== 搜索高亮样式 ==================== */
.feat-table.search-highlight {
    animation: highlightPulse 1.5s ease-in-out;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    }
}

.feat-table.search-hidden {
    display: none;
}

/* ==================== 特长容器样式 ==================== */
.feat-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feat-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(40, 35, 30, 0.9);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-gold);
}

.feat-table th,
.feat-table td {
    padding: 1rem;
    border: 1px solid var(--border-gold);
}

.feat-table th {
    background: rgba(255,215,0,0.1);
    color: var(--gold-primary);
}

.feat-name {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.feat-name img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.feat-rating {
    color: var(--gold-primary);
    font-weight: bold;
    text-align: center;
}

.feat-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.feat-reason {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.85rem;
}

.feat-heroes {
    color: var(--gold-secondary);
    font-size: 0.85rem;
}

/* ==================== 特长等级标题 ==================== */
.feat-tier-title {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gold-primary);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-gold);
    padding-bottom: 0.5rem;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .feat-container {
        grid-template-columns: 1fr;
    }
    
    .feat-name {
        flex-direction: column;
        text-align: center;
    }
}
