/* * TxtPress Corporate Theme - Stationery Edition
 * Version: 1.1 (Fixed)
 * Style: 现代简约 + 轻文艺 + 活力感
 * 适配文具行业清新、轻盈、精致的视觉调性
 */

:root {
    /* --- 文具行业专属配色体系 --- */
    /* 主色调：淡蓝（纸张/钢笔） */
    --c-primary: #7FB8E6;       
    --c-primary-dark: #6AA0D3;  
    --c-primary-light: #E8F4F8; 
    
    /* 辅助色：原木色（纸张/木质文具） */
    --c-secondary: #F5F0E8;     
    
    /* 强调色 */
    --c-accent-pink: #FDF2F8;   
    --c-accent-green: #F0FDF4;  
    --c-accent-yellow: #FFF9E8; 

    /* --- 基础背景与文字 --- */
    --bg-body: #FAFAFA;         /* 页面底色：极浅灰，模拟纸张质感 */
    --bg-white: #FFFFFF;        
    --text-main: #333333;       /* 主要文字 */
    --text-light: #666666;      /* 次要文字 */
    --text-lighter: #999999;    /* 极淡文字 */
    --border-color: #E5E7EB;    

    /* --- 布局参数 --- */
    --radius-sm: 8px;           
    --radius-md: 12px;          
    --radius-lg: 16px;          
    --header-height: 70px;
    --max-width: 1200px;
    
    /* 柔和阴影 */
    --shadow-card: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-header: 0 2px 6px rgba(0,0,0,0.03);
}

/* === 全局重置 === */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    outline: none; 
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-body);
    color: var(--text-light);
    font-family: "Source Han Sans CN", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
    font-size: 16px;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: all 0.3s ease; 
}

/* 全局去除列表样式（导航等），但稍后会在 markdown-body 中恢复 */
ul, li { list-style: none; }

img { 
    display: block; 
    max-width: 100%; 
    height: auto; 
    border-radius: var(--radius-sm); 
}

/* === 容器 === */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === 头部导航 === */
.site-header {
    background: var(--bg-white);
    height: var(--header-height);
    box-shadow: var(--shadow-header);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--c-primary);
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

/* 桌面导航 */
.desktop-nav { 
    display: flex; 
    align-items: center; 
    gap: 18px; 
}

.desktop-nav a {
    font-size: 0.95rem; 
    font-weight: 500;
    color: var(--text-main);
    padding: 8px 14px; 
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.desktop-nav a:hover, 
.desktop-nav a.active { 
    color: var(--c-primary-dark); 
    background-color: var(--c-primary-light); 
}

/* 移动端菜单开关 */
.mobile-menu-trigger { 
    display: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    color: var(--text-main); 
    padding: 5px;
}

/* 移动端菜单浮层 (修复 display 逻辑) */
.mobile-menu-overlay {
    display: none; /* 由 JS 控制切换为 flex */
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(255,255,255,0.98); 
    z-index: 9999;
    flex-direction: column; 
    padding: 30px;
    overflow-y: auto;
}

.mobile-menu-header { 
    display: flex; 
    justify-content: space-between; 
    width: 100%; 
    margin-bottom: 30px; 
    align-items: center;
}
.logo-mobile { 
    font-weight: 600; 
    font-size: 1.4rem; 
    color: var(--c-primary); 
}
.close-btn { 
    font-size: 2.5rem; 
    line-height: 1;
    cursor: pointer; 
    color: var(--text-main);
    transition: color 0.2s;
}
.close-btn:hover {
    color: var(--c-primary-dark);
}
.mobile-nav-links { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    text-align: center; 
}
.mobile-nav-links a { 
    font-size: 1.2rem; 
    color: var(--text-main); 
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.mobile-nav-links a:hover {
    color: var(--c-primary);
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(135deg, var(--c-primary-light) 0%, var(--c-accent-green) 100%);
    /* 内嵌 SVG 纹理 */
    background-image: 
        linear-gradient(135deg, var(--c-primary-light) 0%, var(--c-accent-green) 100%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%237FB8E6' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    color: var(--text-main);
    padding: 100px 0;
    text-align: center;
    margin-bottom: 60px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.hero-content h1 { 
    font-size: 2.8rem; 
    margin-bottom: 20px; 
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 1px;
}
.hero-subtitle { 
    font-size: 1.2rem; 
    margin-bottom: 40px; 
    opacity: 0.9; 
    max-width: 700px; 
    margin-left: auto; 
    margin-right: auto;
    line-height: 1.8;
}
.hero-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    flex-wrap: wrap;
}

.btn {
    display: inline-block; 
    padding: 12px 30px; 
    font-size: 1rem;
    border-radius: var(--radius-sm); 
    font-weight: 500; 
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.primary-btn { 
    background: var(--c-primary); 
    color: white;
    box-shadow: 0 2px 4px rgba(127, 184, 230, 0.3);
}
.primary-btn:hover { 
    background: var(--c-primary-dark); 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(127, 184, 230, 0.4);
}

.secondary-btn { 
    background: transparent; 
    border: 1px solid var(--c-primary); 
    color: var(--c-primary);
}
.secondary-btn:hover { 
    border-color: var(--c-primary-dark); 
    background: var(--c-primary-light);
    transform: translateY(-2px);
}

/* === Info Section === */
.info-section { 
    margin-bottom: 80px; 
}
.center-header { 
    text-align: center; 
    margin-bottom: 50px; 
}
.center-header h2 { 
    font-size: 2rem; 
    color: var(--text-main); 
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
}
.center-header p { 
    color: var(--text-lighter); 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    font-size: 0.9rem;
}

.info-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}
.info-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}
.info-card:hover { 
    transform: translateY(-6px); 
    box-shadow: var(--shadow-hover); 
}
.info-card .icon { 
    font-size: 2.8rem; 
    margin-bottom: 20px; 
    color: var(--c-primary);
    opacity: 0.9;
}
.info-card h3 { 
    font-size: 1.4rem; 
    color: var(--text-main); 
    margin-bottom: 15px;
    font-weight: 600;
}
.info-card p { 
    color: var(--text-light); 
    margin-bottom: 20px; 
    font-size: 0.95rem;
    line-height: 1.7;
}
.read-more { 
    color: var(--c-primary); 
    font-weight: 600; 
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}
.read-more:hover { 
    text-decoration: underline; 
    color: var(--c-primary-dark);
    transform: translateX(3px);
}
.read-more::after {
    content: "→";
    margin-left: 5px;
    transition: transform 0.2s ease;
}
.read-more:hover::after {
    transform: translateX(3px);
}

/* === Main Content Area === */
.main-content-area { 
    min-height: 400px; 
    margin-bottom: 80px; 
}
.section-header { 
    margin-bottom: 30px; 
    border-left: 4px solid var(--c-primary); 
    padding-left: 15px; 
}
.section-header h2 { 
    font-size: 1.8rem; 
    color: var(--text-main);
    font-weight: 600;
}
.cat-desc { 
    margin-top: 5px; 
    color: var(--text-light); 
    font-size: 0.95rem; 
}

/* === Post Grid === */
.post-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); 
    gap: 30px; 
}
.grid-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex; 
    flex-direction: column;
}
.grid-card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-hover); 
}

.card-cover-wrapper {
    display: block;
    width: 100%;
    height: 200px; 
    background: var(--c-secondary); 
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
    border-radius: 0; /* 覆盖全局img圆角，这里不需要 */
}
.grid-card:hover .card-img { 
    transform: scale(1.05); 
}

.card-img-placeholder {
    width: 100%; 
    height: 100%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: linear-gradient(135deg, var(--c-secondary) 0%, var(--c-accent-yellow) 100%);
    color: var(--c-primary-dark); 
    font-weight: 600; 
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.card-body { 
    padding: 25px; 
    display: flex; 
    flex-direction: column; 
    flex: 1; 
}
.card-meta { 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.85rem; 
    color: var(--text-lighter); 
    margin-bottom: 12px; 
}
.cat-tag { 
    color: var(--c-primary); 
    font-weight: 500; 
}
.grid-card h3 { 
    font-size: 1.2rem; 
    margin-bottom: 10px; 
    line-height: 1.4; 
    color: var(--text-main);
    font-weight: 600;
}
.grid-card h3 a:hover { 
    color: var(--c-primary); 
}
.excerpt { 
    font-size: 0.9rem; 
    color: var(--text-light); 
    flex-grow: 1; 
    margin-bottom: 15px;
    line-height: 1.7;
}

.card-tags { 
    margin-top: auto; 
    padding-top: 15px; 
    border-top: 1px solid var(--border-color); 
}
.tag-badge { 
    font-size: 0.75rem; 
    color: var(--text-light); 
    margin-right: 8px;
    padding: 3px 8px;
    background: var(--c-primary-light);
    border-radius: var(--radius-sm);
}
.tag-badge:hover { 
    color: white;
    background: var(--c-primary);
}

/* === Pagination === */
.pagination { 
    display: flex; 
    justify-content: center; 
    gap: 10px; 
    margin-top: 50px; 
}
.page-btn {
    width: 40px; 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-sm); 
    color: var(--text-main);
    background: var(--bg-white);
    transition: all 0.2s ease;
}
.page-btn:hover { 
    background: var(--c-primary); 
    color: white; 
    border-color: var(--c-primary); 
    transform: translateY(-2px);
}
.page-current { 
    display: flex; 
    align-items: center; 
    padding: 0 10px; 
    font-weight: bold; 
    color: var(--text-main);
    font-size: 0.95rem;
}

/* === Single Post/Page === */
.single-post { 
    background: var(--bg-white); 
    padding: 40px; 
    border-radius: var(--radius-md); 
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}
.single-header { 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 20px; 
    margin-bottom: 30px; 
}
.breadcrumb { 
    font-size: 0.9rem; 
    color: var(--text-lighter); 
    margin-bottom: 15px; 
}
.breadcrumb a:hover {
    color: var(--c-primary);
}
.single-header h1 { 
    font-size: 2rem; 
    color: var(--text-main); 
    margin-bottom: 15px; 
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.meta-line { 
    font-size: 0.9rem; 
    color: var(--text-lighter); 
    display: flex; 
    gap: 20px; 
}

/* === Markdown Content (重要：恢复列表样式) === */
.markdown-body { 
    color: var(--text-main); 
    font-size: 1.05rem; 
    line-height: 1.85; 
}
.markdown-body h2 { 
    font-size: 1.5rem; 
    color: var(--text-main); 
    margin: 1.5em 0 0.8em; 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 10px;
    font-weight: 600;
}
.markdown-body h3 {
    font-size: 1.3rem;
    margin: 1.2em 0 0.6em;
    font-weight: 600;
}
.markdown-body p { 
    margin-bottom: 1.5em; 
}
/* 修正：在文章内容中恢复列表样式 */
.markdown-body ul {
    list-style: disc;
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}
.markdown-body ol {
    list-style: decimal;
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}
.markdown-body li {
    margin-bottom: 0.5em;
    list-style: inherit; /* 继承 ul/ol 的样式 */
}
.markdown-body hr {
    margin: 1.5em 0 0.8em;
    height: 1px;
    border: none;
    background-color: var(--border-color);
}
.markdown-body img { 
    max-width: 100%; 
    border-radius: var(--radius-sm); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
    margin: 20px 0;
}
.markdown-body a { 
    color: var(--c-primary); 
    border-bottom: 1px solid rgba(127, 184, 230, 0.3); 
}
.markdown-body a:hover { 
    border-bottom-color: var(--c-primary); 
    color: var(--c-primary-dark);
}
.markdown-body blockquote { 
    border-left: 4px solid var(--c-primary); 
    background: var(--c-primary-light); 
    padding: 15px 20px; 
    color: var(--text-main); 
    margin: 20px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* === Tags & CTA === */
.post-tags-container { 
    margin-top: 40px; 
    padding-top: 20px; 
    border-top: 1px solid var(--border-color); 
}
.tags-label { 
    font-weight: 600; 
    margin-right: 10px; 
    color: var(--text-main); 
}
.tag-pill { 
    display: inline-block; 
    background: var(--c-primary-light); 
    padding: 5px 12px; 
    font-size: 0.85rem; 
    color: var(--c-primary-dark); 
    border-radius: 20px; 
    margin-right: 8px;
    margin-bottom: 8px;
}
.tag-pill:hover { 
    background: var(--c-primary); 
    color: white;
    transform: translateY(-2px);
}

.post-cta {
    margin-top: 40px; 
    background: var(--c-secondary); 
    padding: 30px; 
    text-align: center; 
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}
.post-cta p { 
    font-weight: 600; 
    font-size: 1.1rem; 
    color: var(--text-main); 
    margin-bottom: 15px; 
    line-height: 1.7;
}
.small-btn { 
    font-size: 0.9rem; 
    padding: 8px 24px; 
    background: var(--c-primary); 
    color: white; 
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}
.small-btn:hover {
    background: var(--c-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(127, 184, 230, 0.3);
}

.post-navigation { 
    display: flex; 
    justify-content: space-between; 
    margin-top: 40px; 
    padding-top: 20px; 
    border-top: 1px solid var(--border-color); 
}
.nav-prev, .nav-next { 
    display: flex; 
    flex-direction: column; 
    max-width: 45%; 
}
.nav-prev small, .nav-next small { 
    color: var(--text-lighter); 
    margin-bottom: 5px; 
    font-size: 0.8rem; 
}
.nav-prev span, .nav-next span { 
    color: var(--text-main); 
    font-weight: 500; 
}
.nav-prev:hover span, .nav-next:hover span { 
    color: var(--c-primary); 
}

/* === FAQ Section === */
.faq-section { 
    background: var(--c-secondary); 
    padding: 60px 0; 
    border-top: 1px solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; 
}
.faq-item { 
    border-bottom: 1px solid var(--border-color); 
    background: var(--bg-white);
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.faq-question { 
    padding: 20px; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    font-weight: 600; 
    color: var(--text-main);
    transition: all 0.2s ease;
    user-select: none;
}
.faq-question:hover,
.faq-question.active { 
    color: var(--c-primary); 
    background: var(--c-primary-light);
}
.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.3s ease;
    background: var(--bg-white);
}
.faq-answer p { 
    padding: 0 20px 20px; 
    color: var(--text-light);
    line-height: 1.7;
}

/* === Footer === */
.site-footer { 
    background: var(--c-secondary); 
    color: var(--text-light); 
    padding: 60px 0 30px; 
    border-top: 1px solid var(--border-color);
}
.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 40px; 
    margin-bottom: 40px; 
}
.footer-col h4 { 
    color: var(--text-main); 
    margin-bottom: 20px; 
    font-size: 1.1rem;
    font-weight: 600;
}
.footer-col p { 
    margin-bottom: 10px; 
    font-size: 0.9rem; 
    line-height: 1.7;
}
.footer-col a { 
    display: block; 
    margin-bottom: 10px; 
    font-size: 0.9rem; 
    transition: all 0.2s ease;
}
.footer-col a:hover { 
    color: var(--c-primary);
    transform: translateX(3px);
}
.footer-bottom { 
    text-align: center; 
    padding-top: 30px; 
    border-top: 1px solid var(--border-color); 
    font-size: 0.85rem; 
    color: var(--text-lighter);
}
.footer-bottom a {
    color: var(--c-primary);
}
.footer-bottom a:hover {
    text-decoration: underline;
}

/* === 404 Page === */
.error-404 {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}
.error-404 h1 {
    font-size: 4rem;
    color: var(--c-primary);
    margin-bottom: 20px;
    font-weight: 600;
}
.error-404 p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* === Responsive (Tablets & Mobile) === */
@media (max-width: 768px) {
    .desktop-nav { 
        display: none; 
    }
    .mobile-menu-trigger { 
        display: block; 
    }
    .hero-content h1 { 
        font-size: 2rem; 
    }
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    .single-post { 
        padding: 20px; 
    }
    .footer-grid { 
        grid-template-columns: 1fr; 
    }
    .info-card {
        padding: 30px 20px;
    }
    .post-grid {
        grid-template-columns: 1fr;
    }
    .hero-section {
        padding: 80px 0;
    }
    .error-404 h1 {
        font-size: 3rem;
    }
}