/* 专门用于index页面的样式 */

/* 英雄区域样式 */
.hero-section {
    background: linear-gradient(135deg, #0a2239 0%, #1d1d1f 100%);
    color: white;
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    color: #0a2239;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 980px;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.3s;
    margin-top: 20px;
}

.hero-cta:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.hero-cta i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.hero-cta:hover i {
    transform: translateX(5px);
}

/* 英雄区域装饰 */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: 1s;
    width: 30px;
    height: 30px;
}

.floating-element:nth-child(3) {
    top: 30%;
    right: 25%;
    animation-delay: 2s;
}

/* 产品展示区 */
.products-section {
    padding: 100px 20px;
    background-color: white;
}

.products-section .section-title {
    margin-bottom: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* 特性展示区 */
.features-section {
    background-color: #f5f5f7;
    padding: 100px 20px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    padding: 30px 20px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 48px;
    color: #333333;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.feature-description {
    color: #515154;
    font-size: 15px;
    line-height: 1.7;
}

/* 产品卡片样式优化 */
.product-card {
    background-color: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    background-color: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.product-description {
    font-size: 15px;
    color: #515154;
    margin-bottom: 20px;
    flex: 1;
}

.product-price {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn {
    padding: 12px 20px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}

.btn-primary {
    background-color: #333333;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #1d1d1f;
}

.btn-secondary {
    background-color: transparent;
    color: #333333;
    border: 1px solid #d2d2d7;
}

.btn-secondary:hover {
    background-color: #f5f5f7;
    color: #1d1d1f;
}

/* 页脚横向导航栏 - 移到底部 */
.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    /* 减小间距 */
    padding: 12px 0;
    border-top: 1px solid #d2d2d7;
    /* margin-top: 20px; */
}

/* 页脚底部边框 */
.footer-container,
footer,
.page-footer {
    border-bottom: 1px solid #d2d2d7;
}

.footer-nav a {
    text-decoration: none;
    color: #1d1d1f;
    font-size: 12px;
    /* 减小字体 */
    font-weight: 400;
    padding: 3px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footer-nav a:hover {
    background-color: #f5f5f7;
    color: #333333;
}

/* 页脚订阅和社交媒体样式 - 整合到页脚列中 */
.footer-subscribe {
    margin-top: 20px;
    padding: 15px;
    background-color: #f5f5f7;
    border-radius: 8px;
}

.footer-subscribe h3 {
    font-size: 14px;
    margin: 10px 0 8px;
    color: #1d1d1f;
}

.footer-subscribe p {
    font-size: 12px;
    color: #86868b;
    margin-bottom: 10px;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subscribe-form input {
    padding: 8px;
    border: 1px solid #d2d2d7;
    border-radius: 4px;
    font-size: 12px;
}

.subscribe-form input::placeholder {
    color: #888;
}

.subscribe-form button {
    background: #333333;
    color: white;
    border: none;
    padding: 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-form button:hover {
    background: #1d1d1f;
}

.footer-social {
    margin-top: 15px;
    padding: 15px;
    background-color: #f5f5f7;
    border-radius: 8px;
}

.footer-social h3 {
    font-size: 14px;
    margin: 10px 0 10px;
    color: #1d1d1f;
}

.footer-social h3 {
    margin-top: 0;
}

.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #333333;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
}

.social-links a:hover {
    background: #1d1d1f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .products-section,
    .features-section {
        padding: 60px 15px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .product-actions {
        flex-direction: column;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-cta {
        padding: 12px 24px;
        font-size: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-icon {
        font-size: 40px;
    }

    .feature-title {
        font-size: 20px;
    }
}