/* TikTok page specific styles */
body.tiktok-page {
    background-color: #f0f2f5; /* 与Facebook页面相同的背景色 */
}
 
.tiktok-content .main-title {
    color: #FE2C55; /* TikTok主题色 */
} 

/* 保留特定的Bootstrap 5樣式但避免覆蓋全局字體和基本樣式 */
.rounded-4 {
    border-radius: 1rem;
}
.btn-danger {
    background-color: #fd1d1d;
    border-color: #fd1d1d;
}
.btn-danger:hover {
    background-color: #e31c1c;
    border-color: #e31c1c;
}
.text-danger {
    color: #fd1d1d !important;
}
.badge {
    font-weight: 500;
}
.tiktok-hero-image {
    max-width: 100%;
    height: auto;
}
/* 修復可能的衝突，但保留原有字體 */
.card {
    border: none;
}
.card-body {
    padding: 1.5rem;
}
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}
.mb-4 {
    margin-bottom: 1.5rem !important;
}
.mb-3 {
    margin-bottom: 1rem !important;
}
.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}
.text-center {
    text-align: center !important;
}
.bg-success {
    background-color: #198754 !important;
}
.bg-light {
    background-color: #f8f9fa !important;
}
.text-dark {
    color: #212529 !important;
}
.text-muted {
    color: #6c757d !important;
}
.text-primary {
    color: #0d6efd !important; /* 更新为蓝色，与原内联样式一致 */
}
.text-success {
    color: #198754 !important;
}

/* TikTok特定樣式 */
/* 合作夥伴數字樣式 */
.partner-number {
    color: #6f42c1; /* 紫色 */
    padding: 10px;
    border-radius: 5px;
}

/* 立即體驗按鈕懸停效果 */
.btn-primary {
    background-color: #6f42c1; /* 更新为紫色，与原内联样式一致 */
    border-color: #6f42c1; /* 更新为紫色，与原内联样式一致 */
}

.btn-primary:hover {
    background-color: transparent !important;
    color: #6f42c1 !important; /* 更新为紫色，与原内联样式一致 */
    border-color: #6f42c1 !important; /* 更新为紫色，与原内联样式一致 */
}

/* 評分樣式 */
.rating-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.rating-item {
    width: 110px;
    margin: 0 15px;
}
.logo-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
}
.rating-logo {
    max-height: 56px;
    max-width: 110px;
}
.rating-stars {
    font-size: 16px;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: 2px;
}
.rating-score {
    font-size: 17px;
    line-height: 1.2;
    margin-bottom: 6px;
    font-weight: 500;
}
.rating-count {
    font-size: 13px;
    line-height: 1;
    color: #6c757d;
    margin-bottom: 0;
}

/* 移動端樣式 */
@media (max-width: 768px) {
    .rating-logos {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 5px 0;
        -webkit-overflow-scrolling: touch; /* 增加iOS流畅滚动 */
        scrollbar-width: none; /* 隐藏Firefox滚动条 */
        white-space: nowrap; /* 确保内容不换行 */
        scroll-behavior: smooth; /* 平滑滚动 */
        width: 100%;
        margin: 0 -15px; /* 抵消容器内边距 */
        padding: 0 15px; /* 添加内边距确保两侧有空间 */
    }
    
    .rating-logos::-webkit-scrollbar {
        display: none; /* 隐藏Chrome滚动条 */
    }
    
    .rating-item {
        flex: 0 0 auto;
        width: 90px; /* 减小移动端宽度 */
        margin: 0 10px; /* 减小间距 */
        display: inline-block;
    }
    
    .logo-box {
        width: 70px; /* 减小logo盒子大小 */
        height: 70px;
    }
    
    .rating-stars {
        font-size: 14px; /* 减小字体大小 */
        margin-bottom: 4px;
    }
    
    .rating-score {
        font-size: 15px; /* 减小字体大小 */
        margin-bottom: 4px;
    }
    
    .rating-count {
        font-size: 12px; /* 减小字体大小 */
    }
    
    .feature-item .d-flex {
        flex-direction: column;
    }
    
    .feature-icon-wrap {
        margin-bottom: 15px;
        margin-right: 0 !important;
    }
}

/* 確保使用網站原有字體 */
.tiktok-content h1,
.tiktok-content h2,
.tiktok-content h3,
.tiktok-content h4,
.tiktok-content h5,
.tiktok-content p,
.tiktok-content a,
.tiktok-content span,
.tiktok-content div {
    font-family: inherit;
}

/* 自定義圖標背景 */
.custom-icon-bg {
    background: linear-gradient(135deg, #f0f2f5 0%, #e4e6eb 100%);
    border-color: #e4e6eb;
}

/* 添加TikTok图标颜色 */
.tiktok-content .icon-blue {
    color: #0d6efd !important;
}

/* 从PHP文件转移的内联样式 */
/* 渐变背景 */
.tiktok-content .py-5[style*="background"] {
    background: linear-gradient(135deg, #f0f2f5 0%, #e4e6eb 100%);
}

/* 添加渐变背景类 */
.gradient-bg {
    background: linear-gradient(135deg, #f0f2f5 0%, #e4e6eb 100%);
}

/* 服務卡片樣式 */
.service-card {
    border-radius: 20px !important;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.2) !important;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card .text-center {
    margin-top: auto;
}

/* 图标样式 */
.card-body .fas {
    font-size: 2.5rem;
    color: #0d6efd !important;
}

/* 特性圖標樣式 */
.feature-icon-wrap {
    flex-shrink: 0;
}

.feature-icon-bg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-bg .fas {
    font-size: 2rem;
    color: #0d6efd !important;
}

/* 圖文板塊樣式 */
.feature-item {
    margin-bottom: 1.5rem;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.rounded-lg {
    border-radius: 1rem !important;
}

/* 圆形背景和卡片阴影 */
.position-absolute {
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: #0d6efd !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.position-absolute.top-left {
    top: -20px;
    left: -20px;
    bottom: auto;
    right: auto;
}

.position-absolute .text-white {
    font-size: 24px;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .feature-item .d-flex {
        flex-direction: column;
    }
    
    .feature-icon-wrap {
        margin-bottom: 15px;
        margin-right: 0 !important;
    }
} 

/* TikTok 底部按钮样式 - 与 Facebook 页面保持一致 */
.tiktok-content .btn-primary.btn-lg {
    position: relative;
    border: 2px solid #6f42c1;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
    border-radius: 50px;
}

.tiktok-content .btn-primary.btn-lg:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: transparent;
    transition: all 0.3s ease;
    z-index: -1;
}

.tiktok-content .btn-primary.btn-lg:hover {
    color: #6f42c1 !important;
    background-color: transparent !important;
    border-color: #6f42c1 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(111, 66, 193, 0.4);
}

.tiktok-content .btn-primary.btn-lg:hover:before {
    width: 100%;
}

.tiktok-content .btn-primary.btn-lg:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
} 