/* Article List Page Styles */
:root {
    --primary-color: #1e3a5f;
    --secondary-color: #2d5a87;
    --accent-color: #c9a227;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --bg-light: #f5f7fa;
    --border-color: #e5e7eb;
    --white: #fff;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 8px;
    --transition: all 0.3s ease;
}
.article-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumb */
.article-breadcrumb {
    padding: 4px 0;
    font-size: 14px;
    color: #666;
}
.breadcrumb-container a {
    color: #2d5a87;
    text-decoration: none;
}
.breadcrumb-container a:hover {
    text-decoration: underline;
}
.breadcrumb-sep {
    margin: 0 8px;
    color: #999;
}
.breadcrumb-current {
    color: #333;
}

/* Article Header - 简约现代风格 */
.article-header {
    text-align: center;
    padding: 25px 0 20px;
    margin-bottom: 0;
}
.product-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-bottom: 0;
}
.product-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}
.product-count {
    font-size: 13px;
    color: #888;
    background: #f5f5f5;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 500;
}
header .product-description {
    text-align: left !important;
    width: 100% !important;
    margin: 20px 0 0 0 !important;
    padding: 20px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    background: #fafafa !important;
    box-sizing: border-box !important;
}
header .product-description p {
    color: #555 !important;
    line-height: 1.7 !important;
    font-size: 15px !important;
    margin: 0 !important;
}

/* 分类标题 */
.product-list-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a1a1a;
    display: inline-block;
}

/* Main Layout */
.article-main {
    display: flex;
    gap: 30px;
}
.article-content {
    flex: 1;
    min-width: 0;
}
.article-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Article List */
.article-list-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.article-count {
    font-size: 14px;
    color: #666;
}

.article-item {
    display: flex;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}
.article-item:last-child {
    border-bottom: none;
}

.article-item-image {
    width: 280px;
    flex-shrink: 0;
}
.article-item-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
}

.article-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-item-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px;
}
.article-item-title a {
    color: #1e3a5f;
    text-decoration: none;
}
.article-item-title a:hover {
    color: #2d5a87;
}

.article-item-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px;
}

.article-item-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}
.meta-sep {
    margin: 0 8px;
}

.read-more {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #2d5a87;
    text-decoration: none;
}
.read-more:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    padding: 30px 0;
    text-align: center;
}
.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    font-size: 14px;
    color: #666;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
}
.pagination a:hover {
    background: #2d5a87;
    color: #fff;
}
.pagination .current {
    background: #2d5a87;
    color: #fff;
}

.no-posts {
    padding: 50px 0;
    text-align: center;
    color: #999;
}

/* Sidebar - Enhanced for UX & SEO */
.article-sidebar {
    width: 280px;
    flex-shrink: 0;
}
.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.widget-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    padding: 14px 18px;
    margin: 0;
    background: linear-gradient(135deg, #1e3a5f, #2d5a87);
}
.widget-title a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}
.widget-title a:hover {
    opacity: 0.85;
}

/* Category Navigation */
.category-nav {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.category-nav li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.category-nav li:first-child {
    border-top: none;
}
.category-nav a {
    display: block;
    padding: 10px 18px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    flex: 1;
    position: relative;
}
.category-nav a:hover {
    background: #f0f4f8;
    color: #1e3a5f;
    padding-left: 22px;
}
.category-nav a::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c9a227;
    opacity: 0;
    transition: opacity 0.2s;
}
.category-nav a:hover::before {
    opacity: 1;
}
.category-nav li.current-cat > a,
.category-nav li.current-cat-ancestor > a,
.category-nav li.current > a,
.category-nav li.current-cat-parent > a {
    background: linear-gradient(135deg, #1e3a5f, #2d5a87);
    color: #fff;
    font-weight: 500;
}
.category-nav li.current-cat > a::before,
.category-nav li.current-cat-ancestor > a::before,
.category-nav li.current > a::before,
.category-nav li.current-cat-parent > a::before {
    background: #c9a227;
    opacity: 1;
}
.category-nav a:visited:not(.category-nav li.current-cat > a) {
    color: #333;
}

/* Sub-category Toggle Button */
.sub-menu-toggle {
    width: 24px;
    height: 24px;
    border: none;
    background: #e5e7eb;
    border-radius: 4px;
    color: #666;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.sub-menu-toggle:hover {
    background: #1e3a5f;
    color: #fff;
}
.sub-category {
    display: none;
    padding-left: 20px;
    background: #f8f9fa;
}
.sub-category li a {
    font-size: 13px;
    color: #555;
}
.sub-category li.current-cat > a {
    color: #1e3a5f;
    font-weight: 500;
}

/* Page Navigation - Accordion Style */
.page-nav {
    padding: 10px 0;
}
.page-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.page-nav li {
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
}
.page-nav li:last-child {
    border-bottom: none;
}
.page-nav li.nav-title {
    padding: 0;
    margin: 0;
}
.page-nav li.nav-title a {
    display: block;
    padding: 12px 18px;
    font-weight: 600;
    color: #fff;
    background: #1e3a5f;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.page-nav li a {
    display: block;
    padding: 10px 18px 10px 28px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    font-weight: 400;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}
.page-nav li a::before {
    content: '›';
    position: absolute;
    left: 16px;
    color: #1e3a5f;
    font-weight: bold;
}
.page-nav li a:hover {
    background: #f5f7fa;
    color: #1e3a5f;
    padding-left: 28px;
}
.page-nav li a:hover::before {
    left: 22px;
}
.page-nav li.current a {
    background: linear-gradient(90deg, #1e3a5f, transparent);
    color: #fff;
    font-weight: 600;
}
.page-nav li.current a::before {
    background: #c9a227;
}
/* Fix: visited links should use same style as normal links, not purple */
.page-nav li a:visited {
    color: #333;
    background: transparent;
}
.page-nav li.current a:visited {
    color: #fff;
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, #1e3a5f, #2d5a87);
    color: #fff;
}
.sidebar-cta .widget-title {
    color: #fff;
    background: transparent;
}
.sidebar-cta .widget-title::before {
    display: none;
}
.sidebar-cta p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 15px;
    opacity: 0.9;
    padding: 15px 18px 0;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 18px 18px;
    padding: 11px 20px;
    background: #c9a227;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.cta-btn:hover {
    background: #ddb52e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201,162,39,0.4);
}
.cta-btn::after {
    content: '→';
    transition: transform 0.2s ease;
}
.cta-btn:hover::after {
    transform: translateX(3px);
}

/* Contact List */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-list li {
    font-size: 13px;
    padding: 10px 18px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.contact-list li:last-child {
    border-bottom: none;
}
.contact-list li strong {
    color: #1a1a1a;
    min-width: 45px;
}
.contact-list li a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-list li a:hover {
    color: #1e3a5f;
}

/* Responsive */
@media (max-width: 1024px) {
    .article-main {
        flex-direction: column;
    }
    .article-content {
        order: -1;
    }
    .article-sidebar {
        width: 100%;
        order: 1;
    }
}

@media (max-width: 768px) {
    .article-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .sidebar-widget {
        flex: 1 1 calc(50% - 5px);
        min-width: 140px;
    }
    
    .article-page {
        padding: 15px;
    }
    .article-item {
        flex-direction: column;
    }
    .article-item-image {
        width: 100%;
    }
    .article-item-image img {
        height: 200px;
    }
    .article-title {
        font-size: 26px;
    }
    .article-header {
        padding: 25px 0 20px;
    }
    .product-title {
        font-size: 22px;
    }
}


/* 分类 Banner 样式 */
.category-banner {
    width: 100%;
    margin: 4px 0 20px;
    overflow: hidden;
}
.category-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Popular Articles Widget */
.sidebar-popular .popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-popular .popular-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-popular .popular-item:first-child {
    padding-top: 18px;
}
.sidebar-popular .popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sidebar-popular .popular-thumb {
    flex-shrink: 0;
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}
.sidebar-popular .popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sidebar-popular .popular-info {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}
.sidebar-popular .popular-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
    text-decoration: none;
    margin-bottom: 4px;
}
.sidebar-popular .popular-title:hover {
    color: var(--secondary-color);
}
.sidebar-popular .popular-date {
    font-size: 11px;
    color: var(--text-gray);
}
