/* 博客板块 - 极简风格 */

/* ===== 博客区块基础 ===== */
.blog {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== 标题区 ===== */
.blog .section-header {
    text-align: left;
    max-width: 100%;
    margin: 0 0 4rem 0;
    padding: 0;
}

.blog .section-tag {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--accent-cyan);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.blog .section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.blog .section-desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 400px;
}

/* ===== 博客统计 ===== */
.blog-stats {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-family: var(--font-display);
}

/* ===== 文章列表 - 极简列表式 ===== */
.blog-list {
    border-top: 1px solid var(--border-subtle);
}

.blog-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 2rem;
}

.blog-item:hover {
    padding-left: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.blog-item:hover .blog-title {
    color: var(--accent-cyan);
}

.blog-item:hover .blog-arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* 日期 */
.blog-date {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* 内容区 */
.blog-content {
    min-width: 0;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-summary {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分类标签 */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.blog-category {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.blog-views {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 箭头 */
.blog-arrow {
    width: 24px;
    height: 24px;
    opacity: 0.3;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.blog-arrow svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

/* ===== 加载状态 ===== */
.blog-loading {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== 空状态 ===== */
.blog-empty {
    padding: 4rem 0;
    text-align: center;
    color: var(--text-muted);
}

/* ===== 文章详情弹窗 - 极简 ===== */
.blog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem 2rem;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.blog-modal-content {
    max-width: 720px;
    width: 100%;
    position: relative;
    animation: slideUp 0.4s ease;
}

.blog-modal-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.blog-modal-close:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: rotate(90deg);
}

/* 文章头部 */
.blog-modal-header {
    margin-bottom: 3rem;
}

.blog-modal-category {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.blog-modal-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.blog-modal-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* 文章内容 */
.blog-modal-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.blog-modal-body h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.blog-modal-body p {
    margin-bottom: 1.5rem;
}

.blog-modal-body ul,
.blog-modal-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-modal-body li {
    margin-bottom: 0.75rem;
}

/* 底部 */
.blog-modal-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.blog-modal-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-modal-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.blog-modal-tag:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* ===== 动画 ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .blog {
        padding: 4rem 1.5rem;
    }
    
    .blog .section-title {
        font-size: 1.75rem;
    }
    
    .blog-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .blog-date {
        font-size: 0.7rem;
    }
    
    .blog-title {
        font-size: 1.1rem;
    }
    
    .blog-arrow {
        display: none;
    }
    
    .blog-modal {
        padding: 2rem 1.5rem;
    }
    
    .blog-modal-title {
        font-size: 1.5rem;
    }
    
    .blog-modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

/* 强制修复 */
.blog-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(10, 10, 15, 0.95) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 4rem 2rem !important;
    overflow-y: auto !important;
}

.blog-modal-close {
    width: 48px !important;
    height: 48px !important;
    font-size: 24px !important;
    line-height: 1 !important;
    background: rgba(255,255,255,0.1) !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}
