/* ===== 基础样式 ===== */
:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --hover-bg: #f0f7ff;
    --secondary: #475569;
    --light: #f8fafc;
    --gray: #e2e8f0;
    --light-gray: #f1f5f9;
    --border-radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 6px 15px rgba(37, 99, 235, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* ===== 通用组件 ===== */
/* 顶部导航 - 两个页面共用 */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, 
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after, 
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
}

/* 底部信息 - 两个页面共用 */
.footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 30px 0 20px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
    width: 100%;
}

/* ===== 首页特有样式 ===== */
/* 幻灯片区域 */
.featured-section {
    max-width: 1300px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.slider-container {
    flex: 3;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    height: 500px;
    /* 新增修复 */
    transform: translateZ(0); /* 强制硬件加速 */
    contain: strict; /* 限制渲染边界 */
    z-index: 0; /* 修复堆叠上下文 */
}

/* 关键修复开始 */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    /* 新增修复属性 */
    pointer-events: none; /* 默认禁止交互 */
    isolation: isolate; /* 创建新堆叠上下文 */
    contain: content; /* 优化性能 */
}

.slide.active {
    opacity: 1;
    /* 关键修复 */
    pointer-events: auto; /* 仅允许活动幻灯片交互 */
    z-index: 2; /* 确保活动幻灯片在最上层 */
}
/* 关键修复结束 */

.slide-content {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px;
    width: 100%;
    color: white;
    /* 新增修复 */
    position: relative;
    z-index: 10; /* 确保内容在顶层 */
}

.slide-title {
    font-size: 1.7rem;
    margin-bottom: 10px;
    line-height: 1.3;
    position: relative;
    z-index: 12; /* 确保标题在最高层 */
}

.slide-excerpt {
    font-size: 1.05rem;
    margin-bottom: 15px;
    max-width: 600px;
    line-height: 1.5;
    position: relative;
    z-index: 11;
}

.slide-link {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    z-index: 15; /* 确保按钮在最高层 */
}

.slide-link:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 20; /* 确保控制按钮在顶层 */
}

.slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    z-index: 21; /* 确保按钮在最高层 */
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 标题链接修复 */
.slide-content-link {
    position: relative;
    z-index: 12; /* 确保标题链接层级 */
    display: block;
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
    pointer-events: auto; /* 确保链接可点击 */
}

.slide-content-link:hover {
    color: #2563eb;
}

/* 新增：防止链接重叠干扰 */
.slide-content-link::after {
    content: '';
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: -10px;
    right: -10px;
    background: transparent;
    z-index: 13;
}

/* 右侧侧边栏 */
.slider-sidebar {
    flex: 1;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.slider-sidebar-title {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2ff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-sidebar-title i {
    color: #e91b1b;
}

.slider-articles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.slider-article-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    padding-bottom: 15px;
    border-bottom: 1px solid #eef2ff;
    transition: var(--transition);
}

.slider-article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.slider-article-item:hover {
    transform: translateX(3px);
}

.slider-article-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    object-fit: cover;
    flex-shrink: 0;
}

.slider-article-content {
    flex: 1;
}

.slider-article-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
    transition: var(--transition);
    line-height: 1.4;
}

.slider-article-item:hover .slider-article-title {
    color: var(--primary);
}

.slider-article-meta {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    gap: 15px;
}

.slider-article-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 主内容区 */
.main-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: flex;
    gap: 30px;
}

.content-section {
    flex: 1;
}

.section-title {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2ff;
    font-weight: 700;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.article-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.article-image-container {
    width: 250px;
    height: 200px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border-radius: var(--border-radius);
    margin: 10px;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: var(--border-radius);
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-title {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 12px;
    font-weight: 700;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.article-title a:hover {
    color: var(--primary);
}

.article-excerpt {
    color: #64748b;
    margin-bottom: 15px;
    line-height: 1.7;
}

.article-meta {
    display: flex;
    color: #94a3b8;
    font-size: 0.9rem;
    gap: 15px;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 侧边栏 */
.sidebar {
    width: 320px;
}

.sidebar-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2ff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title i {
    color: var(--primary);
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eef2ff;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.article-item:hover {
    transform: translateX(5px);
}

.article-avatar {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius);
    object-fit: cover;
    flex-shrink: 0;
}

.article-sidebar-content {
    flex-grow: 1;
}

.article-sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
    transition: var(--transition);
}

.article-item:hover .article-sidebar-title {
    color: var(--primary);
}

.article-sidebar-meta {
    display: flex;
    font-size: 0.85rem;
    color: #64748b;
    gap: 15px;
}

.article-sidebar-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 友情链接 */
.links-section {
    max-width: 1300px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.links-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.links-header {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2ff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.links-header i {
    color: var(--primary);
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.link-item {
    color: #333333;
    text-decoration: none;
    transition: var(--transition);
    padding: 5px 0;
}

.link-item:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.link-divider {
    color: #cbd5e1;
    padding: 0 5px;
}

/* ===== 产品列表页特有样式 ===== */
.product-container {
    max-width: 1300px;
    margin: 30px auto;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #1e293b;
    font-weight: 700;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--secondary);
    max-width: 700px;
    margin: 10px auto 0;
}

.search-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px auto;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid #e5edff;
    max-width: 800px;
}

.search-form {
    display: flex;
    max-width: 100%;
    margin: 0 auto;
}

#search {
    flex-grow: 1;
    padding: 14px 20px;
    border: 2px solid #dbeafe;
    border-right: none;
    border-radius: 50px 0 0 50px;
    font-size: 1.05rem;
    outline: none;
    transition: var(--transition);
}

#search:focus {
    border-color: var(--primary);
}

.search-btn {
    padding: 0 35px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    border: none;
    border-radius: 0 50px 50px 0;
    color: white;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: linear-gradient(to right, var(--primary-light), #60a5fa);
}

/* 导航菜单 */
.nav-section {
    display: flex;
    justify-content: center;
    margin: 15px auto 25px;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1000px;
}

.nav-section .nav-link {
    padding: 10px 22px;
    border-radius: 50px;
    background: white;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid #e5edff;
    font-size: 0.95rem;
}

.nav-section .nav-link:hover, 
.nav-section .nav-link.active {
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    color: white;
}

.category-section {
    margin-bottom: 40px;
}

.category-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5edff;
}

.category-header h2 {
    font-size: 1.7rem;
    color: #334155;
    font-weight: 700;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.resource-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.resource-item {
    background-color: white;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid #eef2ff;
    display: flex;
    align-items: center;
    padding: 15px;
    height: 90px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.resource-item:hover {
    background-color: var(--hover-bg);
    box-shadow: var(--hover-shadow);
    border-color: #d4e2ff;
    transform: translateY(-3px);
}

.resource-avatar {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    border-radius: 10px;
    margin-right: 15px;
    border: 1px solid #eef2ff;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 3px;
    background: white;
    display: block;
}


.resource-content {
    flex-grow: 1;
    min-width: 0;
}

.resource-content h3 {
    color: #1e293b;
    margin-bottom: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-content p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
    max-height: 2.8em;
    word-break: break-all;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .resources-grid {
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-header h2 {
        font-size: 1.6rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        gap: 15px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.1rem;
    }
    
    .search-btn {
        padding: 0 30px;
    }
    
    .resource-item {
        height: 85px;
        padding: 12px;
    }
    
.resource-avatar {
    width: auto;
    height: auto;
    margin-right: 12px;
}

    
    .slide-content {
        padding: 15px;
    }
    
    .slide-title {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    
    .slide-excerpt {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .slider-sidebar {
        display: none;
    }
}

@media (max-width: 576px) {
    .product-container {
        padding: 20px 15px;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .search-form {
        flex-direction: column;
        gap: 12px;
    }
    
    #search {
        border-radius: 50px;
        text-align: center;
        border: 2px solid #dbeafe;
        border-right: 2px solid #dbeafe;
    }
    
    .search-btn {
        border-radius: 50px;
        padding: 12px;
    }
    
    .category-header h2 {
        font-size: 1.5rem;
    }
    
    .nav-section .nav-link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .resource-item:hover {
        background-color: #e0f0ff;
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-image-container {
        width: calc(100% - 30px);
        height: 250px;
        margin: 15px 15px 0;
    }
    
    .article-image {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
    
    .slider-container {
        height: 350px;
        width: 100%;
    }
}

@media (max-width: 450px) {
    .slider-container {
        height: 270px;
    }
    
    .slide-title {
        font-size: 1.2rem;
    }
    
    .slide-link {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .article-image-container {
        height: 200px;
    }
}


/* 面包屑导航 - OceanWP风格 */
.breadcrumb {
    max-width: 1260px;
    margin: 20px auto 20px;
    padding: 15px 20px;
    font-size: 0.95rem;
    color: var(--secondary);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: #94a3b8;
}


/* ===== 响应式分页导航 ===== */
/* ===== 响应式分页导航（保持完整功能） ===== */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* 允许换行 */
    margin-top: 40px;
    gap: 5px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: var(--border-radius);
    background: white;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
    font-size: 1rem; /* 基础字体大小 */
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .page-numbers.dots {
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    min-width: auto;
    padding: 0 8px;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    padding: 0 15px;
}

/* 平板设备优化 */
@media (max-width: 1024px) {
    .pagination {
        gap: 4px;
        margin-top: 30px;
    }
    
    .pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 12px;
        font-size: 0.95rem;
    }
    
    .pagination .page-numbers.prev,
    .pagination .page-numbers.next {
        padding: 0 14px;
    }
}

/* 移动设备优化（保持所有元素） */
@media (max-width: 768px) {
    .pagination {
        gap: 3px;
        margin-top: 25px;
    }
    
    .pagination .page-numbers {
        min-width: 32px;
        height: 32px;
        padding: 0 10px;
        font-size: 0.9rem;
    }
    
    .pagination .page-numbers.prev,
    .pagination .page-numbers.next {
        padding: 0 12px;
        font-size: 0.85rem; /* 稍微减小文字按钮字体 */
    }
    
    .pagination .page-numbers.prev i,
    .pagination .page-numbers.next i {
        font-size: 0.9em; /* 减小图标大小 */
    }
}

/* 小屏幕手机优化 */
@media (max-width: 480px) {
    .pagination {
        gap: 2px;
        margin-top: 20px;
    }
    
    .pagination .page-numbers {
        min-width: 28px;
        height: 28px;
        padding: 0 8px;
        font-size: 0.8rem;
    }
    
    .pagination .page-numbers.prev,
    .pagination .page-numbers.next {
        padding: 0 10px;
        font-size: 0.8rem;
    }
    
    .pagination .page-numbers.prev i,
    .pagination .page-numbers.next i {
        font-size: 0.8em;
    }
}

/* 超小屏幕优化（保持所有元素） */
@media (max-width: 360px) {
    .pagination .page-numbers {
        min-width: 26px;
        height: 26px;
        padding: 0 6px;
        font-size: 0.75rem;
    }
    
    .pagination .page-numbers.prev,
    .pagination .page-numbers.next {
        padding: 0 8px;
        font-size: 0.75rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) {
    .pagination .page-numbers:hover {
        background: white;
        color: #64748b;
        border-color: #e2e8f0;
    }
    
    .pagination .page-numbers.current:hover {
        background: var(--primary);
        color: white;
    }
}


/* 主内容区 */
.main-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 10px 40px;
    display: flex;
    gap: 30px;
}

.content-section {
    flex: 1;
}

/* 文章内容框架 */
.article-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

/* 文章标题 */
.article-title {
    font-size: 1.6rem;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 700;
    margin-left: auto;
    margin-right: auto;
}

/* 文章元信息 */
.article-meta {
    display: flex;
    color: #64748b;
    font-size: 0.95rem;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eef2ff;
    flex-wrap: wrap;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 文章内容 */
.article-content {
    line-height: 1.8;
    margin: 0;
    padding: 0;
}

.article-content p {
    margin-bottom: 10px;
    color: #334155;
    padding: 0 5px;
}

.article-content h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin: 10px 0 10px;
    padding: 10px 5px;
    border-bottom: 2px solid #eef2ff;
}

.article-content h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin: 10px 0 10px;
    padding: 0 5px;
}

.article-content ul, 
.article-content ol {
    margin: 0 0 20px 15px;
    padding: 0 5px;
}

.article-content li {
    margin-bottom: 10px;
}

/* 图片基础样式 */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1px 0;
    box-shadow: var(--shadow);
}

/* WordPress图片对齐样式 */
.article-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article-content .alignleft {
    float: left;
    margin: 15px 20px 15px 0;
}

.article-content .alignright {
    float: right;
    margin: 15px 0 15px 20px;
}

/* 清除浮动 */
.article-content::after {
    content: "";
    display: table;
    clear: both;
}

/* 图片标题样式 */
.article-content .wp-caption {
    margin-bottom: 20px;
    max-width: 100%;
}

.article-content .wp-caption-text {
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
    margin-top: 5px;
}

/* ==================== 移动端优化 ==================== */
@media (max-width: 768px) {
    .article-container {
        padding: 15px 5px;
    }
    
    .article-title {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .article-meta {
        padding: 0 10px 15px;
    }
    
    .article-content {
        margin-left: 1px;
        margin-right: 1px;
    }
    
    .article-content > * {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* 移动端图片处理 */
    .article-content img {
        padding: 0;
        width: 100%;
    }
    
    /* 移动端取消浮动图片 */
    .article-content .alignleft,
    .article-content .alignright {
        float: none;
        margin: 15px auto;
        display: block;
    }
}



/* 上下篇导航 */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eef2ff;
}

.nav-previous, .nav-next {
    flex: 1;
}

.nav-previous {
    padding-right: 15px;
}

.nav-next {
    text-align: right;
    padding-left: 15px;
}

.nav-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: var(--transition);
}

.nav-title:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* === 简洁相关文章模块 === */
.related-posts-module {
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.module-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.module-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
}

.post-title-container {
    flex: 1; /* 标题容器占据主要空间 */
    min-width: 0; /* 防止溢出 */
}

.post-title {
    font-size: 1rem;
    color: #334155;
    text-decoration: none;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制显示2行 */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    transition: color 0.2s;
    line-height: 1.4; /* 增加行高提高可读性 */
}

.post-title:hover {
    color: #2563eb;
}

.post-date {
    font-size: 0.9rem;
    color: #64748b;
    min-width: 85px;
    text-align: right;
    align-self: flex-start; /* 日期顶部对齐 */
    padding-top: 2px; /* 对齐第一行文字 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .related-posts-module {
        padding: 15px;
    }
    
    .post-item {
        flex-direction: column;
        gap: 6px;
    }
    
    .post-date {
        text-align: left;
        align-self: flex-start;
        padding-left: 0;
        padding-top: 0;
    }
}

     /* 产品内容页主内容区 */
        .main-content {
            display: flex;
            gap: 30px;
            margin-bottom: 40px;
        }
        
        .product-section {
            flex: 1;
            background: white;
            border-radius: var(--border-radius);
            padding: 10px;
            box-shadow: var(--shadow);
        }
        
        .product-header {
            display: flex;
            gap: 30px;
            margin-bottom: 30px;
        }
        
.product-image {
    max-width: 200px;
    max-height: 200px;
    width: auto !important;
    height: auto !important;
    object-fit: contain; /* 让图片完整显示 */
    border-radius: var(--border-radius);
    border: 1px solid #eef2ff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 5px;
    background: white;
    display: block;
    flex-shrink: 0;
}


    
        .product-info {
            flex: 1;
        }
        
        .product-title {
            font-size: 1.8rem;
            color: #1e293b;
            margin-bottom: 15px;
            font-weight: 700;
        }
        
        /* 表格样式 - 紧凑边框 */
        .product-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 15px;
            overflow: hidden;
        }
        
        .product-table tr {
            border-bottom: 1px solid #e2e8f0;
        }
        
        .product-table tr:last-child {
            border-bottom: none;
        }
        
        .product-table td {
            padding: 8px 12px; /* 减小内边距 */
            font-size: 0.95rem;
            border: 1px solid #e2e8f0; /* 每个单元格都有边框 */
        }
        
        .product-table td:first-child {
            width: 80px;
            font-weight: 600;
            color: var(--secondary);
            background-color: #f8fafc;
        }
        
        .product-table td:last-child {
            color: #334155;
        }
        
        .product-table a {
            color: var(--primary);
            text-decoration: none;
            border-bottom: 1px dotted var(--primary);
            transition: var(--transition);
        }
        
        .product-table a:hover {
            color: var(--primary-light);
            border-bottom: 1px solid var(--primary-light);
        }
		
        .like-count {
            color: #334155;
        }
        
        /* 详细介绍 */
        
        .description-title {
            font-size: 1.4rem;
            color: #1e293b;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #eef2ff;
        }
        
        .description-content {
            line-height: 1.8;
            color: #334155;
        }
        
        .description-content p {
            margin-bottom: 15px;
        }
        
        .description-content h3 {
            color: #1e293b;
            margin: 20px 0 10px;
            font-size: 1.2rem;
        }
        
        .description-content ul {
            margin: 0 0 20px 20px;
        }
        
        .description-content li {
            margin-bottom: 8px;
            padding-left: 5px;
        }
		
        /* 响应式设计 */
        @media (max-width: 992px) {
            .main-content {
                flex-direction: column;
            }
            
            .sidebar {
                width: 100%;
            }
        }
        
        @media (max-width: 768px) {
            .product-header {
                flex-direction: column;
                align-items: center;
            }
            
            .product-info {
                width: 100%;
            }
            
            .product-table td {
                padding: 6px 10px;
                font-size: 0.9rem;
            }
        }
        
        @media (max-width: 576px) {
            .container {
                padding: 15px;
            }
            
            .product-section {
                padding: 10px;
            }
            
            .product-title {
                font-size: 1.5rem;
            }
            
        }

/* 底部备案号样式 */
.link {
    color: #94a3b8;          /* 默认文字颜色 */
    text-decoration: none;   /* 去除下划线 */
    transition: color 0.3s ease; /* 专门针对颜色的过渡效果 */
}

.link:hover {
    color: #fff;             /* 悬停时变为白色 */
}

/* 点赞和踩按钮样式 */
#like-btn {
    background: linear-gradient(135deg, #ff4d4d, #ff6f61);  /* 渐变红色背景 */
    border: none;
    border-radius: 20px;  /* 圆角 */
    color: white;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 14px;
    transition: transform 0.2s ease, background 0.3s ease;
    box-shadow: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

/* 踩按钮样式 */
#dislike-btn {
    background: linear-gradient(135deg, #6c757d, #5a6268);  /* 渐变灰色背景 */
    border: none;
    border-radius: 20px;  /* 圆角 */
    color: white;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 14px;
    transition: transform 0.2s ease, background 0.3s ease;
    box-shadow: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

/* 鼠标悬停时，按钮背景反转，按钮微微上升 */
#like-btn:hover, #dislike-btn:hover {
    transform: translateY(-2px);  /* 鼠标悬停时按钮微微上升 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);  /* 悬停时添加阴影 */
}

#like-btn:hover {
    background: linear-gradient(135deg, #ff6f61, #ff4d4d);  /* 点赞按钮悬停时渐变背景反转 */
}

#dislike-btn:hover {
    background: linear-gradient(135deg, #5a6268, #6c757d);  /* 踩按钮悬停时渐变背景反转 */
}

/* 按钮点击时稍微缩小 */
#like-btn:active, #dislike-btn:active {
    transform: scale(0.95);  /* 按钮点击时稍微缩小 */
}

/* 点赞按钮和踩按钮图标样式 */
#like-btn i, #dislike-btn i {
    font-size: 16px;
    margin-right: 6px;  /* 图标和文本之间的间距 */
}

/* 让点赞次数和按钮在同一行显示 */
.right {
    display: inline-flex;
    align-items: center;
}

/* 让已点击的踩按钮显示不同的样式（如果有需要） */
#dislike-btn[disabled] {
    background-color: #b3b3b3;  /* 灰色背景 */
    cursor: not-allowed;  /* 禁用状态 */
}

/* 如果需要禁用点赞按钮时，添加类似的样式 */
#like-btn[disabled] {
    background-color: #b3b3b3;  /* 灰色背景 */
    cursor: not-allowed;  /* 禁用状态 */
}


