@charset "utf-8";
/* CSS Document */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}
body {
    background-color: #f3f3f3;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}
/* 顶部导航栏 */
.top-bar {
    background-color: #049d99;
    color: white;
    padding: 0.5rem 3%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}
.top-bar .logo {
    font-size: 1.4rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.top-bar .menu {
    width: 2rem;
    height: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.menu .line {
    width: 100%;
    height: 0.2rem;
    background-color: white;
    border-radius: 1px;
}

/* 轮播头图 */
.banner-swiper {
    background-color: #e6edff;
    padding: 1rem;
}
.doctor-banner {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}
.doctor-avatar {
    width: 100%;
    display: block;
}
.doctor-info {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(255,255,255,0.9);
    padding: 1rem 2rem;
    border-radius: 1rem;
    text-align: center;
}
.doctor-name {
    font-size: 2.5rem;
    color: #5a64b8;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.doctor-hospital {
    font-size: 1rem;
    color: #333;
    background-color: #bcd0ff;
    padding: 0.3rem 0.6rem;
    border-radius: 0.3rem;
}
.doctor-title {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.3rem;
}
.swiper-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.8rem;
}
.dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #c0c4cc;
}
.dot.active {
    background-color: #5a64b8;
}

/* 搜索栏 */
.search-box {
    display: flex;
    padding: 0.8rem 3%;
    gap: 0;
    background-color: #fff;
    align-items: center;
}
.search-select {
    border: 1px solid #ddd;
    border-right: none;
    padding: 0.5rem;
    border-radius: 0.5rem 0 0 0.5rem;
    background-color: #f8f8f8;
    font-size: 0.9rem;
}
.search-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    font-size: 1rem;
}
.search-btn {
    padding: 0.5rem 1.5rem;
    background-color: #049d99;
    color: white;
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 1rem;
}

/* 功能入口导航 */
.nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    background-color: #fff;
    padding: 1rem 0;
    gap: 0.5rem;
}
.nav-item {
    text-align: center;
}
.nav-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.3rem;
    opacity: 0.8;
    border-radius: .3rem;
}
.nav-text {
    font-size: 0.9rem;
    color: #333;
}
.nav-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem 3%;
    background-color: #fff;
}
.nav-card {
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    color: white;
}
.nav-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}
.nav-card-desc {
    font-size: 0.85rem;
    opacity: 0.9;
}
.card1 {
    background: linear-gradient(135deg, #60bc8c 0%, #2696de 100%);
}
.card2 {
    background: linear-gradient(135deg, #73bdf0 0%, #4178d8 100%);
}
.card3 {
    background: linear-gradient(135deg, #82dd82 0%, #48ad5c 100%);
}
.card4 {
    background: linear-gradient(135deg, #f29a9a 0%, #e86060 100%);
}

/* 标签页导航 */
.tab-nav {
    display: flex;
    background-color: #fff;
    margin-top: 1rem;
}
.tab-item {
    flex: 1;
    text-align: center;
    padding: 0.8rem 0;
    font-size: 1.1rem;
    color: #666;
    position: relative;
}
.tab-item.active {
    color: #333;
}
.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    background-color: #049d99;
}

/* 资讯列表 */
.news-list {
    background-color: #fff;
    padding: 0 3%;
}
.news-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 1rem;
}
.news-img {
    width: 40%;
    border-radius: 0.3rem;
}
.news-title {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.5;
}
.load-more {
    text-align: center;
    padding: 1rem;
    color: #999;
    background-color: #fff;
}

/* 医学视频板块 */
.section-block {
    background-color: #fff;
    margin-top: 1rem;
    padding: 1rem 3%;
}
.section-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.category-tab {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}
.category-item {
    padding: 0.4rem 0.8rem;
    color: #666;
    white-space: nowrap;
}
.category-item.active {
    background-color: #049d99;
    color: white;
    border-radius: 999px;
}
.media-tab {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
}
.media-item {
    flex: 1;
    text-align: center;
    padding: 0.4rem;
    color: #666;
    border: 1px solid #049d99;
}
.media-item.active {
    background-color: #049d99;
    color: white;
    border-radius: 999px;
}
.media-item:first-child {
    border-radius: 999px 0 0 999px;
}
.media-item:last-child {
    border-radius: 0 999px 999px 0;
}
.video-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.video-item {
    display: flex;
    gap: 0.8rem;
}
.video-cover {
    width: 40%;
    border-radius: 0.5rem;
    position: relative;
}
.video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.video-title {
    font-size: 1rem;
    color: #333;
    line-height: 1.4;
}
.video-count {
    font-size: 0.85rem;
    color: #999;
}

/* 权威内容板块 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.article-item {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.article-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.doctor-avatar-sm {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
}
.doctor-meta {
    flex: 1;
}
.article-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.2rem;
}
.article-meta {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    justify-content: space-between;
}
.article-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

/* 健康资讯板块 */
.health-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.health-news-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.health-news-img {
    width: 100%;
    border-radius: 0.3rem;
}
.health-news-title {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

/* 工具板块 */
.tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}
.tool-item {
    text-align: center;
}
.tool-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 0.3rem;
}
.tool-name {
    font-size: 0.9rem;
    color: #333;
}

/* 合作医院 */
.hospital-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.hospital-item {
    position: relative;
}
.hospital-img {
    width: 100%;
    border-radius: 0.3rem;
}
.hospital-ad {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(0,0,0,0.5);
    color: white;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
}
.article-list-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.department-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}
.department-item {
    background-color: #f1f1f1;
    text-align: center;
    padding: 0.6rem;
    border-radius: 999px;
    color: #666;
    font-size: 0.9rem;
}

/* 育儿图说 */
.yueer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}
.yueer-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.yueer-img {
    width: 100%;
    border-radius: 0.3rem;
}
.yueer-title {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #333;
}

/* 页脚 */
.footer {
    padding: 1rem 3%;
    margin-top: 1rem;
    background-color: #eee;
}
.footer-link {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.footer-link a {
    color: #666;
    font-size: 0.9rem;
}
.footer-bottom {
    color: #999;
    text-align: center;
    font-size: 0.85rem;
}