/*
Theme Name: Impact Pro
Theme URI: https://example.com
Author: AI Assistant
Description: 极简沉浸式主题 (V4.0 Grid 布局终极版)
Version: 4.0
*/

/* =========================================
   1. 全局基础
   ========================================= */
:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #ffd700;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    overflow-x: hidden;
    line-height: 1.8;
    margin: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { color: var(--accent-color); }

/* =========================================
   2. 导航栏
   ========================================= */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; padding: 20px 40px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 9999; mix-blend-mode: difference;
}
.site-title { font-size: 1.2rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.main-navigation ul { list-style: none; display: flex; gap: 30px; }
.main-navigation a { font-size: 0.9rem; font-weight: 500; opacity: 0.8; }

/* =========================================
   3. 文章详情页 (CSS Grid 终极方案)
   ========================================= */
.site-main {
    padding-top: 120px;
    padding-bottom: 100px;
}

.post-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.entry-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; margin-bottom: 15px; }
.entry-meta { color: #666; font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; }

/* --- 🔥 Grid 布局核心 --- */
.entry-content {
    display: grid;
    /* 定义三列：[左边距] [中间内容 800px] [右边距] */
    grid-template-columns: minmax(20px, 1fr) minmax(0, 800px) minmax(20px, 1fr);
    width: 100%;
}

/* 规则 A：默认所有元素（文字、普通图）只占中间一列 */
.entry-content > * {
    grid-column: 2;
}

/* 规则 B：宽幅图片 (Wide) - 稍微向两边延伸 */
.entry-content > .alignwide {
    grid-column: 1 / -1; /* 先占满 */
    max-width: 1200px;
    width: 100%;
    margin: 40px auto; /* 居中 */
}

/* 规则 C：全宽图片 (Full) - 强制占满所有列 */
.entry-content > .alignfull {
    grid-column: 1 / -1; /* 从第一根线跨到最后一根线 */
    width: 100%;
    max-width: 100%;
    margin: 60px 0;
    height: auto;
}

/* 修复全宽图片可能带有的 figcaption 或其他内边距 */
.entry-content > .alignfull img {
    width: 100%;
    display: block;
}

/* =========================================
   4. 首页全屏流 (保持不变)
   ========================================= */
.stream-container { width: 100%; }
.section {
    height: 100vh; width: 100%; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.bg-parallax-wrap {
    position: absolute; top: -10%; left: 0; width: 100%; height: 120%;
    z-index: -1; pointer-events: none;
}
.bg-image {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.7); transition: 0.5s;
}
.section:hover .bg-image { filter: brightness(1); }
.section-content {
    position: relative; z-index: 10; padding: 0 50px 100px;
    max-width: 900px; opacity: 0; transform: translateY(30px);
    transition: all 1s ease;
}
.section.visible .section-content { opacity: 1; transform: translateY(0); }
.post-link-title { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 15px; display: block; }
.cat-links { color: var(--accent-color); letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; font-weight: bold; display: block; margin-bottom: 10px; }
.excerpt { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 600px; }

/* 响应式 */
@media (max-width: 768px) {
    .site-header { padding: 20px; }
    .section-content { padding: 0 20px 80px; }
    /* 手机端让 Wide 也占满 */
    .entry-content > .alignwide { max-width: 100%; padding: 0 20px; }
}