/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 50%, #ede9fe 100%);
    background-attachment: fixed;
    color: #334155;
    line-height: 1.6;
    min-height: 100vh;
}

/* 顶部栏 */
.header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 100;
}

.back-link {
    text-decoration: none;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: #1d4ed8;
}

.time {
    font-size: 14px;
    color: #64748b;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

/* 主内容区 */
.main {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px;
}

.title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e293b;
}

.subtitle {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 48px;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 60px;
    color: #94a3b8;
    font-size: 15px;
}

/* 文章列表 */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post {
    background: rgba(255, 255, 255, 0.85);
    padding: 28px 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
}

.post:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
}

.post-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    align-items: center;
}

.post-date {
    color: #94a3b8;
    font-weight: 500;
}

.post-tag {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.post-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1e293b;
}

.post-excerpt {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 底部 */
.footer {
    text-align: center;
    padding: 40px 24px;
    font-size: 13px;
    color: #94a3b8;
}

/* 响应式 */
@media (max-width: 640px) {
    .header {
        padding: 14px 20px;
    }
    .main {
        padding: 40px 16px;
    }
    .title {
        font-size: 28px;
    }
    .post {
        padding: 22px 20px;
        border-radius: 12px;
    }
}

/* .post-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
  }
  .post-title {
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    color: #0366d6;
  }
  .post-date {
    font-size: 0.8rem;
    color: #666;
  } */