/*
Theme Name: Minima Trade
Theme URI: https://example.com/minima-trade
Author: TRAE Design
Author URI: https://example.com
Description: 简约 WordPress 博客主题，参照 ddcd.cn 布局设计。白底、三列卡片、浅灰侧边栏、极简页脚。
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: minima-trade
Tags: blog, two-columns, custom-colors, custom-menu, featured-images, translation-ready, threaded-comments, minimalist
*/

/* ==========================================================================
   Minima Trade v2 — ddcd.cn layout clone
   ========================================================================== */

:root {
    --bg: #ffffff;
    --bg-soft: #fbfbfb;
    --bg-mute: #f1f1f1;
    --nav-bg: #f8f9fa;
    --ink: #313131;
    --ink-strong: #222222;
    --ink-soft: #555555;
    --ink-mute: #888888;
    --line: #e8e8e8;
    --line-strong: #d0d0d0;
    --accent: #007BFF;
    --accent-deep: #0056b3;
    --selection: rgba(0, 123, 255, 0.15);

    --font-heading: 'Montserrat', 'Noto Sans SC', -apple-system, sans-serif;
    --font-body: 'Work Sans', 'Noto Sans SC', -apple-system, sans-serif;

    --maxw: 1140px;
    --read: 760px;
    --pad: 15px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------------------------------------------- Reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
::selection { background: var(--selection); color: var(--ink); }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink-strong);
    margin: 0 0 .5em;
}
h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

blockquote {
    margin: 1.6em 0;
    padding: .3em 0 .3em 1.4em;
    border-left: 3px solid var(--accent);
    color: var(--ink-soft);
}
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

code, pre {
    font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: .9em;
    background: var(--bg-soft);
}
code { padding: .12em .35em; }
pre { padding: 1em 1.2em; overflow-x: auto; }

/* Utility */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- Header --
   ddcd.cn: navbar with #f8f9fa bg, logo left, menu right, no CTA button */
.site-header {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 100;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 56px; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.brand .mark {
    font-family: var(--font-heading);
    font-size: 1.2rem; font-weight: 700;
    color: var(--ink-strong); line-height: 1;
}
.brand .mark img { max-height: 36px; width: auto; }

/* WordPress custom logo */
.custom-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.custom-logo-link img { max-height: 40px; width: auto; height: auto; }

.main-nav { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav a {
    font-family: var(--font-body);
    font-size: 15px; font-weight: 400;
    color: var(--ink);
    padding: .5rem .75rem;
    display: block;
    transition: color .2s ease;
}
.main-nav a:hover { color: var(--accent); }
.main-nav .current_page_item > a,
.main-nav .current-menu-item > a { color: var(--accent); }

/* Sub-menu dropdown */
.main-nav .sub-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: #fff; border: 1px solid var(--line);
    min-width: 160px; padding: .3rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    list-style: none; margin: 0;
    z-index: 200;
}
.main-nav li:hover > .sub-menu { display: block; }
.main-nav .sub-menu a { padding: .4rem .8rem; font-size: 14px; }

.menu-toggle { display: none; }

/* ---------------------------------------------------------------- Layout --
   ddcd.cn: flex row, content ~2/3, sidebar ~1/3 */
.site-content { padding: 0; }
.layout {
    display: flex; gap: 30px;
    padding: 20px 0;
}
.content-area { flex: 1 1 0; min-width: 0; }

/* ------------------------------------------------------------------ Posts --
   ddcd.cn: 3-column grid (col-md-4), card with image→title→meta→readmore */
.list-feed {
    display: flex; flex-wrap: wrap;
    margin: -10px;
}
.post-row {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 10px;
}
.post-card {
    display: flex; flex-direction: column;
    height: 100%;
    border: 1px solid var(--line);
    padding: 15px;
    background: var(--bg);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.post-card:hover {
    border-color: var(--line-strong);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.post-card .thumb {
    display: block; overflow: hidden; background: var(--bg-soft);
    margin: -15px -15px 12px;
    aspect-ratio: 16/9;
}
.post-card .thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s var(--ease);
}
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem; font-weight: 600;
    margin: 0 0 8px; line-height: 1.4;
}
.post-card h3 a { color: var(--ink-strong); }
.post-card h3 a:hover { color: var(--accent); }
.post-card .post-meta {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--ink-mute);
}
.post-card .post-meta .author a { color: var(--ink-soft); }
.post-card .post-meta .author a:hover { color: var(--accent); }
.post-card .post-meta .meta-sep { color: var(--line-strong); }
.post-card .post-meta .category a { color: var(--ink-soft); }
.post-card .post-meta .category a:hover { color: var(--accent); }
.post-card .read-more {
    margin-top: 8px;
    font-size: 14px; color: var(--accent);
}
.post-card .read-more:hover { color: var(--accent-deep); }

/* No-results */
.no-results { padding: 3rem 0; text-align: center; }
.no-results h2 { margin-bottom: .5rem; }
.no-results p { color: var(--ink-soft); }

/* Pagination — ddcd.cn uses simple text link "较旧文章" */
.pagination { margin-top: 2rem; text-align: center; }
.pagination .nav-links { display: flex; justify-content: center; gap: .3rem; flex-wrap: wrap; }
.pagination .page-numbers {
    font-size: 14px;
    padding: 6px 12px;
    border: 1px solid var(--line); color: var(--ink-soft);
    transition: all .2s ease;
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .page-numbers.dots { border: 0; padding: 6px 4px; }

/* ---------------------------------------------------------------- Sidebar --
   ddcd.cn: #fbfbfb bg, widgets with h4 titles, recent posts + tag cloud */
.sidebar {
    flex: 0 0 300px; max-width: 300px;
    background: var(--bg-soft);
    padding: 20px;
    align-self: flex-start;
}
.widget { margin-bottom: 24px; }
.widget:last-child { margin-bottom: 0; }
.widget-title {
    font-family: var(--font-heading);
    font-size: 16px; font-weight: 600;
    color: var(--ink-strong);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 8px; line-height: 1.5; }
.widget li a { color: var(--ink-soft); font-size: 14px; }
.widget li a:hover { color: var(--accent); }

.widget_search input[type="search"] {
    width: 100%; border: 1px solid var(--line); padding: 8px 12px;
    font-family: var(--font-body); font-size: 14px;
    background: #fff;
}
.widget_search input[type="search"]:focus { outline: none; border-color: var(--accent); }

.widget_tag_cloud a {
    display: inline-block; font-size: 13px !important;
    padding: 3px 8px; margin: 0 4px 6px 0;
    border: 1px solid var(--line); color: var(--ink-soft);
    line-height: 1.5;
}
.widget_tag_cloud a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------------- Footer --
   ddcd.cn: ultra-minimal, just centered copyright */
.site-footer {
    margin-top: 2rem;
    background: var(--bg-mute);
    padding: 20px 0;
    text-align: center;
}
.site-footer p {
    margin: 0;
    font-size: 14px; color: var(--ink-mute);
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent); }

/* ====================================================================== ==
   SINGLE POST
   ====================================================================== == */
.single-layout { padding: 20px 0; }
.article-head { margin-bottom: 1.5rem; }
.article-head .meta-line {
    display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap;
    font-size: 14px; color: var(--ink-mute);
}
.article-head .meta-line .author a { color: var(--ink-soft); }
.article-head .meta-line .meta-sep { color: var(--line-strong); }
.article-head .meta-line .category a { color: var(--accent); }
.article-head h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    line-height: 1.3; font-weight: 600; margin-bottom: 12px;
}
.article-hero { margin-bottom: 1.5rem; }
.article-hero img { width: 100%; }

.article-body { font-size: 16px; line-height: 1.8; color: var(--ink); }
.article-body > * { margin-bottom: 1.2em; }
.article-body h2 { margin-top: 1.6em; font-size: 1.3rem; font-weight: 600; }
.article-body h3 { margin-top: 1.3em; font-size: 1.1rem; font-weight: 600; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.article-body li { margin-bottom: .4em; }
.article-body img { margin: 1em 0; }
.article-body blockquote { margin: 1.5em 0; padding: .5em 0 .5em 1.2em; border-left: 3px solid var(--accent); color: var(--ink-soft); }
.article-body pre { background: var(--bg-soft); padding: 1em; overflow-x: auto; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article-body th { background: var(--bg-soft); font-weight: 600; }

/* Tags */
.article-tags { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.article-tags .label { font-size: 14px; color: var(--ink-mute); margin-right: 8px; }
.article-tags a {
    display: inline-block; font-size: 13px;
    padding: 3px 8px; margin: 0 4px 4px 0;
    border: 1px solid var(--line); color: var(--ink-soft);
}
.article-tags a:hover { border-color: var(--accent); color: var(--accent); }

/* Post navigation */
.post-nav {
    margin-top: 2rem; padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.post-nav .nav-previous a, .post-nav .nav-next a {
    font-size: 14px; color: var(--ink-soft);
}
.post-nav .nav-next { text-align: right; }
.post-nav a:hover { color: var(--accent); }

/* ====================================================================== ==
   ABOUT PAGE
   ====================================================================== == */
.about-hero { padding: 2rem 0; }
.about-hero h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; margin-bottom: 1rem; }
.about-hero .lede { font-size: 1rem; color: var(--ink-soft); line-height: 1.7; }
.about-body { max-width: var(--read); margin: 0 auto; padding: 1rem 0 2rem; }
.about-body h2 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5em; margin-bottom: .5em; }
.about-body p { color: var(--ink-soft); font-size: 16px; line-height: 1.8; }

/* ====================================================================== ==
   TRADE NAVIGATION PAGE — left sidebar + right content layout
   ====================================================================== == */
.trade-page { padding: 24px 0 3rem; }

.trade-layout {
    display: flex; gap: 32px; align-items: flex-start;
}

/* --- LEFT SIDEBAR --- */
.trade-sidebar {
    flex: 0 0 240px; max-width: 240px;
    position: sticky; top: 76px;
}
.trade-sidebar-inner {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 24px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.02);
}
.trade-page-title {
    font-family: var(--font-heading);
    font-size: 1.2rem; font-weight: 700;
    color: var(--ink-strong);
    margin: 0 0 4px;
    letter-spacing: -.01em;
}
.trade-page-subtitle {
    font-size: 12px; color: var(--ink-mute);
    margin: 0 0 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

/* Search */
.trade-search { position: relative; margin-bottom: 20px; }
.trade-search input {
    width: 100%; border: 1px solid var(--line-strong); background: #fff;
    padding: 9px 12px 9px 36px; font-family: var(--font-body); font-size: 13px;
    border-radius: 4px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.trade-search input::placeholder { color: var(--ink-mute); }
.trade-search input:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,123,255,.1);
}
.trade-search .icon {
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    color: var(--ink-mute); font-size: 14px; pointer-events: none;
}

/* Category nav label */
.trade-cats-label {
    font-family: var(--font-heading);
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--ink-mute);
    margin: 0 0 8px; padding: 0 4px;
}

/* Category nav (vertical list) */
.trade-cats-nav ul { list-style: none; margin: 0; padding: 0; }
.trade-cats-nav li { margin: 0; }
.trade-cats-nav a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 12px; font-size: 14px; color: var(--ink-soft);
    border-left: 3px solid transparent;
    border-radius: 0 4px 4px 0;
    transition: all .2s var(--ease);
}
.trade-cats-nav a:hover {
    background: #fff; color: var(--accent);
    border-left-color: var(--accent);
}
.trade-cats-nav a.active {
    background: #fff; color: var(--accent);
    border-left-color: var(--accent); font-weight: 600;
}
.trade-cats-nav .cat-count {
    font-size: 11px; font-weight: 600; color: var(--ink-mute);
    background: var(--bg-mute); padding: 2px 8px;
    border-radius: 20px; min-width: 22px; text-align: center;
}
.trade-cats-nav a:hover .cat-count { background: var(--bg-mute); color: var(--ink-soft); }
.trade-cats-nav a.active .cat-count { background: var(--accent); color: #fff; }

/* --- RIGHT CONTENT --- */
.trade-content { flex: 1 1 0; min-width: 0; }

.trade-section {
    padding: 0 0 2rem; margin-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}
.trade-section:last-child { border-bottom: 0; margin-bottom: 0; }

/* Section head */
.sec-head {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 1.2rem;
    padding-bottom: .8rem;
    border-bottom: 1px dashed var(--line);
}
.sec-head .idx {
    font-family: var(--font-heading); font-size: 22px; font-weight: 700;
    color: var(--accent); min-width: 32px; line-height: 1;
    opacity: .35;
}
.sec-head h2 {
    margin: 0; font-size: 1.2rem; font-weight: 600;
    letter-spacing: -.01em;
}
.sec-head .count {
    font-size: 12px; color: var(--ink-mute);
    margin-left: auto;
    background: var(--bg-soft); padding: 3px 10px;
    border: 1px solid var(--line); border-radius: 20px;
}

/* Card grid */
.trade-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

/* Trade card */
.trade-card {
    display: flex; flex-direction: column; gap: 8px;
    border: 1px solid var(--line); padding: 16px;
    background: var(--bg);
    border-radius: 4px;
    transition: all .25s var(--ease); text-decoration: none;
    position: relative; overflow: hidden;
}
.trade-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
}
.trade-card:hover {
    border-color: var(--line-strong);
    box-shadow: 0 4px 16px rgba(0,0,0,.07);
    transform: translateY(-2px);
}
.trade-card:hover::before { transform: scaleX(1); }

.trade-card .tc-head {
    display: flex; align-items: center; gap: 10px;
}
.trade-card .tc-icon {
    flex: 0 0 20px; width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 3px; overflow: hidden;
}
.trade-card .tc-icon img { width: 20px; height: 20px; display: block; }
.trade-card .tc-name {
    font-family: var(--font-heading); font-size: 15px; font-weight: 600;
    color: var(--ink-strong); flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    transition: color .2s ease;
}
.trade-card:hover .tc-name { color: var(--accent); }
.trade-card .tc-tag {
    font-size: 10px; font-weight: 700; letter-spacing: .5px;
    padding: 2px 6px; border: 1px solid var(--line);
    color: var(--ink-mute); white-space: nowrap;
    border-radius: 3px;
}
.trade-card .tc-tag.hot {
    background: #fff4e6; border-color: #ffd591; color: #d4380d;
}
.trade-card .tc-desc {
    color: var(--ink-soft); font-size: 13px; line-height: 1.55; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.trade-card .tc-link {
    margin-top: auto; padding-top: 10px;
    font-size: 12px; color: var(--ink-mute);
    display: flex; align-items: center; gap: 4px;
    transition: color .2s ease;
}
.trade-card .tc-link .arrow {
    display: inline-block; transition: transform .2s ease;
}
.trade-card:hover .tc-link { color: var(--accent); }
.trade-card:hover .tc-link .arrow { transform: translate(2px, -2px); }

/* Empty state */
.trade-empty { padding: 3rem 0; text-align: center; }
.trade-empty h2 { margin-bottom: .5rem; }
.trade-empty p { color: var(--ink-soft); margin-bottom: 1rem; }

/* Buttons */
.btn-primary {
    display: inline-block; padding: 9px 24px;
    background: var(--accent); color: #fff !important;
    font-size: 14px; font-weight: 500;
    border: 1px solid var(--accent);
    border-radius: 4px;
    transition: all .2s ease;
}
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-primary .arrow { margin-left: 4px; }

/* ====================================================================== ==
   COMMENTS
   ====================================================================== == */
.comments-area { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.comments-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .children { list-style: none; padding-left: 1.5rem; margin-top: 1rem; border-left: 2px solid var(--line); }
.comment-body { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-body .comment-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.comment-body .comment-author { font-weight: 600; font-size: 14px; }
.comment-body .comment-author .avatar { width: 28px; height: 28px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.comment-body .comment-metadata { font-size: 12px; color: var(--ink-mute); }
.comment-body .comment-content { color: var(--ink-soft); font-size: 14px; }
.comment-respond { margin-top: 1.5rem; }
.comment-form input, .comment-form textarea {
    width: 100%; border: 1px solid var(--line); padding: 8px 12px;
    font-family: var(--font-body); font-size: 14px; background: #fff;
    margin-bottom: 8px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form .submit { width: auto; background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 500; padding: 8px 20px; cursor: pointer; }
.comment-form .submit:hover { background: var(--accent-deep); }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .4s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Responsive — matching ddcd.cn breakpoints (col-md-4 → col-sm-6 → col-12)
   ========================================================================== */
@media (max-width: 1199px) {
    .post-row { flex: 0 0 33.333%; max-width: 33.333%; }
}
@media (max-width: 991px) {
    .post-row { flex: 0 0 50%; max-width: 50%; }
    .trade-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .layout { flex-direction: column; gap: 1.5rem; }
    .sidebar { flex: 0 0 auto; max-width: 100%; }
    .post-row { flex: 0 0 50%; max-width: 50%; }
    .main-nav { display: none; }
    .menu-toggle {
        display: inline-flex; background: none; border: 0;
        padding: 6px 8px; color: var(--ink-strong);
        font-size: 24px;
    }
    .main-navigation.open .main-nav {
        display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0;
        background: var(--nav-bg); border-bottom: 1px solid var(--line); padding: 8px 15px;
    }
    .main-navigation.open .main-nav li { width: 100%; }
    .main-navigation.open .main-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
    .main-navigation.open .main-nav .sub-menu { display: none; }
    /* Trade nav: sidebar becomes horizontal scroll bar */
    .trade-layout { flex-direction: column; gap: 1rem; }
    .trade-sidebar { flex: 0 0 auto; max-width: 100%; position: static; }
    .trade-sidebar-inner { padding: 16px; }
    .trade-cats-nav ul {
        display: flex; gap: 8px; overflow-x: auto; flex-wrap: nowrap;
        padding-bottom: 4px; -webkit-overflow-scrolling: touch;
    }
    .trade-cats-nav li { flex: 0 0 auto; }
    .trade-cats-nav a {
        border-left: 0; border: 1px solid var(--line);
        border-radius: 0; white-space: nowrap;
    }
    .trade-cats-nav a.active { border-color: var(--accent); }
    .trade-cats-nav .cat-count { display: none; }
}
@media (max-width: 575px) {
    .post-row { flex: 0 0 100%; max-width: 100%; }
    .trade-grid { grid-template-columns: 1fr; }
    .header-inner { height: 50px; }
    .brand .mark { font-size: 1.1rem; }
    .post-card { padding: 12px; }
    .post-card .thumb { margin: -12px -12px 10px; }
    .trade-page-title { font-size: 1rem; }
}
