/* static/front/css/index.css */

/* 英雄区域样式 */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 卡片悬停效果 */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 图标圆形背景 */
.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* 工具卡片样式 */
.tool-card {
    transition: all 0.3s ease;
    border-radius: 1rem !important;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    border-color: #bdbdbd;
}

.tool-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background-color: rgba(13, 110, 253, 0.1);
    /* 添加以下属性来适配图片 */
    padding: 10px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.tool-icon.text-primary {
    background-color: rgba(13, 110, 253, 0.1);
}

.tool-icon.text-success {
    background-color: rgba(25, 135, 84, 0.1);
}

.tool-icon.text-info {
    background-color: rgba(13, 202, 240, 0.1);
}

.tool-icon.text-warning {
    background-color: rgba(255, 193, 7, 0.1);
}

/* 为图片添加专门的样式 */
.tool-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 特色功能区域 */
.bg-gradient {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
}

.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
}

/* 章节标题 */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #0d6efd;
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* 轮播控制按钮 */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
    width: 2.5rem;
    height: 2.5rem;
    background-size: 60%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-image {
        height: 400px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-image {
        height: 300px;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content .btn {
        margin: 0 auto;
    }
}
