:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-color: #334155;
    --text-light: #8c8c8c;
    --bg-light: #f8f9fa;
    --border-color: #f0f0f0;
    --text-primary: #262626;
    --text-secondary: #595959;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #f9fafb;
}
.bg-white{
    background-color: #fff;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
}

/* 轮播图样式 */
.carousel-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-item img {
    height: 350px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 20px;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.carousel-caption h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.carousel-caption p {
    font-size: 0.9rem;
    color: #ddd;
    margin-bottom: 0;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 10px;
}

.breadcrumb {
    background: var(--bg-light);
    padding: 12px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 500;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--text-light);
}

/* 文章详情容器 */
.article-container {
    font-family: Microsoft YaHei;
}

/* 文章头部 */
.article-header {
    margin-bottom:10px;
    border-bottom: 1px solid var(--border-color);
}

.article-detail-title {
    color: #111827;
    font-size: 28px;
    font-weight: 700;
    line-height: 42px;
    text-align: center;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 14px;
}

.stat-item i {
    margin-right: 5px;
}

.article-date {
    color: var(--text-light);
    font-size: 14px;
}

/* 文章内容 */
.article-content {
    color: #333;
    font-size: 16px;
    line-height: 30px;
}

.article-content p {
    margin-bottom: 1.5em;
}


.keyword-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-right: 8px;
    margin-bottom: 8px;
}

/* 免责声明 */
.disclaimer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
    border-radius: 8px;
    padding: 20px 20px 10px;
    font-size: 14px;
    color: var(--text-light);
}

.disclaimer h5 {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--text-primary);
}


/* 上一篇下一篇导航 */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin: 15px 0 15px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.nav-item {
    /*flex: 1;*/
    max-width: 45%;
}

.nav-item.prev {
    text-align: left;
}

.nav-item.next {
    text-align: right;
}

.nav-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.nav-title {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    height: 23px;
}

.nav-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.nav-title a:hover {
    color: var(--primary-color);
}

/* 侧边栏 */
.sidebar-section {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-title i {
    margin-right: 8px;
    color: var(--primary-color);
}


/* 热点文章列表 */
.hot-articles {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 20px;
    height: 100%;
}

.hot-articles .list-group-item {
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    overflow: hidden;
}

.hot-articles .list-group-item:last-child {
    border-bottom: none;
}

.article-rank {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--bg-light);
    color: var(--text-secondary);
    border-radius: 4px;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
}



.article-title {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: nowrap;
    display: block;
}

.article-title:hover {
    color: var(--primary-color);
}

.article-stats {
    display: flex;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
}

.article-stats span {
    margin-right: 15px;
}

.article-stats i {
    margin-right: 4px;
}


.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.news-scroll {
    background: var(--dark-color);
    color: white;
    padding: 8px 0;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

/*.card:hover {*/
/*    transform: translateY(-5px);*/
/*    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);*/
/*}*/

.ai-tool-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    flex-shrink: 0;
}

.ai-tool-logo-sm {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    flex-shrink: 0;
}


.video-review-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.video-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.video-thumbnail {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-review-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}
.video-review-card:hover{
    cursor: pointer;
}
.video-review-card:hover .video-play-btn {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.video-review-content {
    padding: 20px;
}

.video-review-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-review-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.video-review-title a:hover {
    color: var(--primary-color);
}

.video-review-excerpt {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-review-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
}

.video-review-rating {
    display: flex;
    align-items: center;
    color: #ffc107;
}

.video-review-stats {
    display: flex;
    gap: 10px;
}

.video-review-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-review-author {
    display: flex;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.video-review-author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.video-review-author-info {
    flex: 1;
}

.video-review-author-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.video-review-author-title {
    font-size: 11px;
    color: var(--text-light);
}


.video-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}


.video-thumb:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: var(--primary-color);
    font-size: 24px;
}

.news-image {
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px 8px 0 0;
}



.article-image {
    height: 120px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 8px 0 0 8px;
}

footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1.5rem;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.5rem 1.5rem;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

/* 精品推荐部分样式优化 */
.tool-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tool-item:hover {
    background-color: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
}

.tool-item:hover .tool-name {
    color: var(--primary-color);
}

.tool-info {
    flex: 1;
    margin-left: 12px;
}

.tool-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.tool-desc {
    font-size: 0.8rem;
    color: var(--text-color);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-link {
    color: var(--primary-color);
    font-size: 0.8rem;
    text-decoration: none;
    margin-top: 4px;
    display: inline-block;
}

.tool-link:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* 常用工具部分样式 - 改为简单列表 */
.tool-list-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.tool-list-item:hover {
    background-color: #f0f7ff;
    transform: translateY(-2px);
    color: var(--primary-color);
    text-decoration: none;
}

.tool-list-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.tool-list-name {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
}

/* 滚动新闻样式 - 上下滚动 */
.scroll-news-container {
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0;
    font-size: 14px;
}

.scroll-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    animation: scroll-up 15s linear infinite;
}

.scroll-news-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    width: calc(100% - 36px);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.scroll-news-list li:last-child {
    border-bottom: none;
}

.scroll-news-list li .badge {
    margin-right: 10px;
    flex-shrink: 0;
}

.scroll-news-list:hover {
    animation-play-state: paused;
}

@keyframes scroll-up {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-180px);
    }
}

/* 图文卡片样式 */
a {
    color: var(--text-primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-color);
}
.image-text-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.image-text-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.image-text-img {
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.image-text-content {
    padding: 15px;
}

.image-text-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

.image-text-desc {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.4;
}

/* 视频弹窗样式 */
.video-modal .modal-dialog {
    max-width: 900px;
}

.video-modal .modal-content {
    border-radius: 12px;
    overflow: hidden;
    border: none;
}

.video-modal .modal-header {
    border-bottom: 1px solid var(--border-color);
    background: #f8f9fa;
    padding: 15px 20px;
}

.video-modal .modal-title {
    font-weight: 600;
    font-size: 18px;
}

.video-modal .modal-body {
    padding: 0;
}

.video-player-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 比例 */
    background: #000;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 20px;
}

.video-info h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.video-info p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.video-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-light);
}

.video-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* 微信加群区域 */
.wechat-qr-section {
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.1) 0%, rgba(114, 46, 209, 0.1) 100%);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.qr-code {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    padding: 8px;
    flex-shrink: 0;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-info {
    flex: 1;
}

.qr-title {
    color: white;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.qr-desc {
    color: #b0b0b0;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.qr-tips {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    color: #b0b0b0;
    margin-top: 15px;
}

.qr-tips i {
    color: #52c41a;
    margin-right: 8px;
    font-size: 14px;
}



.video-actions .btn {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 响应式调整，确保每行显示10个 */
@media (min-width: 1400px) {
    .tool-list-col {
        flex: 0 0 10%;
        max-width: 10%;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .tool-list-col {
        flex: 0 0 12.5%;
        max-width: 12.5%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .tool-list-col {
        flex: 0 0 16.666%;
        max-width: 16.666%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .tool-list-col {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (max-width: 767px) {
    .tool-list-col {
        flex: 0 0 25%;
        max-width: 25%;
    }
}
/* 响应式调整 */
@media (max-width: 768px) {
    .video-modal .modal-dialog {
        margin: 10px;
    }

    .video-review-card {
        margin-bottom: 20px;
    }

    .video-thumbnail {
        height: 400px;
    }
    .qr-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .video-modal .modal-dialog {
        margin: 5px;
    }

    .video-info {
        padding: 15px;
    }
    .wechat-qr-section {
        padding: 20px;
    }
}
