/* static/css/index.css */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 28px;
    margin-bottom: 3rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slides img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    height: 380px;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.2rem 0.8rem;
    cursor: pointer;
    border-radius: 50%;
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.functions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.func-card {
    background: white;
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.func-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
}

.func-card h3 {
    color: #1A3E60;
    font-size: 1.4rem;
    border-left: 5px solid #f39c12;
    padding-left: 12px;
    margin-bottom: 1.2rem;
}

.func-card ul {
    list-style: none;
}

.func-card li {
    margin: 0.8rem 0;
}

.func-card a {
    text-decoration: none;
    color: #2c5a7a;
    font-weight: 500;
    transition: 0.2s;
}

.func-card pan {
    text-decoration: none;
    color: #2c5a7a;
    font-weight: 500;
    transition: 0.2s;
}

.func-card p {
    text-decoration: none;
    color: #2c5a7a;
    font-weight: 500;
    transition: 0.2s;
}

.func-card a:hover {
    color: #e67e22;
    padding-left: 4px;
}

.links-section {
    display: flex;
    background: white;
    border-radius: 2rem;
    padding: 1.5rem;
    margin-top: 1rem;
    min-height: 5px;
    /* 内容多时会自动撑开 */
}

.links-section2 {
    display: grid;
    /* 关键：开启网格布局 */
    grid-template-columns: repeat(4, 1fr);
    /* 定义3列，均分容器宽度 */
    gap: 1.5rem;
    /* 统一项目之间的间距 */
    background: white;
    border-radius: 2rem;
    padding: 1.5rem;
    margin-top: -2.0rem;
    /* 顶部距离边线尺寸，可以为负值 */

    /* min-height: 10px; */
    /* 设置最小高度，防止内容少时太扁 */

}


.friendly-links h4 {
    margin: 0 0 0.5rem 0;
    /* 清除默认外边距，优化标题与链接的间距 */
    font-size: 1rem;
    font-weight: bold;
}

.friendly-links {
    /* 确保子项不被拉伸，保持内容高度 */
    display: flex;
    flex-direction: column;
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.links-list a {
    color: #2c5a7a;
    /* 设置默认文字颜色 */
    text-decoration: none;
    /* 去除下划线 */
}

/* .links-list a:hover {
    text-decoration: underline;
     鼠标悬停时显示下划线 
} 
*/