@import url('https://cdn.jsdelivr.net/npm/lxgw-wenkai-gb-web/style.css');

/* V2.6 Website Styles */

:root {
    --primary-color: #8E44AD;
    --secondary-color: #6C3483;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --border-color: #ddd;
    --header-bg: #fff;
    --footer-bg: #f8f9fa;
    --text-primary: #333;
    --text-secondary: #666;
    --section-color: #e9ecef;
    --section-color-light: #f8f9fa;
    --section-color-dark: #dee2e6;
    --bg-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================================
   ========================================================= */
:root {
  --font-serif: "LXGW WenKai GB", "微软雅黑", "思源黑体", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

body {
    color: #333;
    font-family: var(--font-serif);
    line-height: 1.6;
    color: #333;
    background-color: var(--bg-color);
}

/* Header Styles */
.site-header {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.header-logo img {
    width: 80px;
    height: 80px;
    margin-left: 20px;
}

.header-title-section {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-name {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.site-name a {
    color: #fff;
    text-decoration: none;
}

.site-description {
    font-size: 16px;
    color: #fff;
    text-align: left;
    white-space: nowrap;
    margin: 0;
}

.header-right {
    display: flex;
    gap: 20px;
}

.header-contact a,
.header-privacy a {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 20px;
}

.header-contact a:hover,
.header-privacy a:hover {
    background-color: #333;
    color: #333;
}

/* Main Layout */

    flex-direction: column;
    gap: 6px;
}

/* Removed: V3.2 sidebar styles now in layout.css */

/* Search Section */

/* Removed: V3.2 sidebar styles now in layout.css */

.no-results {
    color: #333;
    font-size: 14px;
    text-align: center;
    padding: 10px;
}

/* Services Section */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef); border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.service-item:hover {
    background-color: #333;
    color: #333;
    transform: translateX(5px);
}

.service-icon {
    font-size: 20px;
    margin-right: 12px;
}

.service-name {
    font-size: 16px;
    font-weight: 500;
}

/* Stats Section */

/* Homepage Styles */
.homepage-container {
    margin-bottom: 20px;
}

.page-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.category-meta {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}

.latest-article {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.latest-article a {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    margin-bottom: 8px;
}

.latest-article a:hover {
    color: #333;
}

.article-meta {
    font-size: 12px;
    color: #333;
    margin-bottom: 8px;
}

.article-summary {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Footer Styles */
.site-footer {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    padding: 40px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.footer-content {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-left {
        flex-direction: column;
        text-align: center;
    }
    
    
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
}

@media (max-width: 480px) {
    .header-container {
        padding: 10px;
    }
    
    
    
    .header-logo img {
        width: 60px;
        height: 60px;
        margin-left: 10px;
    }
    
    .site-name {
        font-size: 20px;
    }
    
    .site-description {
        font-size: 14px;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .header-contact a,
    .header-privacy a {
        padding: 6px 12px;
        font-size: 16px;
    }
}
.site-description { color: #fff; text-align: left; font-size: 16px; white-space: nowrap; }

/* Removed: V3.2 sidebar styles now in layout.css */
/* Footer link colors */
.site-footer a {
    color: rgba(255,255,255,0.9);
}
.site-footer a:hover {
    color: #fff;
}

/* ======================================================
   V3.2 新增样式 — 分类卡片首页 & 最新更新
   设计原则：复用现有 CSS 变量，不依赖 components.css
   ====================================================== */

/* ---------- 分类卡片首页 (index.html) ---------- */
.category-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.category-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}

.category-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.category-icon {
    font-size: 24px;
    margin-right: 8px;
}

.category-description {
    font-size: 13px;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.category-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-posts li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-posts li:last-child {
    border-bottom: none;
}

.category-posts li a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.category-posts li a:hover {
    color: #333;
}

.post-date {
    font-size: 12px;
    color: #aaa;
    margin-left: 8px;
}

/* Removed: V3.2 sidebar styles now in layout.css */
/* ---------- 底栏配色统一（与顶栏/侧栏一致） ---------- */
.site-footer {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-top: 2px solid rgba(255,255,255,0.15);
    margin-top: 40px;
    padding: 40px 0 20px;
}

.footer-section h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #333;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 8px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: rgba(255,255,255,0.4);
    border-radius: 1px;
}

.footer-content {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    transition: all 0.2s ease;
}

.footer-links a:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
    transform: translateY(-1px);
}

/* 覆盖之前定义的旧规则 */
.site-footer a {
    color: rgba(255,255,255,0.85);
}

.site-footer a:hover {
    color: #fff;
}

/* ========== 留言表单 ========== */
#contactForm {
    max-width: 500px;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color, #333);
    margin-bottom: 6px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color, #8E44AD);
    background: #fff;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-submit {
    display: inline-block;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.form-submit:hover {
    opacity: 0.9;
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    margin-top: 12px;
    font-size: 14px;
}

/* 底栏标题文字白色（紫色渐变背景上醒目） */
.site-footer .footer-title {
    color: #ffffff !important;
}
.reading-time { display: inline-block; margin-left: 12px; font-size: 14px; color: #666; }

/* Services Section Styles */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.service-icon {
    font-size: 20px;
    margin-right: 12px;
    color: #333;
}

.service-name {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

/* Social Media Section Styles */
.social-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.social-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.social-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.social-icon {
    font-size: 20px;
    margin-right: 12px;
    color: #333;
}

.social-name {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

/* 统计模块样式 */
.stats-section { margin: 20px 0; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap:12px; margin:15px 0; }
.stat-card { background:rgba(255,255,255,0.12); border-radius:12px; padding:10px; text-align:center; }
.stat-value { font-size:22px; font-weight:700; color:#fff; }
.stat-label { font-size:12px; color:rgba(255,255,255,0.85); margin-top:5px; }
.stats-update-note { font-size:12px; color:rgba(255,255,255,0.7); text-align:center; margin-top:10px; }


/* 强制左侧栏所有文字白色 - 覆盖所有紫色 */
.left-sidebar *,
.left-sidebar .section-name,
.left-sidebar .section-item,
.left-sidebar .section-item a,
.left-sidebar .service-name,
.left-sidebar .social-name,
.left-sidebar a {
    color: #ffffff !important;
}


/* 缩小最热板块字体大小 */
#hotSection {
    font-size: 16px !important;
}


