* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font: 15px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #333; background: #f4f5f7; }
a { color: #1f4e9e; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-size: 19px; margin: 10px 0; }
img { max-width: 100%; }
table { border-collapse: collapse; width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; }
.inline-form { display: inline; }

/* 头部 */
.m-header { background: #e4393c; color: #fff; padding: 10px 12px 0; }
.m-bar { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.m-logo { color: #fff; font-size: 19px; font-weight: bold; }
.m-login { color: #fff; font-size: 14px; }
.m-search { display: flex; margin: 8px 0 10px; }
.m-search input { flex: 1; height: 36px; border: 0; border-radius: 18px 0 0 18px; padding: 0 14px; font-size: 14px; outline: none; }
.m-search button { width: 64px; border: 0; border-radius: 0 18px 18px 0; background: #fff; color: #e4393c; font-size: 14px; }
.m-nav { display: flex; justify-content: space-around; padding-bottom: 8px; }
.m-nav a { color: #fff; font-size: 15px; }

/* 首页 */
.m-main { padding: 10px; }
.m-panel { background: #fff; border-radius: 6px; padding: 12px; margin-bottom: 10px; }
.m-panel h2 { font-size: 16px; margin-bottom: 8px; }
.m-panel h2 .more { float: right; font-size: 12px; font-weight: normal; }
.m-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.m-links a { padding: 4px 12px; background: #f2f4f8; border-radius: 14px; font-size: 14px; }
.m-cats { margin: 0 0 6px; padding: 6px 0; border-bottom: 1px dashed #eee; }
.m-cats dt { font-weight: bold; margin-bottom: 4px; }
.m-cats dd { margin: 0; }
.m-cats dd a { display: inline-block; margin: 0 10px 2px 0; font-size: 13px; color: #555; }
.m-cta { text-align: center; margin: 16px 0; }

/* 复用电脑端主体时的通用样式（单列） */
.wrap { padding: 0 10px; }
.panel, .company-list, .inquiry-box, .shop-head, .news-list, .buy-table, .side-layout .main-col > .product-grid { background: #fff; border-radius: 6px; padding: 12px; margin-bottom: 10px; border: 0; }
.panel h2 { font-size: 16px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid #eee; }
.panel h2 .more { float: right; font-size: 12px; font-weight: normal; }
.panel h3 { font-size: 14px; margin: 6px 0 2px; }
.links a { display: inline-block; margin: 0 10px 6px 0; }
.links.small a { font-size: 12px; color: #666; }
.links a.on { color: #e4393c; font-weight: bold; }
.grid4, .two-col, .side-layout, .home-top { display: block; }
.side-col .panel { margin-top: 10px; }
.empty { color: #999; }
.intro { color: #666; font-size: 13px; margin: 0 0 8px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #eee; }
.list li a { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.list .date, .list .qty, .list .city, .list .quote { color: #999; font-size: 12px; margin-left: 8px; white-space: nowrap; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 4px 0; }
.tree { margin: 0 0 8px; padding: 0; }
.tree dt { font-weight: bold; }
.tree dd { margin: 0 0 6px; }
.tree dd a { display: inline-block; margin: 0 10px 2px 0; color: #555; font-size: 13px; }
.crumb { font-size: 12px; color: #888; margin: 8px 0; }
.crumb .sep { margin: 0 4px; }
.badge { display: inline-block; font-style: normal; font-size: 11px; padding: 0 5px; border-radius: 2px; background: #e8f3e8; color: #2a8a2a; margin-left: 4px; }
.badge.vip { background: #fff3dc; color: #b26b00; }
.btn { display: inline-block; padding: 9px 20px; background: #e4393c; color: #fff; border-radius: 4px; border: 0; font-size: 14px; }
.btn.small { padding: 4px 10px; font-size: 12px; }
.alert { padding: 10px 12px; border-radius: 4px; margin: 8px 0; }
.alert.ok { background: #e8f8ee; color: #1a7f3b; }
.alert.err { background: #fdeaea; color: #c0392b; }
.copyright-note { color: #999; font-size: 12px; margin: 8px 0 20px; }
.tabs { margin: 8px 0; border-bottom: 2px solid #1f4e9e; }
.tabs a { display: inline-block; padding: 6px 14px; }
.tabs a.on { background: #1f4e9e; color: #fff; }
.tab-city { display: block; font-size: 12px; padding: 4px 0; }
.stats { display: flex; flex-wrap: wrap; justify-content: space-around; background: #fff; border-radius: 6px; padding: 10px; font-size: 13px; color: #666; }
.stats b { color: #e4393c; }

.company-card { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eee; }
.cc-logo img, .cc-nologo { width: 56px; height: 56px; object-fit: contain; border: 1px solid #eee; display: flex; align-items: center; justify-content: center; color: #999; background: #fafafa; }
.cc-body { flex: 1; min-width: 0; }
.cc-body h3 { font-size: 15px; }
.cc-body p { margin: 2px 0; color: #555; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cc-meta span { margin-right: 10px; color: #888; font-size: 12px; }

.product-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.product-card { border: 1px solid #eee; background: #fff; border-radius: 4px; overflow: hidden; }
.pc-img { display: block; aspect-ratio: 1; background: #fafafa; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-noimg { display: flex; height: 100%; align-items: center; justify-content: center; color: #bbb; font-size: 12px; }
.pc-body { padding: 6px 8px; }
.pc-body h3 { font-size: 13px; font-weight: normal; height: 38px; overflow: hidden; }
.pc-price { color: #e4393c; font-weight: bold; margin: 2px 0; font-size: 14px; }
.pc-attrs, .pc-company { font-size: 11px; color: #888; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pc-actions { margin: 4px 0 0; }
.pc-actions a { font-size: 12px; color: #e4393c; }

.pagination { text-align: center; margin: 12px 0; font-size: 14px; }
.pagination a, .pagination .current { display: inline-block; padding: 5px 10px; margin: 2px; border: 1px solid #ddd; background: #fff; border-radius: 3px; }
.pagination .current { background: #1f4e9e; color: #fff; border-color: #1f4e9e; }
.pagination .total { display: block; color: #888; font-size: 12px; margin-top: 4px; }

.info-table th, .info-table td { padding: 6px 8px; border: 1px solid #eee; text-align: left; font-size: 13px; vertical-align: top; }
.info-table th { width: 90px; background: #fafafa; color: #666; font-weight: normal; }
.rich { line-height: 1.8; word-break: break-word; font-size: 15px; }
.rich img { max-width: 260px; width: auto; height: auto; display: block; }
.pd-top { background: #fff; border-radius: 6px; padding: 12px; margin-bottom: 10px; }
.pd-gallery { text-align: center; }
.pd-gallery img#mainImg, .pd-noimg { width: 220px; max-width: 72%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fafafa; display: block; margin: 0 auto; color: #bbb; }
.pd-thumbs { display: flex; gap: 6px; margin: 8px 0; overflow-x: auto; }
.pd-thumbs img { width: 56px; height: 56px; object-fit: cover; border: 1px solid #ddd; flex-shrink: 0; }
.pd-updated { margin: 6px 0 0; color: #888; font-size: 12px; }
.pd-info h1 { font-size: 17px; line-height: 1.45; margin: 6px 0; }
.pd-price { font-size: 22px; color: #e4393c; font-weight: bold; margin: 6px 0; }
.pd-actions { margin: 10px 0; }
.pd-company { border-top: 1px solid #eee; padding-top: 10px; margin-top: 10px; }
.pd-company h2 { font-size: 16px; }
.inquiry-box h2 { font-size: 16px; margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.form-grid label { display: flex; flex-direction: column; font-size: 13px; color: #666; }
.form-grid input, .form-grid textarea { padding: 9px 10px; border: 1px solid #ccc; border-radius: 4px; font: inherit; margin-top: 4px; font-size: 15px; }
.form-grid button { padding: 11px; background: #e4393c; color: #fff; border: 0; border-radius: 4px; font-size: 15px; }
.form-grid small.err { color: #c0392b; }
.cat-path { font-size: 12px; color: #888; }
.cat-path a { margin-right: 6px; }
.faq dt { font-weight: bold; margin-top: 6px; font-size: 14px; }
.faq dd { margin: 0; color: #666; font-size: 13px; }

.buy-table th { display: none; }
.buy-table td { display: block; padding: 2px 0; border: 0; font-size: 13px; color: #666; }
.buy-table tr { display: block; padding: 8px 0; border-bottom: 1px solid #eee; }
.buy-table td:first-child { font-size: 15px; color: #333; }
.news-list { list-style: none; margin: 0; padding: 0 12px; }
.news-list li { padding: 10px 0; border-bottom: 1px solid #eee; }
.news-list h3 { font-size: 15px; }
.news-list .summary { color: #666; font-size: 13px; margin: 4px 0; }
.news-list .meta, .article .meta { color: #999; font-size: 12px; margin: 0; }
.article h1 { font-size: 19px; }
.vip-table th, .vip-table td { padding: 6px 4px; border: 1px solid #eee; text-align: center; font-size: 12px; }
.vip-table thead th { background: #1f4e9e; color: #fff; }

.wrap.shop { padding-top: 10px; }
.shop-title { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.shop-title > div { flex: 1; min-width: 0; }
.shop-title img { width: 56px; height: 56px; object-fit: contain; }
.shop-title h1 { font-size: 18px; margin: 0; line-height: 1.35; }
.shop-badges { margin: 2px 0 0; font-size: 12px; color: #888; }
.shop-badges span { margin-left: 0; margin-right: 8px; }
.shop-search { display: flex; margin-top: 4px; flex: 1 1 100%; }
.shop-search input { flex: 1; height: 34px; border: 1px solid #ccc; border-radius: 4px 0 0 4px; padding: 0 10px; }
.shop-search button { height: 34px; padding: 0 14px; border: 0; background: #1f4e9e; color: #fff; border-radius: 0 4px 4px 0; }
.shop-nav { display: flex; overflow-x: auto; white-space: nowrap; margin-top: 8px; border-top: 1px solid #eee; }
.shop-nav a { padding: 8px 12px; flex-shrink: 0; }
.shop-nav a.on { color: #e4393c; border-bottom: 2px solid #e4393c; }
.shop-manage { font-size: 12px; text-align: right; }

.m-footer { text-align: center; color: #999; font-size: 12px; padding: 14px 10px 24px; }
.m-footer a { color: #666; margin: 0 6px; }
.shop-friends { text-align: center; color: #999; font-size: 13px; padding: 8px 12px 28px; }
.shop-friends-label { margin: 0 0 4px; }
.shop-friends p:last-child { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin: 0; }
.shop-friends a { color: #666; }
