/* YouTube page specific styles */
body.youtube-page {
    background-color: #f9f9f9; /* YouTube背景色 */
}
 
.youtube-content .main-title {
    color: #ff0000; /* YouTube红色 */
} 

/* 保留特定的Bootstrap 5樣式但避免覆蓋全局字體和基本樣式 */
.rounded-4 {
    border-radius: 1rem;
}
.btn-danger {
    background-color: #ff0000;
    border-color: #ff0000;
}
.btn-danger:hover {
    background-color: #cc0000;
    border-color: #cc0000;
}
.text-danger {
    color: #ff0000 !important;
}
.badge {
    font-weight: 500;
}
.youtube-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: #ff0000 !important; /* 调整为YouTube红色 */
}
.text-success {
    color: #198754 !important;
}

/* 合作夥伴數字樣式 */
.partner-number {
    color: #8a4bdb !important; /* 紫色，与PHP文件中保持一致 */
    padding: 10px;
    border-radius: 5px;
}

/* 立即體驗按鈕懸停效果 */
.btn-primary {
    background-color: #ff0000;
    border-color: #ff0000;
}

.btn-primary:hover {
    background-color: transparent !important;
    color: #ff0000 !important;
    border-color: #ff0000 !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;
    }
    .rating-item {
        flex: 0 0 auto;
    }
}

/* 確保使用網站原有字體 */
.youtube-content h1,
.youtube-content h2,
.youtube-content h3,
.youtube-content h4,
.youtube-content h5,
.youtube-content p,
.youtube-content a,
.youtube-content span,
.youtube-content div {
    font-family: inherit;
}

/* 自定義圖標背景 */
.custom-icon-bg {
    background: linear-gradient(135deg, #f0f2f5 0%, #e4e6eb 100%);
    border-color: #e4e6eb;
}

/* 从PHP文件转移的内联样式 */
/* 渐变背景 */
.youtube-content .gradient-bg {
    background: linear-gradient(135deg, #f0f2f5 0%, #e4e6eb 100%);
}

/* 图标样式 */
.youtube-content .rounded-circle .fas {
    font-size: 1.5rem;
    color: #0d6efd !important;
}

/* 卡片最小高度 */
.card-min-height {
    min-height: 85%;
}

/* 圆形图标背景 */
.youtube-content .rounded-circle.icon-bg {
    width: 40px;
    height: 40px;
    background-color: rgba(76, 175, 80, 0.1);
}

/* YouTube按钮样式 */
.youtube-btn {
    background-color: #8a4bdb;
    border-color: #8a4bdb;
    color: #fff;
    transition: all 0.3s ease;
}

.youtube-btn:hover, .youtube-btn:focus, .youtube-btn:active {
    background-color: #ffffff !important;
    border-color: #8a4bdb !important;
    color: #8a4bdb !important;
    box-shadow: 0 0 0 0.25rem rgba(138, 75, 219, 0.25) !important;
}

/* 底部大按钮样式 */
.youtube-content .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    border-radius: 0.3rem;
}

/* 紫色卡片背景 */
.youtube-content .purple-gradient-bg {
    background: linear-gradient(135deg, #c27eff 0%, #8a4bdb 100%);
}

/* 白色文本 */
.youtube-content .text-white {
    color: #fff !important;
}

/* 白色背景图标 */
.youtube-content .white-icon-bg {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 白色图标 */
.youtube-content .white-icon-bg .fas {
    color: #ffffff !important;
    font-size: 1.5rem;
}

/* 最大宽度容器 */
.max-width-container {
    max-width: 900px;
}

/* YouTube 底部按钮样式 - 与 Facebook 页面保持一致 */
.youtube-content .btn-primary.btn-lg,
.youtube-content .youtube-btn.btn-lg {
    position: relative;
    border: 2px solid #8a4bdb;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(138, 75, 219, 0.3);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-size: 1.25rem;
}

.youtube-content .btn-primary.btn-lg:before,
.youtube-content .youtube-btn.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;
}

.youtube-content .btn-primary.btn-lg:hover,
.youtube-content .youtube-btn.btn-lg:hover {
    color: #8a4bdb !important;
    background-color: transparent !important;
    border-color: #8a4bdb !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(138, 75, 219, 0.4);
}

.youtube-content .btn-primary.btn-lg:hover:before,
.youtube-content .youtube-btn.btn-lg:hover:before {
    width: 100%;
}

.youtube-content .btn-primary.btn-lg:active,
.youtube-content .youtube-btn.btn-lg:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(138, 75, 219, 0.3);
}
