/* 新闻动态页面样式 */

/* 企业动态新闻列表样式 - 一行两列布局 */
.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* 卡片最外层容器 - 现在是可点击的链接 */
.news-item-wrapper {
    display: block;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 卡片内容布局容器 */
.news-item {
    display: flex;
    padding: 40px;
    width: 100%;
    box-sizing: border-box;
    gap: 42px;
}

/* 缩略图容器 */
.news-thumbnail {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    margin-right: 0;
    overflow: hidden;
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: 160px;
}

/* 缩略图图片 */
.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* 悬停时缩略图向前放大效果 */
.news-item-wrapper:hover .news-thumbnail img {
    transform: scale(1.1) translateZ(20px);
    transition: transform 0.5s ease;
}

/* 内容区域 */
.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    word-break: break-word;
}

/* 标题 */
.news-title {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 元信息区域 */
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eaeaea;
    height: 40px;
    color: #999;
    font-size: 14px;
}

/* 新闻分类文本样式 */
.news-meta-detail {
    color: #999;
    font-size: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* 向右箭头样式 */
.arrow-right {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    background-image: url('https://www.tencent.com/img/investor/more-awart.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

/* 全部新闻页面样式 */
.all-news-section .section-header {
    margin-bottom: 15px;
}

/* 筛选器容器样式 */
.news-filters {
    display: flex;
    gap: 20px;
}

/* 筛选器下拉菜单基础样式 */
.news-category-filter,
.news-year-filter {
    padding: 10px 35px 10px 15px; /* 右侧留出空间放箭头 */
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    min-width: 140px;
    
    /* 移除默认下拉箭头 */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* 添加自定义箭头 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* 筛选器悬停效果 */
.news-category-filter:hover,
.news-year-filter:hover {
    border-color: #0055dd;
    background-color: #f8f9ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230055dd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* 筛选器聚焦效果 */
.news-category-filter:focus,
.news-year-filter:focus {
    border-color: #0055dd;
    box-shadow: 0 0 0 2px rgba(0, 85, 221, 0.1);
    background-color: #fff;
}

/* 下拉选项样式 */
.news-category-filter option,
.news-year-filter option {
    padding: 10px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
}

/* 选中选项样式 */
.news-category-filter option:checked,
.news-year-filter option:checked {
    background-color: #0055dd;
    color: #fff;
}

/* 选项悬停样式（部分浏览器支持） */
.news-category-filter option:hover,
.news-year-filter option:hover {
    background-color: #f0f0f0;
    color: #000;
}

/* 响应式设计 - 新闻媒体 */
@media (max-width: 768px) {
    /* 全部新闻页面头部布局调整 */
    .all-news-section{
        padding: 25px 15px;
    }
        
    /* 新闻列表改为单列布局 */
    .news-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* 调整卡片内边距 */
    .news-item {
        padding: 20px;
        gap: 15px;
    }
    
    /* 调整缩略图尺寸 */
    .news-thumbnail {
        width: 80px;
        height: 80px;
        flex-basis: 80px;
    }
    
    /* 调整标题字体大小 */
    .news-title {
        font-size: 18px;
    }
    
    /* 调整元信息字体大小 */
    .news-meta {
        font-size: 14px;
    }
}
/* 响应式设计 - 新闻详情页*/
@media (max-width: 768px) {
 
    /* 新闻详情页添加左右间距 */
    .news-detail-section {
        padding: 25px 15px;
    }
}
/* 媒体资料库样式 */
.media-library-wrapper {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 标签切换菜单 */
.media-tabs {
    display: flex;
    background: #f8f9fa;
}

.media-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 41px 55px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-size: 16px;
    position: relative;
}

.media-tab:hover {
    color: #0055dd;
    background: #fff;
}

.media-tab:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #0055dd;
    transition: all 0.3s ease;
}

.media-tab.active {
    color: #0055dd;
    background: #fff;
    font-weight: 500;
}

.media-tab.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #0055dd;
}

.tab-icon {
    font-size: 18px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* 标签内容区域 */
.media-content {
    min-height: 400px;
    padding: 32px;
}

.media-tab-content {
    display: none;
}

.media-tab-content.active {
    display: block;
}

/* 商标网格布局 */
.trademark-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trademark-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.trademark-image {
    max-width: 100%;
    object-fit: contain;
}

/* 占位符内容样式 */
.media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #999;
    font-size: 16px;
}

/* 媒体联系版块样式 */
.media-image-container {
    position: relative;
}

.media-image-container img {
    width: 100%;
     height: 360px;
    display: block;
    border-radius: 8px;
}

.media-overlay {
    position: absolute;
    top: 50%;
    left: 80px;
    transform: translateY(-50%);
    color: white;
}

.overlay-text {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.overlay-link a {
    color: #0055dd;
    text-decoration: none;
    font-size: 18px;
    display: inline-block;
    position: relative;
    padding-right: 20px; /* 为箭头留出空间 */
}

.overlay-link a::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 14px;
    background-image: url('../img/more-awart-hover.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 媒体资料库图片项悬停效果 */
.trademark-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* 蒙色覆盖层 */
.trademark-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 85, 221, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.trademark-item:hover::after {
    opacity: 1;
}

/* 下载箭头图标 - 使用指定图片 */
.trademark-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-image: url('https://www.tencent.com/img/media/down-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.trademark-item:hover::before {
    opacity: 1;
}

/* 图片样式 */
.trademark-image {
    display: block;
    width: 100%;
    height: auto;
}

/* 新闻详情页样式 */

.news-detail-main-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* 新闻内容区域 */
.news-detail-content-wrapper {
    flex: 1;
    min-width: 0;
}

/* 新闻标题样式 */
.news-detail-title {
    font-size: 30px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
    word-wrap: break-word;
}

/* 新闻日期样式 */
.news-detail-date {
    font-size: 16px;
    color: #999;
}

/* 标题下方横线样式 */
.news-title-divider {
    height: 1px;
    background-color: #D8D9DC;
    margin: 40px 0 40px 0;
    width: 100%;
}

/* 正文内容样式 */
.news-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.news-detail-content p {
    margin-bottom: 24px;
    text-align: justify;
}

/* 分享图标样式 - 使用背景图片 */
.news-detail-share-wrapper {
    width: 80px;
    flex-shrink: 0;
    margin-top: 150px;
}

.news-detail-share {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 40px;
}

.news-detail-share span {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.share-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.share-icon {
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* 微信图标 - 使用背景图片 */
.share-icon.wechat-icon {
    background-image: url('../img/news/wx.png');
}

.share-icon.wechat-icon:hover {
    background-image: url('../img/news/wx_hover.png');
}

/* LinkedIn图标 - 使用背景图片 */
.share-icons a:nth-child(2) {
    background-image: url('../img/news/in.png');
}

.share-icons a:nth-child(2):hover {
    background-image: url('../img/news/in_hover.png');
}

/* 微博图标 - 使用背景图片 */
.share-icons a:nth-child(3) {
    background-image: url('../img/news/xl.png');
}

.share-icons a:nth-child(3):hover {
    background-image: url('../img/news/xl_hover.png');
}

/* 复制链接图标 - 使用背景图片 */
.share-icons a:nth-child(4) {
    background-image: url('../img/news/lz.png');
}

.share-icons a:nth-child(4):hover {
    background-image: url('../img/news/lz_hover.png');
}

/* 邮件图标 - 使用背景图片 */
.share-icons a:nth-child(5) {
    background-image: url('../img/news/mail.png');
}

.share-icons a:nth-child(5):hover {
    background-image: url('../img/news/mail_hover.png');
}

/* 隐藏Font Awesome图标 */
.share-icon i {
    display: none;
}

/* 微信二维码弹窗样式 */
.share-icon.wechat-icon {
    position: relative;
}

/* 二维码弹窗样式 */
.wechat-qr-popup {
    display: none;
    width: 150px;
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 20px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    text-align: center;
}

/* 鼠标悬停时显示弹窗 */
.share-icon.wechat-icon:hover .wechat-qr-popup {
    display: block;
}

/* 二维码图片样式 */
.wechat-qr-code {
    width: 130px;
    height: 130px;
    margin: 0 auto;
}

/* 图片查看器样式 */
.image-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.image-viewer-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 900px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 1002;
    transition: opacity 0.3s ease;
}

.image-viewer-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    padding: 0;
    font-family: Arial, sans-serif;
}

.image-viewer-close:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.image-viewer-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.image-viewer-prev,
.image-viewer-next {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 70px;
    border: none;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 30px;
    cursor: pointer;
    transform: translateY(-50%);
    z-index: 1002;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.image-viewer-prev {
    left: 15px;
    border-radius: 6px;
}

.image-viewer-next {
    right: 15px;
    border-radius: 6px;
}

.image-viewer-prev:hover,
.image-viewer-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.image-viewer-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    padding: 6px 12px;
    border-radius: 16px;
    z-index: 1002;
}