/* ========================================
   尧图网络科技 - 首页专用样式
   ======================================== */

/* Hero Banner */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f4f8 0%, #e9ecef 100%);
    overflow: hidden;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/banner-bg.jpg') center/cover no-repeat;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: #1a3a5c;
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 22px;
    color: #555;
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-shapes {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, #4a90e2, #6fb3f2);
    opacity: 0.1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: 50px;
    right: 100px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* 核心优势板块 - 独特布局 */
.advantages {
    background: #fff;
    position: relative;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.advantage-item {
    padding: 50px 30px;
    text-align: center;
    border-right: 1px solid #e9ecef;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.advantage-item:last-child {
    border-right: none;
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, #f0f4f8, #e9ecef);
    transition: height 0.4s ease;
    z-index: -1;
}

.advantage-item:hover::before {
    height: 100%;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #4a90e2, #6fb3f2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    transition: all 0.4s ease;
}

.advantage-item:hover .advantage-icon {
    transform: scale(1.1) rotate(5deg);
}

.advantage-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 12px;
}

.advantage-text {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

@media (max-width: 992px) {
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantage-item:nth-child(2n) {
        border-right: none;
    }
}

@media (max-width: 576px) {
    .advantage-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-item {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
}

/* 快速入口板块 */
.quick-access {
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5282 100%);
    padding: 60px 0;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.access-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.access-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.access-icon {
    font-size: 32px;
    margin-bottom: 12px;
    color: #6fb3f2;
}

.access-title {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

@media (max-width: 992px) {
    .access-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 资讯列表板块 */
.news-section {
    background: #f8f9fa;
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 10px 25px;
    background: #fff;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.news-tab:hover,
.news-tab.active {
    background: linear-gradient(135deg, #4a90e2, #6fb3f2);
    color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* 文字动画 */
.text-animate {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: textFadeIn 0.8s ease forwards;
}

@keyframes textFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-animate:nth-child(1) { animation-delay: 0.2s; }
.text-animate:nth-child(2) { animation-delay: 0.4s; }
.text-animate:nth-child(3) { animation-delay: 0.6s; }
