/* article.css - 新闻内容页专用样式 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	text-decoration:none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* 容器样式 */
.article_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* 面包屑导航样式 */
.article_breadcrumb {
    padding: 5px 0;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    margin-top: 80px; /* 避开头部导航 */
    background: linear-gradient(135deg, #1a73e8, #4285f4);
}

.article_breadcrumb_nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 5px 5px;
}

.article_breadcrumb_item {
    color: #f9fafb;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 150ms;
    padding: 4px 8px;
    border-radius: 0.25rem;
    font-weight: 500;
}

.article_breadcrumb_nav a:hover {
    color: #e5e7eb;
}

.article_breadcrumb_active {
    color: #f9fafb;
    font-weight: 500;
    padding: 4px 8px;
    font-size: 0.875rem;
}

.article_breadcrumb_separator {
    font-size: 0.75rem;
    color: #f9fafb;
    opacity: 0.5;
}

/* 栏目标题和简介样式 */
.article_header {
    padding: 40px 0 60px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    position: relative;
    overflow: hidden;
}

.article_header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a73e8, #4285f4);
}

.article_header_content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.article_title_wrapper {
    margin-bottom: 30px;
}

.article_title {
    font-size: 2.25rem;
    color: #1f2937;
    margin-bottom: 15px;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.article_title_decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.article_title_line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1a73e8);
}

.article_title_line:last-child {
    background: linear-gradient(90deg, #1a73e8, transparent);
}

.article_title_dot {
    width: 8px;
    height: 8px;
    background-color: #1a73e8;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.article_description_box {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 30px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    position: relative;
    text-align: left;
}

.article_description_box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 4px;
    background: linear-gradient(90deg, #1a73e8, #4285f4);
    border-radius: 0.75rem 0.75rem 0 0;
}

.article_description_icon {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.125rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.article_description {
    font-size: 1.125rem;
    color: #6e747e;
    line-height: 1.8;
    margin: 0;
    text-indent: 2em;
}

/* 主内容区布局 */
.article_content {
    padding: 10px 0 80px;
    background-color: #ffffff;
}

.article_layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
}

/* 左侧文章详情区域 */
.article_main {
    width: 100%;
}

.article_article_box {
    background-color: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 30px;
}

/* 文章标题及元信息 */
.article_article_header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.article_article_title {
    font-size: 1.875rem;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 20px;
    font-weight: 700;
}

.article_article_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.875rem;
    color: #9ca3af;
}

.article_article_meta_item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article_article_meta_item a{
    color: #9ca3af;
}

.article_article_meta_item a:hover{
    color: #1a73e8;
}

.article_tag {
    display: inline-block;
    padding: 3px 8px;
    background-color: rgba(26, 115, 232, 0.1);
    color: #1a73e8;
    border-radius: 0.25rem;
    margin: 0 5px;
    text-decoration: none;
    transition: all 150ms;
}

.article_tag:hover {
    background-color: #1a73e8;
    color: #ffffff;
}

/* 文章正文内容 */
.article_article_content {
    margin-bottom: 40px;
    line-height: 1.8;
    color: #6e747e;
    font-size: 1rem;
    /* border-bottom: 1px solid #e5e7eb; */
}

.article_article_content p {
    margin-bottom: 15px;
	color: #6e747e;
	margin-bottom: 1.5em;
	text-align: justify;
	text-indent: 2em;
	font-size: 17px;
}
.article_article_content p a{
	color: #6e747e;
}
.article_article_content p a:hover{
	color: #1a73e8;
}

.article_article_content h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin: 25px 0 15px;
    font-weight: 600;
}

.article_article_content ul {
    margin: 0 0 15px 40px;
}

.article_article_content li {
    margin-bottom: 8px;
}

.article_article_content img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    padding: 10px 0;
}

/* 上一篇下一篇样式 */
.article_prev_next {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 0;
    margin-bottom: 40px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.article_prev, .article_next {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.article_prev_label, .article_next_label {
    color: #374151;
    font-weight: 500;
}

.article_prev a, .article_next a {
    color: #1a73e8;
    transition: color 150ms;
}

.article_prev a:hover, .article_next a:hover {
    color: #9ca3af;
}

/* 相关文章推荐样式 */
.article_related_articles {
    margin-bottom: 40px;
}

.article_related_header {
    margin-bottom: 20px;
}

.article_related_title {
    font-size: 1.25rem;
    color: #1f2937;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article_related_title i {
    color: #1a73e8;
}

.article_related_list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.article_related_item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    transition: all 300ms;
	width: 345px;
}

.article_related_item:hover {
    background-color: rgba(26, 115, 232, 0.1);
    transform: translateY(-2px);
}

.article_related_icon {
    color: #1a73e8;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.article_related_item a {
    color: #6e747e;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 150ms;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article_related_item a:hover {
    color: #1a73e8;
}

/* 产品推荐样式 */
.article_product_recommend {
    margin-top: 40px;
}

.article_product_header {
    margin-bottom: 20px;
}

.article_product_title {
    font-size: 1.25rem;
    color: #1f2937;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article_product_title i {
    color: #1a73e8;
}

.article_product_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.article_product_item {
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 300ms;
    border: 1px solid #e5e7eb;
}

.article_product_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #1a73e8;
}

.article_product_link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article_product_image {
    height: 180px;
    overflow: hidden;
}

.article_product_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms;
}

.article_product_item:hover .article_product_image img {
    transform: scale(1.05);
}

.article_product_info {
    padding: 15px;
    text-align: center;
}

.article_product_name {
    font-size: 1rem;
    color: #6e747e;
    font-weight: 600;
    line-height: 1.4;
}

/* 悬停效果 */
.article_product_item:hover .article_product_name {
    color: #1a73e8;
}

/* 或者如果只想在链接区域悬停时变色 */
.article_product_link:hover .article_product_name {
    color: #1a73e8;
}

/* 右侧侧边栏样式 */
.article_sidebar {
    width: 100%;
}

.article_sidebar_widget {
    background-color: #ffffff;
    border-radius: 0.75rem;
    margin-bottom: 30px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.article_widget_header {
    padding: 20px 20px;
    background: linear-gradient(90deg, #f9fafb, #f3f4f6);
    border-bottom: 1px solid #e5e7eb;
}

.article_widget_title {
    font-size: 1.25rem;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article_widget_icon_hot {
    color: #ff6b6b;
}

.article_widget_icon_interest {
    color: #ff9ff3;
}

.article_widget_icon_product {
    color: #feca57;
}

.article_widget_content {
    padding: 25px 30px;
}

/* 右侧热点内容列表 */
.article_hot_list {
    list-style: none;
}

.article_hot_item {
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
    transition: all 150ms;
}

.article_hot_item:last-child {
    border-bottom: none;
}

.article_hot_item:hover {
    transform: translateX(5px);
}

.article_hot_content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.article_hot_rank {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 9999px;
    background-color: #f9fafb;
    color: #6e747e;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.article_hot_item:nth-child(1) .article_hot_rank {
    background-color: #ff6b6b;
    color: white;
}

.article_hot_item:nth-child(2) .article_hot_rank {
    background-color: #ff9ff3;
    color: white;
}

.article_hot_item:nth-child(3) .article_hot_rank {
    background-color: #feca57;
    color: white;
}

.article_hot_text {
    flex-grow: 1;
}

.article_hot_link {
    color: #6e747e;
    text-decoration: none;
    line-height: 1.5;
    transition: color 150ms;
    font-size: 1rem;
    font-weight: 500;
    display: block;
}

.article_hot_link:hover {
    color: #1a73e8;
}

/* 右侧产品推荐网格 */
.article_products_grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.article_product_item_sidebar {
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 300ms;
    border: 1px solid #e5e7eb;
}

.article_product_item_sidebar:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #1a73e8;
}

.article_product_link_sidebar {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article_product_image_sidebar {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.article_product_image_sidebar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms;
}

.article_product_item_sidebar:hover .article_product_image_sidebar img {
    transform: scale(1.05);
}

.article_product_overlay_sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 115, 232, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 300ms;
}

.article_product_item_sidebar:hover .article_product_overlay_sidebar {
    background-color: rgba(26, 115, 232, 0.2);
}

.article_product_overlay_sidebar i {
    color: #ffffff;
    font-size: 1.25rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 300ms;
}

.article_product_item_sidebar:hover .article_product_overlay_sidebar i {
    opacity: 1;
    transform: scale(1);
	color: #1a73e8;
}

.article_product_info_sidebar {
    padding: 15px;
}

.article_product_title_sidebar {
    font-size: 1rem;
    color: #6e747e;
    margin-bottom: 5px;
    line-height: 1.4;
    font-weight: 500;
    text-align: center;
}

/* 鼠标悬停时改变链接文字颜色 */
.article_product_link_sidebar:hover .article_product_title_sidebar {
    color: #1a73e8 !important;
}

/* 可选：添加过渡动画效果 */
.article_product_title_sidebar {
    transition: color 0.3s ease;
}

/* ==================== 移动端响应式设计 ==================== */
@media (max-width: 992px) {
    /* 移动端改为单列布局 */
    .article_layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 相关文章改为单列 */
    .article_related_list {
        grid-template-columns: 1fr;
    }
    
    /* 产品推荐改为2列 */
    .article_product_list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 右侧产品网格改为2列 */
    .article_products_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* 调整内边距 */
    .article_article_box {
        padding: 20px;
    }
    
    .article_widget_content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .article_container {
        padding: 0 15px;
    }
    
    .article_breadcrumb {
        margin-top: 70px;
        padding: 15px 0;
    }
    
    /* 文章标题字号调整 */
    .article_article_title {
        font-size: 1.5rem;
    }
    
    /* 产品推荐改为1列 */
    .article_product_list {
        grid-template-columns: 1fr;
    }
    
    /* 右侧产品网格改为1列 */
    .article_products_grid {
        grid-template-columns: 1fr;
    }
    
    /* 上一篇下一篇改为垂直排列 */
    .article_prev_next {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .article_breadcrumb {
        margin-top: 70px;
        height: auto;
        min-height: 65px;
        display: flex;
        align-items: center;
    }
    
    .article_breadcrumb_nav {
        padding: 0px 2px;
        margin-top: 10px;
    }
    
    /* 文章内容内边距进一步缩小 */
    .article_article_box {
        padding: 15px;
    }
    
    /* 栏目标题字号调整 */
    .article_title {
        font-size: 1.5rem;
    }
    
    /* 产品图片高度调整 */
    .article_product_image {
        height: 150px;
    }
    
    .article_product_image_sidebar {
        height: 180px;
    }
}

/* 通用响应式调整 */
@media (max-width: 1200px) {
    .article_container {
        padding: 0 20px;
    }
    
    .article_layout {
        gap: 20px;
    }
}

/* 防止移动端横向滚动 */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.article_content {
    overflow-x: hidden;
}


















/* ==================== 移动端响应式设计调整 ==================== */
/* 调整位置：在原有@media (max-width: 992px)规则之后添加以下代码 */


/* 修复主内容区的布局错位问题 */
@media (max-width: 992px) {
    /* 调整主内容区容器 */
    .article_content {
        padding: 10px 0 40px; /* 减少底部内边距 */
        overflow-x: hidden; /* 防止水平溢出 */
    }
    
    /* 确保布局网格正常工作 */
    .article_layout {
        display: block; /* 改为块级布局，取消网格 */
        width: 100%;
    }
    
    /* 修复文章主区域 */
    .article_main {
        width: 100%;
        margin-bottom: 20px; /* 添加底部间距 */
    }
    
    /* 修复文章内容框 */
    .article_article_box {
        width: 100%;
        padding: 20px 15px; /* 调整内边距 */
        margin: 0; /* 清除默认边距 */
        box-sizing: border-box; /* 确保盒模型正确 */
    }
    
    /* 修复相关文章列表的宽度问题 */
    .article_related_list {
        grid-template-columns: 1fr; /* 单列布局 */
        gap: 10px;
    }
    
    .article_related_item {
        width: 100% !important; /* 强制宽度为100% */
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* 修复产品推荐网格 */
    .article_product_list {
        grid-template-columns: repeat(2, 1fr); /* 两列布局 */
        gap: 15px;
    }
    
    /* 修复侧边栏产品网格 */
    .article_products_grid {
        grid-template-columns: repeat(2, 1fr); /* 保持两列布局 */
        gap: 15px;
    }
    
    /* 修复侧边栏 */
    .article_sidebar {
        width: 100%;
    }
}

/* 针对小屏幕手机的进一步调整 */
@media (max-width: 576px) {
    /* ... 其他样式保持不变 ... */
    
    /* 修复相关文章列表项显示 */
    .article_related_list {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 12px; /* 添加间距 */
    }
    
    .article_related_item {
        width: 100% !important; /* 改为100% */
        max-width: 100% !important;
        box-sizing: border-box;
        padding: 10px 15px;
        background: #f8f9fa; /* 可选：添加背景色 */
        border-radius: 8px; /* 可选：圆角 */
        margin: 0; /* 确保没有外边距 */
    }
    
    .article_related_item a {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: #333;
        font-size: 15px;
        line-height: 1.4;
    }
    
    .article_related_icon {
        margin-right: 10px;
        flex-shrink: 0; /* 防止图标被压缩 */
    }
}

/* 确保所有元素在移动端不溢出 */
@media (max-width: 768px) {
    * {
        max-width: 100%; /* 防止任何元素溢出 */
    }
    
    body, html {
        overflow-x: hidden; /* 隐藏横向滚动条 */
    }
    
    /* 修复浮动在线客服栏可能的位置问题 */
    .home_floating_service {
        right: 10px; /* 调整位置 */
        bottom: 20px;
    }
}