/**
 * 页面公共样式 - 内页样式
 * 列表页、详情页、搜索页、留言页等
 */

/* ==================== 页面标题横幅 ==================== */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 60px 0 40px;
    color: #fff;
    margin-bottom: 0;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #fff;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ==================== 侧边栏 ==================== */
.main-content {
    padding-right: 15px;
}
.sidebar {
    padding-left: 15px;
}
.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

@media (min-width: 992px) {
    .main-content {
        padding-right: 30px;
    }
    .sidebar {
        padding-left: 30px;
    }
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

/* 侧边导航 */
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-nav li a {
    display: block;
    padding: 12px 0;
    color: var(--text-color);
    position: relative;
    padding-left: 15px;
}

.sidebar-nav li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--border-color);
    border-radius: 50%;
}

.sidebar-nav li.active a,
.sidebar-nav li a:hover {
    color: var(--primary-color);
}

.sidebar-nav li.active a::before,
.sidebar-nav li a:hover::before {
    background: var(--primary-color);
    width: 6px;
    height: 6px;
}

/* 热门列表 */
.hot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-list li {
    margin-bottom: 10px;
}

.hot-list li a {
    display: flex;
    align-items: center;
}

.hot-list .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--bg-gray);
    color: var(--text-light);
    border-radius: 4px;
    font-size: 12px;
    margin-right: 10px;
    font-weight: 600;
}

.hot-list li:nth-child(1) .num { background: #ff6b6b; color: #fff; }
.hot-list li:nth-child(2) .num { background: #feca57; color: #fff; }
.hot-list li:nth-child(3) .num { background: #48dbfb; color: #fff; }

.hot-list .title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 最新列表 */
.latest-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latest-list li {
    margin-bottom: 15px;
}

.latest-list li a {
    display: flex;
    gap: 12px;
}

.latest-list .thumb {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.latest-list .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-list .info {
    flex: 1;
}

.latest-list .info h4 {
    font-size: 14px;
    margin: 0 0 5px;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.latest-list .date {
    font-size: 12px;
    color: var(--text-light);
}

/* 联系信息 */
.contact-widget .contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-widget .contact-info li {
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 14px;
}

.contact-widget .contact-info li:last-child {
    border-bottom: none;
}

.contact-widget .contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
}

/* 相关文章 */
.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #f0f0f0;
}

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

.related-list li a {
    display: block;
    color: var(--text-color);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-list .date {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
}

/* ==================== 内容详情页 ==================== */
.article-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 18px;
    box-shadow: none;
    max-width: 800px;
    margin: 0 auto;
}

.article-title {
    font-size: clamp(20px, 2.2vw, 24px);
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 20px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 25px;
    font-size: 13px;
    color: var(--text-light);
}

.article-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

.article-meta .outlink-link {
    color: var(--text-light);
    font-size: 13px;
    max-width: 200px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.article-meta .outlink-link:hover {
    color: var(--primary-color);
}

.article-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 25px;
    color: var(--text-light);
}

.article-content {
    font-size: clamp(16px, 1.1vw + 12px, 18px);
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-content .bullet-square {
    display: inline-block;
    font-size: 1.15em;
    line-height: 1;
    vertical-align: middle;
    margin-right: 0.35em;
}

.article-content ul,
.article-content ol {
    padding-left: 1.4em;
}

.article-content li::marker {
    font-size: 1.15em;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content img {
    max-width: 100%;
    width: auto;
    height: auto !important;
    object-fit: contain;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

/* 文章附件下载区域样式优化 */
.article-content a[href$=".pdf"],
.article-content a[href*="/file/"] {
    display: inline-flex !important;
    align-items: center;
    max-width: 500px;
    padding: 8px 12px !important;
    margin: 15px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%) !important;
    border: 1px solid #d1d9e6;
    border-radius: 6px !important;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.article-content a[href$=".pdf"]:hover,
.article-content a[href*="/file/"]:hover {
    background: linear-gradient(135deg, #e8ecf1 0%, #d1d9e6 100%) !important;
    border-color: #00B0F0;
    box-shadow: 0 4px 8px rgba(0,176,240,0.15);
    transform: translateY(-1px);
}

.article-content a[href$=".pdf"] img,
.article-content a[href*="/file/"] img {
    width: 24px !important;
    height: 24px !important;
    margin-right: 8px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: inline-block !important;
    border-radius: 0 !important;
    flex-shrink: 0;
}

.article-content a[href$=".pdf"] span,
.article-content a[href*="/file/"] span {
    background: transparent !important;
    padding: 0 !important;
    color: #2c5282 !important;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.4 !important;
    word-break: break-all;
}

.article-content iframe,
.article-content video,
.article-content embed,
.article-content object {
    max-width: 100%;
}

.article-content table {
    width: 100% !important;
    max-width: 100%;
    border-collapse: collapse;
}

.article-content table,
.article-content thead,
.article-content tbody,
.article-content tr,
.article-content th,
.article-content td {
    max-width: 100%;
}

.article-content .table-responsive,
.article-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.content-text {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.content-text img {
    max-width: 100%;
    width: auto;
    height: auto !important;
    object-fit: contain;
    display: block;
}

.content-text iframe,
.content-text video,
.content-text embed,
.content-text object {
    max-width: 100%;
}

.content-text table {
    width: 100% !important;
    max-width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 移动优先：移动端正文至少 18px */
@media (max-width: 991px) {
    .article-content {
        font-size: 18px;
        line-height: 1.6;
    }

    .article-content .bullet-square {
        font-size: 1.35em;
    }

    .article-content li::marker {
        font-size: 1.35em;
    }
}

/* 桌面端：可适当缩小至 16px */
@media (min-width: 992px) {
    .article-content {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* 上一篇/下一篇 */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.article-nav .prev,
.article-nav .next {
    max-width: 45%;
    font-size: 14px;
    color: var(--text-light);
}

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

/* ==================== 列表页样式 ==================== */
.news-list-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.news-list-item {
    display: flex;
    padding: 25px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.news-list-item .item-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 10px 15px;
    background: var(--secondary-color);
    border-radius: 8px;
    margin-right: 20px;
}

.news-list-item .item-date .day {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.news-list-item .item-date .month {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
}

.news-list-item .item-content {
    flex: 1;
}

.news-list-item .item-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
}

.news-list-item .item-title a {
    color: var(--text-color);
}

.news-list-item .item-title a:hover {
    color: var(--primary-color);
}

.news-list-item .item-title .badge {
    margin-right: 5px;
    font-size: 12px;
}

.news-list-item .item-desc {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px;
}

.news-list-item .item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
}

.news-list-item .item-meta i {
    margin-right: 5px;
}

.news-list-item .read-more {
    color: var(--primary-color);
}

/* ==================== 分页 ==================== */
.pagination-wrapper {
    margin-top: 30px;
    text-align: center;
}

.pagination {
    justify-content: center;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-link {
    color: var(--primary-color);
}

.page-link:hover {
    color: var(--primary-dark);
}

/* ==================== 搜索页 ==================== */
.search-box-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.search-form .input-group {
    max-width: 600px;
    margin: 0 auto;
}

.search-form .form-control {
    height: 50px;
    border-radius: 25px 0 0 25px;
    border: 2px solid var(--primary-color);
    border-right: none;
    padding-left: 25px;
}

.search-form .btn {
    height: 50px;
    padding: 0 30px;
    border-radius: 0 25px 25px 0;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.search-results {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.search-item {
    padding: 25px 0;
    border-bottom: 1px solid #f0f0f0;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item .item-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
}

.search-item .item-title a {
    color: var(--primary-color);
}

.search-item .item-desc {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px;
}

.search-item .item-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
}

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

.search-item .read-more {
    color: var(--primary-color);
    margin-left: auto;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-results i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #ddd;
}

.no-results p {
    font-size: 16px;
}

/* ==================== 产品列表 ==================== */
.filter-bar {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.filter-label {
    font-weight: 600;
    margin-right: 15px;
    color: var(--text-color);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-options a {
    padding: 8px 20px;
    background: var(--bg-gray);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-color);
    transition: all 0.3s;
}

.filter-options a:hover,
.filter-options a.active {
    background: var(--primary-color);
    color: #fff;
}

.product-grid {
    margin-bottom: 30px;
}

.product-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    transition: all 0.3s;
}

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

.product-card .product-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-card .product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 91, 172, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card .view-btn {
    color: #fff;
    padding: 8px 25px;
    border: 2px solid #fff;
    border-radius: 25px;
}

.product-card .product-info {
    padding: 20px;
}

.product-card .product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card .product-desc {
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

/* ==================== 产品详情 ==================== */
.product-detail-section {
    background: var(--bg-gray);
}

.product-gallery {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.product-gallery .main-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-gallery .main-image img {
    width: 100%;
    height: auto;
}

.product-gallery .thumb-list {
    display: flex;
    gap: 10px;
}

.product-gallery .thumb-list img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

.product-gallery .thumb-list img:hover {
    border-color: var(--primary-color);
}

.product-info-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.product-info-wrapper .product-name {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px;
}

.product-info-wrapper .product-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-meta-list {
    margin-bottom: 25px;
}

.product-meta-list .meta-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.product-meta-list .meta-item .label {
    color: var(--text-light);
    width: 100px;
}

.product-meta-list .meta-item .value {
    color: var(--text-color);
    font-weight: 500;
}

.product-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.product-summary strong {
    color: var(--primary-color);
}

.product-actions {
    display: flex;
    gap: 15px;
}

.product-actions .btn {
    padding: 12px 30px;
}

.product-actions .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.product-actions .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.product-actions .btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 详情Tab */
.detail-tabs {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.detail-tabs .nav-tabs {
    padding: 0 20px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-tabs .nav-tabs .nav-link {
    padding: 20px 25px;
    font-weight: 600;
    color: var(--text-color);
    border: none;
    border-bottom: 3px solid transparent;
}

.detail-tabs .nav-tabs .nav-link:hover,
.detail-tabs .nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.detail-tabs .tab-content {
    padding: 30px;
}

.detail-content-body {
    font-size: 16px;
    line-height: 1.8;
}

.tags-list .tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-gray);
    border-radius: 20px;
    margin: 5px;
    font-size: 14px;
}

/* 相关产品 */
.section-subtitle {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.related-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.related-card .related-image {
    height: 140px;
    overflow: hidden;
}

.related-card .related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-card h4 {
    padding: 15px;
    font-size: 14px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== 留言页面 ==================== */
.message-form-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.message-form-wrapper .form-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px;
}

.message-form-wrapper .form-desc {
    color: var(--text-light);
    margin-bottom: 25px;
}

.message-form-main .form-group {
    margin-bottom: 20px;
}

.message-form-main .form-control {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px 15px;
}

.message-form-main .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 91, 172, 0.25);
}

.message-form-main label {
    font-weight: 500;
    margin-bottom: 8px;
}

.message-form-main .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 40px;
}

.checkcode-img {
    height: 38px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

/* 联系侧边栏 */
.contact-sidebar .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-sidebar .contact-list li {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-sidebar .contact-list li:last-child {
    border-bottom: none;
}

.contact-sidebar .contact-list i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-sidebar .contact-list strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-sidebar .contact-list p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
}

.work-time .time-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.work-time .time-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.work-time .time-list li:last-child {
    border-bottom: none;
}

/* ==================== 响应式 ==================== */
@media (max-width: 992px) {
    .main-content {
        order: 1;
    }
    .sidebar {
        order: 2;
        margin-top: 30px;
    }
    .article-wrapper {
        padding: 25px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .news-list-item {
        flex-direction: column;
    }
    
    .news-list-item .item-date {
        flex-direction: row;
        gap: 10px;
        margin-right: 0;
        margin-bottom: 15px;
        padding: 8px 15px;
        width: fit-content;
    }
    
    .news-list-item .item-date .day {
        font-size: 18px;
    }
    
    .article-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-nav .prev,
    .article-nav .next {
        max-width: 100%;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .message-form-wrapper {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 40px 0 30px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-options {
        width: 100%;
    }
}

/* ========== 视频封面展示效果 ========== */

/* 视频容器 - 相对定位，用于承载封面层 */
.article-content .video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 视频元素本身 */
.article-content .video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

/* 未播放状态下隐藏视频控件 */
.article-content .video-wrapper:not(.video-played) video {
    pointer-events: none;
}

/* 未播放状态下确保封面层在最上层 */
.article-content .video-wrapper:not(.video-played) .video-poster-overlay {
    z-index: 100;
}

/* 封面层 - 默认显示 */
.article-content .video-poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 50, 100, 0.7) 0%, rgba(0, 91, 172, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

/* 有poster图片时的封面背景 */
.article-content .video-wrapper.has-poster .video-poster-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
}

/* 封面层悬停效果 */
.article-content .video-poster-overlay:hover {
    background: linear-gradient(135deg, rgba(0, 70, 140, 0.8) 0%, rgba(0, 120, 200, 0.6) 100%);
}

/* 播放按钮图标容器 */
.article-content .video-play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

/* 播放按钮悬停效果 */
.article-content .video-poster-overlay:hover .video-play-button {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

/* 播放三角形图标 */
.article-content .video-play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 26px;
    border-color: transparent transparent transparent #005bac;
    margin-left: 5px;
}

/* 封面图片（如果有） */
.article-content .video-poster-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* 已播放状态 - 隐藏封面层 */
.article-content .video-wrapper.video-played .video-poster-overlay {
    display: none !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .article-content .video-wrapper {
        margin: 15px auto;
        border-radius: 6px;
    }

    .article-content .video-play-button {
        width: 60px;
        height: 60px;
    }

    .article-content .video-play-icon {
        border-width: 11px 0 11px 19px;
        margin-left: 4px;
    }
}
