/**
 * @file home-new.css
 * @description 新版首页样式，简洁全屏设计
 * @created 2024-08-18
 */

/* 导入基础样式 */
@import '../base.css';
/* 导入组件样式 */
@import '../components/header.css';
@import '../components/footer.css';
@import '../components/chat.css'; /* 导入统一的聊天组件样式 */
@import '../components/scrollbar.css'; /* 导入统一的滚动条样式 */
@import '../components/modal.css'; /* 导入统一的模态框样式 */
@import '../components/loading-spinner.css'; /* 导入统一的加载动画样式 */
@import '../components/hero-section.css'; /* 导入英雄区样式 */

/* 主页布局样式 */
body.home-page {
    overflow-x: hidden;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 保留particles-js的全局背景功能 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #f8fbff 0%, #f2f9ff 100%); /* 更亮更白的背景色 */
    z-index: -2;
}

/* 主内容区域包装器，确保最小高度 */
main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0; /* 确保没有外边距 */
    padding: 0; /* 确保没有内边距 */
    flex: 1;
}

/* 新版首页特定样式 - 移除间距 */
body.home-page main {
    margin-bottom: -1px; /* 与footer贴合 */
}

body.home-page .footer {
    margin-top: 0;
    border-top: none; /* 移除顶部边框 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .contact-btn {
        padding: 0.7rem 2rem;
        font-size: 0.9rem;
    }
}

/* 联系按钮样式 */
.contact-btn {
    padding: 0.9rem 3rem;
    background: linear-gradient(135deg, var(--secondary-color-orange) 0%, var(--tertiary-color-orange) 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-top: 4rem;
    position: relative;
    z-index: 5;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* 导航卡片样式 */
.nav-cards {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.3rem; /* 增大图标尺寸 */
    margin-bottom: 0.8rem; /* 增加底部间距 */
    z-index: 1;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.nav-card:hover .card-icon {
    transform: scale(1.15);
}

.card-title {
    font-size: 1.1rem; /* 增大文字尺寸 */
    font-weight: 500;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 响应式样式 */
@media (max-width: 768px) {
    .nav-cards {
        gap: 1.8rem; /* 在平板上保持适当的间距 */
        margin-top: 1.8rem;
    }
    
    .nav-card {
        width: 120px; /* 调整平板上的卡片尺寸 */
        height: 120px;
        padding: 1.2rem;
    }
    
    .card-icon {
        font-size: 2.1rem; /* 调整平板上的图标尺寸 */
        margin-bottom: 0.7rem;
    }
    
    .card-title {
        font-size: 1rem; /* 调整平板上的文字尺寸 */
    }
    
    .contact-btn {
        padding: 0.8rem 2.5rem;
        font-size: 1rem;
        margin-top: 3rem; /* 在平板上保持足够的间距 */
    }
}

@media (max-width: 480px) {
    .nav-cards {
        gap: 1.2rem; /* 在手机上稍微减小间距 */
        margin-top: 1.5rem;
    }
    
    .nav-card {
        width: 100px; /* 调整手机上的卡片尺寸 */
        height: 100px;
        padding: 1rem;
    }
    
    .card-icon {
        font-size: 1.8rem; /* 调整手机上的图标尺寸 */
        margin-bottom: 0.7rem;
    }
    
    .card-title {
        font-size: 0.95rem; /* 调整手机上的文字尺寸 */
    }
    
    .contact-btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
        margin-top: 2.5rem; /* 在手机上调整间距 */
    }
}
