/* 基础变量 */
:root {
    --text-main: #1d1d1f;
    --text-sub: #6e6e73;
    --accent: #0071e3;
    --bg-card: #f5f5f7;
    --border: #d2d2d7;
    --radius: 16px;
}

/* 全局布局 */
.yww-layout-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* 文章标题样式 */
.single-post-title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--text-main);
}

.single-post-content {
    font-size: 19px;
    line-height: 1.75;
    color: var(--text-main);
}
.single-post-content p { margin-bottom: 1.8em; }

/* 表格样式 */
.single-post-content table {
    width: 100%;
    margin: 2em 0;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.single-post-content th, .single-post-content td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
}
.single-post-content th { background: var(--bg-card); font-weight: 600; }

/* 侧边栏 */
.yww-sidebar-sticky { position: sticky; top: 40px; }
.yww-sidebar-module { margin-bottom: 40px; }

.yww-module-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-sub);
    margin-bottom: 16px;
}

.yww-download-btn {
    display: block;
    padding: 14px;
    background: #000;
    color: #fff;
    text-align: center;
    border-radius: var(--radius);
    font-weight: 600;
    transition: 0.3s;
}
.yww-download-btn:hover { background: #333; }

.yww-static-posts-list { list-style: none; padding: 0; }
.yww-static-posts-list li { margin-bottom: 12px; }
.yww-static-posts-list a { color: var(--text-sub); font-size: 15px; text-decoration: none; }
.yww-static-posts-list a:hover { color: var(--accent); }

/* 底部推荐 */
.yww-section-title { font-size: 24px; margin: 40px 0 20px; }
.yww-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.yww-related-item {
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: 0.3s;
}
.yww-related-item:hover { background: #e8e8ed; transform: translateY(-3px); }

/* 响应式适配 */
@media (max-width: 860px) {
    .yww-layout-grid { grid-template-columns: 1fr; padding: 30px 20px; }
    .yww-sidebar-sticky { position: static; }
}

/* 正文排版微调 */
.single-post-content {
    font-size: 19px;
    line-height: 1.8;
    color: var(--text-main);
    word-wrap: break-word;
}

.single-post-content p {
    margin: 0 0 1.8em 0;
}

/* 标题间距 */
.single-post-content h2 {
    font-size: 28px;
    margin: 2em 0 1em 0;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.single-post-content h3 {
    font-size: 22px;
    margin: 1.8em 0 0.8em 0;
    font-weight: 600;
}

/* 超链接 */
.single-post-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 113, 227, 0.3);
    transition: 0.2s;
}
.single-post-content a:hover {
    border-bottom-color: var(--accent);
}

/* 列表间距 */
.single-post-content ul, 
.single-post-content ol {
    margin: 0 0 2em 1.2em;
    padding: 0;
}
.single-post-content li {
    margin-bottom: 0.6em;
}

/* 引用块 */
.single-post-content blockquote {
    margin: 2em 0;
    padding: 1em 1.5em;
    border-left: 4px solid var(--accent);
    background: var(--bg-card);
    font-style: italic;
    color: var(--text-sub);
    border-radius: 0 8px 8px 0;
}

/* 图片处理 */
.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2em 0;
}

/* 内联代码 */
.single-post-content code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: monospace;
}

/* 色彩体系更新 */
:root {
    --text-main: #1d1d1f;
    --text-sub: #6e6e73;
    --accent: #0066cc;
    
    --bg-page: #fbfbfd;
    --bg-card: #ffffff;
    --bg-accent: #f5f5f7;
    
    --border: #d2d2d7;
    --radius: 18px;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
}

/* 内容卡片区 */
.single-post-article, 
.yww-sidebar-module {
    background: var(--bg-card);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius);
    padding: 40px;
}

.yww-sidebar {
    background: transparent;
    border: none;
    box-shadow: none;
}

.yww-related-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border);
}