* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 414px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
}

/* 顶部横幅 */
.banner {
    background: linear-gradient(180deg, #489df1 0%, #ffffff 100%);
    padding: 20px 15px;
    position: relative;
    overflow: hidden;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.banner-left {
    flex: 1;
    padding-right: 10px;
}

.banner-title {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.banner-decorations {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.cube {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
}

.banner-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hospital-badge {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: #fff;
}

.badge-icon {
    color: #FF4444;
    margin-right: 5px;
    font-size: 10px;
}

.badge-text {
    font-size: 11px;
    white-space: nowrap;
}

.hospital-image {
    width: 100%;
    max-width: 150px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hospital-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 会诊公告 */
.consultation-section {
    
    padding: 15px 15px;
    text-align: center;
}

.consultation-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.consultation-time {
    display: inline-block;
    background: #FF6B35;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* 医院公告栏 */
.announcement-bar {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.announcement-label {
    background: #4A90E2;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    margin-right: 10px;
}

.announcement-scroll {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.announcement-text {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    display: inline-block;
    animation: scroll-text 15s linear infinite;
}

@keyframes scroll-text {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.announcement-indicator {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: 10px;
}

.dot {
    width: 6px;
    height: 6px;
    background: #FF4444;
    border-radius: 50%;
}

.bar {
    width: 2px;
    height: 12px;
    background: #ccc;
    border-radius: 1px;
}

/* 医疗科室网格 */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 10px;
    padding: 20px 15px;
    background: #fff;
}

.department-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.department-item:active {
    transform: scale(0.95);
}

.department-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #E3F2FD;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
}

.department-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.department-name {
    font-size: 13px;
    color: #333;
    text-align: center;
    line-height: 1.3;
}

/* 微信开放标签样式 */
wx-open-launch-weapp {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s;
    pointer-events: auto; /* 确保可以点击 */
    position: relative;
    z-index: 1;
}

wx-open-launch-weapp:active {
    transform: scale(0.95);
}

/* 确保标签内的所有元素都可以点击 */
wx-open-launch-weapp * {
    pointer-events: auto;
}

/* 确保微信标签内的内容样式正确 */
wx-open-launch-weapp .department-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #E3F2FD;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
}

wx-open-launch-weapp .department-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

wx-open-launch-weapp .department-name {
    font-size: 13px;
    color: #333;
    text-align: center;
    line-height: 1.3;
}

/* 响应式设计 */
@media (max-width: 375px) {
    .banner-title {
        font-size: 28px;
    }
    
    .banner-subtitle {
        font-size: 18px;
    }
    
    .consultation-title {
        font-size: 22px;
    }
    
    .departments-grid {
        gap: 15px 8px;
    }
    
    .department-icon {
        width: 50px;
        height: 50px;
    }
    
    .department-name {
        font-size: 12px;
    }
}
