/* ====================
   首页专用样式 - 昱环智慧科技官网
   ==================== */

/* 首屏动态区 */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(42, 92, 145, 0.95) 0%, 
        rgba(58, 158, 125, 0.95) 100%);
}

/* 粒子动画容器 */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 主要内容区 */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

/* LOGO动画区 */
.hero-logo {
    margin-bottom: 60px;
}

.logo-animation h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 1s forwards;
}

/* 数据轮播区 */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 1.5s forwards;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    font-family: 'Noto Serif SC', serif;
}

.stat-unit {
    font-size: 1.2rem;
    font-weight: 500;
    margin-left: 4px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 8px;
    margin-bottom: 0;
}

/* 高校徽章区 */
.university-badges {
    position: absolute;
    bottom: 120px;
    left: 0;
    right: 0;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 1s ease 2s forwards;
}

.badge-carousel {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
}

.badge {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 1s ease 2.5s forwards;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--white);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: var(--transition-normal);
    animation: bounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: translate(-50%, -60%) rotate(45deg);
}

.scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 核心业务展示区 */
.business-section {
    padding: 100px 0;
    background: var(--background-light);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.business-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.business-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.business-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--gradient-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.card-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary-blue);
    stroke-width: 2;
}

.business-card:hover .card-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.business-card:hover .card-icon svg {
    stroke: var(--white);
}

.business-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.business-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

.card-link::after {
    content: '→';
    transition: var(--transition-fast);
}

.card-link:hover {
    color: var(--primary-green);
}

.card-link:hover::after {
    transform: translateX(4px);
}

/* 合作伙伴区 */
.partners-section {
    padding: 80px 0;
    background: var(--white);
}

.partners-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.partner-logo {
    padding: 20px 30px;
    background: var(--background-light);
    border-radius: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    border: 1px solid var(--border-color);
}

.partner-logo:hover {
    background: var(--gradient-light);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* 动画定义 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 数字计数动画 */
.stat-number.counting {
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .business-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 0;
        justify-content: flex-start;
        padding: 100px 0 48px;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .hero-logo {
        margin-bottom: 32px;
    }

    .logo-animation h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-bottom: 32px;
    }
    
    .stat-number {
        font-size: 2rem;
    }

    /* 移动端把高校徽章改为正常文档流，避免与统计卡片重叠 */
    .university-badges {
        position: static;
        margin-top: 8px;
    }

    .badge-carousel {
        gap: 10px;
        padding: 10px 0;
    }
    
    .badge {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* 小屏空间紧张，隐藏滚动指示器 */
    .scroll-indicator {
        display: none;
    }
    
    .business-section {
        padding: 48px 0;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 32px;
    }
    
    .business-card {
        padding: 30px 20px;
    }
    
    .partners-section {
        padding: 60px 0;
    }
    
    .partners-carousel {
        gap: 20px;
    }
    
    .partner-logo {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 90px 0 32px;
    }

    .hero-logo {
        margin-bottom: 24px;
    }

    .logo-animation h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* 480px 下保持 2 列以减少纵向高度，避免内容过长 */
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .stat-item {
        padding: 14px 10px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }

    .stat-unit {
        font-size: 0.95rem;
    }

    .stat-label {
        font-size: 0.85rem;
        margin-top: 6px;
    }
    
    /* 小屏徽章保持横向 wrap，不再竖向堆叠（避免占用过多空间） */
    .badge-carousel {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 8px 0;
    }

    .badge {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
} 