/*
Theme Name: 京贝口腔 GEO
Theme URI: https://jbd920.com
Description: GEO优化版WordPress主题 — 口腔诊所品牌官网
Version: 1.0
Author: JingBei Dental
Text Domain: jingbei-dental
*/

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #333; background: #fff; line-height: 1.6; }
a { color: inherit; text-decoration: none; transition: opacity .3s; }
a:hover { opacity: .8; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
[class*="col-"] { padding: 0 15px; flex: 0 0 100%; }
.col-xs-12 { flex: 0 0 100%; }
.col-xs-7 { flex: 0 0 58.333%; }
.col-xs-6 { flex: 0 0 50%; }
.col-xs-5 { flex: 0 0 41.667%; }
.col-xs-3 { flex: 0 0 25%; }
@media (min-width: 768px) {
  .col-sm-8 { flex: 0 0 66.667%; }
  .col-sm-7 { flex: 0 0 58.333%; }
  .col-sm-6 { flex: 0 0 50%; }
  .col-sm-5 { flex: 0 0 41.667%; }
  .col-sm-4 { flex: 0 0 33.333%; }
  .col-sm-3 { flex: 0 0 25%; }
}
@media (min-width: 992px) {
  .col-md-8 { flex: 0 0 66.667%; }
  .col-md-7 { flex: 0 0 58.333%; }
  .col-md-6 { flex: 0 0 50%; }
  .col-md-5 { flex: 0 0 41.667%; }
  .col-md-4 { flex: 0 0 33.333%; }
  .col-md-3 { flex: 0 0 25%; }
}

/* ===== Utility ===== */
.flex { display: flex; }
.flex-column { flex-direction: column; }
.jc-sb { justify-content: space-between; }
.jc-c { justify-content: center; }
.ai-c { align-items: center; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-white { color: #fff; }
.text-red { color: #e4393c; }
.text-gray { color: #999; }
.text-dark { color: #333; }
.bg-deep { background: #1a1a2e; }
.bg-light { background: #f5f5f5; }
.bg-white { background: #fff; }
.bg-danger { background: #e4393c; color: #fff; }
.f12 { font-size: 12px; }
.f14 { font-size: 14px; }
.f16 { font-size: 16px; }
.f18 { font-size: 18px; }
.f20 { font-size: 20px; }
.f24 { font-size: 24px; }
.f30 { font-size: 30px; }
.f32 { font-size: 32px; }
.f40 { font-size: 40px; }
.f60 { font-size: 60px; }
.f64 { font-size: 64px; }
.fw { font-weight: 700; }
.fw-5 { font-weight: 500; }
.op-2 { opacity: .2; }
.op-6 { opacity: .6; }
.op-8 { opacity: .8; }
.mt { margin-top: 10px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-15 { margin-bottom: 15px; }
.mb-30 { margin-bottom: 30px; }
.ml { margin-left: 10px; }
.ml-10 { margin-left: 10px; }
.ml-20 { margin-left: 20px; }
.mr { margin-right: 10px; }
.p-10 { padding: 10px; }
.p-15 { padding: 15px; }
.p-20 { padding: 20px; }
.px-10 { padding: 0 10px; }
.px-15 { padding: 0 15px; }
.py-10 { padding: 10px 0; }
.py-15 { padding: 15px 0; }
.pb-60 { padding-bottom: 60px; }
.h-100 { height: 100%; }
.r-4 { border-radius: 4px; }
.border { border: 1px solid #e8e8e8; }
.border-r { border-right: 1px solid #e8e8e8; }
.ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ellipsis2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.space10 { margin: 0 -5px; }
.space10 > [class*="col-"] { padding: 0 5px; }
.space15 { margin: 0 -7.5px; }
.space15 > [class*="col-"] { padding: 0 7.5px; }
.space30 { margin: 0 -15px; }
.space60 { margin: 0 -15px; }
.w-100 { width: 100%; }

/* ===== Top Bar ===== */
.top { padding: 10px 0; font-size: 14px; }
.top a { color: inherit; }
.top a:hover { color: #e4393c; }

/* ===== Navigation ===== */
.mainnav { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.05); position: sticky; top: 0; z-index: 100; }
.mainnav .container { display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 60px; }
.menu ul { display: flex; }
.menu li a { display: block; padding: 20px 15px; font-size: 16px; color: #333; transition: color .3s; }
.menu li a:hover, .menu li.current-menu-item a { color: #e4393c; }

/* ===== Banner ===== */
.swiper-banner { position: relative; overflow: hidden; max-width: 1920px; margin: 0 auto; }
.swiper-banner .swiper-slide img { width: 100%; height: 740px; object-fit: cover; }
@media (max-width: 1400px) { .swiper-banner .swiper-slide img { height: calc(100vw * 740 / 1920); } }
@media (max-width: 768px) { .swiper-banner .swiper-slide img { height: 280px; } }
.swiper-banner .swiper-pagination { bottom: 20px; }
.swiper-banner .swiper-pagination-bullet { width: 12px; height: 12px; background: rgba(255,255,255,.5); opacity: 1; }
.swiper-banner .swiper-pagination-bullet-active { background: #fff; }

/* ===== Section Common ===== */
.section { padding: 60px 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.section-title .cn { font-size: 28px; font-weight: 700; color: #333; }
.section-title .en { font-size: 14px; color: #999; margin-top: 5px; letter-spacing: 2px; }
.line-min { width: 40px; height: 3px; background: #e4393c; margin-top: 15px; }

/* ===== News Section ===== */
.news-section { padding: 60px 0; }
.news-card { display: flex; gap: 20px; }
.news-card .img-box { flex: 0 0 200px; }
.news-card .img-box img { width: 100%; height: 140px; object-fit: cover; border-radius: 4px; }
.news-card .info { flex: 1; }
.news-card .date { font-size: 14px; color: #999; margin-bottom: 10px; }
.news-card .title { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.news-card .title a { color: #333; }
.news-card .title a:hover { color: #e4393c; }
.news-card .excerpt { font-size: 15px; color: #666; line-height: 1.8; }
.news-list { margin-top: 20px; }
.news-list li { padding: 12px 0; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.news-list li a { color: #333; font-size: 15px; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.news-list li a:hover { color: #e4393c; }
.news-list .time { color: #999; font-size: 13px; margin-left: 15px; flex-shrink: 0; }

/* ===== Contact Box ===== */
.contact-box { display: flex; border: 1px solid #e8e8e8; border-radius: 4px; margin: 20px 0; }
.contact-item { flex: 1; text-align: center; padding: 20px 10px; border-right: 1px solid #e8e8e8; }
.contact-item:last-child { border-right: none; }
.contact-item img { width: 40px; height: 40px; margin: 0 auto 8px; }
.contact-item span { display: block; font-size: 16px; }

/* ===== Doctor Section ===== */
.doctor-section { background: #1a1a2e; color: #fff; padding: 60px 0; }
.doctor-section .info-text { font-size: 16px; line-height: 2; opacity: .8; margin-top: 30px; }
.doctor-nav { display: flex; justify-content: space-between; align-items: center; }
.doctor-nav .arrows { display: flex; gap: 10px; }
.doctor-nav .arrows > div { background: rgba(255,255,255,.1); padding: 10px; cursor: pointer; border-radius: 4px; color: #fff; }
.doctor-nav .arrows > div:hover { background: rgba(255,255,255,.2); }
.doctor-banner { overflow: hidden; }
.doctor-banner .swiper-wrapper { display: flex; align-items: stretch; }
.doctor-banner .swiper-slide { flex-shrink: 0; width: 100% !important; }
.doctor-banner .swiper-slide img { width: 100%; height: 400px; object-fit: contain; border-radius: 8px; display: block; background: rgba(255,255,255,.05); }
.doctor-img-placeholder { height: 400px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.3); font-size: 14px; background: rgba(255,255,255,.05); border-radius: 8px; }
.doctor-banner .swiper-pagination { position: relative; bottom: auto; margin-top: 15px; }
.doctor-banner .swiper-pagination-bullet { background: rgba(255,255,255,.4); }
.doctor-banner .swiper-pagination-bullet-active { background: #e4393c; }

/* ===== About Section ===== */
.about-section { padding: 60px 0; }
.about-text p { margin-bottom: 15px; line-height: 2; }

/* ===== Services ===== */
.services-section { background: #f5f5f5; padding: 60px 0; }
.service-card { background: #fff; border-radius: 8px; overflow: hidden; text-align: center; padding: 30px 20px; margin-bottom: 20px; transition: transform .3s, box-shadow .3s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.service-card img { width: 80px; height: 80px; margin: 0 auto 15px; object-fit: contain; }
.service-card .en { font-size: 13px; color: #999; text-transform: uppercase; letter-spacing: 1px; }
.service-card .name { font-size: 22px; font-weight: 700; margin: 8px 0; }
.service-card .desc { font-size: 15px; color: #666; }
.service-card .kefu-btn { display: inline-block; margin-top: 15px; padding: 8px 25px; background: #e4393c; color: #fff; border-radius: 20px; font-size: 14px; }

/* ===== Gallery Tabs ===== */
.gallery-section { padding: 60px 0; }
.gallery-tabs { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; }
.gallery-tab { padding: 10px 25px; background: #f5f5f5; border-radius: 4px; cursor: pointer; font-size: 16px; transition: all .3s; }
.gallery-tab:hover, .gallery-tab.active { background: #e4393c; color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-grid .item { background: #fff; border-radius: 4px; overflow: hidden; }
.gallery-grid .item img { width: 100%; height: 220px; object-fit: cover; border-radius: 4px; }
.gallery-grid .item .label { padding: 10px; text-align: center; font-size: 15px; }

/* ===== Culture ===== */
.culture-section { padding: 60px 0; background: #fafafa; }
.culture-item { text-align: center; padding: 30px 20px; }
.culture-item i { font-size: 48px; color: #e4393c; }
.culture-item h2 { font-size: 22px; margin: 15px 0 10px; }
.culture-item p { font-size: 15px; color: #666; line-height: 1.8; }

/* ===== Footer ===== */
.footer-section { background: #1a1a2e; color: #aaa; padding: 40px 0; font-size: 14px; }
.footer-section a { color: #aaa; }
.footer-section a:hover { color: #fff; }
.footer-section .city-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.footer-section .city-links a { padding: 5px 15px; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; }
.footer-section .footer-content { display: flex; align-items: center; justify-content: center; gap: 30px; }
.footer-section .footer-logo img { height: 50px; }
.footer-section .footer-info { text-align: left; line-height: 2; }
.footer-section .footer-qr { text-align: center; }
.footer-section .footer-qr img { width: 100px; height: 100px; }

/* ===== Floating Tools ===== */
.tools-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,.1); z-index: 999; display: flex; }
.tools-bar a { flex: 1; text-align: center; padding: 10px 5px; font-size: 12px; color: #333; border-right: 1px solid #f0f0f0; }
.tools-bar a:last-child { border-right: none; }
.tools-bar a i { display: block; font-size: 22px; margin-bottom: 3px; color: #e4393c; }
.tools-bar .hotline { background: #e4393c; color: #fff; }
.tools-bar .hotline i, .tools-bar .hotline span { color: #fff; }
.tools-bar .hotline .num { font-size: 16px; font-weight: 700; }
@media (min-width: 768px) { .tools-bar { display: none; } }

/* ===== Page Content ===== */
.page-content { padding: 40px 0; min-height: 400px; }
.page-content .entry-content { line-height: 2; font-size: 16px; }
.page-content .entry-content p { margin-bottom: 15px; }
.page-content .entry-content h2 { font-size: 24px; margin: 30px 0 15px; }
.page-content .entry-content h3 { font-size: 20px; margin: 25px 0 12px; }
.page-content .entry-content img { max-width: 100%; height: auto; margin: 20px 0; border-radius: 4px; }
.page-content .entry-content ul, .page-content .entry-content ol { padding-left: 20px; margin-bottom: 15px; }
.page-content .entry-content li { margin-bottom: 8px; }

/* ===== Blog ===== */
.blog-list article { margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid #f0f0f0; }
.blog-list .post-thumb { margin-bottom: 15px; }
.blog-list .post-thumb img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 4px; }
.blog-list .post-meta { font-size: 14px; color: #999; margin-bottom: 10px; }
.blog-list .post-meta span { margin-right: 15px; }
.blog-list .post-title { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.blog-list .post-title a { color: #333; }
.blog-list .post-title a:hover { color: #e4393c; }
.blog-list .post-excerpt { font-size: 15px; color: #666; line-height: 1.8; }
.pagination { display: flex; justify-content: center; gap: 5px; margin: 40px 0; }
.pagination a, .pagination span { display: inline-block; padding: 8px 15px; border: 1px solid #ddd; border-radius: 4px; color: #333; }
.pagination .current { background: #e4393c; color: #fff; border-color: #e4393c; }

/* ===== Breadcrumb ===== */
.breadcrumb { padding: 15px 0; font-size: 14px; color: #999; }
.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: #e4393c; }
.breadcrumb .sep { margin: 0 8px; }

/* ===== Page Header ===== */
.page-header { background: #1a1a2e; color: #fff; padding: 50px 0; text-align: center; }
.page-header h1 { font-size: 32px; margin-bottom: 10px; }

/* ===== Page Header Bar (Inner Pages) ===== */
.page-header-bar { background: #1a1a2e url('') no-repeat center; background-size: cover; color: #fff; padding: 60px 0; text-align: center; position: relative; }
.page-header-bar h1 { font-size: 36px; margin-bottom: 10px; }
.page-header-bar .en-sub { font-size: 20px; opacity: .4; text-transform: uppercase; margin-top: 10px; letter-spacing: 3px; }
.breadcrumb-wrap { border-bottom: 1px solid #e8e8e8; background: #fafafa; }
.breadcrumb-wrap .breadcrumb { padding: 15px 0; font-size: 14px; color: #999; }
.breadcrumb-wrap .breadcrumb a { color: #999; }
.breadcrumb-wrap .breadcrumb a:hover { color: #e4393c; }
.breadcrumb-wrap .breadcrumb .sep { margin: 0 8px; }
.section-pb { padding-bottom: 60px; }
.section-pt { padding-top: 60px; }

/* ===== About Page ===== */
.about-logo-box { padding: 30px; text-align: center; border: 1px solid #f0f0f0; border-radius: 8px; height: 100%; display: flex; align-items: center; justify-content: center; }
.about-logo-box img { max-height: 350px; width: auto; max-width: 100%; }
.about-intro-text { font-size: 15px; line-height: 2; color: #555; }
.about-intro-text p { margin-bottom: 15px; }
.brand-card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .3s, box-shadow .3s; }
.brand-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.brand-section { padding-bottom: 60px; }

/* ===== Inner Service Card ===== */
.inner-service-card { border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.04); text-align: center; }
.inner-service-card img { transition: transform .4s; }
.inner-service-card:hover img { transform: scale(1.05); }
.inner-service-card .inner-service-info { padding: 15px; text-align: center; }
.inner-service-card .inner-service-info .sep { margin: 0 5px; opacity: .4; }
.cta-btn { display: inline-block; padding: 8px 25px; background: #e4393c; color: #fff; border-radius: 20px; font-size: 14px; transition: background .3s; }
.cta-btn:hover { background: #c62f33; color: #fff; opacity: 1; }
.inner-services { padding-bottom: 60px; }

/* ===== Environment Cards ===== */
.env-card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .3s; }
.env-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.inner-env { padding-bottom: 60px; }

/* ===== Team Page ===== */
.team-header-banner img { width: 100%; display: block; }
.breadcrumb-bar { background: #e4393c; color: #fff; padding: 10px 0; font-size: 14px; }
.breadcrumb-bar a { color: #fff; opacity: .85; }
.breadcrumb-bar a:hover { opacity: 1; }

.team-card { background: #fff; border: 1px solid #eee; border-radius: 4px; overflow: hidden; height: 100%; }
.team-card .row { height: 100%; }
.team-card .row > .col-sm-4 { position: relative; }
.team-card-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #f5f5f5; }
.team-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 767px) {
  .team-card .row > .col-sm-4 { position: static; }
  .team-card-img { position: static; min-height: 200px; }
}
.team-card-body { padding: 20px 20px 20px 25px; height: 100%; display: flex; flex-direction: column; }
.team-card-name { font-size: 22px; }
.team-card-name a { color: #333; }
.team-card-name a:hover { color: #e4393c; }
.team-card-tag { display: inline-block; background: #e4393c; color: #fff; padding: 2px 10px; border-radius: 3px; font-size: 13px; margin-top: 6px; }
.team-card-desc { flex: 1; margin-top: 12px; font-size: 14px; line-height: 1.9; color: #888; opacity: .85; max-height: 260px; overflow-y: auto; }
.team-card-desc p { margin-bottom: 2px; }
.team-card-actions { margin-top: 15px; padding-top: 15px; border-top: 1px solid #f0f0f0; display: flex; gap: 10px; }
.team-card-actions .btn-detail { display: inline-block; padding: 8px 20px; background: #e4393c; color: #fff; border-radius: 3px; font-size: 14px; }
.team-card-actions .btn-consult { display: inline-block; padding: 8px 20px; background: #333; color: #fff; border-radius: 3px; font-size: 14px; }
.team-card-actions .btn-detail:hover { opacity: .85; }
.team-card-actions .btn-consult:hover { opacity: .85; }

@media (max-width: 767px) {
  .team-card-img { min-height: 200px; }
  .team-card-body { padding: 15px; }
}

/* ===== Doctor Detail Page ===== */
.doctor-single-img { background: #f5f5f5; border-radius: 4px; overflow: hidden; }
.doctor-single-img img { width: 100%; display: block; }
.doctor-qualifications { margin-top: 20px; font-size: 15px; line-height: 2; color: #666; opacity: .85; }
.doctor-qualifications p { margin-bottom: 2px; }
.doctor-content { margin-top: 25px; font-size: 15px; line-height: 2; color: #444; }
.doctor-content strong { color: #c00; font-size: 20px; }
.doctor-nav-bottom { margin-top: 40px; padding: 25px 0; border-top: 1px solid #eee; font-size: 16px; }
.doctor-nav-bottom a { color: #e4393c; }
.doctor-nav-bottom a:hover { text-decoration: underline; }

/* ===== Doctor Card (legacy/home) ===== */
.doctor-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); height: 100%; }
.doctor-card .doctor-card-info { padding: 20px; }
.doctor-card .doctor-card-desc { font-size: 14px; line-height: 1.8; color: #888; margin-top: 10px; }

/* ===== Contact Page ===== */
.contact-card { box-shadow: 0 2px 8px rgba(0,0,0,.03); }

/* ===== Case Card ===== */
.case-card { box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .3s, box-shadow .3s; }
.case-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.1); }

/* ===== Video ===== */
.video-wrapper { position: relative; width: 100%; border-radius: 8px; overflow: hidden; margin: 15px 0; aspect-ratio: 16/9; background: #000; }
.video-wrapper video { width: 100%; height: 100%; display: block; object-fit: contain; }
