.hero {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(145deg, #F9FAFB, #E0E7FF);
}

.hero h1 {
    font-size: 3rem;
    color: #5B5FEE;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

/* 新增：按钮跳动动画 */
.hero button {
    padding: 0.9rem 2.2rem;
    font-size: 1.05rem;
    border: none;
    border-radius: 50px;
    background: #5B5FEE;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(91, 95, 238, 0.3);
    cursor: pointer;
    transition: all 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    animation: bounce 1.5s infinite;
}


@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.hero button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(91, 95, 238, 0.4);
    animation: none;
    /* 悬停时停止跳动 */
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #5B5FEE;
    margin-bottom: 0.6rem;
}

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

#comments {
    padding: 4rem 2rem;
    background: linear-gradient(145deg, #E0E7FF, #F3F4F6);
}

#comments h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #5B5FEE;
    margin-bottom: 2.5rem;
    font-weight: 800;
}

#comments>div {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1.8rem;
}

/* 新增：评论卡片动画 */
#comments div>div {
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease, transform 0.3s ease;
}

#comments div>div:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#comments div>div img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

#comments div>div strong {
    display: block;
    font-size: 1.1rem;
    color: #5B5FEE;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

#comments div>div p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

#blog {
    text-align: center;
    padding: 4rem 2rem;
}

#blog h2 {
    font-size: 2rem;
    color: #5B5FEE;
}

#blog p {
    margin-top: 0.8rem;
    color: #555;
    font-size: 1rem;
}

.blog-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto;
    font-size: 1.1rem;
}

.blog-links a {
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    color: #5B5FEE;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.blog-links a:hover {
    background: #5B5FEE;
    color: #fff;
}

#blog button {
    margin-top: 20px;
    background: #5B5FEE;
    color: #fff;
    border: none;
    padding: 0.8rem 1.6rem;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#blog button:hover {
    background: #4a4df0;
}

.share {
    text-align: center;
    margin: 3rem auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

.share div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    gap: 0.1rem;

}

.share img {
    width: 30px;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.share img:hover {
    transform: scale(1.2);
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    color: #888;
    background: #E4E7FF;
}

/* 新增：页面滚动渐显效果 */
.hero,
.features,
#comments,
#blog,
.share,
footer {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero.visible,
.features.visible,
#comments.visible,
#blog.visible,
.share.visible,
footer.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive Navigation === */
@media (max-width: 768px) {
    .share {
        font-size: 1rem;
        width: 100%;
        margin: 1rem auto;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;

    }

    .share div {
        display: flex;
        flex-direction: row;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        gap: 0.1rem;

    }
}