/* Bootstrap 5 自定义样式 - 脱单会 */

/* 基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}

/* 主容器 */
#app {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* 导航栏样式 */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: transparent;
}

.navbar.bg-white {
    background-color: rgba(255, 255, 255, 1) !important;
}

.navbar-brand img {
    height: 44px;
    width: auto;
}

.navbar-nav .nav-link {
    color: #353535;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #BC3988;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 3px;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    background-color: #BC3988;
}

/* 移动端导航栏 */
@media (max-width: 991px) {
    .navbar {
        background-color: rgba(255, 255, 255, 0.95) !important;
    }
    
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
}

/* 右侧指示器 */
.indicator {
    position: fixed;
    top: 50%;
    right: 3%;
    transform: translateY(-50%);
    z-index: 666;
}

.indicator-item {
    padding: 0.5rem 0;
    cursor: pointer;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d8d8d8;
    transition: all 0.7s ease;
}

.indicator-item.active .indicator-dot {
    height: 34px;
    border-radius: 17px;
    background-color: #D13693;
}

/* 微信二维码 */
.qrCode {
    position: fixed;
    z-index: 666;
    bottom: 100px;
    right: 3%;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    user-select: none;
    cursor: grab;
}

.qrCode img {
    width: 132px;
    height: 132px;
    border-radius: 50%;
}

/* 主体内容区域 */
.h-body {
    overflow: visible;
}

.module_box {
    height: auto;
    touch-action: none;
    transform: none;
    transition: none;
}

/* 全屏区块 */
.bk_100 {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 6rem 0;
    box-sizing: border-box;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.bk_100 h1 {
    position: relative;
    width: 100%;
}

/* 标题背景文字 */
.h1-i-left {
    position: absolute;
    width: 100%;
    top: -60%;
    left: 0;
    font-size: 4.5rem;
    opacity: 0.1;
    color: #353535;
    font-style: normal;
    pointer-events: none;
}

.h1-i-center {
    position: absolute;
    width: 100%;
    top: -60%;
    left: 50%;
    font-size: 4.5rem;
    opacity: 0.1;
    transform: translateX(-50%);
    color: #353535;
    font-style: normal;
    pointer-events: none;
}

/* 首页样式 */
.menu_1 {
    background-image: url("https://pro-tdh-applet-res.oss-cn-shanghai.aliyuncs.com/h5/image/new_index/img_0.png?v=20260224v1");
}

.m1-left {
    padding: 2rem;
    background: rgba(255, 248, 239, 0.42);
    box-shadow: inset 2px 2px 0px 0px #FFFFFF;
    color: #462E12;
}

.m1-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    line-height: 120px;
    text-align: center;
    background: rgba(0, 0, 0, 0.28);
    color: #FFFFFF;
    letter-spacing: 1.5rem;
}

.m1-right-img {
    width: 60px;
    height: 62px;
    vertical-align: bottom;
}

.m1-right-text {
    text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.5);
}

/* 公司简介 */
.menu_2 {
    background-image: url("https://pro-tdh-applet-res.oss-cn-shanghai.aliyuncs.com/h5/image/new_index/img_2.png?v=20260224v1");
    color: #353535;
}

.menu_2 .text-primary {
    color: #BC3988 !important;
}

/* 荣誉资质 */
.menu_4 {
    background-image: url("https://pro-tdh-applet-res.oss-cn-shanghai.aliyuncs.com/h5/image/new_index/img_4.png?v=20260224v1");
    justify-content: center;
}

.menu_4 .text-primary {
    color: #BC3988 !important;
}

/* 荣誉展示 */
.menu_5 {
    background-image: url("https://pro-tdh-applet-res.oss-cn-shanghai.aliyuncs.com/h5/image/new_index/img_5.png?v=20260224v1");
}

.menu_5 .text-primary {
    color: #BC3988 !important;
}

.menu_5_content {
    white-space: nowrap;
}

.m5c-item {
    display: inline-block;
    overflow: hidden;
    transform: translateX(0);
    transition: transform 0.5s ease;
    vertical-align: top;
}

.menu_5_pointer {
    width: 60px;
    height: 60px;
    cursor: pointer;
    margin: 0 10px;
}

/* 产品介绍 */
.menu_3 {
    background-image: url("https://pro-tdh-applet-res.oss-cn-shanghai.aliyuncs.com/h5/image/new_index/img_3.png?v=20260224v1");
}

.menu_3_content {
    background: #FFFFFF;
    border-radius: 1.5rem 0px 0px 1.5rem;
}

.m3c-card {
    background: #FFFFFF;
    border: 1px solid #ECECEC;
    transition: all 0.3s ease;
}

.m3c-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.m3c-card.active {
    background: linear-gradient(159deg, #FF88CF 0%, #EF269F 100%);
    border-color: transparent;
}

/* 成功案例 */
.menu_6 {
    background-image: url("https://pro-tdh-applet-res.oss-cn-shanghai.aliyuncs.com/h5/image/new_index/img_6.png?v=20260224v1");
}

.menu_6_content {
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.m6p-item {
    width: 280px;
    height: 400px;
    position: relative;
    display: inline-block;
    margin-right: 2rem;
    flex-shrink: 0;
    white-space: normal;
    transform: translateX(0);
    transition: transform 0.5s ease;
}

.m6p-item img:first-child {
    z-index: 55;
}

.m6p-item img:nth-child(2) {
    z-index: 66;
}

.m6p-item img:nth-child(3) {
    z-index: 77;
}

.m6p-item p {
    z-index: 99;
}

.menu_6_pointer {
    width: 60px;
    height: 60px;
    cursor: pointer;
    margin: 0 10px;
}

/* 优势对比 */
.menu_7 {
    background-image: url("https://pro-tdh-applet-res.oss-cn-shanghai.aliyuncs.com/h5/image/new_index/img_7.png?v=20260224v1");
}

/* 全国门店 */
.menu_8 {
    background-image: url("https://pro-tdh-applet-res.oss-cn-shanghai.aliyuncs.com/h5/image/new_index/img_8.png?v=20260224v1");
}

.menu_8 .text-primary {
    color: #BC3988 !important;
}

.m8cr-list-item {
    background-color: #FFFFFF;
    transform: translateY(0);
    transition: transform 0.5s ease;
}

/* 页脚 */
.footer {
    height: auto;
    min-height: 180px;
}

/* 弹窗样式 */
.store-info-title {
    background: #BC3988;
}

.log-store-info .el-dialog__header {
    padding: 0;
}

/* 工具类 */
.cursor-pointer {
    cursor: pointer;
}

.object-fit-cover {
    object-fit: cover;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .h1-i-left,
    .h1-i-center {
        font-size: 3rem;
    }
    
    .m1-title {
        letter-spacing: 0.5rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .bk_100 {
        padding: 4rem 0;
        height: auto;
        min-height: 100vh;
    }
    
    .h1-i-left,
    .h1-i-center {
        font-size: 2rem;
        top: -40%;
    }
    
    .m1-title {
        height: 80px;
        line-height: 80px;
        letter-spacing: 0.3rem;
        font-size: 1.2rem;
    }
    
    .m1-left {
        margin-bottom: 2rem;
    }
    
    .m6p-item {
        width: 240px;
        height: 340px;
    }
    
    .qrCode {
        display: none !important;
    }
    
    .module_box {
        height: auto;
        transform: none !important;
        transition: none;
    }
    
    .bk_100 {
        background-attachment: scroll;
    }
}

@media (max-width: 576px) {
    .h1-i-left,
    .h1-i-center {
        display: none;
    }
    
    .m1-title {
        font-size: 1rem;
        letter-spacing: 0.2rem;
    }
    
    .m6p-item {
        width: 200px;
        height: 280px;
        margin-right: 1rem;
    }
    
    .menu_5_pointer,
    .menu_6_pointer {
        width: 40px;
        height: 40px;
    }
}

/* Bootstrap 颜色覆盖 */
.text-primary {
    color: #BC3988 !important;
}

.btn-outline-primary {
    color: #BC3988;
    border-color: #BC3988;
}

.btn-outline-primary:hover {
    background-color: #BC3988;
    border-color: #BC3988;
    color: white;
}

.border-primary {
    border-color: #BC3988 !important;
}

/* 恋爱宝典文章列表样式 */
.love-articles {
    margin-top: 2rem;
}

.article-item {
    transition: all 0.3s ease;
}

.article-item:hover {
    transform: translateX(5px);
}

.article-item a:hover h3 {
    color: #a03070 !important;
}

.hover-text-primary:hover {
    color: #BC3988 !important;
}

/* 服务介绍样式 */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(188, 57, 136, 0.15) !important;
}

.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background-color: #a03070 !important;
}

.section-title {
    margin-bottom: 3rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #BC3988;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a03070;
}

/* 文章详情页面样式 */
.mt-200 {
    margin-top: 150px;
}

.article-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-title {
    font-size: 2rem;
    font-weight: bold;
    color: #353535;
    margin-bottom: 1rem;
}

.article-meta {
    color: #6c757d;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.article-body {
    line-height: 1.8;
    color: #353535;
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #353535;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.mt-100 {
    margin-top: 100px;
}
