@import "./styles.css";


:root{
    --h-title-color:#3948d2;
}

.header {
    border-bottom: solid 2px var(--bs-blue);
    z-index: 10000;
}

.bg-bottom {
    background-color: var(--h-title-color);
}

.top-section {
    position: relative;
    padding: 10rem 0;
    background-position: center;
    background-size: cover;
    height: 25rem;
}

.top-section h2 {
    font-weight: 400;
}

.top-section .top-section-content {
    position: relative;
    z-index: 1;
}

.top-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

section header h2{
    font-family: "Kanit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    color: var(--h-title-color);
    font-size: 2.3rem;
    line-height: 4rem;
}

section .main-body{
    font-size: 1.3rem;
    font-weight: 200;
    line-height: 2.4rem;
}


.bg-gradient-primary-to-secondary-light {
    background: linear-gradient(45deg, #fcfcfc, #ffffff) !important;
}

.bg-gradient-primary-to-secondary-gray {
    background: linear-gradient(45deg, #f0f0f0, #f1f1f1) !important;
}



.on-top {
    position: relative;
    z-index: 10000;
}

.top-bg {
    background-position: center;
    background-size: fill;
    width: 100%;
    height: 100%;
}

.top-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}


#avatar {
    position: relative;
    height: 0;
    top:min(-65px,max(-100px,calc(-1*100vw/12)));
    max-width: 55em;
    margin: 0 1.5rem 0 0;
    float: right;
    z-index: 9000;
}

#avatar img {
    height: max(130px,min(200px,calc(100vw/6)));
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 991px) {
    #avatar {
        margin: 0;
    }
}

/* 成员卡片样式 - 图片在左，文字在右 */
.member-card {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #3498db;
}

.member-image {
    flex-shrink: 0;
}

.member-image img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid #f8f9fa;
}

.member-details {
    flex: 1;
}

.member-details h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 0.5rem;
}

.member-details p {
    margin-bottom: 0.5rem;
    color: #555;
}

.member-details strong {
    color: #2c3e50;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .member-card {
        flex-direction: column;
        text-align: center;
    }
    
    .member-image {
        align-self: center;
    }
    
    .member-image img {
        width: 120px;
        height: 120px;
    }
}
/* 搜索表单样式 */
.search-form {
    margin-left: 10px;
}

.search-input {
    border-radius: 20px 0 0 20px !important;
    border: 1px solid #dee2e6;
    border-right: none;
    padding: 8px 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 200px;
}

.search-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    border-color: #6c757d;
}

.search-btn {
    border-radius: 0 20px 20px 0 !important;
    border: 1px solid #dee2e6;
    border-left: none;
    background-color: #fff;
    color: #6c757d;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: #f8f9fa;
    color: #495057;
}

/* 搜索高亮样式 */
.search-highlight {
    background-color: #ffeb3b !important;
    padding: 2px 0;
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
}

/* 移动设备上的搜索表单样式 */
@media (max-width: 991.98px) {
    .search-item {
        margin-top: 10px;
        padding: 0 15px;
        width: 100%;
    }
    
    .search-form {
        margin-left: 0;
        width: 100%;
    }
    
    .search-input {
        border-radius: 20px 0 0 20px !important;
        min-width: auto;
        flex: 1;
    }
    
    .search-btn {
        border-radius: 0 20px 20px 0 !important;
    }
}

/* 小屏幕设备 */
@media (max-width: 576px) {
    .search-input {
        min-width: 150px;
    }
}
