/* ============ 全局基础样式 ============ */
:root {
  --primary: #ff6a00;
  --primary-dark: #e85d00;
  --blue: #1667ff;
  --blue-dark: #0d55e0;
  --text: #222;
  --text2: #666;
  --text3: #999;
  --bg: #f5f6f8;
  --border: #e8e8e8;
  --ok: #16a34a;
  --warn: #f59e0b;
  --danger: #dc2626;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font: 14px/1.6 "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; outline: none; }
.container { width: 1200px; max-width: 100%; padding: 0 12px; margin: 0 auto; box-sizing: border-box; }

/* ============ 顶部 ============ */
.topbar { background: #fff; border-bottom: 1px solid var(--border); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 36px; font-size: 12px; color: var(--text2); }
.topbar a { margin-left: 12px; color: var(--text2); }
.topbar a:hover { color: var(--primary); }
.header { background: #fff; }
.header .container { display: flex; align-items: center; height: 76px; gap: 30px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 700; color: var(--primary); }
.logo img { height: 38px; }
.search-box { flex: 1; display: flex; max-width: 520px; border: 2px solid var(--primary); border-radius: 4px; overflow: hidden; }
.search-box input { flex: 1; border: none; padding: 0 14px; height: 40px; }
.search-box button { background: var(--primary); color: #fff; border: none; padding: 0 26px; font-size: 15px; }
.header-nav { display: flex; gap: 4px; }
.header-nav a { padding: 8px 12px; border-radius: 4px; color: var(--text); font-weight: 500; }
.header-nav a.active, .header-nav a:hover { color: var(--primary); background: #fff4ec; }
.main-nav { background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0,0,0,.03); }
.main-nav .container { display: flex; gap: 6px; padding: 9px 12px; align-items: center; flex-wrap: wrap; }
.main-nav a { padding: 7px 16px; line-height: 1.45; border-radius: 999px; font-weight: 600; color: var(--text2); transition: color .18s, background .18s, box-shadow .18s; }
.main-nav a:hover { color: var(--primary); background: #fff1e6; }
.main-nav a.active { color: #fff !important; background: linear-gradient(135deg, #ff6a00, #ff8f3c); box-shadow: 0 4px 12px rgba(255,106,0,.32); }
.main-nav a.nav-external { color: var(--blue); font-weight: 600; }
.main-nav a.nav-external:hover { color: var(--blue); background: #e8f0ff; }
.header-nav a { border-radius: 999px; }

/* ============ 通用组件 ============ */
.btn { display: inline-block; border: none; border-radius: 4px; padding: 8px 18px; font-size: 14px; color: #fff; background: var(--primary); }
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn.blue { background: var(--blue); } .btn.blue:hover { background: var(--blue-dark); }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn.danger { background: var(--danger); }
.btn.ok { background: var(--ok); }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn.lg { padding: 12px 34px; font-size: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 12px; background: #fff1e6; color: var(--primary); }
.tag.blue { background: #e8f0ff; color: var(--blue); }
.tag.green { background: #e6f7ea; color: var(--ok); }
.tag.gray { background: #f0f0f0; color: var(--text3); }
.card { background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.section { margin: 18px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-head h2 { font-size: 20px; border-left: 4px solid var(--primary); padding-left: 10px; }
.section-head .more { color: var(--text3); font-size: 13px; }

/* 面包屑 */
.crumb { padding: 12px 0; color: var(--text3); font-size: 13px; }
.crumb a { color: var(--text3); } .crumb a:hover { color: var(--primary); }

/* 分页 */
.pagination { text-align: center; padding: 20px 0; }
.pagination .pg { display: inline-block; padding: 6px 12px; margin: 0 3px; background: #fff; border: 1px solid var(--border); border-radius: 3px; color: var(--text2); }
.pagination .pg.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .pg-dots { margin: 0 4px; color: var(--text3); }

/* 表单 */
.form { background: #fff; border-radius: 8px; padding: 24px; }
.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-item label .req { color: var(--danger); margin-left: 2px; }
.form-item .tip { color: var(--text3); font-size: 12px; margin-top: 4px; }
.form-input, .form-select, .form-textarea { width: 100%; border: 1px solid var(--border); border-radius: 4px; padding: 9px 12px; background: #fff; transition: border .2s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-row { display: flex; gap: 16px; }
.form-row .form-item { flex: 1; }
.checkbox-line { display: flex; align-items: center; gap: 6px; }
.checkbox-line input { width: auto; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; font-size: 13px; }
.table th { background: #fafafa; font-weight: 600; color: var(--text2); white-space: nowrap; }
.table tr:hover td { background: #fafcff; }

/* 提示 */
.alert { padding: 10px 14px; border-radius: 4px; margin-bottom: 14px; font-size: 13px; }
.alert.error { background: #fdeaea; color: var(--danger); border: 1px solid #f5c2c2; }
.alert.ok { background: #e6f7ea; color: var(--ok); border: 1px solid #b7e4c3; }
.alert.warn { background: #fff8e6; color: #b45309; border: 1px solid #f3d9a4; }

/* 产品卡 */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.product-card { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); transition: box-shadow .2s; }
.product-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.product-card .pic { height: 170px; background: #f7f7f7; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pic .noimg { color: #ccc; font-size: 13px; }
.product-card .info { padding: 10px 12px 12px; }
.product-card .title { height: 40px; overflow: hidden; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-card .price { color: var(--danger); font-weight: 700; margin-top: 6px; }
.product-card .company { color: var(--text3); font-size: 12px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 企业卡 */
.company-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.company-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 14px; display: flex; gap: 12px; }
.company-card .logo { width: 56px; height: 56px; border-radius: 6px; background: #f2f2f2; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 22px; font-weight: 700; overflow: hidden; }
.company-card .logo img { width: 100%; height: 100%; object-fit: cover; }
.company-card .name { font-weight: 600; margin-bottom: 4px; }
.company-card .desc { color: var(--text3); font-size: 12px; height: 32px; overflow: hidden; }
.company-card .meta { color: var(--text3); font-size: 12px; margin-top: 6px; }

/* 资讯列表 */
.news-list .item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.news-list .thumb { width: 160px; height: 100px; border-radius: 6px; background: #f2f2f2; overflow: hidden; flex-shrink: 0; display:flex;align-items:center;justify-content:center;color:#ccc; }
.news-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-list h3 { font-size: 16px; margin-bottom: 6px; }
.news-list .summary { color: var(--text2); font-size: 13px; height: 40px; overflow: hidden; }
.news-list .meta { color: var(--text3); font-size: 12px; margin-top: 8px; }

/* 文章正文 */
.article-body { background: #fff; padding: 30px; border-radius: 8px; line-height: 1.9; }
.article-body h1 { font-size: 24px; margin-bottom: 12px; }
.article-body h2 { font-size: 19px; margin: 20px 0 10px; }
.article-body h3 { font-size: 16px; margin: 16px 0 8px; }
.article-body p { margin: 10px 0; }
.article-body img { border-radius: 4px; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body table { border-collapse: collapse; width: 100%; }
.article-body td, .article-body th { border: 1px solid var(--border); padding: 6px 10px; }
.article-body blockquote { border-left: 4px solid var(--border); padding-left: 12px; color: var(--text2); margin: 10px 0; }

/* 页脚 */
.footer { background: #2b2f36; color: #9aa0a8; margin-top: 30px; padding: 30px 0 0; font-size: 13px; }
.footer h4 { color: #dfe3e8; font-size: 14px; margin-bottom: 10px; }
.footer a { color: #9aa0a8; margin-right: 10px; line-height: 2; }
.footer a:hover { color: #fff; }
.footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 20px; }
.footer .copyright { border-top: 1px solid #3a3f47; text-align: center; padding: 14px 0; font-size: 12px; }

/* ============ 会员中心布局 ============ */
.member-wrap { display: flex; gap: 16px; margin: 16px auto; min-height: 600px; align-items: flex-start; }
.member-side { width: 200px; flex-shrink: 0; background: #fff; border-radius: 8px; padding: 10px 0; height: fit-content; position: sticky; top: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.member-side .side-head { padding: 14px 16px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.member-side .side-head b { color: var(--blue); font-size: 15px; }
.member-side .side-head span { color: var(--text3); font-size: 12px; margin-left: 6px; }
.member-side a { display: flex; align-items: center; gap: 9px; padding: 11px 18px; color: var(--text2); font-size: 14px; border-left: 3px solid transparent; transition: all .15s; }
.member-side a .mi { width: 20px; text-align: center; font-size: 15px; }
.member-side a.active, .member-side a:hover { background: linear-gradient(90deg,#eef4ff,#fff); color: var(--blue); border-left-color: var(--blue); font-weight: 600; }
.member-main { flex: 1; min-width: 0; }
.member-main .page-title { font-size: 20px; margin-bottom: 14px; }
.table-wrap { background: #fff; border-radius: 8px; padding: 6px 14px 14px; overflow-x: auto; }
.stat-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-cards .card { padding: 16px; text-align: center; position: relative; overflow: hidden; }
.stat-cards .card:after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--sc, var(--blue)); }
.stat-cards .num { font-size: 24px; font-weight: 700; color: var(--sc, var(--blue)); }
.stat-cards .label { color: var(--text3); font-size: 12px; margin-top: 4px; }
.stat-cards .card:nth-child(1) { --sc: #1667ff; }
.stat-cards .card:nth-child(2) { --sc: #e11d48; }
.stat-cards .card:nth-child(3) { --sc: #7c3aed; }
.stat-cards .card:nth-child(4) { --sc: #0ea569; }
.stat-cards .card:nth-child(5) { --sc: #ff6a00; }
.empty-state { text-align: center; padding: 46px 16px; color: var(--text3); }
.empty-state .ico { font-size: 40px; margin-bottom: 10px; }

/* 后台 */
.admin-wrap { display: flex; min-height: 100vh; background: #f0f2f5; }
.admin-side { width: 210px; background: #001529; color: rgba(255,255,255,.65); flex-shrink: 0; }
.admin-side .logo { color: #fff; font-size: 17px; padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); display:block; }
.admin-side .group { padding: 8px 0; }
.admin-side .group-title { padding: 8px 18px; font-size: 12px; color: rgba(255,255,255,.35); }
.admin-side a { display: block; padding: 10px 22px; color: rgba(255,255,255,.65); }
.admin-side a.active, .admin-side a:hover { background: var(--blue); color: #fff; }
.admin-main { flex: 1; min-width: 0; padding: 18px; }
.admin-topbar { background: #fff; padding: 12px 18px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.admin-table-wrap { background: #fff; border-radius: 8px; padding: 6px 14px 14px; overflow-x: auto; }
.dash-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 16px; }
.dash-cards .card { padding: 16px; }
.dash-cards .num { font-size: 22px; font-weight: 700; }
.dash-cards .label { color: var(--text3); font-size: 12px; }

/* 弹窗 */
.modal-mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 60px 0; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 8px; width: 560px; max-width: 92%; padding: 22px; }
.modal h3 { margin-bottom: 14px; }
.modal .close { float: right; border: none; background: none; font-size: 20px; color: var(--text3); }

/* 认证页 */
.auth-page { max-width: 500px; margin: 50px auto; background: #fff; border-radius: 12px; padding: 42px 44px; box-shadow: 0 4px 24px rgba(0,0,0,.07); }
/* 登录/注册页双栏布局 */
.auth-wrap { display: flex; gap: 30px; width: 1160px; max-width: 96%; margin: 48px auto; align-items: stretch; box-sizing: border-box; }
.auth-side { flex: 1; min-width: 0; background: linear-gradient(160deg, #fff4ea 0%, #f4f8ff 100%); border-radius: 16px; padding: 38px 36px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.auth-brand .auth-logo { font-size: 30px; font-weight: 800; color: var(--primary); letter-spacing: .5px; }
.auth-brand .auth-slogan { font-size: 21px; font-weight: 700; margin-top: 8px; }
.auth-brand .auth-sublogin { color: var(--text3); font-size: 14px; margin-top: 6px; }
.auth-carousel { position: relative; }
.ad-card.auth { min-height: 190px; padding: 26px; border-radius: 12px; }
.ad-card.auth b { font-size: 21px; }
.ad-card.auth .ad-sub { font-size: 14px; }
.auth-stats { display: flex; gap: 12px; background: #fff; border-radius: 12px; padding: 18px 12px; box-shadow: 0 1px 8px rgba(0,0,0,.05); }
.auth-stats > div { flex: 1; text-align: center; }
.auth-stats b { display: block; font-size: 24px; color: var(--primary); }
.auth-stats span { font-size: 12px; color: var(--text3); }
.auth-benefits { list-style: none; margin: 0; padding: 0; color: var(--text2); font-size: 14px; line-height: 2.1; }
.auth-wrap .auth-page { margin: 0; width: 500px; max-width: 100%; flex-shrink: 0; align-self: center; }
@media (max-width: 900px) {
  .auth-wrap { flex-direction: column; margin: 16px auto; gap: 14px; }
  .auth-side { padding: 20px; gap: 12px; }
  .auth-brand .auth-slogan { font-size: 16px; }
  .auth-stats { padding: 10px 6px; }
  .auth-benefits { display: none; }
  .auth-wrap .auth-page { width: 100%; padding: 26px 20px; }
  .ad-card.auth { min-height: 96px; padding: 14px 16px; }
  .ad-card.auth b { font-size: 15px; }
}
.auth-page h1 { text-align: center; font-size: 22px; margin-bottom: 24px; }
.auth-page .form-item { margin-bottom: 18px; }
.auth-page .btn { width: 100%; padding: 11px; font-size: 15px; }
.auth-page .foot { text-align: center; margin-top: 16px; color: var(--text3); }
.auth-page .foot a { color: var(--primary); }
.captcha-box { display: flex; gap: 10px; align-items: center; background: #f7f8fa; border-radius: 6px; padding: 8px 12px; }
.captcha-box b { font-size: 16px; letter-spacing: 1px; }
.captcha-box input { width: 110px; border: 1px solid var(--border); border-radius: 4px; padding: 7px 8px; }
.captcha-box .refresh { border: none; background: none; color: var(--blue); font-size: 12px; white-space: nowrap; }
.captcha-img { height: 44px; width: 138px; border-radius: 4px; cursor: pointer; border: 1px solid var(--border); object-fit: cover; flex-shrink: 0; }

/* 编辑器工具条(简化) */
.editor-toolbar { border: 1px solid var(--border); border-bottom: none; border-radius: 4px 4px 0 0; padding: 6px 8px; background: #fafafa; display: flex; gap: 4px; flex-wrap: wrap; }
.editor-toolbar button { border: 1px solid transparent; background: none; padding: 4px 8px; border-radius: 3px; font-size: 13px; color: var(--text2); }
.editor-toolbar button:hover { background: #eee; }
.editor-area { border: 1px solid var(--border); border-radius: 0 0 4px 4px; min-height: 300px; padding: 12px; background: #fff; overflow-y: auto; }
.editor-area:focus { border-color: var(--primary); }
.editor-area[data-empty="true"]:empty:before { content: attr(data-placeholder); color: #aaa; }

/* 图片上传块 */
.upload-box { width: 120px; height: 120px; border: 1px dashed var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--text3); cursor: pointer; position: relative; overflow: hidden; background: #fafafa; }
.upload-box:hover { border-color: var(--primary); color: var(--primary); }
.upload-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload-list { display: flex; gap: 8px; flex-wrap: wrap; }
.upload-list .upload-box { width: 96px; height: 96px; }
.upload-list .del { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.55); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; line-height: 18px; font-size: 12px; z-index: 2; }

/* 详情页 */
.detail-wrap { display: flex; gap: 16px; margin-top: 14px; }
.detail-main { flex: 1; min-width: 0; }
.detail-side { width: 300px; flex-shrink: 0; }
.spec-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.spec-table td { border: 1px solid var(--border); padding: 8px 12px; font-size: 13px; }
.spec-table td:first-child { background: #fafafa; width: 140px; color: var(--text2); }
.contact-card { background: #fff; border-radius: 8px; padding: 18px; }
.inquiry-form input, .inquiry-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 4px; padding: 8px 10px; margin-bottom: 8px; }

/* 分类区块(首页) */
.cat-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-block { background: #fff; border-radius: 8px; padding: 16px; }
.cat-block h3 { font-size: 16px; margin-bottom: 10px; display:flex; justify-content: space-between; align-items: center;}
.cat-block h3 a { color: inherit; } .cat-block h3 a:hover { color: var(--primary); }
.cat-block .subs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 10px; }
.cat-block .subs a { color: var(--text2); font-size: 12px; }
.cat-block .subs a:hover { color: var(--primary); }
.cat-block ul { list-style: none; }
.cat-block li { padding: 6px 0; border-top: 1px dashed var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-block li .price { color: var(--danger); float: right; font-size: 12px; }

/* 广告卡 */
.ad-card { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; border-radius: 8px; padding: 20px 24px; color: #fff; overflow: hidden; text-decoration: none; }
.ad-card:hover { color: #fff; filter: brightness(1.06); }
.ad-card .ad-tag { position: absolute; top: 8px; right: 8px; font-size: 11px; background: rgba(255,255,255,.22); border-radius: 3px; padding: 1px 6px; font-style: normal; }
.ad-card b { font-size: 19px; letter-spacing: .5px; }
.ad-card .ad-sub { font-size: 13px; opacity: .92; }
.ad-card .ad-go { font-style: normal; font-size: 12px; margin-top: 4px; opacity: .85; }
.ad-card.banner { min-height: 120px; }
.ad-card.mid { min-height: 130px; }
.ad-card.side { min-height: 120px; padding: 16px 18px; }
.ad-card.side b { font-size: 16px; }
.ad-card.has-img { padding: 0; display: block; }
.ad-card.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 100px; }
.ad-card.vertical { min-height: 160px; flex: 1; padding: 18px; }
.ad-card.vertical-rail { min-height: 300px; padding: 22px; }
.article-ad-rail { margin-top: 14px; }
.article-ad-rail .ad-card b { font-size: 17px; }
.ad-card.vertical b { font-size: 16px; }
.ad-card.vertical .ad-sub { font-size: 12px; }
/* 资讯四栏左侧广告栏 */
.news-layout { display: grid; grid-template-columns: 1fr; gap: 14px; }
.news-layout.has-rail { grid-template-columns: 200px 1fr; }
.news-layout .ad-rail { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.news-detail-layout { display: block; }
.news-detail-layout.has-rail { display: grid; grid-template-columns: 180px 1fr; gap: 14px; align-items: start; }
.news-detail-layout .ad-rail { display: flex; flex-direction: column; gap: 12px; min-width: 0; position: sticky; top: 10px; }
.ad-carousel { position: relative; border-radius: 8px; overflow: hidden; }
.ad-carousel .ad-slide { display: none; }
.ad-carousel .ad-slide.on { display: block; animation: fadeAd .5s; }
@keyframes fadeAd { from { opacity: .3 } to { opacity: 1 } }
.ad-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.ad-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.ad-dots .dot.on { background: #fff; }

/* 占位图 */
.ph { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 网格子项防撑破(min-content 兜底) */
.news-grid-4 > div,
.product-grid > *,
.company-grid > *,
.cat-blocks > div { min-width: 0; max-width: 100%; }
.news-grid-4 .card { overflow: hidden; }
.news-grid-4 ul { overflow: hidden; }

/* 汉堡按钮(桌面隐藏) */
.nav-toggle { display: none; width: 40px; height: 36px; border: 1px solid var(--border); border-radius: 4px; background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; flex-shrink: 0; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text2); border-radius: 2px; transition: all .2s; }

/* 响应式 */

@media (max-width: 900px) {
  .product-grid, .company-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-blocks { grid-template-columns: 1fr; }
  .detail-wrap { flex-direction: column; }
  .detail-side { width: auto; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .member-wrap { flex-direction: column; }
  .member-side { width: auto; }
  .admin-wrap { flex-direction: column; }
  .admin-side { width: auto; }
  .dash-cards { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr; }
  .header .container { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .header .search-box { max-width: none; flex: 1 1 100%; order: 3; }
  .logo { flex-shrink: 0; }
  .header-nav { display: none; }
  /* 汉堡菜单 */
  .nav-toggle { display: flex; margin-left: auto; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* 主导航变为下拉面板 */
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 90; background: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.12); border-top: 1px solid var(--border); }
  body.nav-open .main-nav { display: block; }
  .main-nav .container { display: flex; flex-direction: column; height: auto; padding: 12px 16px 16px; gap: 8px; overflow: visible; }
  .main-nav a { display: block; width: 100%; text-align: center; line-height: 1.4; padding: 11px 16px; white-space: nowrap; border-bottom: none; border-radius: 10px; }
  .main-nav a.active { color: #fff !important; background: linear-gradient(135deg, #ff6a00, #ff8f3c); box-shadow: none; border-radius: 10px; }
  .main-nav .container { overflow-x: visible; justify-content: stretch; }
  .header { position: relative; }
  .topbar .container { height: auto; padding: 6px 0; flex-wrap: wrap; gap: 4px; }
  .news-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .news-layout.has-rail { grid-template-columns: 1fr; }
  .news-layout .ad-rail, .news-detail-layout .ad-rail { flex-direction: row; position: static; }
  .news-detail-layout.has-rail { grid-template-columns: 1fr; }
  .news-layout .ad-card.vertical, .news-detail-layout .ad-card.vertical { min-height: 100px; }
  .home-hero { flex-direction: column; align-items: flex-start !important; gap: 10px; }
}

@media (max-width: 600px) {
  .product-grid, .company-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card .pic { height: 120px; }
  .news-grid-4 { grid-template-columns: 1fr !important; }
  .article-body { padding: 16px; }
  .auth-page { margin: 16px auto; padding: 22px 18px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .form-row { flex-wrap: wrap; }
  .form-row .form-item { flex: 1 1 45%; }
  .dash-cards { grid-template-columns: repeat(2, 1fr); }
  .detail-wrap > .detail-side { width: auto; }
  .member-side { display: flex; overflow-x: auto; padding: 0 4px; gap: 2px; }
  .member-side .side-head { display: none; }
  .member-side a { white-space: nowrap; padding: 9px 12px; border-right: none; border-bottom: 3px solid transparent; border-left: none; }
  .member-side a.active { border-right: none; border-left: none; border-bottom-color: var(--blue); background: #eef4ff; }
  .admin-main { padding: 10px; }
  .table th, .table td { padding: 8px 8px; font-size: 12px; }
  .ad-card.banner { min-height: 96px; padding: 14px 16px; }
  .ad-card b { font-size: 16px; }
  .footer { padding-top: 20px; }
  .topbar .container { font-size: 12px; }
}

/* 大屏优化 */
@media (min-width: 1600px) {
  .container { width: 1360px; }
}

/* 金牌企业展板 + 产品滚动(资讯列表侧栏) */
.gold-panel, .gold-products { margin-top: 14px; padding: 14px; }
.gold-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.gold-panel-head h3 { font-size: 15px; margin: 0; }
.gold-panel-head a { font-size: 12px; color: var(--text3); }
.gold-company { display: flex; gap: 9px; padding: 8px 0; border-bottom: 1px dashed var(--border); align-items: center; }
.gold-company:last-child { border-bottom: none; }
.gold-company .gc-logo { width: 40px; height: 40px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #f3f3f3; display: block; }
.gold-company .gc-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gold-company .gc-info { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gold-company .gc-info b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gold-company .gc-info i { font-style: normal; font-size: 11px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gold-company .gc-info em { font-style: normal; font-size: 11px; color: var(--text3); }
.gold-products { padding-bottom: 8px; }
.gold-scroll { height: 232px; overflow: hidden; position: relative; }
.gold-scroll:after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: linear-gradient(transparent, #fff); pointer-events: none; }
.gold-scroll ul { list-style: none; margin: 0; padding: 0; animation: goldScroll 26s linear infinite; }
.gold-scroll:hover ul { animation-play-state: paused; }
.gold-scroll li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.gold-scroll li a { display: flex; gap: 8px; align-items: center; }
.gp-thumb { width: 40px; height: 40px; border-radius: 5px; overflow: hidden; flex-shrink: 0; display: block; }
.gp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-info { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gp-info b { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-price { font-style: normal; font-size: 12px; color: var(--danger); font-weight: 700; }
@keyframes goldScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .gold-scroll ul { animation: none; } }
@media (max-width: 900px) { .gold-scroll { height: 190px; } }

/* 图片兜底占位(低调) */
img.img-nopic { object-fit: contain !important; background: #f4f5f7; filter: none !important; }
.article-body img { max-width: 100%; height: auto; }
.article-body img.img-nopic { max-height: 260px; opacity: .9; }
.product-card .pic img.img-nopic, .gp-thumb img.img-nopic, .gc-logo img.img-nopic { object-fit: contain; background: #f4f5f7; padding: 4px; }
