/* 首页特定样式 */

/* 英雄区域样式 */
.hero-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,192L48,176C96,160,192,128,288,138.7C384,149,480,203,576,213.3C672,224,768,192,864,165.3C960,139,1056,117,1152,128C1248,139,1344,181,1392,202.7L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.hero-buttons {
    position: relative;
}

.hero-buttons .btn {
    margin: 0 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* 特点介绍区域样式 */
.features-section {
    padding: 6rem 0;
    background-color: #fff;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #007bff;
    margin: 1rem auto 0;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-item p {
    color: #666;
    font-size: 1rem;
}

/* 最新动态区域样式 */
.news-section {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

#latest-updates {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.update-item {
    width: calc(33.333% - 1rem);
    margin-bottom: 2rem;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.5rem;
}

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

.update-date {
    background-color: #007bff;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1rem;
}

.update-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.update-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.update-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.update-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 快速链接区域样式 */
.quick-links {
    padding: 4rem 0;
    background-color: #fff;
}

.quick-link-item {
    text-align: center;
}

.quick-link-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.quick-link-item a:hover {
    background-color: #f8f9fa;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.quick-link-item i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.quick-link-item span {
    font-size: 1.2rem;
    font-weight: 600;
}

/* 社区支持区域样式 */
.community-section {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

/* 二维码悬浮显示样式 */
.wechat-group, .qq-group {
    position: relative;
}

/* 二维码容器样式 */
.wechat-group::after, .qq-group::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 160px;
    margin-bottom: 15px;
}

/* 微信二维码样式 */
.wechat-group::after {
    content: url('/images/wx.jpg');
}

/* QQ二维码样式 */
.qq-group::after {
    content: url('/images/qq.png');
}

/* 悬浮效果 */
.wechat-group:hover::after, .qq-group:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* 二维码底部添加三角形指示器 */
.wechat-group::before, .qq-group::before {
    content: '';
    position: absolute;
    bottom: calc(100% - 5px);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

/* 悬浮时显示三角形指示器 */
.wechat-group:hover::before, .qq-group:hover::before {
    opacity: 1;
    visibility: visible;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.community-item {
    text-align: center;
    margin-bottom: 2rem;
}

.community-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.community-item a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

.community-item i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.community-item a:hover i {
    color: #0056b3;
}

.community-item span {
    font-size: 1.2rem;
    font-weight: 600;
}

/* 合作伙伴区域样式 */
.partners-section {
    padding: 6rem 0;
    background-color: #fff;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.partner-logo {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.partner-logo img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .update-item {
        width: calc(50% - 1rem);
    }
    
    .partners-logos {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 1rem auto;
        width: 80%;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .update-item {
        width: 100%;
    }
    
    .quick-link-item {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .quick-link-item i {
        font-size: 2.5rem;
    }
}