@charset "utf-8";
/* =========================================================
   北京方舟医院 PC 站新模板样式  mstyle.css
   设计参考：M 站（m.bjbaidianfeng.com）
   配色：#1F8FE5 医疗蓝（主）  #0A71E4/#1380f9 按钮蓝
         #fc5159 珊瑚红（强调/热线）  #e6870c 橙  #48cfae 青绿
         中性：#303133/#606266/#909399/#c0c4cc  #f5f7fa 背景  #fff 卡片
   ========================================================= */

/* ============ Reset & Base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px; line-height: 1.7; color: #303133; background: #f5f7fa;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: #1F8FE5; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; border: 0; }
input, select, textarea, button { font-family: inherit; font-size: 14px; outline: none; }
button { cursor: pointer; }
.container { width: 1200px; margin: 0 auto; }
.clearfix:after { content: ""; display: table; clear: both; }

/* ============ Top bar 顶部信息条 ============ */
.topbar { background: #1F8FE5; color: #fff; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: #fff; }
.topbar a:hover { color: #ffe; opacity: .9; }
.topbar .tb-tel { font-size: 14px; font-weight: 600; letter-spacing: 1px; }

/* ============ Header 头部 ============ */
.site-header { background: #fff; border-bottom: 1px solid #e4e7ed; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.logo { display: flex; align-items: center; }
.logo img { height: 56px; width: auto; }
.logo-text { margin-left: 14px; }
.logo-text .cn { display: block; font-size: 28px; font-weight: 700; color: #0A71E4; letter-spacing: 3px; line-height: 1.2; }
.logo-text .en { display: block; font-size: 11px; color: #c0c4cc; letter-spacing: 2px; text-transform: uppercase; }
.header-right { display: flex; align-items: center; gap: 24px; }
.header-tel span { display: block; font-size: 12px; color: #909399; text-align: right; line-height: 1.4; }
.header-tel a.tel-num { font-size: 26px; font-weight: 700; color: #fc5159; font-family: Georgia, "Times New Roman", serif; letter-spacing: 1px; }
.btn-online {
    display: inline-block; background: linear-gradient(135deg, #fc5159, #f04050);
    color: #fff; padding: 11px 26px; border-radius: 24px; font-size: 15px; font-weight: 600;
    box-shadow: 0 4px 14px rgba(252, 81, 89, .28); transition: all .2s;
}
.btn-online:hover { color: #fff; box-shadow: 0 6px 18px rgba(252, 81, 89, .42); transform: translateY(-1px); }

/* ============ Nav 主导航 ============ */
.main-nav { background: linear-gradient(90deg, #0A71E4, #1F8FE5); box-shadow: 0 2px 8px rgba(10, 113, 228, .18); }
.nav-inner { height: 52px; }
.nav-list { display: flex; align-items: center; height: 100%; }
.nav-list li a { display: block; color: #fff; font-size: 16px; font-weight: 500; padding: 0 30px; line-height: 52px; }
.nav-list li a:hover,
.nav-list li.on a { background: rgba(255, 255, 255, .16); }
.nav-list li + li a { border-left: 1px solid rgba(255, 255, 255, .18); }

/* ============ Banner 轮播 ============ */
.banner { position: relative; height: 430px; overflow: hidden; background: #e8f2fd; }
.banner .swiper-wrapper, .banner .swiper-slide { height: 100%; }
.banner .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner .swiper-pagination { bottom: 14px !important; }
.banner .swiper-pagination-bullet { width: 10px; height: 10px; background: #fff; opacity: .55; }
.banner .swiper-pagination-bullet-active { background: #fc5159; opacity: 1; width: 24px; border-radius: 5px; }
.banner .swiper-button-prev, .banner .swiper-button-next { color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.25); }

/* ============ 快捷入口 ============ */
.quick-nav {
    position: relative; z-index: 5; margin-top: -34px; background: #fff;
    border-radius: 10px; box-shadow: 0 6px 24px rgba(31, 143, 229, .10);
    display: flex; overflow: hidden;
}
.quick-item { flex: 1; text-align: center; padding: 20px 10px 18px; border-right: 1px solid #f0f2f5; transition: background .2s; }
.quick-item:last-child { border-right: none; }
.quick-item img { width: 40px; height: 40px; margin: 0 auto 8px; object-fit: contain; }
.quick-item b { display: block; font-size: 16px; color: #303133; font-weight: 600; }
.quick-item span { display: block; font-size: 12px; color: #909399; margin-top: 2px; }
.quick-item:hover { background: #f5faff; }
.quick-item:hover b { color: #1F8FE5; }

/* ============ 通用区块 ============ */
.section { padding: 40px 0 6px; }
.section-title { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; margin-bottom: 22px; border-bottom: 1px solid #e4e7ed; }
.section-title h2 { font-size: 22px; font-weight: 700; color: #0A71E4; padding-left: 14px; position: relative; }
.section-title h2::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 20px; background: #fc5159; border-radius: 2px; }
.section-title .more { font-size: 13px; color: #909399; }
.section-title .more:hover { color: #1F8FE5; }
.card { background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(31, 143, 229, .06); }

/* ============ 医院简介 ============ */
.intro-box { display: flex; gap: 40px; align-items: center; }
.intro-text { flex: 1; }
.intro-text p { color: #606266; text-indent: 2em; margin-bottom: 14px; }
.intro-tags { margin: 18px 0 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.intro-tags span { display: inline-block; background: #ecf5ff; color: #1F8FE5; border: 1px solid #d5e8fb; padding: 6px 16px; border-radius: 20px; font-size: 13px; }
.btn-more { display: inline-block; background: #1F8FE5; color: #fff; padding: 9px 28px; border-radius: 22px; font-size: 14px; }
.btn-more:hover { background: #0A71E4; color: #fff; }
.intro-img { flex: 0 0 460px; }
.intro-img img { width: 460px; height: 300px; object-fit: cover; border-radius: 10px; box-shadow: 0 8px 24px rgba(31, 143, 229, .15); }
.intro-aside { flex: 0 0 330px; display: flex; flex-direction: column; gap: 14px; }
.ia-card { display: block; border-radius: 10px; padding: 18px 22px; color: #fff; box-shadow: 0 6px 18px rgba(31, 143, 229, .14); transition: transform .2s; }
.ia-card:hover { transform: translateY(-3px); color: #fff; }
.ia-card .ia-t { display: block; font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.ia-card .ia-d { display: block; font-size: 13px; opacity: .92; }
.ia-card .ia-num { font-size: 22px; font-weight: 700; font-family: Georgia, serif; }
.ia-ask { background: linear-gradient(135deg, #fc5159, #f04050); }
.ia-tel { background: linear-gradient(135deg, #1F8FE5, #0A71E4); }
.ia-route { background: linear-gradient(135deg, #48cfae, #2bb392); }

/* ============ 在线预约表单 ============ */
.form-section .card { padding: 26px 30px 30px; }
.appoint-form { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; }
.appoint-form .f-item { flex: 1 1 200px; }
.appoint-form label { display: block; font-size: 13px; color: #606266; margin-bottom: 6px; }
.appoint-form input, .appoint-form select {
    width: 100%; height: 42px; border: 1px solid #dcdfe6; border-radius: 6px; padding: 0 12px;
    color: #303133; background: #fff; transition: border-color .2s;
}
.appoint-form input:focus, .appoint-form select:focus { border-color: #1F8FE5; }
.appoint-form .f-submit { flex: 0 0 150px; }
.appoint-form .f-submit button {
    width: 100%; height: 42px; border: none; border-radius: 6px;
    background: linear-gradient(135deg, #fc5159, #f04050); color: #fff; font-size: 16px; font-weight: 600;
    box-shadow: 0 4px 12px rgba(252, 81, 89, .3);
}
.appoint-form .f-submit button:hover { box-shadow: 0 6px 18px rgba(252, 81, 89, .45); }

/* ============ 专家团队 ============ */
.doctor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.doctor-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(31, 143, 229, .06); transition: all .25s; }
.doctor-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(31, 143, 229, .16); }
.doctor-card .d-img { width: 100%; height: 230px; object-fit: cover; }
.doctor-card .d-body { padding: 14px 16px 18px; text-align: center; }
.doctor-card h3 { font-size: 17px; color: #303133; font-weight: 600; margin-bottom: 4px; }
.doctor-card .d-title { font-size: 12px; color: #909399; margin-bottom: 8px; }
.doctor-card p { font-size: 13px; color: #606266; height: 42px; overflow: hidden; margin-bottom: 12px; }
.btn-ask { display: inline-block; background: #ecf5ff; color: #1F8FE5; padding: 5px 20px; border-radius: 16px; font-size: 13px; }
.btn-ask:hover { background: #1F8FE5; color: #fff; }

/* ============ 新闻列表（动态/科普/公益） ============ */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.news-col h3 { font-size: 17px; color: #0A71E4; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid #ecf5ff; display: flex; justify-content: space-between; align-items: center; }
.news-col h3 a.more { font-size: 12px; color: #909399; font-weight: 400; }
.news-item { display: flex; align-items: center; padding: 9px 0; border-bottom: 1px dashed #ebeef5; }
.news-item:last-child { border-bottom: none; }
.news-item .nd { flex: 0 0 76px; color: #909399; font-size: 12px; }
.news-item a { flex: 1; min-width: 0; color: #303133; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-item a:hover { color: #1F8FE5; }

/* ============ 医院环境 ============ */
.env-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.env-grid img { width: 100%; height: 168px; object-fit: cover; border-radius: 8px; transition: transform .3s; }
.env-grid a:hover img { transform: scale(1.04); }

/* ============ 底部 ============ */
.site-footer { background: #1d2b3a; color: #aeb9c6; margin-top: 48px; padding: 34px 0 0; font-size: 13px; }
.site-footer .f-nav { border-bottom: 1px solid rgba(255, 255, 255, .08); padding-bottom: 22px; margin-bottom: 22px; }
.site-footer .f-nav ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 34px; }
.site-footer .f-nav a { color: #cfd7e0; font-size: 14px; }
.site-footer .f-nav a:hover { color: #fc5159; }
.f-main { display: flex; justify-content: space-between; padding-bottom: 22px; }
.f-info p { line-height: 2; color: #aeb9c6; }
.f-info p strong { color: #fc5159; font-size: 20px; font-family: Georgia, serif; margin-left: 4px; }
.f-info a { color: #cfd7e0; }
.f-qr { text-align: center; }
.f-qr img { width: 92px; height: 92px; border-radius: 6px; margin: 0 auto 8px; }
.f-qr span { font-size: 12px; color: #8a97a5; }
.f-copy { text-align: center; border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0; color: #7c8896; font-size: 12px; }
.f-copy a { color: #aeb9c6; }

/* ============ 悬浮咨询按钮 ============ */
.float-ask { position: fixed; right: 22px; bottom: 120px; z-index: 999; display: flex; flex-direction: column; gap: 12px; }
.float-ask a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 58px; height: 58px; border-radius: 50%; color: #fff; font-size: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .16); transition: transform .2s;
}
.float-ask a:hover { transform: scale(1.08); color: #fff; }
.float-ask .fa-online { background: linear-gradient(135deg, #fc5159, #f04050); }
.float-ask .fa-tel { background: linear-gradient(135deg, #1F8FE5, #0A71E4); }
.float-ask .fa-tel { padding-top: 4px; }
.float-ask .fa-tel i { font-size: 18px; font-style: normal; font-weight: 700; }

/* =========================================================
   内页：面包屑 / 主内容 + 侧栏 / 列表 / 文章
   ========================================================= */
.page-wrap { padding: 20px 0 46px; }
.breadcrumb { background: #fff; border-radius: 8px; padding: 12px 18px; margin-bottom: 18px; font-size: 13px; color: #909399; box-shadow: 0 1px 6px rgba(31, 143, 229, .05); }
.breadcrumb a { color: #1F8FE5; }
.breadcrumb a:hover { text-decoration: underline; }
.page-main { display: flex; gap: 24px; align-items: flex-start; }
.page-left { flex: 1; min-width: 0; }

/* 侧栏 */
.page-right { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 18px; }
.widget { background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 1px 8px rgba(31, 143, 229, .05); }
.widget h3 { font-size: 16px; color: #0A71E4; padding-left: 12px; position: relative; margin-bottom: 14px; }
.widget h3::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 16px; background: #fc5159; border-radius: 2px; }
.widget li { padding: 7px 0; border-bottom: 1px dashed #ebeef5; }
.widget li:last-child { border-bottom: none; }
.widget li a { color: #606266; font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.widget li a:hover { color: #1F8FE5; }
.widget .w-tel { background: linear-gradient(135deg, #fc5159, #f04050); border-radius: 8px; color: #fff; padding: 16px; text-align: center; }
.widget .w-tel span { display: block; font-size: 13px; opacity: .9; }
.widget .w-tel a { font-size: 24px; font-weight: 700; color: #fff; font-family: Georgia, serif; }
.widget .w-btn { display: block; margin-top: 12px; background: #fff; color: #fc5159; text-align: center; padding: 9px 0; border-radius: 20px; font-size: 14px; font-weight: 600; }
.widget .w-btn:hover { background: #fff4f5; color: #f04050; }

/* 列表页 */
.list-box { background: #fff; border-radius: 10px; padding: 8px 24px; box-shadow: 0 1px 8px rgba(31, 143, 229, .05); }
.list-item { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid #f0f2f5; }
.list-item:last-child { border-bottom: none; }
.list-item .li-thumb { flex: 0 0 220px; height: 128px; object-fit: cover; border-radius: 6px; }
.list-item .li-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list-item h3 { font-size: 17px; margin-bottom: 8px; }
.list-item h3 a { color: #303133; }
.list-item h3 a:hover { color: #1F8FE5; }
.list-item .li-desc { font-size: 13px; color: #909399; flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.list-item .li-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; color: #c0c4cc; }
.list-item .li-meta .li-read { color: #1F8FE5; }
.list-item .li-meta .li-read:hover { text-decoration: underline; }

/* 分页 */
.pagination { text-align: center; padding: 26px 0 10px; }
.pagination a, .pagination span, .pagination li {
    display: inline-block; min-width: 34px; height: 34px; line-height: 34px; margin: 0 4px;
    border: 1px solid #dcdfe6; border-radius: 6px; color: #606266; font-size: 13px; background: #fff;
}
.pagination a:hover { border-color: #1F8FE5; color: #1F8FE5; }
.pagination .current, .pagination .thisclass { background: #1F8FE5; border-color: #1F8FE5; color: #fff; }
.pagination a, .pagination span { padding: 0 10px; }

/* 文章页 */
.article-box { background: #fff; border-radius: 10px; padding: 30px 34px; box-shadow: 0 1px 8px rgba(31, 143, 229, .05); }
.article-title { font-size: 24px; color: #303133; text-align: center; line-height: 1.4; }
.article-meta { text-align: center; color: #909399; font-size: 13px; padding: 14px 0 20px; border-bottom: 1px solid #f0f2f5; margin-bottom: 22px; }
.article-meta span { margin: 0 10px; }
.article-content { color: #303133; font-size: 15px; line-height: 2; }
.article-content img { max-width: 100%; height: auto; margin: 10px auto; border-radius: 6px; }
.article-content p { margin: 12px 0; }
.article-content h1, .article-content h2, .article-content h3 { color: #0A71E4; margin: 18px 0 10px; }
.article-prevnext { margin-top: 26px; padding-top: 18px; border-top: 1px solid #f0f2f5; font-size: 14px; color: #606266; line-height: 2.2; }
.article-prevnext a { color: #1F8FE5; }
.article-prevnext a:hover { text-decoration: underline; }
.article-hot { margin-top: 20px; background: #f7fafd; border-radius: 8px; padding: 16px 20px; }
.article-hot h4 { color: #0A71E4; font-size: 15px; margin-bottom: 10px; }
.article-hot li { padding: 5px 0; }
.article-hot li a { color: #606266; font-size: 13px; }
.article-hot li a:hover { color: #1F8FE5; }
.article-cta { margin-top: 22px; display: flex; gap: 16px; justify-content: center; }
.article-cta a { padding: 11px 0; border-radius: 6px; font-size: 15px; font-weight: 600; text-align: center; }
.article-cta .ac-ask { flex: 1; background: linear-gradient(135deg, #fc5159, #f04050); color: #fff; }
.article-cta .ac-tel { flex: 1; background: linear-gradient(135deg, #1F8FE5, #0A71E4); color: #fff; }
.article-cta a:hover { color: #fff; opacity: .92; }

/* 在线咨询页/单页通用 */
.page-single { background: #fff; border-radius: 10px; padding: 30px 34px; box-shadow: 0 1px 8px rgba(31, 143, 229, .05); }

/* ============ 响应式 ============ */
@media (max-width: 1240px) {
    .container { width: 100%; padding: 0 16px; }
    .intro-img { flex-basis: 360px; }
    .intro-img img { width: 360px; height: 260px; }
    .news-grid { grid-template-columns: 1fr 1fr; }
    .doctor-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .topbar-inner { justify-content: center; }
    .topbar-inner .tb-right { display: none; }
    .header-inner { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 10px; }
    .header-right { display: none; }
    .main-nav { overflow-x: auto; }
    .nav-list li a { padding: 0 16px; font-size: 14px; }
    .banner { height: 220px; }
    .quick-nav { margin-top: 0; flex-wrap: wrap; }
    .quick-item { flex: 0 0 50%; border-bottom: 1px solid #f0f2f5; }
    .intro-box { flex-direction: column; }
    .intro-img, .intro-img img { width: 100%; height: auto; }
    .doctor-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .doctor-card .d-img { height: 150px; }
    .news-grid { grid-template-columns: 1fr; }
    .env-grid { grid-template-columns: repeat(2, 1fr); }
    .page-main { flex-direction: column; }
    .page-right { width: 100%; }
    .list-item { flex-direction: column; gap: 10px; }
    .list-item .li-thumb { width: 100%; height: 160px; }
    .f-main { flex-direction: column; gap: 18px; }
    .float-ask { right: 12px; bottom: 90px; }
}

