/* 人员页面样式 - 橙色系简约风格 */

/* 页面基础样式 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* 页面标题 */
.persons-page-title {
    color: #ff6600;
    font-size: 1.8em;
    margin-bottom: 6px;
    font-weight: 700;
}

.person-subtitle {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* 信息区块通用样式 */
.person-info-section {
    margin: 20px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 20px;
}

/* 区块标题 */
.section-title {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #ff6600;
    border-radius: 2px;
}

/* 统计区域 */
.role-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.role-stat-item {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.role-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #ff6600;
}

.role-icon {
    font-size: 2.2em;
    margin-bottom: 8px;
}

.role-name {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.role-count {
    font-size: 0.95em;
    color: #ff6600;
    font-weight: 600;
}

/* 搜索表单 */
.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.search-input-group {
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, #ff6600, #ff8c40);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.clear-search-btn {
    background: #666;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.clear-search-btn:hover {
    background: #555;
    transform: translateY(-1px);
}

/* 角色筛选 */
.role-filter-container {
    background: #fff9f3;
    border-left: 4px solid #ff6600;
    padding: 15px;
    border-radius: 8px;
}

.role-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.role-filter-label {
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 500;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: #ff6600;
    color: #ff6600;
}

.filter-btn.active {
    background: #ff6600;
    color: #fff;
    border-color: #ff6600;
}

/* 操作按钮区域 */
.action-bar {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.btn-add {
    background: linear-gradient(135deg, #ff6600, #ff8c40);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.btn-export {
    background: #666;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-export:hover {
    background: #555;
    transform: translateY(-1px);
}

/* 人员卡片网格 */
.persons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 人员卡片 */
.person-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.person-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #ff6600;
}

.person-card-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.person-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.person-basic-info {
    flex: 1;
    min-width: 0;
}

.person-name {
    margin: 0;
    font-size: 1.15em;
    color: #333;
    font-weight: 600;
}

.person-tags {
    display: flex;
    gap: 6px;
    margin-top: 5px;
    flex-wrap: wrap;
}

/* 角色标签 */
.role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.role-badge.role-player {
    background: rgba(255, 102, 0, 0.1);
    color: #ff6600;
}

.role-badge.role-coach {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.role-badge.role-referee {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.role-badge.role-leader {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.role-badge.role-doctor {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.role-badge.gender-badge {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.role-badge.age-badge {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

/* 卡片内容 */
.person-card-body {
    padding: 15px;
}

.person-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.detail-item {
    font-size: 0.9em;
    line-height: 1.5;
}

.detail-item strong {
    color: #555;
    margin-right: 4px;
    font-weight: 600;
}

.detail-item.empty {
    color: #999;
}

/* 操作按钮 */
.person-card-actions {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-view {
    background: linear-gradient(135deg, #ff6600, #ff8c40);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.btn-view:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 102, 0, 0.3);
}

.btn-edit {
    background: transparent;
    border: 2px solid #666;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    background: #666;
    color: #fff;
}

.btn-delete {
    background: transparent;
    border: 2px solid #dc3545;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    color: #dc3545;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #dc3545;
    color: #fff;
}

/* 无数据提示 */
.no-data {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.no-data i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
}

.no-data h3 {
    color: #666;
    margin-bottom: 8px;
}

.no-data p {
    color: #999;
}

/* 分页 */
.pagination-container {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 500;
    background: #fff;
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    border-color: #ff6600;
    color: #ff6600;
}

.pagination-btn.active {
    background: #ff6600;
    color: #fff;
    border-color: #ff6600;
}

.pagination-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.pagination-dots {
    padding: 8px 6px;
    color: #999;
}

/* ============================================
   响应式设计 - 移动端优化
   ============================================ */

/* 平板 */
@media (max-width: 768px) {
    .main-container {
        padding: 12px;
    }

    .main-content {
        padding: 15px;
    }

    .persons-page-title {
        font-size: 1.5em;
    }

    .person-info-section {
        margin: 15px 0;
        padding: 15px;
    }

    .section-title {
        font-size: 1.15em;
        margin-bottom: 15px;
    }

    /* 统计卡片 - 平板2-3列 */
    .role-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .role-stat-item {
        padding: 12px 8px;
    }

    .role-icon {
        font-size: 1.8em;
        margin-bottom: 5px;
    }

    .role-name {
        font-size: 0.9em;
    }

    .role-count {
        font-size: 0.85em;
    }

    /* 搜索表单 - 垂直布局 */
    .search-form {
        flex-direction: column;
        gap: 8px;
    }

    .search-btn,
    .clear-search-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* 角色筛选 - 横向滚动 */
    .role-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        gap: 8px;
    }

    .role-filter-label {
        flex-shrink: 0;
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    /* 人员卡片 - 单列 */
    .persons-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .person-card-header {
        padding: 12px;
    }

    .person-avatar {
        width: 50px;
        height: 50px;
    }

    .person-name {
        font-size: 1.05em;
    }

    .person-card-body {
        padding: 12px;
    }

    .person-details {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .person-card-actions {
        padding: 12px;
        gap: 6px;
    }

    /* 分页紧凑 */
    .pagination-btn {
        padding: 6px 10px;
        min-width: 34px;
        font-size: 0.9rem;
    }
}

/* 手机 */
@media (max-width: 480px) {
    .main-container {
        padding: 8px;
    }

    .main-content {
        padding: 12px;
        border-radius: 8px;
    }

    .persons-page-title {
        font-size: 1.3em;
    }

    .person-subtitle {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .person-info-section {
        margin: 12px 0;
        padding: 12px;
        border-radius: 8px;
    }

    .section-title {
        font-size: 1.05em;
        margin-bottom: 12px;
    }

    /* 统计卡片 - 手机2列 */
    .role-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .role-stat-item {
        padding: 10px 6px;
    }

    .role-icon {
        font-size: 1.6em;
        margin-bottom: 3px;
    }

    .role-name {
        font-size: 0.85em;
    }

    .role-count {
        font-size: 0.8em;
    }

    /* 操作按钮 - 全宽 */
    .action-bar {
        flex-direction: column;
        gap: 8px;
    }

    .btn-add,
    .btn-export {
        width: 100%;
        justify-content: center;
    }

    /* 卡片操作按钮 - 紧凑 */
    .person-card-actions {
        flex-wrap: wrap;
    }

    .btn-view,
    .btn-edit,
    .btn-delete {
        flex: 1;
        text-align: center;
        justify-content: center;
        padding: 8px 6px;
    }

    /* 分页简化 */
    .pagination {
        gap: 3px;
    }

    .pagination-btn {
        padding: 6px 8px;
        min-width: 32px;
        font-size: 0.85rem;
    }
}
