/* 公共样式文件 */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
}

/* 轮播图样式 */
#mainCarousel,
.carousel-inner,
.carousel-item {
    height: 180px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    cursor: pointer;
}

.carousel {
    margin-bottom: 20px;
}

/* 导航区域样式 */
.nav-section {
    background-color: #fff;
    padding: 5px 10px;
    margin-bottom: 5px;
}

.nav-item {
    text-align: center;
    padding: 5px 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.nav-item:hover {
    transform: scale(0.95);
}

.nav-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #6c5ce7;
    border-radius: 12px;
    color: #fff;
    font-size: 22px;
    margin-left: auto;
    margin-right: auto;
}

.nav-title {
    font-size: 14px;
    color: #333;
}

/* 客服按钮样式 */
.bottom-service {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 80px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.service-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, #e17055, #fdcb6e);
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s;
}

.service-btn:hover {
    transform: scale(1.02);
}

/* 首页悬浮按钮样式 */
.floating-btn-home {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s;
    font-size: 18px;
    font-weight: bold;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* 首页分享悬浮按钮样式 */
.floating-share-btn-home {
    position: fixed;
    bottom: 98px;
    right: 20px;
    width: 96px;
    height: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff8a65, #ff7043);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s;
    font-size: 15px;
    font-weight: bold;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* iframe内悬浮按钮样式 */
.floating-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s;
    font-size: 18px;
    font-weight: bold;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-share-btn-home:hover {
    transform: scale(1.1);
}

/* 全屏图片查看器样式 */
.fullscreen-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.fullscreen-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fullscreen-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* iframe容器样式 */
.iframe-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 400;
    display: none;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* iframe遮罩层 - 防止外部网站捕获悬浮按钮区域的点击事件 */
.iframe-mask {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 170px;
    background-color: transparent;
    z-index: 999;
    pointer-events: none;
}

/* 视频弹窗样式 */
.video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.video-popup.show {
    display: flex;
}

.video-popup-content {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 30px 24px;
    margin: 0 20px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(10px);
    transform: translateY(28px);
}



.video-popup-message {
    font-size: 22px;
    color: #e53935;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 24px;
}

.video-popup-buttons {
    display: flex;
    width: 100%;
    gap: 18px;
    margin-top: 18px;
}

.video-btn-yes {
    flex: 9;
    height: 52px;
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.video-btn-yes:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.video-btn-no {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #ff8a65, #ff7043);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.video-btn-no:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* 备案号样式 */
.beian-section {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 15px 20px 40px;
    background-color: #f5f5f5;
    font-size: 12px;
    color: #999;
}

.beian-section a {
    color: #999;
    text-decoration: none;
}

.beian-section a:hover {
    text-decoration: underline;
}

/* 示例页面样式 */
.example-page {
    padding: 20px;
    text-align: center;
}

.example-page h1 {
    color: #6c5ce7;
    margin-bottom: 20px;
}

.example-page p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}
