body {
    background: #f8f9fa;
}

/* 顶部横幅 */
.hero-section {
    height: 300px;
    background: url('https://images.pexels.com/photos/1640777/pexels-photo-1640777.jpeg?auto=compress&cs=tinysrgb&w=1920') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    text-align: center;
    color: white;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text h2 {
    font-size: 24px;
    font-weight: normal;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 主容器 */
.container {
    margin: 0 auto;
    background: rgb(246, 251, 251);
    min-height: calc(100vh - 200px);
}

/* 人物卡片网格 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.person-card {
    text-decoration: none;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.person-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.person-image {
    margin: 10px auto;
    width: 85%;
    height: 300px;
    overflow: hidden;
}
.person-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s;
}

.person-card:hover .person-image img {
    transform: scale(1.05);
}

.person-info {
    padding: 20px;
    text-align: center;
    padding-top: 0;
}

.person-info h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    margin-bottom: 8px;
    color: #333;
}

.title {
    font-size: 14px;
    color: #666;
    margin: 2px 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.member-id {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.more-btn {
    padding: 8px 20px;
    background: transparent;
    color: #d4373a;
    border: 1px solid #d4373a;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.more-btn:hover {
    background: #d4373a;
    color: white;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 50px;
}

.page-btn,
.page-num {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 40px;
    text-align: center;
}

.page-num.active {
    background: #d4373a;
    color: white;
    border-color: #d4373a;
}

.page-btn:hover,
.page-num:hover:not(.active) {
    background: #f0f0f0;
}

.dots {
    padding: 8px 4px;
    color: #999;
}

.page-info {
    margin-left: 20px;
    color: #666;
}

.page-input {
    width: 50px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    margin: 0 5px;
    text-align: center;
}

/* 悬浮按钮 */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 1000;
}

.floating-btn {
    display: block;
    width: 60px;
    height: 60px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    margin-bottom: 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    position: relative;
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.floating-btn .icon {
    font-size: 20px;
    line-height: 1;
}

.floating-btn .text {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.floating-btn:hover .text {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

.service-btn {
    background: #d4373a;
    color: white;
    border-color: #d4373a;
}

/* 响应式设计 */
@media (max-width: 1280px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .search-input {
        width: 300px;
    }
}

@media (max-width: 768px) {

    .category-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 4px !important;
        border: 1px solid #ddd !important;
    }

    .search-input {
        width: 250px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text h2 {
        font-size: 18px;
    }
}
@media (max-width: 627px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
}
@media (max-width: 480px) {

    .hero-section {
        height: 150px;
    }



    .search-input {
        width: 200px;
    }

    .container {
        padding: 0 15px;
    }

    .floating-buttons {
        right: 15px;
        bottom: 80px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
    }

    .floating-btn .icon {
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}
