/* 首页特有样式 */

/* Hero 区域 */
.hero {
    padding: 6rem 4% 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 100vh;
    background: linear-gradient(160deg, #ffffff 0%, #f5f5ff 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 0 0 50%;
    max-width: 900px;
    padding-left: 4%;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #FF4444 0%, #FF6B6B 20%, #4A90E2 50%, #2240C4 80%, #FF4444 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -1px;
    white-space: nowrap;
    animation: gradientFlow 6s linear infinite;
    cursor: default;
    position: relative;
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.1);
}

@keyframes gradientFlow {
    0% {
        background-position: 200% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
}

.hero-button {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.primary-button {
    background: #2240C4;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(34, 64, 196, 0.2);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 64, 196, 0.3);
}

.secondary-button {
    background: transparent;
    color: #2240C4;
    border: 2px solid #2240C4;
}

.secondary-button:hover {
    background: rgba(34, 64, 196, 0.1);
    transform: translateY(-2px);
}

.hero-image {
    flex: 0 0 45%;
    height: 70vh;
    max-height: 650px;
    min-height: 400px;
    position: relative;
    margin-right: -4%;
    background: url('../images/hero.webp') no-repeat center center;
    background-size: contain;
    background-position: center;
}

/* 响应式设计 */
@media (min-width: 1920px) {
    .header {
        padding: 1.2rem 12%;
    }
    
    .hero {
        padding: 6rem 12% 2rem;
    }
    
    .hero-content {
        padding-left: 8%;
    }
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-content {
        flex: 0 0 50%;
    }
    
    .hero-image {
        flex: 0 0 45%;
    }
}

@media (max-width: 1024px) {
    .header {
        padding: 1rem 5%;
    }

    .right-section {
        gap: 1.5rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 8rem 5% 4rem;
    }

    .hero-content {
        flex: 0 0 auto;
        padding-left: 0;
        max-width: 600px;
    }

    .hero-image {
        height: 700px;
        width: 100%;
        margin-top: 2rem;
        min-height: 400px;
    }
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-button {
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.8rem;
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }


    .hero-image {
        height: 600px;
        min-height: 350px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-button {
        width: 100%;
        padding: 1rem;
    }
}

/* 额外优化：按钮触控区域 */
button {
    border: none;
    outline: none;
}

button:focus, a:focus {
    outline: none;
}

/* 优化滚动体验 */
html {
    scroll-behavior: smooth;
}

/* 底部区域 */
.footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    text-decoration: none;
    color: #ffffff;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    margin-right: 12px;
}

.footer-logo span {
    font-size: 24px;
    font-weight: 700;
}

.footer-desc {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #999;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #2240C4;
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-social a img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.footer-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2240C4;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .footer {
        padding: 24px 20px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 隐藏产品、支持、法律三个区块 */
    .footer-section {
        display: none;
    }

    /* 只保留品牌区域，居中显示 */
    .footer-brand {
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
        margin-bottom: 12px;
    }

    .footer-desc {
        text-align: center;
        margin-bottom: 16px;
        font-size: 13px;
    }

    .footer-social {
        justify-content: center;
        gap: 12px;
    }

    .footer-section-title {
        font-size: 15px;
    }
}

