/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* 顶部导航 - 全屏宽度 */
.top-nav {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    position: relative;
    padding: 8px 0;
    transition: all 0.3s;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #3498db;
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

.nav-links a:hover:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: #2c3e50;
    cursor: pointer;
}


/* 主内容区域 - 自适应高度 */
.main-content {
    flex: 1 0 auto;
    /* 关键：允许收缩但不要强制扩展 */
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* 服务容器 - 高度自适应 */
.services-container {
    flex: 0 1 auto;
    /* 关键：允许收缩但不要强制扩展 */
    display: flex;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    align-items: center;
    /* 新增：垂直居中 */
    justify-content: center;
    /* 新增：水平居中 */
    min-height: 0;
    min-height: 80vh;
}

/* 移动端优先的网格布局 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 默认两列布局 */
    gap: 20px;
    /* 移动端间隙减小 */
    width: 100%;
}

/* 卡片样式 - 移动端优化 */
.service-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    /* 移动端减少内边距 */
    min-height: 280px;
    /* 移动端降低最小高度 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.tech-card {
    border-top: 4px solid #3498db;
}

.culture-card {
    border-top: 4px solid #e74c3c;
}

.service-icon {
    font-size: 60px;
    margin-bottom: 25px;
}

.tech-card .service-icon {
    color: #3498db;
}

.culture-card .service-icon {
    color: #ca200d;
}

.love-card .service-icon {
    color: #f36282;
}

.service-title {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
}

.tech-card .service-title {
    color: #2980b9;
}

.culture-card .service-title {
    color: #ca200d;
}

.love-card .service-title {
    color: #f36282;
}

.service-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.service-btn {
    display: inline-block;
    padding: 12px 35px;
    background-color: transparent;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid;
    font-size: 16px;
    margin-top: auto;
}

.tech-card .service-btn {
    background-color: #3498db;
    border-color: #3498db;
}

.culture-card .service-btn {
    background-color: #ca200d;
    border-color: #ca200d;
}

.love-card .service-btn {
    background-color: #f36282;
    border-color: #f36282;
}

.service-btn:hover {
    background-color: transparent;
}

.tech-card .service-btn:hover {
    color: #3498db;
}

.culture-card .service-btn:hover {
    color: #ca200d;
}

.love-card  .service-btn:hover {
   color: #f36282;
}


/* 响应式设计 */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
        padding: 40px 0;
    }

    .service-card {
        padding: 50px 40px;
        min-height: 400px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .footer-container {
        flex-direction: column;
    }

    .qr-codes {
        margin-top: 20px;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 20px;
    }

    .logo {
        font-size: 20px;
    }

    .service-card {
        padding: 40px 30px;
    }

    .service-title {
        font-size: 24px;
    }
}

/* 移动菜单 */
.mobile-menu {
    position: fixed;
    top: 91px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu ul {
    list-style: none;
    padding: 20px 0;
}

.mobile-menu li {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.mobile-menu a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 18px;
    display: block;
    transition: all 0.3s;
}

.mobile-menu a:hover {
    color: #3498db;
    padding-left: 10px;
}