:root {
    --dam-bg: #1c1c1c;
    --dam-card-bg: #111111;
    --dam-border: rgba(255, 102, 0, 0.25);
    --dam-border-hover: rgba(255, 102, 0, 0.8);
    --dam-text: #eaeaea;
    --dam-sub: #888888;
    --dam-accent: #ff6600;
    --dam-font: 'Courier New', Courier, monospace;
}

body {
    margin: 0; background: var(--dam-bg); color: var(--dam-text);
    font-family: var(--dam-font); font-size: 13px; -webkit-font-smoothing: antialiased;
}

.dam-header {
    position: fixed; top: 0; width: 100%; height: 56px;
    background: rgba(28, 28, 28, 0.95); backdrop-filter: blur(8px);
    z-index: 2000; border-bottom: 2px solid var(--dam-border);
}

.dam-inner {
    max-width: 1200px; margin: 0 auto; height: 100%;
    display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
}

.dam-logo-nav { display: flex; align-items: center; gap: 30px; }
.dam-logo img { height: 20px; }
.dam-nav { display: flex; list-style: none; gap: 24px; margin: 0; padding: 0; }
.dam-nav a { color: var(--dam-sub); text-decoration: none; font-weight: bold; }
.dam-nav a:hover, .dam-nav a.active { color: var(--dam-accent); }
.dam-user-zone { display: flex; align-items: center; gap: 16px; }
.dam-btn-login { background: var(--dam-accent); color: #000; padding: 6px 16px; border-radius: 0; text-decoration: none; font-size: 11px; font-weight: bold; }
.dam-avatar { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--dam-border); }
.dam-m-trigger { display: none; color: var(--dam-text); font-size: 20px; cursor: pointer; }

/* 留白通告 */
.dam-notice-bar { margin: 80px auto 20px; max-width: 1200px; padding: 0 20px; }
.dam-notice-inner { border: 2px solid var(--dam-border); padding: 12px 24px; background: var(--dam-card-bg); display: flex; align-items: center; position: relative; }
/* 模拟大型机械固紧螺丝 */
.dam-notice-inner::before, .dam-notice-inner::after {
    content: ""; position: absolute; width: 6px; height: 6px; background: #555; border-radius: 50%; border: 1px solid #222;
}
.dam-notice-inner::before { top: 6px; left: 6px; }
.dam-notice-inner::after { top: 6px; right: 6px; }

/* 页脚 */
.dam-footer { padding: 40px 0; background: #0c0c0c; border-top: 2px solid var(--dam-border); margin-top: 60px; }
.dam-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dam-copyright { font-size: 11px; color: var(--dam-sub); display: flex; align-items: center; }
.dam-status-indicator { width: 6px; height: 6px; background: var(--dam-accent); border-radius: 50%; margin-right: 10px; }

/* 布局 037: 右半屏常驻分类导航 + 左半屏顶部公告 ➡️ 左半屏下方平铺 2 列商品 */
.dam-home-wrap { max-width: 1200px; margin: 40px auto; padding: 0 20px; min-height: 80vh; }
.dam-split-grid { display: flex; gap: 40px; }

/* 左半屏内容区 */
.dam-left-area { flex: 1.3; display: flex; flex-direction: column; gap: 24px; }

/* 左半屏顶部通告 */
.dam-left-notice {
    background: var(--dam-card-bg); border: 2px solid var(--dam-border);
    padding: 24px; position: relative;
}
.dam-left-notice::before {
    content: "[ CHASSIS INTAKE DAMPER ]"; display: block; font-weight: bold; margin-bottom: 8px; color: var(--dam-accent);
}

/* 2列平铺商品网格 */
.dam-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* 商品卡片：纯直角，带四个对角大型机械螺丝 */
.dam-card-probe {
    display: block; background: var(--dam-card-bg); text-decoration: none; transition: 0.3s;
    padding: 24px; position: relative; border: 2px solid var(--dam-border);
}
.dam-card-probe:hover { border-color: var(--dam-border-hover); box-shadow: 0 0 15px rgba(255, 102, 0, 0.25); }
.dam-card-probe:hover .dam-name { color: var(--dam-accent); }

/* 四角机械螺丝点缀 */
.dam-screw-dot {
    position: absolute; width: 6px; height: 6px; background: #666; border-radius: 50%; border: 1px solid #111;
}
.dam-screw-lt { top: 6px; left: 6px; }
.dam-screw-rt { top: 6px; right: 6px; }
.dam-screw-lb { bottom: 6px; left: 6px; }
.dam-screw-rb { bottom: 6px; right: 6px; }

/* 右半屏常驻分类导航 */
.dam-right-sidebar {
    flex: 0.7; background: var(--dam-card-bg); border: 2px solid var(--dam-border);
    padding: 30px; position: sticky; top: 100px; height: fit-content;
}
.dam-sidebar-title { font-size: 13px; font-weight: bold; color: var(--dam-accent); margin-bottom: 20px; text-transform: uppercase; }
.dam-sidebar-line { height: 1px; background: var(--dam-border); margin: 15px 0; }
.dam-sidebar-item { display: block; color: var(--dam-text); text-decoration: none; padding: 8px 0; font-weight: bold; transition: 0.2s; }
.dam-sidebar-item:hover { color: var(--dam-accent); padding-left: 5px; }

.dam-cat-hd { font-size: 14px; font-weight: bold; color: var(--dam-text); margin: 0 0 20px; display: flex; align-items: center; }
.dam-cat-hd::after { content: ""; flex: 1; height: 1px; background: var(--dam-border); margin-left: 20px; }
.dam-cat-hd::before { content: "# "; color: var(--dam-accent); margin-right: 8px; }

.dam-img-box { width: 100%; aspect-ratio: 1.8; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; background: #050505; }
.dam-img-box img { width: 45%; height: 45%; object-fit: contain; }
.dam-name { font-size: 14px; height: 38px; color: var(--dam-text); line-height: 1.5; overflow: hidden; margin-bottom: 15px; }
.dam-footer-meta { display: flex; justify-content: space-between; align-items: center; }
.dam-price { font-size: 16px; font-weight: bold; color: var(--dam-accent); }
.dam-sell-count { font-size: 11px; color: var(--dam-sub); }
.dam-tag-auto { position: absolute; top: 12px; right: 20px; font-size: 9px; color: var(--dam-accent); border: 1px solid var(--dam-accent); padding: 1px 4px; }

/* Detail Pages */
.dam-trade-wrap { padding: 40px 10px; min-height: 80vh; }
.dam-trade-node { max-width: 900px; margin: 0 auto; border: 2px solid var(--dam-border); display: flex; flex-wrap: wrap; background: var(--dam-card-bg); }
.dam-media-side { flex: 0 0 32%; background: #050505; padding: 30px; display: flex; align-items: center; border-right: 2px solid var(--dam-border); }
.dam-media-side img { width: 100%; height: auto; }
.dam-form-side { flex: 1; padding: 40px; min-width: 320px; }
.dam-title { font-size: 22px; font-weight: 700; color: var(--dam-text); margin-bottom: 10px; }
.dam-tag-status { display: inline-block; padding: 3px 12px; border: 1px solid var(--dam-accent); color: var(--dam-accent); font-size: 11px; background: rgba(255, 102, 0, 0.1); margin-bottom: 25px; }
.dam-price-node { margin-bottom: 30px; padding: 20px; background: var(--dam-bg); border: 2px solid var(--dam-border); display: flex; justify-content: space-between; align-items: center; }
.dam-price-val { font-size: 26px; font-weight: 800; color: var(--dam-accent); }
.dam-field { margin-bottom: 20px; }
.dam-label { display: block; font-size: 11px; color: var(--dam-sub); margin-bottom: 8px; }
.dam-input { width: 100%; height: 44px; background: var(--dam-bg); border: 2px solid var(--dam-border); color: var(--dam-text); padding: 0 15px; box-sizing: border-box; outline: none; }
.dam-input:focus { border-color: var(--dam-accent); }
.dam-btn-submit { width: 100%; height: 48px; background: var(--dam-accent); color: #000; border: none; cursor: pointer; font-size: 14px; font-weight: 700; transition: 0.3s; }
.dam-btn-submit:hover { opacity: 0.8; }
.dam-btn-submit:disabled { background: #26160e; color: #5c4439; border: 1px solid var(--dam-border); cursor: not-allowed; }
.dam-desc-box { max-width: 900px; margin: 20px auto 0; border: 2px solid var(--dam-border); padding: 30px; background: var(--dam-card-bg); color: var(--dam-sub); }
.dam-desc-title { font-size: 12px; font-weight: 700; color: var(--dam-text); margin-bottom: 15px; border-left: 2px solid var(--dam-accent); padding-left: 10px; }

/* Queries & Lists */
.dam-query-wrap { max-width: 520px; margin: 80px auto; padding: 0 20px; min-height: 70vh; }
.dam-query-node { background: var(--dam-card-bg); border: 2px solid var(--dam-border); padding: 30px; margin-bottom: 20px; }
.dam-btn-prime { background: var(--dam-accent); color: #000; border: none; padding: 12px 30px; font-weight: 700; font-size: 13px; cursor: pointer; width: 100%; }

@media (max-width: 768px) {
    .dam-split-grid { flex-direction: column-reverse; }
    .dam-right-sidebar { width: 100%; position: relative; top: 0; }
    .dam-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .dam-header { position: relative; }
    .dam-nav { position: fixed; top: 56px; left: -100%; width: 100%; height: 100vh; background: var(--dam-bg); flex-direction: column; padding: 40px; transition: 0.3s; gap: 30px; }
    .dam-nav.is-open { left: 0; }
    .dam-m-trigger { display: block; }
}