/* 部门页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    padding: 0 2px 80px 2px;
    display: flex;
    flex-direction: column;
}

/* App Bar 样式 */
.app-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.app-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-link {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
}

.app-logo {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.home-link:hover .app-logo {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.app-title {
    font-size: 18px;
    font-weight: bold;
}

.app-subtitle {
    font-size: 12px;
    opacity: 0.8;
}

.vip-button {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    color: #333;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vip-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* 部门内容区域 */
.department-section {
    padding: 10px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.section-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
}

/* 服务网格布局 */
.service-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-item {
    background: white;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.service-image {
    margin-bottom: 15px;
}

.service-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 33.33%; /* 1200x400 = 3:1 比例 */
    margin-bottom: 15px;
}

.rounded-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.service-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.service-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.service-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.bottom-nav .nav-item.active {
    color: #667eea;
    background: #f0f2ff;
}

.bottom-nav .nav-item i {
    font-size: 18px;
}

.bottom-nav .nav-item:hover {
    color: #667eea;
    background: #f8f9ff;
}

/* 响应式设计 - 保持移动端一致的宽度 */
@media (min-width: 401px) {
    .container {
        max-width: 400px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-item {
    animation: fadeInUp 0.6s ease forwards;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }