/* app/static/css/common_layout.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header, footer {
    flex-shrink: 0;
}

/* ================= 顶部导航栏 (Navbar) ================= */
header {
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 2rem;
}

.navbar {
    display: flex;
    height: 30px;
    line-height: 60px;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo a {
    text-decoration: none;
    color: #000000;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.navbar .logo a:hover {
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #000000;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* ================= 全局核心主容器 (Hero & 居中文字) ================= */
.hero {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    padding: 4rem 2rem;
}

.hero-text {
    text-align: center;
    max-width: 800px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.hero-text a {
    color: var(--primary);
    text-decoration: none;
}

.hero-text a:hover {
    text-decoration: underline;
}

/* ================= 通用文章头部与单篇阅读容器 ================= */
#blog-container {
    width: 70%;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0;
    background-color: transparent;
}

@media (max-width: 768px) {
    #blog-container {
        width: 90%;
        padding: 1rem;
    }
}

#blog-doc-header {
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 12px;
}

.post-date {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.header-divider {
    border: none;
    height: 1px;
    background-color: var(--border-light);
    margin: 0;
}

/* ================= 页脚 (Footer) ================= */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #ffffff;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: #7553af;
}