/* ========================================
   尼科信息建站 - 首页专用样式
   ======================================== */

/* Hero Banner 区域 */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream-white) 0%, var(--light-pink) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.2;
    animation: slideInDown 1s ease forwards;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title span {
    background: linear-gradient(135deg, #FF69B4, var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeIn 2s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 450px;
    height: 450px;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 20px 60px rgba(255, 182, 193, 0.3);
    animation: morphing 8s ease-in-out infinite;
    z-index: 5;
}

@keyframes morphing {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

/* 核心优势板块 */
.features {
    padding: 100px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(135deg, var(--cream-white) 0%, white 100%);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 15px 40px rgba(255, 182, 193, 0.3);
    border-color: var(--primary-pink);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-pink), #FF69B4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: 0 8px 20px rgba(255, 182, 193, 0.4);
}

.feature-title {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.feature-desc {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* 服务板块 */
.services {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--soft-gray) 0%, var(--light-pink) 100%);
}

.services-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.service-item {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.25);
}

.service-item.reverse {
    flex-direction: row-reverse;
    text-align: right;
}

.service-item.reverse:hover {
    transform: translateX(-10px);
}

.service-img {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    object-fit: cover;
    flex-shrink: 0;
}

.service-info h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-info p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* 快速入口 */
.quick-access {
    padding: 100px 0;
    background: white;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.access-card {
    position: relative;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.access-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.access-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
}

.access-card:hover img {
    transform: scale(1.1);
}

.access-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.access-desc {
    font-size: 14px;
    opacity: 0.9;
}

/* 资讯列表 */
.news-section {
    padding: 100px 0;
    background: var(--cream-white);
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 12px 30px;
    background: white;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-light);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-tab.active,
.news-tab:hover {
    background: linear-gradient(135deg, var(--primary-pink), #FF69B4);
    color: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .hero-image {
        display: none;
    }

    .hero-title {
        font-size: 42px;
    }

    .services-layout {
        grid-template-columns: 1fr;
    }

    .access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .access-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}
