/* 慧乐科技网站 - 主样式文件 */
/* 设计时间：2026年4月7日 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
    font-size: 24px;
    font-weight: bold;
}

.logo-img {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    object-fit: contain;
    border: none;
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-link:hover {
    background: #e3f2fd;
    color: #3498db;
}

.nav-link.active {
    background: #3498db;
    color: white;
}

/* 主视觉区 */
.hero {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background: #219653;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: white;
    color: #3498db;
}

.btn-secondary:hover {
    background: #f8f9fa;
}

/* 业务卡片 */
.services {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #2c3e50;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #3498db;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
    opacity: 0.8;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 768px) {
    .navbar {
        position: relative;
    }
    
    /* 移动端隐藏桌面导航（后备规则，主控制在内联style中） */
    #desktop-nav-menu { display: none; }
    #menu-toggle-btn { display: inline-flex !important; }
    
    .nav-link {
        padding: 12px 20px;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        text-align: left;
        font-size: 15px;
        font-weight: 500;
        color: #333;
        transition: all 0.2s ease;
        display: block;
        text-decoration: none;
    }
    
    .nav-link:hover,
    .nav-link:active {
        background: #f8f9fa;
        color: #3498db;
    }
    
    .nav-link.active {
        background: #f8f9fa;
        color: #3498db;
        font-weight: 600;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    
    
    
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

/* 新增业务标识 */
.new-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 10px;
    vertical-align: middle;
}


/* ========== 滚动动画 ========== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}
.scroll-animate-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-animate-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.scroll-animate-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-animate-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.scroll-animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}
