:root {
    --pig-bg: #ede6d6;
    --pig-card-bg: #f9f6f0;
    --pig-border: rgba(249, 115, 22, 0.25);
    --pig-border-hover: rgba(249, 115, 22, 0.8);
    --pig-text: #2a1b15;
    --pig-sub: #7a6e67;
    --pig-accent: #f97316;
    --pig-font: 'Arial Black', Impact, system-ui, sans-serif;
}

body {
    margin: 0; background: var(--pig-bg); color: var(--pig-text);
    font-family: var(--pig-font); font-size: 13px; -webkit-font-smoothing: antialiased;
}

.pig-header {
    position: fixed; top: 0; width: 100%; height: 56px;
    background: rgba(237, 230, 214, 0.95); backdrop-filter: blur(8px);
    z-index: 2000; border-bottom: 2px solid var(--pig-border);
}

.pig-inner {
    max-width: 1200px; margin: 0 auto; height: 100%;
    display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
}

.pig-logo-nav { display: flex; align-items: center; gap: 30px; }
.pig-logo img { height: 20px; }
.pig-nav { display: flex; list-style: none; gap: 24px; margin: 0; padding: 0; }
.pig-nav a { color: var(--pig-sub); text-decoration: none; font-weight: bold; }
.pig-nav a:hover, .pig-nav a.active { color: var(--pig-accent); }
.pig-user-zone { display: flex; align-items: center; gap: 16px; }
.pig-btn-login { background: var(--pig-accent); color: #fff; padding: 6px 12px; text-decoration: none; font-size: 11px; font-weight: bold; }
.pig-avatar { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--pig-border); }
.pig-m-trigger { display: none; color: var(--pig-text); font-size: 20px; cursor: pointer; }

/* 留白通告 */
.pig-notice-bar { margin: 80px auto 20px; max-width: 1200px; padding: 0 20px; }
.pig-notice-inner { border: 2px solid var(--pig-border); padding: 12px 20px; background: var(--pig-card-bg); display: flex; align-items: center; }
.pig-notice-dot { width: 6px; height: 6px; background: var(--pig-accent); border-radius: 50%; margin-right: 12px; }

/* 页脚 */
.pig-footer { padding: 40px 0; background: #e0d9c8; border-top: 2px solid var(--pig-border); margin-top: 60px; }
.pig-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.pig-copyright { font-size: 11px; color: var(--pig-sub); display: flex; align-items: center; }
.pig-status-indicator { width: 6px; height: 6px; background: var(--pig-accent); border-radius: 50%; margin-right: 10px; }

/* 布局 372: 左侧数据解密舱 ➡️ 右侧商品网格 */
.pig-home-wrap { max-width: 1200px; margin: 40px auto; padding: 0 20px; min-height: 80vh; }
.pig-split-hud { display: flex; gap: 40px; }

/* 左侧数据解密舱 */
.pig-left-chamber {
    flex: 0.35; background: var(--pig-card-bg); border: 2px solid var(--pig-border);
    padding: 30px; position: sticky; top: 100px; height: fit-content;
}
.pig-panel-title { font-size: 12px; font-weight: bold; color: var(--pig-accent); margin-bottom: 20px; text-transform: uppercase; }
.pig-panel-line { height: 1px; background: var(--pig-border); margin: 15px 0; }

/* 右侧双列商品网格 */
.pig-right-grid { flex: 1.65; }

.pig-cat-hd { font-size: 14px; font-weight: bold; color: var(--pig-text); margin: 0 0 25px; display: flex; align-items: center; }
.pig-cat-hd::after { content: ""; flex: 1; height: 2px; background: var(--pig-border); margin-left: 20px; }
.pig-cat-hd::before { content: "▲ "; color: var(--pig-accent); margin-right: 8px; }

.pig-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pig-card-probe { display: block; background: var(--pig-card-bg); text-decoration: none; transition: 0.3s; padding: 24px; position: relative; border: 2px solid var(--pig-border); }
.pig-card-probe:hover { border-color: var(--pig-border-hover); box-shadow: 0 0 15px rgba(249, 115, 22, 0.2); }
.pig-card-probe:hover .pig-name { color: var(--pig-accent); }

.pig-img-box { width: 100%; aspect-ratio: 1.8; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; background: #e0d9c8; }
.pig-img-box img { width: 45%; height: 45%; object-fit: contain; }
.pig-name { font-size: 14px; height: 38px; color: var(--pig-text); line-height: 1.5; overflow: hidden; margin-bottom: 15px; }
.pig-footer-meta { display: flex; justify-content: space-between; align-items: center; }
.pig-price { font-size: 16px; font-weight: bold; color: var(--pig-accent); }
.pig-sell-count { font-size: 11px; color: var(--pig-sub); }
.pig-tag-auto { position: absolute; top: 10px; right: 10px; font-size: 9px; color: var(--pig-accent); border: 2px solid var(--pig-accent); padding: 1px 4px; }

/* Detail Pages */
.pig-trade-wrap { padding: 40px 10px; min-height: 80vh; }
.pig-trade-node { max-width: 900px; margin: 0 auto; border: 2px solid var(--pig-border); display: flex; flex-wrap: wrap; background: var(--pig-card-bg); }
.pig-media-side { flex: 0 0 32%; background: #e0d9c8; padding: 30px; display: flex; align-items: center; border-right: 2px solid var(--pig-border); }
.pig-media-side img { width: 100%; height: auto; }
.pig-form-side { flex: 1; padding: 40px; min-width: 320px; }
.pig-title { font-size: 22px; font-weight: 700; color: var(--pig-text); margin-bottom: 10px; }
.pig-tag-status { display: inline-block; padding: 3px 8px; border: 2px solid var(--pig-accent); color: var(--pig-accent); font-size: 11px; background: rgba(249, 115, 22, 0.1); margin-bottom: 25px; }
.pig-price-node { margin-bottom: 30px; padding: 20px; background: var(--pig-bg); border: 2px solid var(--pig-border); display: flex; justify-content: space-between; align-items: center; }
.pig-price-val { font-size: 26px; font-weight: 800; color: var(--pig-accent); }
.pig-field { margin-bottom: 20px; }
.pig-label { display: block; font-size: 11px; color: var(--pig-sub); margin-bottom: 8px; }
.pig-input { width: 100%; height: 44px; background: var(--pig-bg); border: 2px solid var(--pig-border); color: var(--pig-text); padding: 0 15px; box-sizing: border-box; outline: none; }
.pig-input:focus { border-color: var(--pig-accent); }
.pig-btn-submit { width: 100%; height: 48px; background: var(--pig-accent); color: #fff; border: none; cursor: pointer; font-size: 14px; font-weight: 700; transition: 0.3s; }
.pig-btn-submit:hover { opacity: 0.8; }
.pig-btn-submit:disabled { background: #3c2920; color: #72594d; border: 1px solid var(--pig-border); cursor: not-allowed; }
.pig-desc-box { max-width: 900px; margin: 20px auto 0; border: 2px solid var(--pig-border); padding: 30px; background: var(--pig-card-bg); color: var(--pig-sub); }
.pig-desc-title { font-size: 12px; font-weight: 700; color: var(--pig-text); margin-bottom: 15px; border-left: 2px solid var(--pig-accent); padding-left: 10px; }

/* Queries & Lists */
.pig-query-wrap { max-width: 520px; margin: 80px auto; padding: 0 20px; min-height: 70vh; }
.pig-query-node { background: var(--pig-card-bg); border: 2px solid var(--pig-border); padding: 30px; margin-bottom: 20px; }
.pig-btn-prime { background: var(--pig-accent); color: #fff; border: none; padding: 12px 30px; font-weight: 700; font-size: 13px; cursor: pointer; width: 100%; }

@media (max-width: 768px) {
    .pig-split-hud { flex-direction: column-reverse; }
    .pig-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .pig-header { position: relative; }
    .pig-nav { position: fixed; top: 56px; left: -100%; width: 100%; height: 100vh; background: var(--pig-bg); flex-direction: column; padding: 40px; transition: 0.3s; gap: 30px; }
    .pig-nav.is-open { left: 0; }
    .pig-m-trigger { display: block; }
}