/* ========================================
   开源顺风建站 - 首页专用样式
   ======================================== */

/* Hero Banner 区域 */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f4fc 0%, #f8fafc 50%, #ffffff 100%);
    overflow: hidden;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.08) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.06) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

.hero-container {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    padding: 0 40px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: var(--pure-white);
    border: 2px solid var(--primary-blue);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 30px;
    box-shadow: var(--shadow-light);
    animation: fadeInDown 0.8s ease forwards;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-blue), #7ebaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 核心优势板块 - 非通用布局 */
.advantages-section {
    padding: 100px 0;
    background: var(--pure-white);
    position: relative;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.advantage-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), #7ebaff);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.advantage-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-heavy);
    border-color: transparent;
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--light-blue), #ffffff);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.advantage-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.advantage-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 14px;
}

/* 服务展示区 - 交错式布局 */
.services-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #e8f4fc 100%);
}

.service-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.service-row:last-child {
    margin-bottom: 0;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-image-wrapper {
    flex: 1;
    position: relative;
}

.service-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
}

.service-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-blue);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.3;
}

.service-content {
    flex: 1;
}

.service-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.service-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.service-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 16px;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-feature .check {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-blue), #7ebaff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
    font-size: 14px;
    flex-shrink: 0;
}

.service-feature span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
}

/* 快速入口 - 卡片网格 */
.quick-access-section {
    padding: 100px 0;
    background: var(--pure-white);
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.access-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.access-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-medium);
    transform: translateY(-6px);
}

.access-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--light-blue), #ffffff);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.access-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.access-card p {
    font-size: 13px;
    color: var(--medium-gray);
}

/* 资讯列表区域 */
.news-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #e8f4fc 0%, #f8fafc 100%);
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.news-tab {
    padding: 10px 24px;
    background: var(--pure-white);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-tab.active,
.news-tab:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--pure-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--pure-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.news-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-card-content {
    padding: 24px;
}

.news-card-date {
    font-size: 13px;
    color: var(--medium-gray);
    margin-bottom: 12px;
}

.news-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA 区域 */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-blue), #7ebaff);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--pure-white);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-white {
    background: var(--pure-white);
    color: var(--primary-blue);
}

.btn-white:hover {
    background: var(--light-blue);
}

.btn-outline-white {
    background: transparent;
    color: var(--pure-white);
    border: 2px solid var(--pure-white);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .access-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .service-row,
    .service-row.reverse {
        flex-direction: column;
    }

    .service-image {
        height: 300px;
    }

    .service-features {
        grid-template-columns: 1fr;
    }

    .access-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .access-grid {
        grid-template-columns: 1fr;
    }
}
