/*
Theme Name: Outdoor Adventure Gear Hub
Description: Minimalist editorial theme with Retro Memphis accents for field-tested trail gear reviews.
Style ID: a47e73
Version: 1.0.0
Text Domain: outdoor-adventure-ge
*/

:root {
    --bg: #f8f7f6;
    --bg-alt: #efeceb;
    --bg-deep: #e5e1e0;
    --text: #261e1d;
    --text-muted: #7b6d6b;
    --accent: #c22e14;
    --border: #e4dedd;
    --spacing: 12px;
    --radius: 20px;
    --radius-sm: 12px;
    --font-head: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-body: Arial, "Helvetica Neue", Helvetica, 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: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
}

/* ===== 布局容器 ===== */
.a47e73-container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

/* ===== 页眉 Header（汉堡菜单） ===== */
.a47e73-header {
    padding: 18px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 60;
}
.a47e73-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.a47e73-logo {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}
.a47e73-logo:hover { color: var(--accent); }
.a47e73-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 34px;
    height: 26px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 90;
}
.a47e73-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.a47e73-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.a47e73-burger.active span:nth-child(2) { opacity: 0; }
.a47e73-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 全屏菜单 */
.a47e73-overlay {
    position: fixed;
    inset: 0;
    background: var(--text);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 80;
}
.a47e73-overlay.open { opacity: 1; visibility: visible; }
.a47e73-overlay-nav { text-align: center; }
.a47e73-overlay-nav ul { list-style: none; margin: 0; padding: 0; }
.a47e73-overlay-nav li { margin: 18px 0; }
.a47e73-overlay-nav a {
    color: #fff;
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
}
.a47e73-overlay-nav a:hover { color: var(--accent); }

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

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

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

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

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

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

/* ===== 页脚（居中极简） ===== */
.a47e73-footer {
    background: var(--bg-alt);
    padding: 56px 0 40px;
    margin-top: 48px;
    text-align: center;
}
.a47e73-footer-logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.a47e73-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    margin: 20px 0;
    font-size: 0.9rem;
}
.a47e73-footer-links a:hover { color: var(--accent); }
.a47e73-copyright { color: var(--text-muted); font-size: 0.85rem; }

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

/* ===== 搜索 ===== */
.a47e73-searchform { display: flex; gap: 10px; }
.a47e73-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;
}
.a47e73-searchform button {
    padding: 12px 22px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
}

/* ===== 响应式 ===== */
@media (max-width: 860px) {
    .a47e73-grid { grid-template-columns: 1fr; }
    .a47e73-feed-item { grid-template-columns: 1fr; }
    .a47e73-single-layout { grid-template-columns: 1fr; }
    .a47e73-single-side { position: static; }
}
