/*
Theme Name: Fatt 3.0
Description: 致敬 ZR0 风格，极简双栏设计。
Author: YourName
Version: 3.0
*/

:root {
    --primary: #3b5bdb; /* 科技蓝 */
    --text-main: #333;
    --text-sec: #666;
    --text-light: #999;
    --bg-body: #f5f7fa;
    --bg-card: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.04);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-body); color: var(--text-main); line-height: 1.7;
    font-size: 15px;
}
a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; display: block; }

/* 1. 顶部导航栏 (Sticky) */
.site-header {
    background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
    height: 60px; display: flex; align-items: center;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.header-logo a { font-size: 1.2rem; font-weight: 800; color: #333; letter-spacing: 0.5px; }
.header-logo img { height: 32px; }

.header-menu { display: flex; gap: 25px; }
.header-menu a { color: var(--text-sec); font-weight: 500; font-size: 0.95rem; position: relative; }
.header-menu a:hover, .header-menu a.active { color: var(--primary); }
/* 下划线动画 */
.header-menu a::after {
    content: ''; position: absolute; bottom: -19px; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: width 0.3s;
}
.header-menu a:hover::after, .header-menu a.active::after { width: 100%; }

.header-search { position: relative; }
.header-search input {
    border: none; background: #f0f2f5; padding: 6px 12px 6px 30px;
    border-radius: 20px; font-size: 0.85rem; width: 160px; transition: width 0.3s;
}
.header-search input:focus { width: 200px; outline: none; background: #fff; box-shadow: 0 0 0 2px rgba(59, 91, 219, 0.1); }
.header-search .submit { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); border: none; background: none; color: #999; }

/* 2. Hero 区域 (沉浸式) */
.hero-header {
    position: relative; height: 400px; color: #fff; text-align: center;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    margin-bottom: 20px; overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    filter: brightness(0.6) blur(2px); transform: scale(1.05); z-index: -1;
}
.hero-avatar img {
    width: 90px; height: 90px; border-radius: 50%; border: 4px solid rgba(255,255,255,0.3);
    margin-bottom: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.hero-title { font-size: 2.2rem; margin: 0 0 10px 0; font-weight: 700; letter-spacing: 1px; }
.hero-desc { font-size: 1rem; opacity: 0.9; max-width: 600px; margin: 0 auto 20px; }
.hero-social a {
    color: #fff; font-size: 1.2rem; margin: 0 10px; opacity: 0.8; transition: 0.3s;
}
.hero-social a:hover { opacity: 1; transform: translateY(-3px); }
.hero-wave { position: absolute; bottom: -5px; left: 0; width: 100%; line-height: 0; }

/* 3. 主体布局 (核心双栏) */
.layout-grid {
    display: grid; grid-template-columns: 1fr 280px; gap: 30px;
    max-width: 1100px; margin: 0 auto; padding: 0 20px;
    align-items: start; /* 顶部对齐 */
}

/* 4. 文章卡片 (极简风格) */
.post-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 30px; margin-bottom: 25px;
    box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.3s, box-shadow 0.3s;
}
.post-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-hover);
}
.post-meta { font-size: 0.85rem; color: var(--text-light); margin-bottom: 10px; }
.post-meta .meta-item { margin-right: 15px; }
.post-meta i { margin-right: 5px; }

.post-title { font-size: 1.5rem; margin: 0 0 15px 0; line-height: 1.3; }
.post-title a:hover { color: var(--primary); }
.post-excerpt { color: var(--text-sec); margin-bottom: 20px; text-align: justify; }

.post-footer {
    border-top: 1px solid #f0f0f0; padding-top: 15px;
    display: flex; justify-content: space-between; align-items: center;
}
.read-btn {
    color: var(--primary); font-weight: 600; font-size: 0.9rem;
    position: relative; padding-right: 15px;
}
.read-btn::after {
    content: '→'; position: absolute; right: 0; transition: transform 0.3s;
}
.read-btn:hover::after { transform: translateX(5px); }
.post-comments-num { font-size: 0.85rem; color: var(--text-light); }

/* 5. 侧边栏 (Widget) */
.widget {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 20px; margin-bottom: 25px;
    box-shadow: var(--shadow);
}
.author-widget { text-align: center; }
.widget-avatar img { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 10px; }
.widget-author-info h3 { font-size: 1.1rem; margin-bottom: 5px; }
.widget-author-info p { color: var(--text-light); font-size: 0.85rem; }

.widget-title {
    font-size: 1rem; border-left: 4px solid var(--primary);
    padding-left: 10px; margin-bottom: 15px; color: #333;
}
.widget-list { list-style: none; padding: 0; }
.widget-list li {
    padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 0.9rem;
}
.widget-list li:last-child { border: none; }
.widget-list li a:hover { color: var(--primary); padding-left: 5px; }

/* 标签云 */
.widget-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item {
    background: #f1f3f5; padding: 4px 10px; border-radius: 4px;
    font-size: 0.85rem; color: #666; transition: 0.2s;
}
.tag-item:hover { background: var(--primary); color: #fff; }

/* 分页 */
.page-nav-list { display: flex; justify-content: center; list-style: none; gap: 10px; margin: 40px 0; }
.page-nav-list li a, .page-nav-list li span {
    padding: 8px 16px; background: #fff; border-radius: 6px; box-shadow: var(--shadow);
}
.page-nav-list .active span { background: var(--primary); color: #fff; }

/* 移动端适配 */
.mobile-menu-toggle { display: none; }

@media (max-width: 850px) {
    .layout-grid { grid-template-columns: 1fr; } /* 单栏 */
    .sidebar { display: none; } /* 隐藏侧边栏 (或者移到底部) */
    .header-menu, .header-search { display: none; } /* 隐藏PC菜单 */
    .mobile-menu-toggle { display: block; font-size: 1.2rem; cursor: pointer; }
    
    .hero-header { height: 300px; }
    .hero-title { font-size: 1.5rem; }
    .post-card { padding: 20px; }
}

/* 进场动画 */
.fade-up { animation: fadeInUp 0.6s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }