/* 将军列表页面样式 */

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

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo .site-title {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #fff;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* 页面标题区域 */
.page-header {
    background: linear-gradient(135deg, #c41e3a, #8b0000);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-header p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #ffd700;
}

/* 搜索框 */
.search-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.search-box input {
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 25px;
    width: 300px;
    outline: none;
}

.search-box button {
    padding: 12px 25px;
    background: #ffd700;
    color: #c41e3a;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* 分类导航 */
.category-nav {
    background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
}

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 25px;
    background: #fff;
    color: #c41e3a;
    border: 2px solid #c41e3a;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: #c41e3a;
    color: #fff;
    transform: translateY(-2px);
}

/* 将军展示区域 */
.generals-showcase {
    padding: 50px 0;
    background: #fff;
}

.generals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.general-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.general-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #c41e3a;
}

.general-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.general-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    background: #f8f9fa;
}

/* 无照片将军的头像样式 */
.general-avatar {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c41e3a, #8b0000);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.avatar-text {
    font-size: 4rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    z-index: 2;
    position: relative;
}

.avatar-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,215,0,0.2)" stroke-width="2"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,215,0,0.1)" stroke-width="1"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,215,0,0.1)" stroke-width="1"/></svg>') center/cover;
    opacity: 0.3;
}

.no-photo .general-avatar {
    transition: all 0.3s ease;
}

.no-photo:hover .general-avatar {
    background: linear-gradient(135deg, #8b0000, #c41e3a);
    transform: scale(1.05);
}

.no-photo:hover .avatar-text {
    color: #fff;
    transform: scale(1.1);
}

.general-card:hover .general-image img {
    transform: scale(1.1);
}

.rank-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(196, 30, 58, 0.9);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.general-info {
    padding: 20px;
    text-align: center;
}

.general-info h3 {
    font-size: 1.3rem;
    color: #c41e3a;
    margin-bottom: 8px;
    font-weight: bold;
}

.general-title {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}

.general-desc {
    color: #666;
    line-height: 1.5;
    font-size: 14px;
}

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.2rem;
}

/* 统计信息 */
.statistics {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 50px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #c41e3a;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: bold;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
}

.footer-content a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .search-box {
        flex-direction: column;
        align-items: center;
    }
    
    .search-box input {
        width: 100%;
        max-width: 300px;
        margin-bottom: 10px;
    }
    
    .category-buttons {
        justify-content: center;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .generals-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .generals-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
