/* =====================================================================
 * Lume同城信息系统 - 电脑版样式（1280px 居中，红橙主题）
 * ===================================================================== */

:root {
    --color-primary: #e74c3c;
    --color-primary-dark: #c0392b;
    --color-accent: #f39c12;
    --color-link: #2c7cb0;
    --color-link-hover: #e74c3c;
    --color-text: #333;
    --color-text-light: #888;
    --color-border: #e5e5e5;
    --color-bg: #f5f5f5;
    --container-width: 1280px;
    --nav-font-size: 18px;
    --header-bg: #fff;
    --card-bg: #fff;
    --footer-bg: #2b2b2b;
}

/* ---------- 颜色风格：暖色系 ---------- */
/* 日落橙 */
:root[data-theme="sunset"] {
    --color-primary: #e67e22;
    --color-primary-dark: #d35400;
    --color-accent: #e74c3c;
    --color-link: #2980b9;
    --color-link-hover: #e67e22;
}
/* 琥珀金 */
:root[data-theme="amber"] {
    --color-primary: #d4a017;
    --color-primary-dark: #b8860b;
    --color-accent: #e67e22;
    --color-link: #2980b9;
    --color-link-hover: #d4a017;
}
/* 中国红（默认） */
:root[data-theme="crimson"] {
    --color-primary: #e74c3c;
    --color-primary-dark: #c0392b;
    --color-accent: #f39c12;
    --color-link: #2c7cb0;
    --color-link-hover: #e74c3c;
}

/* ---------- 颜色风格：冷色系 ---------- */
/* 海洋蓝 */
:root[data-theme="ocean"] {
    --color-primary: #2980b9;
    --color-primary-dark: #1f618d;
    --color-accent: #3498db;
    --color-link: #e67e22;
    --color-link-hover: #2980b9;
}
/* 森林绿 */
:root[data-theme="forest"] {
    --color-primary: #27ae60;
    --color-primary-dark: #1e8449;
    --color-accent: #2ecc71;
    --color-link: #2980b9;
    --color-link-hover: #27ae60;
}
/* 青碧色 */
:root[data-theme="teal"] {
    --color-primary: #16a085;
    --color-primary-dark: #117a65;
    --color-accent: #1abc9c;
    --color-link: #2980b9;
    --color-link-hover: #16a085;
}

/* ---------- 颜色风格：夜间模式 ---------- */
:root[data-theme="dark"] {
    --color-primary: #e74c3c;
    --color-primary-dark: #c0392b;
    --color-accent: #f39c12;
    --color-link: #5dade2;
    --color-link-hover: #e74c3c;
    --color-text: #d4d4d4;
    --color-text-light: #888;
    --color-border: #3a3a3a;
    --color-bg: #1a1a1a;
    --header-bg: #2b2b2b;
    --card-bg: #2b2b2b;
    --footer-bg: #1a1a1a;
}
:root[data-theme="dark"] .header { background: var(--header-bg); border-bottom-color: var(--color-primary); }
:root[data-theme="dark"] .topbar { background: #222; border-bottom-color: var(--color-border); color: #888; }
:root[data-theme="dark"] .section,
:root[data-theme="dark"] .side-card,
:root[data-theme="dark"] .side-block,
:root[data-theme="dark"] .detail-card,
:root[data-theme="dark"] .publish-wrap,
:root[data-theme="dark"] .page-wrap,
:root[data-theme="dark"] .news-detail,
:root[data-theme="dark"] .goods-detail,
:root[data-theme="dark"] .store-detail,
:root[data-theme="dark"] .info-table,
:root[data-theme="dark"] .filter-bar,
:root[data-theme="dark"] .error-box { background: var(--card-bg); border-color: var(--color-border); color: var(--color-text); }
:root[data-theme="dark"] .section-hd h3 { color: var(--color-primary); }
:root[data-theme="dark"] .info-list .info-title,
:root[data-theme="dark"] .info-table .col-title a,
:root[data-theme="dark"] .info-table .col-title,
:root[data-theme="dark"] .news-row .nr-title a,
:root[data-theme="dark"] .detail-title,
:root[data-theme="dark"] .side-card .side-title,
:root[data-theme="dark"] .side-block .sb-hd { color: var(--color-text); }
:root[data-theme="dark"] .detail-meta,
:root[data-theme="dark"] .breadcrumb { color: #888; }
:root[data-theme="dark"] .detail-attrs,
:root[data-theme="dark"] .detail-contact { background: #333; border-color: #444; }
:root[data-theme="dark"] .detail-content,
:root[data-theme="dark"] .info-list .info-title,
:root[data-theme="dark"] .info-table .it-row { color: var(--color-text); }
:root[data-theme="dark"] .info-table .it-head { background: #333; }
:root[data-theme="dark"] .info-table .it-row:hover { background: #333; }
:root[data-theme="dark"] .pagination li a,
:root[data-theme="dark"] .pagination li span { background: var(--card-bg); border-color: var(--color-border); color: var(--color-text); }
:root[data-theme="dark"] .form-group input,
:root[data-theme="dark"] .form-group textarea,
:root[data-theme="dark"] .form-group select { background: #333; border-color: var(--color-border); color: var(--color-text); }
:root[data-theme="dark"] .left-menu { background: var(--card-bg); border-color: var(--color-border); }
:root[data-theme="dark"] .banner { opacity: 0.85; }

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", Arial, sans-serif; font-size: 14px; color: var(--color-text); background: var(--color-bg); line-height: 1.6; }
a { color: var(--color-link); text-decoration: none; transition: color .15s; }
a:hover { color: var(--color-link-hover); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; border: 0; }
input, button, textarea, select { font-family: inherit; font-size: inherit; outline: none; }
.clearfix::after { content: ""; display: block; clear: both; }
.container { width: var(--container-width); margin: 0 auto; }

/* ---------- Topbar ---------- */
.topbar { background: #f7f7f7; border-bottom: 1px solid var(--color-border); height: 34px; line-height: 34px; font-size: 12px; color: #999; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar .tb-left { color: var(--color-primary); font-weight: bold; }
.topbar .tb-left .city-name { font-size: 13px; }
.topbar .tb-right a { color: #666; margin: 0 6px; }
.topbar .tb-right a:hover { color: var(--color-primary); }
.topbar .tb-right .sep { color: #ddd; }

/* ---------- Header ---------- */
.header { background: #fff; padding: 22px 0 34px; border-bottom: 3px solid var(--color-primary); }
.header .container { display: flex; align-items: center; position: relative; }
.logo { font-size: 28px; font-weight: bold; color: var(--color-primary); white-space: nowrap; flex-shrink: 0; }
.logo .logo-sub { font-size: 12px; color: #999; font-weight: normal; margin-left: 8px; }
.header-search { position: absolute; left: 50%; transform: translateX(-50%); max-width: 640px; width: 100%; }
.search-box { display: flex; border: 2px solid var(--color-primary); border-radius: 2px; overflow: hidden; height: 42px; }
.search-box input { flex: 1; height: 42px; padding: 0 12px; border: 0; font-size: 14px; }
.search-box button { width: 90px; background: var(--color-primary); color: #fff; border: 0; cursor: pointer; font-size: 15px; height: 42px; }
.search-box button:hover { background: var(--color-primary-dark); }
.hot-keywords { position: absolute; top: 100%; left: 0; margin-top: 5px; font-size: 12px; color: #999; white-space: nowrap; }
.hot-keywords a { color: #999; margin-right: 10px; }
.hot-keywords a:hover { color: var(--color-primary); }
.btn-publish { position: absolute; left: 100%; top: 0; margin-left: 45px; display: inline-flex; align-items: center; padding: 0 22px; height: 42px; line-height: 42px; background: var(--color-accent); color: #fff; font-size: 15px; border-radius: 3px; font-weight: bold; white-space: nowrap; }
.btn-publish:hover { background: #e67e22; color: #fff; }

/* ---------- Nav ---------- */
.nav { background: var(--color-primary); height: 44px; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.nav .container { display: flex; align-items: center; }
.nav a { color: #fff; padding: 0 16px; line-height: 44px; font-size: var(--nav-font-size); font-weight: bold; white-space: nowrap; }
.nav a:hover, .nav a.active { background: var(--color-primary-dark); color: #fff; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 12px 0; font-size: 13px; color: #999; }
.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { margin: 0 6px; color: #ccc; }
.breadcrumb .current { color: var(--color-text); }

/* ---------- Main wrap ---------- */
.main-wrap { padding: 0 0 30px; }

/* ---------- Home layout ---------- */
.home-main { display: flex; gap: 15px; align-items: flex-start; }
.home-left { width: 200px; flex-shrink: 0; }
.home-center { flex: 1; min-width: 0; }
.home-right { width: 290px; flex-shrink: 0; }

/* 两栏布局：取消左侧导航，内容区放大，左侧导航移至右侧栏底部 */
.home-main.home-layout-two .home-center { flex: 1; min-width: 0; }
.home-main.home-layout-two .home-right { width: 290px; flex-shrink: 0; }
.home-main.home-layout-two .home-right .left-menu { border: 1px solid var(--color-border); }

/* Left category menu */
.left-menu { background: #fff; border: 1px solid var(--color-border); }
.left-menu-hd { background: var(--color-primary); color: #fff; padding: 0 14px; height: 40px; line-height: 40px; font-size: 16px; font-weight: bold; }
.left-menu-bd { padding: 4px 0; }
.lm-list .lm-item { border-bottom: 1px dashed #eee; padding: 8px 12px; }
.lm-list .lm-item:last-child { border-bottom: 0; }
.lm-title { font-size: 14px; font-weight: bold; margin-bottom: 4px; }
.lm-title a { color: var(--color-text); }
.lm-title a:hover { color: var(--color-primary); }
.lm-subs { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.lm-subs a { font-size: 12px; color: #888; }
.lm-subs a:hover { color: var(--color-primary); }

/* ---------- Banner / Carousel ---------- */
.banner { position: relative; height: 300px; overflow: hidden; background: linear-gradient(135deg, #e74c3c, #f39c12); }
.banner .slides { position: relative; width: 100%; height: 100%; }
.banner .slide { position: absolute; inset: 0; display: none; }
.banner .slide.active { display: block; }
.banner .slide-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; }
.banner .slide-inner h2 { font-size: 34px; margin-bottom: 10px; text-shadow: 0 2px 6px rgba(0,0,0,.3); }
.banner .slide-inner p { font-size: 16px; opacity: .9; }
.banner .slide:nth-child(1) .slide-inner { background: linear-gradient(135deg, #e74c3c 0%, #f39c12 100%); }
.banner .slide:nth-child(2) .slide-inner { background: linear-gradient(135deg, #2c7cb0 0%, #1abc9c 100%); }
.banner .slide:nth-child(3) .slide-inner { background: linear-gradient(135deg, #8e44ad 0%, #e74c3c 100%); }
.banner .dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.banner .dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.banner .dots span.active { background: #fff; }
.banner .arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 60px; line-height: 60px; text-align: center; background: rgba(0,0,0,.25); color: #fff; font-size: 24px; cursor: pointer; user-select: none; }
.banner .arrow:hover { background: rgba(0,0,0,.45); }
.banner .arrow.prev { left: 0; }
.banner .arrow.next { right: 0; }

/* ---------- Section card ---------- */
.section { background: #fff; border: 1px solid var(--color-border); margin-top: 15px; }
.section:first-child { margin-top: 0; }
.section-hd { display: flex; align-items: center; border-bottom: 2px solid var(--color-primary); padding: 0 14px; height: 42px; }
.section-hd h3 { font-size: 16px; color: var(--color-primary); }
.section-hd h3 a { color: var(--color-primary); }
.section-hd .section-subs { flex: 1; margin-left: 18px; font-size: 12px; color: #999; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.section-hd .section-subs a { color: #888; margin-right: 12px; }
.section-hd .section-subs a:hover { color: var(--color-primary); }
.section-hd .section-more { font-size: 13px; }
.section-hd .section-more a { color: #999; }
.section-hd .section-more a:hover { color: var(--color-primary); }
.section-hd .section-more .pipe { color: #ddd; margin: 0 6px; }
.section-bd { padding: 8px 14px; }
.info-list li { display: flex; align-items: center; padding: 6px 0; border-bottom: 1px dashed #f0f0f0; font-size: 14px; }
.info-list li:last-child { border-bottom: 0; }
.info-list .info-area { width: 50px; color: var(--color-accent); font-size: 12px; flex-shrink: 0; }
.info-list .info-title { flex: 1; color: #555; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.info-list .info-title:hover { color: var(--color-primary); }
.info-list .info-title .top-tag { color: #fff; background: var(--color-primary); font-size: 11px; padding: 0 4px; border-radius: 2px; margin-right: 5px; }
.info-list .info-price { color: var(--color-primary); font-weight: bold; margin: 0 12px; flex-shrink: 0; }
.info-list .info-time { color: #bbb; font-size: 12px; flex-shrink: 0; }

/* ---------- Right sidebar ---------- */
.side-card { background: #fff; border: 1px solid var(--color-border); margin-bottom: 15px; }
.side-card .side-hd { display: flex; border-bottom: 1px solid var(--color-border); }
.side-card .side-hd .tab { flex: 1; text-align: center; padding: 10px 0; cursor: pointer; font-size: 14px; color: #666; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.side-card .side-hd .tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); font-weight: bold; }
.side-card .side-bd { padding: 8px 14px; }
.side-card .side-title { padding: 10px 14px; border-bottom: 1px solid var(--color-border); font-size: 15px; font-weight: bold; color: var(--color-text); }
.side-card .side-title .more { float: right; font-size: 12px; color: #999; font-weight: normal; }
.news-list li { padding: 7px 0; border-bottom: 1px dashed #f0f0f0; font-size: 13px; display: flex; align-items: center; }
.news-list li:last-child { border-bottom: 0; }
.news-list .news-rank { width: 18px; height: 18px; line-height: 18px; text-align: center; background: #ccc; color: #fff; font-size: 11px; margin-right: 8px; flex-shrink: 0; border-radius: 2px; }
.news-list li:nth-child(1) .news-rank { background: var(--color-primary); }
.news-list li:nth-child(2) .news-rank { background: #ee7e2c; }
.news-list li:nth-child(3) .news-rank { background: var(--color-accent); }
.news-list .news-title { flex: 1; color: #555; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.news-list .news-title:hover { color: var(--color-primary); }

/* publish quick button */
.publish-quick { text-align: center; padding: 16px; }
.publish-quick .btn-big { display: block; padding: 12px 0; background: var(--color-primary); color: #fff; font-size: 16px; font-weight: bold; border-radius: 3px; }
.publish-quick .btn-big:hover { background: var(--color-primary-dark); color: #fff; }
.publish-quick .btn-big .ico { font-size: 18px; }

/* goods mini grid */
.goods-mini { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; }
.goods-mini .gm-item { width: calc(50% - 4px); }
.ph-cover { width: 100%; height: 90px; border-radius: 3px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; text-align: center; padding: 6px; }
.ph-cover.c1 { background: linear-gradient(135deg, #ff8a80, #e74c3c); }
.ph-cover.c2 { background: linear-gradient(135deg, #ffd180, #f39c12); }
.ph-cover.c3 { background: linear-gradient(135deg, #80d8ff, #2c7cb0); }
.ph-cover.c4 { background: linear-gradient(135deg, #b9f6ca, #1abc9c); }
.ph-cover.c5 { background: linear-gradient(135deg, #ea80fc, #8e44ad); }
.ph-cover.c6 { background: linear-gradient(135deg, #ffe57f, #e67e22); }
.goods-mini .gm-price { color: var(--color-primary); font-weight: bold; font-size: 13px; margin-top: 3px; }
.goods-mini .gm-title { font-size: 12px; color: #666; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- Filter bar (category list) ---------- */
.filter-bar { background: #fff; border: 1px solid var(--color-border); padding: 10px 14px; margin-bottom: 15px; }
.filter-row { display: flex; align-items: flex-start; padding: 6px 0; border-bottom: 1px dashed #f0f0f0; }
.filter-row:last-child { border-bottom: 0; }
.filter-row .filter-label { width: 80px; color: #999; font-size: 13px; flex-shrink: 0; }
.filter-row .filter-opts { flex: 1; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.filter-row .filter-opts a { color: #555; font-size: 13px; padding: 1px 6px; border-radius: 2px; }
.filter-row .filter-opts a:hover { color: var(--color-primary); }
.filter-row .filter-opts a.active { background: var(--color-primary); color: #fff; }

/* ---------- List layout ---------- */
.list-layout { display: flex; gap: 15px; align-items: flex-start; }
.list-main { flex: 1; min-width: 0; }
.list-side { width: 290px; flex-shrink: 0; }
.info-table { background: #fff; border: 1px solid var(--color-border); }
.info-table .it-head { display: flex; background: #fafafa; border-bottom: 1px solid var(--color-border); padding: 0 14px; height: 38px; line-height: 38px; font-size: 13px; color: #999; }
.info-table .it-head .col-area { width: 70px; }
.info-table .it-head .col-title { flex: 1; }
.info-table .it-head .col-price { width: 120px; text-align: center; }
.info-table .it-head .col-time { width: 100px; text-align: center; }
.info-table .it-row { display: flex; align-items: center; padding: 0 14px; height: 42px; line-height: 42px; border-bottom: 1px dashed #f0f0f0; font-size: 14px; }
.info-table .it-row:hover { background: #fffbf5; }
.info-table .it-row:last-child { border-bottom: 0; }
.info-table .col-area { width: 70px; color: var(--color-accent); font-size: 13px; }
.info-table .col-title { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.info-table .col-title a { color: #555; }
.info-table .col-title a:hover { color: var(--color-primary); }
.info-table .col-title .top-tag { color: #fff; background: var(--color-primary); font-size: 11px; padding: 0 4px; border-radius: 2px; margin-right: 5px; }
.info-table .col-price { width: 120px; text-align: center; color: var(--color-primary); font-weight: bold; }
.info-table .col-time { width: 100px; text-align: center; color: #bbb; font-size: 12px; }
.list-summary { padding: 10px 0; color: #999; font-size: 13px; }
.list-summary strong { color: var(--color-primary); }

/* ---------- Pagination ---------- */
.pagination { text-align: center; padding: 20px 0; }
.pagination ul { display: inline-block; }
.pagination li { display: inline-block; margin: 0 2px; }
.pagination li a, .pagination li span { display: inline-block; padding: 6px 12px; border: 1px solid var(--color-border); border-radius: 3px; background: #fff; color: #555; font-size: 13px; }
.pagination li a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination li.active span { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.pagination li.disabled span { color: #ccc; background: #f7f7f7; }

/* ---------- Empty ---------- */
.empty-box { text-align: center; padding: 60px 0; color: #999; }
.empty-box .ico { font-size: 50px; margin-bottom: 10px; }

/* ---------- Detail page ---------- */
.detail-main { display: flex; gap: 15px; align-items: flex-start; }
.detail-left { flex: 1; min-width: 0; }
.detail-right { width: 290px; flex-shrink: 0; }
.detail-card { background: #fff; border: 1px solid var(--color-border); padding: 20px 24px; margin-bottom: 15px; }
.detail-title { font-size: 24px; color: var(--color-text); line-height: 1.4; margin-bottom: 12px; }
.detail-meta { color: #999; font-size: 13px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.detail-meta .meta-item .lbl { color: #bbb; }
.detail-meta .meta-item strong { color: #666; font-weight: normal; }
.detail-images { margin: 16px 0; }
.detail-images .img-main { width: 100%; height: 380px; border-radius: 4px; overflow: hidden; cursor: zoom-in; }
.detail-images .img-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-images .img-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.detail-images .img-thumbs .img-thumb { width: 90px; height: 70px; border-radius: 4px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color .2s; }
.detail-images .img-thumbs .img-thumb.active { border-color: var(--color-primary, #e74c3c); }
.detail-images .img-thumbs .img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 发布表单图片预览 */
.pf-upload-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pf-upload-item { position: relative; width: 100px; height: 100px; border-radius: 4px; overflow: hidden; border: 1px solid #ddd; }
.pf-upload-item img { width: 100%; height: 100%; object-fit: cover; }
.pf-upload-item .pf-del { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; background: rgba(0,0,0,.6); color: #fff; border: none; border-radius: 50%; cursor: pointer; font-size: 14px; line-height: 18px; text-align: center; }
.pf-upload-count { font-size: 13px; color: #999; margin-top: 6px; }
.detail-attrs { background: #fafafa; border: 1px solid #f0f0f0; border-radius: 4px; padding: 14px 18px; margin: 16px 0; }
.detail-attrs .attr-row { display: flex; padding: 5px 0; font-size: 14px; }
.detail-attrs .attr-label { width: 100px; color: #999; }
.detail-attrs .attr-value { flex: 1; color: #555; }
.detail-attrs .attr-value.price { color: var(--color-primary); font-weight: bold; font-size: 16px; }
.detail-contact { background: #fff8f0; border: 1px solid #ffe0b0; border-radius: 4px; padding: 16px 18px; margin: 16px 0; }
.detail-contact h4 { color: var(--color-primary); font-size: 16px; margin-bottom: 10px; }
.detail-contact .contact-row { padding: 4px 0; font-size: 14px; }
.detail-contact .contact-row .lbl { color: #999; width: 80px; display: inline-block; }
.detail-contact .contact-row .phone { color: var(--color-primary); font-size: 22px; font-weight: bold; }
.detail-content { margin-top: 16px; line-height: 1.9; font-size: 15px; color: #444; }
.detail-content p { margin-bottom: 12px; }
.detail-share { padding: 14px 0; border-top: 1px solid #f0f0f0; color: #999; font-size: 13px; }
.detail-pager { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid #f0f0f0; font-size: 13px; }
.detail-pager a { color: #555; }
.detail-pager a:hover { color: var(--color-primary); }

/* comment box */
.comment-box { margin-top: 16px; }
.comment-box h3 { font-size: 16px; margin-bottom: 12px; border-left: 4px solid var(--color-primary); padding-left: 10px; }
.comment-form textarea { width: 100%; height: 80px; padding: 8px; border: 1px solid var(--color-border); border-radius: 3px; resize: vertical; }
.comment-form .btn-row { margin-top: 8px; }
.comment-list { margin-top: 16px; }
.comment-list .cmt-item { padding: 12px 0; border-bottom: 1px dashed #f0f0f0; }
.comment-list .cmt-head { color: #999; font-size: 13px; margin-bottom: 4px; }
.comment-list .cmt-head .cmt-user { color: var(--color-link); font-weight: bold; }
.comment-list .cmt-body { color: #555; }

/* side blocks on detail */
.side-block { background: #fff; border: 1px solid var(--color-border); margin-bottom: 15px; }
.side-block .sb-hd { padding: 10px 14px; border-bottom: 1px solid var(--color-border); font-size: 15px; font-weight: bold; color: var(--color-text); }
.side-block .sb-hd .more { float: right; font-size: 12px; color: #999; font-weight: normal; }
.side-block .sb-bd { padding: 10px 14px; }
.publisher-card { text-align: center; padding: 18px 14px; }
.publisher-card .avatar { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 8px; background: linear-gradient(135deg, #e74c3c, #f39c12); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; }
.publisher-card .pub-name { font-size: 16px; font-weight: bold; color: var(--color-text); }
.publisher-card .pub-meta { color: #999; font-size: 12px; margin: 6px 0 10px; }
.publisher-card .btn-contact { display: inline-block; padding: 6px 20px; background: var(--color-primary); color: #fff; border-radius: 3px; font-size: 13px; }
.publisher-card .btn-contact:hover { background: var(--color-primary-dark); color: #fff; }
.side-info-list li { padding: 6px 0; border-bottom: 1px dashed #f0f0f0; font-size: 13px; }
.side-info-list li:last-child { border-bottom: 0; }
.side-info-list a { color: #555; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; }
.side-info-list a:hover { color: var(--color-primary); }
.side-cat-list a { display: inline-block; padding: 3px 10px; background: #f5f5f5; color: #666; border-radius: 2px; font-size: 12px; margin: 0 6px 6px 0; }
.side-cat-list a:hover { background: var(--color-primary); color: #fff; }

/* ---------- News list ---------- */
.news-layout { display: flex; gap: 15px; align-items: flex-start; }
.news-main { flex: 1; min-width: 0; }
.news-side { width: 290px; flex-shrink: 0; }
.news-card { background: #fff; border: 1px solid var(--color-border); }
.news-card .nc-head { padding: 10px 14px; border-bottom: 1px solid var(--color-border); font-size: 15px; font-weight: bold; }
.news-card .nc-body { padding: 6px 14px; }
.news-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed #f0f0f0; }
.news-row:last-child { border-bottom: 0; }
.news-row .nr-cover { width: 160px; height: 100px; flex-shrink: 0; border-radius: 3px; overflow: hidden; }
.news-row .nr-cover .ph-cover { width: 100%; height: 100%; font-size: 12px; }
.news-row .nr-info { flex: 1; min-width: 0; }
.news-row .nr-title { font-size: 16px; margin-bottom: 6px; }
.news-row .nr-title a { color: var(--color-text); }
.news-row .nr-title a:hover { color: var(--color-primary); }
.news-row .nr-desc { color: #888; font-size: 13px; line-height: 1.6; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-row .nr-meta { color: #bbb; font-size: 12px; margin-top: 6px; }
.news-row .nr-meta span { margin-right: 14px; }

/* news detail */
.news-detail { background: #fff; border: 1px solid var(--color-border); padding: 24px 30px; }
.news-detail h1 { font-size: 26px; text-align: center; margin-bottom: 14px; }
.news-detail .nd-meta { text-align: center; color: #999; font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; margin-bottom: 20px; }
.news-detail .nd-meta span { margin: 0 12px; }
.news-detail .nd-content { line-height: 2; font-size: 15px; color: #444; }
.news-detail .nd-content p { margin-bottom: 16px; }

/* ---------- Goods ---------- */
.goods-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.goods-card { width: calc(25% - 9px); background: #fff; border: 1px solid var(--color-border); border-radius: 3px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.goods-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); transform: translateY(-2px); }
.goods-card .gc-cover { width: 100%; height: 180px; overflow: hidden; }
.goods-card .gc-cover .ph-cover { width: 100%; height: 100%; font-size: 13px; }
.goods-card .gc-body { padding: 8px 10px; }
.goods-card .gc-price { color: var(--color-primary); font-size: 18px; font-weight: bold; }
.goods-card .gc-price .old { color: #bbb; font-size: 12px; font-weight: normal; text-decoration: line-through; margin-left: 6px; }
.goods-card .gc-title { font-size: 13px; color: #666; margin-top: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.goods-card .gc-title a { color: #666; }
.goods-card .gc-title a:hover { color: var(--color-primary); }

/* goods detail */
.goods-detail { display: flex; gap: 30px; background: #fff; border: 1px solid var(--color-border); padding: 24px; }
.gd-gallery { width: 400px; flex-shrink: 0; }
.gd-gallery .img-main { width: 400px; height: 400px; border: 1px solid #eee; overflow: hidden; border-radius: 4px; }
.gd-gallery .img-main .ph-cover { width: 100%; height: 100%; font-size: 22px; }
.gd-gallery .img-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gd-gallery .thumbs .ph-cover { width: 70px; height: 70px; cursor: pointer; font-size: 11px; }
.gd-info { flex: 1; min-width: 0; }
.gd-info h1 { font-size: 22px; margin-bottom: 14px; }
.gd-info .gd-price-box { background: #fafafa; padding: 16px; border-radius: 4px; margin-bottom: 16px; }
.gd-info .gd-price { color: var(--color-primary); font-size: 30px; font-weight: bold; }
.gd-info .gd-old { color: #999; text-decoration: line-through; margin-left: 12px; font-size: 16px; }
.gd-info .gd-attrs { margin-bottom: 16px; }
.gd-info .gd-attrs .attr-row { padding: 5px 0; font-size: 14px; }
.gd-info .gd-attrs .attr-label { width: 80px; color: #999; display: inline-block; }
.gd-info .gd-buy { display: inline-block; padding: 10px 40px; background: var(--color-accent); color: #fff; font-size: 16px; border-radius: 3px; margin-right: 10px; }
.gd-info .gd-buy:hover { background: #e67e22; color: #fff; }
.gd-info .gd-cart { display: inline-block; padding: 10px 30px; background: var(--color-primary); color: #fff; font-size: 16px; border-radius: 3px; }
.gd-info .gd-cart:hover { background: var(--color-primary-dark); color: #fff; }
.gd-content { background: #fff; border: 1px solid var(--color-border); padding: 20px 24px; margin-top: 15px; }
.gd-content h3 { font-size: 16px; border-left: 4px solid var(--color-primary); padding-left: 10px; margin-bottom: 12px; }

/* ---------- Store ---------- */
.store-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.store-card { width: calc(50% - 6px); background: #fff; border: 1px solid var(--color-border); border-radius: 3px; padding: 14px; display: flex; gap: 14px; }
.store-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.store-card .sc-logo { width: 90px; height: 90px; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.store-card .sc-logo .ph-cover { width: 100%; height: 100%; font-size: 20px; }
.store-card .sc-info { flex: 1; min-width: 0; }
.store-card .sc-name { font-size: 16px; font-weight: bold; margin-bottom: 4px; }
.store-card .sc-name a { color: var(--color-text); }
.store-card .sc-name a:hover { color: var(--color-primary); }
.store-card .sc-intro { color: #888; font-size: 13px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 4px; }
.store-card .sc-meta { color: #bbb; font-size: 12px; }

.store-detail { background: #fff; border: 1px solid var(--color-border); padding: 24px; }
.store-detail .sd-head { display: flex; gap: 20px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; }
.store-detail .sd-logo { width: 120px; height: 120px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.store-detail .sd-logo .ph-cover { width: 100%; height: 100%; font-size: 26px; }
.store-detail .sd-info h1 { font-size: 24px; margin-bottom: 10px; }
.store-detail .sd-info .sd-meta { color: #888; font-size: 13px; }
.store-detail .sd-info .sd-meta div { padding: 3px 0; }
.store-detail .sd-section { padding: 20px 0; border-bottom: 1px solid #f0f0f0; }
.store-detail .sd-section h3 { font-size: 16px; border-left: 4px solid var(--color-primary); padding-left: 10px; margin-bottom: 12px; }
.store-detail .sd-content { line-height: 1.9; color: #555; }

/* ---------- Publish ---------- */
.publish-wrap { background: #fff; border: 1px solid var(--color-border); padding: 24px 30px; }
.publish-cat-grid { display: flex; flex-wrap: wrap; gap: 0; }
.publish-cat-block { width: 100%; padding: 14px 0; border-bottom: 1px dashed #eee; }
.publish-cat-block .pcb-title { font-size: 16px; font-weight: bold; color: var(--color-primary); width: 120px; flex-shrink: 0; }
.publish-cat-block .pcb-body { flex: 1; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }
.publish-cat-block .pcb-body a { color: #555; font-size: 14px; padding: 2px 8px; border-radius: 2px; }
.publish-cat-block .pcb-body a:hover { background: var(--color-primary); color: #fff; }
.publish-cat-block .pcb-row { display: flex; align-items: flex-start; }

.form-group { margin-bottom: 16px; display: flex; }
.form-group .fg-label { width: 120px; text-align: right; padding-right: 12px; color: #666; line-height: 36px; }
.form-group .fg-label .req { color: var(--color-primary); }
.form-group .fg-control { flex: 1; }
.form-group input[type=text], .form-group input[type=password], .form-group input[type=tel], .form-group input[type=email], .form-group input[type=file], .form-group select, .form-group textarea { width: 100%; max-width: 500px; padding: 8px 10px; border: 1px solid var(--color-border); border-radius: 3px; font-size: 14px; }
.form-group textarea { height: 120px; resize: vertical; }
.form-group .hint { color: #999; font-size: 12px; margin-top: 4px; }
.form-group .fg-control .btn-submit { padding: 10px 36px; background: var(--color-primary); color: #fff; border: 0; border-radius: 3px; font-size: 15px; cursor: pointer; }
.form-group .fg-control .btn-submit:hover { background: var(--color-primary-dark); }
.alert { padding: 12px 16px; border-radius: 3px; margin-bottom: 16px; }
.alert-success { background: #f0fff0; border: 1px solid #c3e6cb; color: #2e7d32; }
.alert-error { background: #fff0f0; border: 1px solid #f5b7b1; color: #c0392b; }

/* ---------- Page (about) ---------- */
.page-wrap { background: #fff; border: 1px solid var(--color-border); padding: 24px 30px; min-height: 400px; }
.page-wrap h1 { font-size: 22px; text-align: center; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; margin-bottom: 20px; }
.page-wrap .page-content { line-height: 1.9; font-size: 15px; color: #444; }
.page-wrap .page-content p { margin-bottom: 14px; }
.sitemap-col { margin-bottom: 20px; }
.sitemap-col h3 { color: var(--color-primary); margin-bottom: 8px; font-size: 16px; }
.sitemap-col a { display: inline-block; padding: 3px 10px; background: #f5f5f5; color: #666; border-radius: 2px; font-size: 13px; margin: 0 6px 6px 0; }
.sitemap-col a:hover { background: var(--color-primary); color: #fff; }

/* ---------- 404 ---------- */
.error-box { text-align: center; padding: 80px 0; background: #fff; border: 1px solid var(--color-border); }
.error-box .err-code { font-size: 90px; color: var(--color-primary); font-weight: bold; }
.error-box .err-msg { font-size: 20px; color: #666; margin: 10px 0 24px; }
.error-box .btn-back { display: inline-block; padding: 8px 30px; background: var(--color-primary); color: #fff; border-radius: 3px; }
.error-box .btn-back:hover { background: var(--color-primary-dark); color: #fff; }

/* ---------- Footer ---------- */
.footer { background: #2b2b2b; color: #999; margin-top: 20px; }
.footer-main { padding: 30px 0; border-bottom: 1px solid #3a3a3a; }
.footer-main .container { display: flex; justify-content: space-between; }
.footer-col { flex: 1; padding: 0 20px; }
.footer-col:first-child { padding-left: 0; }
.footer-col:last-child { padding-right: 0; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-col a { color: #999; display: block; padding: 3px 0; font-size: 13px; }
.footer-col a:hover { color: var(--color-accent); }
.footer-col p { font-size: 13px; line-height: 1.8; }
.footer-qr { text-align: center; }
.footer-qr .qr-box { width: 110px; height: 110px; background: #fff; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; color: #2b2b2b; font-size: 12px; position: relative; }
.footer-qr .qr-box::before { content: ""; position: absolute; inset: 8px; background-image: linear-gradient(45deg, #2b2b2b 25%, transparent 25%, transparent 75%, #2b2b2b 75%), linear-gradient(45deg, #2b2b2b 25%, transparent 25%, transparent 75%, #2b2b2b 75%); background-size: 14px 14px; background-position: 0 0, 7px 7px; opacity: .85; }
.footer-qr .qr-label { font-size: 12px; color: #999; }
.links-bar { padding: 16px 0; border-bottom: 1px solid #3a3a3a; }
.links-bar .lbl { color: #bbb; font-size: 13px; margin-right: 10px; }
.links-bar a { color: #888; font-size: 13px; margin-right: 16px; }
.links-bar a:hover { color: var(--color-accent); }
.footer-bottom { padding: 16px 0; text-align: center; font-size: 13px; color: #777; }
.footer-bottom .fb-nav { margin-bottom: 8px; }
.footer-bottom .fb-nav a { color: #999; margin: 0 10px; }
.footer-bottom .fb-nav a:hover { color: var(--color-accent); }

/* ---------- Misc utility ---------- */
.mt15 { margin-top: 15px; }
.mb15 { margin-bottom: 15px; }
.text-red { color: var(--color-primary); }
.text-orange { color: var(--color-accent); }
