/*
Theme Name: Parenting Essentials Blog
Description: Portfolio-style theme with Bento Grid layout for practical parenting guides.
Style ID: f5cb56
Version: 1.0.0
Text Domain: parenting-essentials
*/

:root {
    --bg: #f6f8f8;
    --bg-alt: #ebeeef;
    --bg-deep: #e0e3e5;
    --text: #1d2226;
    --text-muted: #6b747b;
    --accent: #1f7ab7;
    --border: #dde1e4;
    --spacing: 18px;
    --radius: 18px;
    --radius-lg: 24px;
    --radius-sm: 12px;
    --font-head: "Nunito", "Segoe UI", Helvetica, Arial, sans-serif;
    --font-body: "Quicksand", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 0.5em;
}

.f5cb56-container { width: min(1120px, 92%); margin: 0 auto; }

/* ===== 浮动透明 Header ===== */
.f5cb56-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    padding: 14px 0;
}
.f5cb56-header.solid {
    background: rgba(246, 248, 248, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 12px rgba(29, 34, 38, 0.08);
}
.f5cb56-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.f5cb56-logo {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    color: var(--text);
}
.f5cb56-header.solid .f5cb56-logo { color: var(--text); }
.f5cb56-nav ul {
    display: flex;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.f5cb56-nav a { font-weight: 600; font-size: 0.95rem; }
.f5cb56-nav a:hover { color: var(--accent); }

/* ===== 卡片 B：无阴影纯扁平，大圆角 ===== */
.f5cb56-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s ease;
}
.f5cb56-card:hover { transform: translateY(-3px); }
.f5cb56-card-thumb {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}
.f5cb56-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.f5cb56-card-body { padding: 18px 20px 20px; }
.f5cb56-card-title { font-size: 1.15rem; margin: 0 0 12px; }

/* ===== 元数据两显 ===== */
.f5cb56-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.f5cb56-meta-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.f5cb56-meta-author { font-weight: 600; color: var(--text); }
.f5cb56-meta-dot { opacity: 0.5; }

/* ===== 主内容流单列大字号 ===== */
.f5cb56-feed { display: flex; flex-direction: column; }
.f5cb56-feed-item {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 28px;
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
}
.f5cb56-feed-thumb { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 2; }
.f5cb56-feed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.f5cb56-feed-title { font-size: 1.7rem; margin: 0 0 10px; }
.f5cb56-feed-excerpt { color: var(--text-muted); margin: 10px 0 0; }

/* ===== 归档页 ===== */
.f5cb56-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 32px 0;
}
.f5cb56-page-head { padding: 40px 0 8px; }
.f5cb56-page-head h1 { font-size: 2.2rem; }

/* ===== 文章页（带右侧栏） ===== */
.f5cb56-single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 36px 0;
}
.f5cb56-single-main { min-width: 0; }
.f5cb56-single-thumb { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.f5cb56-single-title { font-size: 2.4rem; }
.f5cb56-entry { font-size: 1.05rem; }
.f5cb56-entry p { margin: 0 0 1.2em; }
.f5cb56-entry ul, .f5cb56-entry ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.f5cb56-entry li { margin-bottom: 0.5em; }

.f5cb56-single-side { position: sticky; top: 90px; align-self: start; }
.f5cb56-side-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0 0 14px;
}
.f5cb56-related { margin-bottom: 28px; }
.f5cb56-related-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.f5cb56-related-thumb { flex: 0 0 64px; }
.f5cb56-related-thumb img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.f5cb56-related-t { font-size: 0.9rem; font-weight: 600; line-height: 1.35; }

/* ===== 页脚（4 列） ===== */
.f5cb56-footer {
    background: var(--bg-alt);
    padding: 56px 0 40px;
    margin-top: 48px;
}
.f5cb56-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}
.f5cb56-footer-logo { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; margin-bottom: 10px; }
.f5cb56-footer-mission { color: var(--text-muted); font-size: 0.9rem; }
.f5cb56-footer-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.f5cb56-footer-col ul { list-style: none; margin: 0; padding: 0; }
.f5cb56-footer-col li { margin-bottom: 8px; }
.f5cb56-footer-col a { font-size: 0.9rem; color: var(--text); }
.f5cb56-footer-col a:hover { color: var(--accent); }

/* ===== 页面/404 ===== */
.f5cb56-page-content { padding: 36px 0; }
.f5cb56-404 { text-align: center; padding: 90px 0; }
.f5cb56-404 h1 { font-size: 4rem; color: var(--accent); }

/* ===== 搜索 ===== */
.f5cb56-searchform { display: flex; gap: 10px; }
.f5cb56-searchform input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fff;
}
.f5cb56-searchform button {
    padding: 12px 22px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
}

/* 页面顶部留白（浮动 header 占位） */
.f5cb56-page-content { padding-top: 90px; }
.f5cb56-single-layout { padding-top: 90px; }
.f5cb56-page-head { padding-top: 90px; }

@media (max-width: 860px) {
    .f5cb56-grid { grid-template-columns: 1fr; }
    .f5cb56-feed-item { grid-template-columns: 1fr; }
    .f5cb56-single-layout { grid-template-columns: 1fr; }
    .f5cb56-single-side { position: static; }
    .f5cb56-footer-grid { grid-template-columns: 1fr 1fr; }
    .f5cb56-nav { display: none; }
}
