/* 香江卫视主题自定义样式 */
/* 基于Bootstrap5，仅扩展个性化样式，避免样式冲突 */

/* 全局通用样式 */
.nav {
    --bs-nav-link-padding-x: 0.1rem;
    --bs-nav-link-padding-y: 1.25rem;
}
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    color: #333;
    background-color: #f5f7fa;
    scroll-behavior: smooth;
}
.page-link {
    display: inline-block;
}
/* 自定义颜色类 */
.bg-gray-600 {
    background-color: #535353 !important;
}
a {
    transition: all 0.3s ease;
}
.hover-primary:hover {
    color: #0d6efd !important;
}
.hover-shadow {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.hover-shadow:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
.hover-scale {
    overflow: hidden;
}
.hover-scale img {
    transition: transform 0.5s ease;
}
.hover-scale:hover img {
    transform: scale(1.05);
}
.border-bottom.dotted {
    border-bottom-style: dotted !important;
}

/* 头部样式 */
.tv-header {
    z-index: 999;
}
.tv-header-bg {
    background: url('../images/head-bg.jpg') no-repeat center center;
    background-size: cover;
    background-color: #fff;
}
.tv-nav .nav-link {
    color: #333;
    font-weight: 500;
    position: relative;
}
.tv-nav .nav-link.active,
.tv-nav .nav-link:hover {
    color: #0d6efd;
}
.tv-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: #0d6efd;
    border-radius: 1px;
}

/* 模块标题样式 */
.tv-module-title {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    padding-left: 10px;
    border-left: 4px solid #0d6efd;
    margin-bottom: 1rem;
}
.custom-sidebar .tv-module-title {
    border-left: 4px solid #FA3131;
}

/* 精要导读模块 */
.guide-item {
    color: #fff;
}
.guide-label {
    font-size: 12px;
    opacity: 0.9;
    display: block;
    margin-bottom: 6px;
}
.guide-title {
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    height: 40px;
    overflow: hidden;
}
.guide-title:hover {
    color: #fff;
    text-decoration: underline;
}
.guide-time {
    font-size: 12px;
    opacity: 0.8;
}
/* 导读配色 */
.guide-blue { background-color: #409eff; }
.guide-orange { background-color: #fa8c16; }
.guide-purple { background-color: #722ed1; }
.guide-pink { background-color: #eb2f96; }
.guide-green { background-color: #52c41a; }
.guide-deepgreen { background-color: #13c2c2; }

/* 直播视频样式 */
.live-video-container {
    width: 100%;
}
.live-thumb {
    position: relative;
    transition: all 0.3s ease;
}
.live-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}
.live-thumb:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}
.live-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}
.live-date {
    font-size: 12px;
    color: #6c757d;
}

/* 最近发表样式 */
.recent-posts-list {
    width: 100%;
}
.recent-posts-list li {
    margin-bottom: 0.5rem;
}
.recent-posts-list a {
    padding-left: 1.25rem;
    position: relative;
    display: block;
    transition: all 0.3s ease;
}
.recent-posts-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.5rem;
    height: 0.5rem;
    background-color: #0d6efd;
    border-radius: 50%;
}
.recent-posts-list a:hover {
    color: #0d6efd !important;
    padding-left: 1.5rem;
}

/* .custom-sidebar .recent-posts-list li {
    margin-bottom: 0;
} */
.custom-sidebar .recent-posts-list a {
    padding-left: 0;
}
.custom-sidebar .recent-posts-list a .bi-tag::before {
    transform: scaleX(-1);
}

.custom-sidebar .recent-posts-list a::before {
    display: none;
}

/* 精选导读样式 */
.guide-list {
    width: 100%;
}
.guide-list li {
    margin-bottom: 0.75rem;
}
.guide-list a {
    padding-left: 1.25rem;
    position: relative;
    display: block;
    transition: all 0.3s ease;
}
.guide-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.5rem;
    height: 0.5rem;
    background-color: #0d6efd;
    border-radius: 50%;
}
.guide-list a:hover {
    color: #0d6efd !important;
    padding-left: 1.5rem;
}
.guide-category {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 14px;
}
.guide-article-title {
    font-size: 14px;
}
.text-sm {
    font-size: 14px;
}
.text-xs {
    font-size: 12px;
}
.border-dashed {
    border-style: dashed !important;
}

/* 自定义颜色类 */
.bg-blue-500 {
    background-color: #0d6efd !important;
}
.bg-orange-500 {
    background-color: #fd7e14 !important;
}
.bg-purple-500 {
    background-color: #6f42c1 !important;
}
.bg-pink-500 {
    background-color: #d63384 !important;
}
.bg-green-500 {
    background-color: #198754 !important;
}
.bg-deepgreen-500 {
    background-color: #0dcaf0 !important;
}
.text-gray-500 {
    color: #6c757d !important;
}
.text-gray-600 {
    color: #495057 !important;
}
.text-sm {
    font-size: 14px !important;
}
.text-xs {
    font-size: 12px !important;
}
.text-base {
    font-size: 16px !important;
}
.font-medium {
    font-weight: 500 !important;
}

/* 精选导读卡片样式 */
.guide-item-card {
    transition: all 0.3s ease;
}
.guide-item-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.guide-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    width: 5em;
    text-align: center;
    border-radius: 15px;
    padding-top: 0.05rem !important;
    padding-bottom: 0.1rem !important;
}
.guide-date {
    font-size: 12px;
    color: #6c757d;
}
.guide-item-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}
.guide-item-excerpt {
    font-size: 13px;
    line-height: 1.4;
    color: #495057;
}

/* 友情链接样式 */
.tv-module-links .tv-module-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 1rem;
}
.tv-module-links .links-list {
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
}
.tv-module-links .links-list a {
    font-size: 14px;
    margin-right: 1.5rem;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}
.tv-module-links .links-list a:hover {
    color: #0d6efd;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tv-module-links .links-list a {
        display: inline-block;
        margin-right: 1rem;
        margin-bottom: 0.5rem;
    }
}

/* 最近发表列表样式 */
.recent-posts-list li {
    position: relative;
}
.recent-posts-list a {
    transition: all 0.3s ease;
}
.recent-posts-list a:hover {
    color: #0d6efd !important;
    padding-left: 12px;
}

/* 底部链接样式 */
.footer-link {
    color: #fff !important;
    transition: all 0.3s ease;
}
.footer-link:hover {
    color: #0d6efd !important;
    transform: translateX(4px);
}
.footer-link a {
    color: #fff !important;
    text-decoration: none;
}
.footer-link:hover a {
    color: #77aaff !important;
    text-decoration: underline;
}

/* 底部导航两列样式 */
.footer-nav-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
}
.footer-nav-columns li {
    margin-bottom: 0.5rem;
}

/* 轮播图标题样式 */
.carousel-caption {
    text-align: left !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 1.5rem !important;
}
.carousel-caption h5 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    max-width: 90%;
}

/* 直播更多链接样式 */
.live-more-link {
    color: #6c757d !important;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.live-more-link:hover {
    color: #000 !important;
}

/* 直播圆点装饰样式 */
.live-dots {
    display: flex;
    align-items: center;
}
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 4px;
}
.live-dot:first-child {
    margin-left: 0;
}
.live-dot-red {
    background-color: #dc3545;
}
.live-dot-yellow {
    background-color: #ffc107;
}
.live-dot-green {
    background-color: #198754;
}
.live-more-link:hover .more-icon {
    border-color: #000 !important;
    color: #000 !important;
}

/* 更多图标样式 */
.more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* 自定义颜色类 */
.text-gray-400 {
    color: #6c757d !important;
}

.post-nav {
    gap: 0.6rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .footer-link:hover {
        transform: none;
    }
}

/* 新闻列表模块 */
.news-item {
    margin-bottom: 15px;
}
.news-excerpt {
    height: 40px;
    overflow: hidden;
}

/* 侧边栏模块 */
.tv-sidebar-module {
    margin-bottom: 20px;
}
.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.live-item {
    margin-bottom: 20px;
}
.live-thumb {
    margin-bottom: 8px;
}
.live-label {
    font-size: 12px;
}
.recent-list li, .column-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
}

/* 推荐模块 */
.recommend-item {
    height: 100%;
}

/* 滚动动画核心样式 */
.animated-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-in-out;
}
.animated-section.active {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式适配（移动端优先） */
@media (max-width: 992px) {
    .tv-module-news .row {
        flex-direction: column;
    }
    .recommend-item img {
        height: 150px !important;
    }
}
@media (max-width: 768px) {
    #bannerCarousel img {
        height: 200px !important;
    }
    .tv-module-guides .row {
        flex-wrap: wrap;
    }
    .tv-module-guides .col-md-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 10px;
    }
    .news-item .col-md-5 {
        margin-bottom: 10px;
    }
    .news-thumb img {
        height: 150px !important;
    }
    .recommend-item img {
        height: 120px !important;
    }
    .tv-module-ad img {
        height: 80px !important;
    }
}
@media (max-width: 576px) {
    .tv-header .container .row {
        flex-wrap: nowrap;
    }
    .tv-header .container .tv-nav-mobile {
        max-width: 67%;
    }
    .tv-module-guides .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .tv-header .col-md-2, .tv-header .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .tv-logo {
        text-align: center;
    }
    .tv-footer {
        text-align: center;
    }
    .tv-header .footer-link a {
        color: #0d6efd !important;
    }
}