* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}


/* 轮播图样式 */
.carousel-container {
    margin-top: 80px;
    /* 为固定导航栏留出空间 */
    position: relative;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    position: relative;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px;
    text-align: center;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: white;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 主页内容样式 */
.content-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.content-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.content-card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.card-text {
    color: #666;
    line-height: 1.6;
}

/* 不同比例的图像 */
.card-img-wide {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.card-img-tall {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* 文本卡片 */
.text-only-card {
    padding: 20px;
    text-align: center;
}


@media (max-width: 480px) {
    .carousel {
        height: 200px;
    }

    .carousel-caption {
        padding: 10px;
    }

    .section-title {
        font-size: 1.3rem;
    }
}


/* 成员列表样式 */
.members-section {
    max-width: 1200px;
    margin: 100px auto 40px;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.member-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.member-card:hover {
    transform: translateY(-5px);
}

.member-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid #4CAF50;
}

.member-avatar-char {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
    object-fit: cover;
    margin: 0 auto 15px;
    font-size: 2.5rem;
    border: 3px solid #4CAF50;
}

.member-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.member-grade {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.member-title {
    color: #4CAF50;
    font-size: 0.9rem;
    font-weight: bold;
}

.member-link {
    display: block;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
    margin: 15px;
    border-radius: 5px;
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.member-link:hover {
    background-color: #45a049;
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.3rem;
    }

    .members-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .member-avatar {
        width: 80px;
        height: 80px;
    }
}