/* ===== 布丁的小站 · 全局样式 ===== */

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

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #2d3748;
    line-height: 1.7;
}

/* ===== 顶部导航 ===== */
.top-nav {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    display: flex;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.top-nav a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}
.top-nav a:hover { background: #edf2f7; color: #667eea; }
.top-nav a.active { background: #667eea; color: white; }

/* ===== 首页 ===== */
.home-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-width: 600px;
    margin: 80px auto;
    color: white;
}
.home-card .avatar { font-size: 80px; margin-bottom: 20px; }
.home-card h1 { font-size: 32px; margin-bottom: 10px; }
.home-card p { font-size: 16px; opacity: 0.9; margin-bottom: 20px; }
.home-card .status-tag {
    background: rgba(255,255,255,0.2);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 15px;
}
.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 24px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}
.btn:hover { background: rgba(255,255,255,0.2); border-color: white; }
.btn-sm { padding: 6px 16px; font-size: 13px; }

/* ===== 文章页面 ===== */
.article-page {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}
.article-page article {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ===== 文章头部 ===== */
.article-header { margin-bottom: 30px; }
.article-header h1 { font-size: 28px; color: #1a202c; margin-top: 10px; }
.article-header time { color: #a0aec0; font-size: 14px; }

/* ===== 标签 ===== */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.tag-family { background: #ebf4ff; color: #3182ce; }
.tag-life { background: #fefcbf; color: #d69e2e; }
.tag-yiding { background: #fef5e7; color: #d97706; }
.tag-game { background: #e9d8fd; color: #805ad5; }
.tag-future { background: #c6f6d5; color: #276749; }

/* ===== 内容样式 ===== */
.article-content h2 {
    font-size: 22px;
    color: #1a202c;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}
.article-content h3 {
    font-size: 18px;
    color: #2d3748;
    margin: 20px 0 10px;
}
.article-content p { margin-bottom: 15px; }
.article-content .lead { font-size: 18px; color: #4a5568; font-weight: 500; }
.article-content ul { margin: 10px 0 15px 20px; }
.article-content ul li { margin-bottom: 8px; }
.article-content blockquote {
    border-left: 4px solid #667eea;
    margin: 20px 0;
    padding: 15px 20px;
    background: #f7fafc;
    border-radius: 0 8px 8px 0;
}
.article-content blockquote p { margin: 0; font-style: italic; color: #4a5568; }

/* ===== 家族成员卡片 ===== */
.family-member {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin: 15px 0;
    padding: 15px;
    background: #f7fafc;
    border-radius: 12px;
}
.member-emoji { font-size: 40px; flex-shrink: 0; }
.member-info h3 { margin: 0 0 5px !important; font-size: 16px !important; }
.member-info p { margin: 0 !important; font-size: 14px; color: #4a5568; }

/* ===== 语录 ===== */
.quotes blockquote {
    margin: 10px 0;
    padding: 12px 16px;
    font-size: 15px;
}

/* ===== 时间线 ===== */
.timeline { list-style: none !important; margin-left: 0 !important; }
.timeline li {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

/* ===== 文章列表 ===== */
.article-list { list-style: none; }
.article-list li {
    margin-bottom: 15px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    transition: transform 0.2s;
}
.article-list li:hover { transform: translateX(5px); }
.article-list a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.article-list h3 { color: #2d3748; margin-bottom: 5px; }
.article-list p { color: #718096; font-size: 14px; margin: 0; }
.article-list time { color: #a0aec0; font-size: 12px; }

hr { border: none; border-top: 1px solid #e2e8f0; margin: 20px 0; }
.signature { color: #718096; font-style: italic; }

/* ===== 页脚 ===== */
.site-footer {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}
