/* ============================================================
   郑州星美整形医疗美容医院 · 医美主题样式覆盖
   色调：玫瑰粉 #c8687a · 暖金 #d4a574 · 奶白 #fdf8f5
   ============================================================ */

/* ── 导航栏：768px以上始终展开，不折叠成汉堡 ── */
@media (min-width: 768px) {
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
    .navbar-toggler {
        display: none !important;
    }
}

/* ── 全局字体与背景 ── */
body {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
    background-color: #fdfaf8;
    color: #3d2b2b;
}

/* ── 导航栏：纯白+玫瑰金下划线 ── */
.navbar {
    background-color: #fff !important;
    border-bottom: 3px solid #c8687a;
    box-shadow: 0 2px 12px rgba(200,104,122,0.10) !important;
}
.navbar-brand {
    color: #c8687a !important;
    font-weight: 700;
    letter-spacing: 1px;
}
.nav-link {
    color: #4a3028 !important;
    font-size: 15px !important;
    letter-spacing: 1px;
    transition: color .25s;
    white-space: nowrap;
}
.nav-link:hover, .nav-item.active .nav-link {
    color: #c8687a !important;
}
.yimei-main-nav {
    align-items: center;
    flex-wrap: nowrap;
}
.navbar .container {
    gap: 18px;
}
.navbar-text {
    margin-left: 8px;
}
@media (max-width: 991.98px) {
    .yimei-main-nav {
        align-items: flex-start;
        flex-wrap: wrap;
        padding-top: 8px;
    }
    .navbar-text {
        display: block !important;
        margin: 6px 0 8px;
    }
}

/* ── 覆盖 Bootstrap 主色 info → 玫瑰粉 ── */
.bg-info { background-color: #c8687a !important; }
.text-info { color: #c8687a !important; }
.border-info { border-color: #c8687a !important; }

/* ── 覆盖 success → 暖金 ── */
.bg-success { background-color: #c8a07a !important; }
.text-success { color: #9b6010 !important; }

/* ── 覆盖 warning → 深玫 ── */
.text-warning { color: #b05060 !important; }

/* ── 首页各区块标题统一为玫瑰粉 ── */
.text-success.wow,
.text-info.wow,
.text-warning.wow {
    color: #c8687a !important;
}
.section-title-link {
    color: inherit !important;
    text-decoration: none;
}
.section-title-link:hover {
    color: #b05060 !important;
}

/* ── section 背景微调 ── */
.bg-light {
    background-color: #fdf5f5 !important;
}

/* ── 服务项目卡片 ── */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(200,104,122,0.10);
    transition: transform .3s, box-shadow .3s;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(200,104,122,0.22);
}
.card-img-150 {
    overflow: hidden;
}
.card-img-150 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.card:hover .card-img-150 img {
    transform: scale(1.06);
}
.card-title a {
    color: #4a2030 !important;
    font-weight: 600;
    font-size: 16px;
}
.card-title a:hover {
    color: #c8687a !important;
}
.card-body {
    background: #fff;
    padding: 14px 16px;
}

/* ── 首页标题下方分隔线 ── */
.wow.fadeInDown + .wow.fadeInUp::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: #c8687a;
    margin: 8px auto 0;
}

/* ── Banner 文字颜色 ── */
.swiper-container .text-light h1 {
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-weight: 700;
    letter-spacing: 3px;
}
.swiper-container .text-light h4 {
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
    letter-spacing: 2px;
}

/* ── 文章列表区 ── */
.media h5 a {
    color: #4a2030 !important;
    font-size: 16px;
    font-weight: 600;
}
.media h5 a:hover {
    color: #c8687a !important;
}
.media p a {
    color: #888 !important;
    font-size: 13px;
    line-height: 1.8;
}

/* ── "查看更多" 按钮 ── */
.text-secondary.fs-14 {
    color: #c8687a !important;
    border: 1px solid #c8687a;
    padding: 6px 24px;
    border-radius: 20px;
    transition: all .25s;
    display: inline-block;
}
.text-secondary.fs-14:hover {
    background: #c8687a;
    color: #fff !important;
}

/* ── 底部 Footer ── */
.footer {
    background-color: #3d1e22 !important;
    color: #e8d0d0 !important;
    border-top: 3px solid #c8687a !important;
}
.footer h5 {
    color: #f5c5c5 !important;
    font-size: 16px;
    margin-bottom: 12px;
}
.footer li, .footer p, .footer a {
    color: #c8a0a0 !important;
    font-size: 13px;
    line-height: 2;
}
.footer a:hover {
    color: #f5c5c5 !important;
}
.copyright {
    color: #a07070 !important;
    background-color: #2e1518 !important;
    padding: 12px 0;
}

/* ── 手机底部导航栏 ── */
.fixed-bottom.bg-info {
    background: linear-gradient(90deg, #c8687a, #b05060) !important;
}

/* ── 右侧浮动客服 ── */
.online dl {
    background: #c8687a !important;
    border-radius: 0 6px 6px 0;
}
.online dl:hover {
    background: #b05060 !important;
}
.online dl dt button {
    background: #c8687a !important;
}

/* ── 分页颜色 ── */
.page-link, .page-num {
    color: #c8687a !important;
}
.page-num-current {
    background-color: #c8687a !important;
    border-color: #c8687a !important;
    color: #fff !important;
}

/* ── 面包屑/位置 ── */
.position a:hover { color: #c8687a !important; }

/* ── section 间距优化 ── */
.py-5 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }

/* ── 关于我们区块 ── */
.bg-light .text-secondary.lh-2 {
    font-size: 15px;
    line-height: 2.2 !important;
    color: #5a3a3a !important;
}

/* ── 标签/badge ── */
.badge-danger { background-color: #c8687a !important; }
.badge-warning { background-color: #d4a574 !important; }
.badge-info { background-color: #b05060 !important; }

/* ============================================================
   星美 UX 优化：Logo、首屏、列表、详情和图片比例
   ============================================================ */
.xm-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: 190px;
    padding: 0;
}
.xm-logo-img {
    width: 210px;
    height: auto;
    display: block;
}
.xm-brand-mark {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #c8687a, #8f4052);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(200,104,122,.22);
}
.xm-brand-mark span {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}
.xm-brand-text {
    line-height: 1.18;
}
.xm-brand-text div {
    color: #9f4056;
    font-size: 17px;
    font-weight: 700;
}
.xm-brand-text span {
    color: #9a7a7a;
    font-size: 10px;
    letter-spacing: 1px;
}
.xm-banner-img,
.swiper-container .swiper-slide > a > img.d-block {
    height: clamp(260px, 34vw, 520px);
    object-fit: cover;
    object-position: center;
}
.swiper-container .position-absolute {
    max-width: min(680px, 88vw);
    padding: 0 12px;
}
.card {
    border-radius: 8px;
}
.card-img-150 {
    height: auto !important;
    aspect-ratio: 16 / 10;
    background: #f4eeee;
}
.card-body {
    min-height: 150px;
}
.xm-card-more {
    color: #c8687a;
    font-size: 13px;
    font-weight: 600;
}
.xm-list-intro {
    border-left: 4px solid #c8687a;
    background: #fff7f7;
    padding: 14px 18px;
    color: #6d3a42;
}
.xm-list-intro strong {
    display: block;
    font-size: 18px;
    color: #8f4052;
}
.xm-list-intro span {
    font-size: 14px;
    color: #9a7474;
}
.xm-team-card .card-body {
    min-height: 168px;
}
.xm-team-img,
.card-img-200 {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f4eeee;
}
.xm-figure-card .card-img-200 {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #fff;
}
.xm-service-img {
    aspect-ratio: 16 / 10;
}
.xm-service-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
}
.xm-team-img img,
.card-img-200 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.xm-team-img img,
.xm-figure-card .card-img-200 img {
    object-fit: contain;
    object-position: center top;
    background: #fff;
}
.xm-figure-card .card-img-200 img {
    width: auto !important;
    max-width: 100%;
    height: 100% !important;
    display: block;
}
.xm-service-img img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}
.xm-team-card:hover .xm-team-img img,
.xm-figure-card:hover .card-img-200 img {
    transform: scale(1.04);
}
.xm-figure-card {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(200,104,122,0.10);
}
.xm-figure-card figcaption {
    padding: 12px 14px 16px;
}
.xm-figure-card figcaption a {
    color: #4a2030;
    font-size: 16px;
    font-weight: 600;
}
.xm-figure-card figcaption p {
    color: #8a7474;
    font-size: 13px;
    margin: 6px 0 0;
    min-height: 48px;
}
.xm-environment-link {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
    align-items: stretch;
    background: #fff7f7;
    color: #5a343a;
    text-decoration: none !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(200,104,122,0.10);
}
.xm-environment-link img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}
.xm-environment-link span {
    padding: 28px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.xm-environment-link strong {
    display: block;
    color: #8f4052;
    font-size: 22px;
    margin-bottom: 10px;
}
.xm-environment-link em {
    color: #6d5558;
    font-style: normal;
    line-height: 1.9;
}
.xm-video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(200,104,122,0.10);
}
.xm-video-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #f4eeee;
}
.xm-video-card h5 {
    color: #8f4052;
    font-size: 18px;
    font-weight: 700;
    margin: 16px 18px 6px;
}
.xm-video-card p {
    color: #7d6668;
    font-size: 14px;
    line-height: 1.8;
    margin: 0 18px 18px;
}
.view .swiper-container {
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
}
.view .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.preview .swiper-container {
    height: 82px;
}
.preview .swiper-slide {
    width: 92px;
    height: 72px;
    overflow: hidden;
    margin-right: 8px;
    border-radius: 6px;
}
.preview .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.xm-detail-summary {
    color: #8f4052;
    background: #fff7f7;
    border-left: 4px solid #c8687a;
    padding: 12px 14px;
    line-height: 1.8;
    margin: 12px 0;
}
.xm-detail-note {
    background: #f7f1ed;
    color: #7a5d54;
    padding: 12px 14px;
    border-radius: 6px;
    line-height: 1.8;
}
.xm-profile-poster {
    display: flex;
    justify-content: center;
    margin: 22px auto 26px;
}
.xm-profile-poster img {
    width: min(560px, 92vw);
    max-height: 760px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(200,104,122,.12);
}
.content,
.xm-content {
    color: #4f3838;
    line-height: 2;
}
.content h3,
.xm-content h3 {
    margin: 26px 0 12px;
    color: #8f4052;
    font-size: 20px;
    font-weight: 700;
}
.content ul,
.xm-content ul {
    padding-left: 1.2rem;
}
.content li,
.xm-content li {
    margin-bottom: 8px;
}
.content img {
    max-width: 100%;
    height: auto;
}
.xm-inline-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0 24px;
}
.xm-inline-gallery img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
}
.xm-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.xm-cta-row a {
    color: #fff !important;
    background: #c8687a;
    padding: 9px 18px;
    border-radius: 999px;
    text-decoration: none;
}
@media (max-width: 767.98px) {
    .xm-brand {
        min-width: 0;
    }
    .xm-logo-img {
        width: 162px;
    }
    .xm-brand-text div {
        font-size: 15px;
    }
    .xm-brand-text span {
        display: none;
    }
    .xm-banner-img,
    .swiper-container .swiper-slide > a > img.d-block {
        height: 240px;
    }
    .swiper-container .text-light h1 {
        font-size: 24px !important;
        letter-spacing: 1px;
    }
    .swiper-container .text-light h4 {
        font-size: 14px !important;
        letter-spacing: 0;
    }
    .xm-environment-link {
        grid-template-columns: 1fr;
    }
    .xm-environment-link img {
        min-height: 220px;
    }
    .xm-environment-link span {
        padding: 20px;
    }
    .xm-inline-gallery {
        grid-template-columns: 1fr;
    }
}
