/* ============ 新系统前台样式 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font: 14px/1.6 "Microsoft YaHei", "PingFang SC", Arial, sans-serif; color: #333; background: #f5f7fa; }
a { color: #1a66b3; text-decoration: none; }
a:hover { color: #e33; }
ul { list-style: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 10px; }
.main { min-height: 500px; padding: 15px 10px 30px; }
.muted { color: #999; font-size: 12px; }
.red { color: #e33 !important; }
.bold { font-weight: 700; }
.ok { color: #2a0; }
.err { color: #e33; }
.mt { margin-top: 25px; }

/* 顶栏 */
.topbar { background: #f0f2f5; border-bottom: 1px solid #e5e7eb; font-size: 12px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { margin-left: 10px; color: #666; }
.topbar a:first-child { margin-left: 0; }
.header { background: #fff; padding: 15px 0; }
.header .wrap { display: flex; align-items: center; gap: 20px; }
.logo { font-size: 26px; font-weight: 800; color: #d43; white-space: nowrap; }
.search { flex: 1; display: flex; max-width: 560px; }
.search input { flex: 1; border: 2px solid #1a66b3; border-right: 0; padding: 0 12px; height: 38px; font-size: 14px; outline: none; }
.search button { width: 90px; background: #1a66b3; color: #fff; border: 0; height: 38px; cursor: pointer; font-size: 15px; }
.btn-post { background: #e8611c; color: #fff !important; padding: 9px 18px; border-radius: 3px; font-weight: 700; white-space: nowrap; }
.nav { background: #1a66b3; }
.nav .wrap { display: flex; overflow-x: auto; }
.nav a { color: #dbe7f5; padding: 0 18px; line-height: 42px; white-space: nowrap; }
.nav a:hover, .nav a.cur { background: rgba(255,255,255,.15); color: #fff; }

/* 布局盒子 */
.box { background: #fff; border: 1px solid #e8eaee; border-radius: 4px; padding: 15px; margin-bottom: 15px; }
.box-title { font-size: 16px; border-left: 4px solid #1a66b3; padding-left: 10px; margin-bottom: 12px; font-weight: 600; }
.box-title .more { float: right; font-size: 12px; font-weight: 400; color: #999; }

/* 首页 */
.home-grid { display: grid; grid-template-columns: 240px 1fr 280px; gap: 15px; }
.cat-list li { border-bottom: 1px dashed #eee; padding: 8px 0; }
.cat-list li:last-child { border-bottom: 0; }
.cat-main { font-weight: 600; color: #333; display: inline-block; margin-bottom: 4px; }
.cat-main em { font-style: normal; color: #999; font-size: 12px; margin-left: 6px; }
.cat-subs { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.cat-subs a { color: #666; font-size: 12px; }
.focus { position: relative; padding: 0; overflow: hidden; height: 260px; }
.focus-item { display: none; position: absolute; inset: 0; }
.focus-item.cur { display: block; }
.focus-item img { width: 100%; height: 260px; object-fit: cover; }
.focus-title { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.45); color: #fff; padding: 6px 12px; font-size: 13px; }
.focus-dots { position: absolute; right: 12px; bottom: 40px; z-index: 2; }
.focus-dots i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.6); margin-left: 6px; cursor: pointer; }
.focus-dots i.cur { background: #fff; }
.info-list li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed #f0f0f0; }
.info-list .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #333; }
.mini-list li { padding: 6px 0; border-bottom: 1px dashed #f0f0f0; display: flex; align-items: center; gap: 8px; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #444; }
.rank { width: 18px; height: 18px; background: #e5e7eb; color: #666; font-size: 12px; text-align: center; line-height: 18px; border-radius: 2px; font-style: normal; flex: none; }
.mini-list li:nth-child(-n+3) .rank { background: #e8611c; color: #fff; }

/* 列表页 */
.crumbs { padding: 10px 2px; color: #999; font-size: 13px; }
.crumbs a { color: #1a66b3; }
.list-grid, .view-grid { display: grid; grid-template-columns: 1fr 280px; gap: 15px; }
.info-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #eee; }
.info-item .thumb { flex: none; }
.info-item .thumb img { width: 140px; height: 100px; object-fit: cover; border-radius: 3px; }
.info-body { flex: 1; min-width: 0; }
.info-body .t { font-size: 16px; color: #1a66b3; display: inline-block; margin-bottom: 4px; }
.info-body .meta { color: #999; font-size: 12px; display: flex; gap: 14px; flex-wrap: wrap; }
.info-body .desc { color: #666; font-size: 13px; margin-top: 4px; }
.tag { font-size: 11px; padding: 1px 5px; border-radius: 2px; margin-left: 6px; }
.tag.top { background: #e8611c; color: #fff; }
.area-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.area-filter a { padding: 3px 10px; border: 1px solid #e5e7eb; border-radius: 3px; color: #555; font-size: 13px; }
.area-filter a.cur { background: #1a66b3; color: #fff; border-color: #1a66b3; }
.tab-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tab-row a { padding: 4px 12px; background: #f0f2f5; border-radius: 3px; color: #555; }
.tab-row a.cur { background: #1a66b3; color: #fff; }
.news-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #eee; }
.news-list .thumb img { width: 160px; height: 100px; object-fit: cover; border-radius: 3px; }
.empty { justify-content: center; padding: 30px 0; }

/* 详情页 */
.view-title { font-size: 22px; margin-bottom: 8px; }
.view-meta { color: #999; font-size: 12px; display: flex; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; margin-bottom: 15px; }
.view-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 15px; }
.view-imgs img { width: 100%; height: 160px; object-fit: cover; border-radius: 3px; }
.view-content { line-height: 1.9; color: #444; word-break: break-all; }
.view-content.rich img { max-width: 100%; height: auto; }
.view-contact { background: #fffaf3; border: 1px solid #f5e2c8; border-radius: 4px; padding: 15px; margin: 18px 0; }
.view-contact h3 { font-size: 15px; margin-bottom: 8px; color: #b26a00; }
.view-contact li { padding: 3px 0; color: #555; }
.view-actions { display: flex; gap: 10px; padding-top: 10px; border-top: 1px dashed #eee; }

/* 按钮 */
.btn { display: inline-block; background: #1a66b3; color: #fff !important; border: 0; border-radius: 3px; padding: 8px 20px; font-size: 14px; cursor: pointer; }
.btn:hover { background: #155a9e; }
.btn.ghost { background: #fff; color: #666 !important; border: 1px solid #ddd; }
.btn.ghost:hover { border-color: #1a66b3; color: #1a66b3 !important; }
.btn-lg { padding: 11px 34px; font-size: 15px; }
.btn-block { display: block; text-align: center; width: 100%; }
.btn.sm { padding: 3px 10px; font-size: 12px; }

/* 表单 */
.form-box { max-width: 800px; }
.form-box.narrow { max-width: 460px; margin: 30px auto; }
.form-box h1.box-title { font-size: 20px; margin-bottom: 20px; }
.row, .row3 { display: flex; align-items: center; margin-bottom: 14px; gap: 6px; flex-wrap: wrap; }
.row3 > div { flex: 1; min-width: 160px; display: flex; align-items: center; gap: 6px; }
.row3 label, .row label { width: 90px; flex: none; text-align: right; color: #555; }
.req { color: #e33; font-style: normal; }
input[type=text], input[type=password], textarea, select { border: 1px solid #d9dce1; border-radius: 3px; padding: 8px 10px; font-size: 14px; outline: none; flex: 1; min-width: 0; font-family: inherit; }
input:focus, textarea:focus { border-color: #1a66b3; }
textarea { resize: vertical; }
.casc { flex: 1; display: flex; gap: 8px; }
.casc select { min-width: 150px; }
.cap-wrap { flex: 0 0 auto; }
img.captcha { height: 38px; cursor: pointer; border-radius: 3px; border: 1px solid #d9dce1; }
.tip { margin: 6px 0 0 90px; }
.msg { min-height: 20px; font-size: 13px; padding-left: 90px; }
.msg.ok { color: #2a0; }
.msg.err { color: #e33; }
.auth-box { max-width: 420px; margin: 40px auto; }
.auth-box .row label { width: 70px; }
.auth-box .msg, .auth-box .tip { padding-left: 70px; }
.up-area { flex: 1; }
.up-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.up-item { position: relative; width: 90px; height: 90px; border-radius: 3px; overflow: hidden; border: 1px solid #e5e7eb; }
.up-item img { width: 100%; height: 100%; object-fit: cover; }
.up-item .rm { position: absolute; top: 0; right: 0; background: rgba(0,0,0,.5); color: #fff; width: 20px; height: 20px; text-align: center; line-height: 20px; cursor: pointer; font-size: 12px; }
.up-progress { font-size: 12px; color: #999; margin-top: 4px; }

/* 评论 / 举报 */
.comment-list li { border-bottom: 1px dashed #eee; padding: 10px 0; }
.cm-head { margin-bottom: 4px; }
.cm-body { color: #444; }
.comment-form { margin-top: 12px; }
.comment-form .row label { display: none; }
.report-box { max-width: 600px; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border: 1px solid #eef0f3; padding: 8px 10px; text-align: left; font-size: 13px; }
.table th { background: #f7f8fa; color: #555; font-weight: 600; }

/* 分页 */
.pager { text-align: center; padding: 15px 0 5px; }
.pager a { display: inline-block; padding: 5px 12px; border: 1px solid #e5e7eb; margin: 0 3px; border-radius: 3px; color: #555; }
.pager a.cur { background: #1a66b3; color: #fff; border-color: #1a66b3; }
.pager span { color: #999; margin: 0 2px; }

/* 会员中心 */
.member-grid { display: grid; grid-template-columns: 220px 1fr; gap: 15px; }
.me-head { text-align: center; padding: 10px 0 15px; border-bottom: 1px solid #f0f0f0; }
.me-name { font-size: 17px; font-weight: 700; }
.me-nav li a { display: block; padding: 10px 15px; color: #555; border-left: 3px solid transparent; }
.me-nav li a.cur, .me-nav li a:hover { background: #f0f6fc; color: #1a66b3; border-left-color: #1a66b3; }
.up-preview { width: 60px; height: 60px; object-fit: cover; border-radius: 3px; margin-right: 10px; }
.space-head { display: flex; gap: 15px; align-items: center; margin-bottom: 15px; }
.space-logo { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; border: 1px solid #eee; }
.contact-list li { padding: 5px 0; color: #555; }
.notfound { text-align: center; padding: 60px 0; }
.notfound h1 { font-size: 80px; color: #d9dce1; }
.notfound .btn { margin-top: 15px; }

/* 页脚 */
.footer { background: #2b303b; color: #8b93a3; margin-top: 30px; padding: 20px 0; font-size: 13px; }
.footer a { color: #aeb6c4; }
.footer .flinks { border-bottom: 1px solid #3a404d; padding-bottom: 10px; margin-bottom: 12px; line-height: 2; }

/* 响应式 */
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  .list-grid, .view-grid, .member-grid { grid-template-columns: 1fr; }
  .header .wrap { flex-wrap: wrap; }
  .search { order: 3; min-width: 100%; }
  .view-imgs { grid-template-columns: repeat(2, 1fr); }
  .tip, .msg { padding-left: 0; }
  .row label, .row3 label { width: auto; text-align: left; }
  .info-item .thumb img { width: 110px; height: 82px; }
  .news-list .thumb img { width: 120px; height: 80px; }
  .focus, .focus-item img { height: 200px; }
  .casc { flex-wrap: wrap; }
  .casc select { min-width: 0; flex: 1 1 45%; }
}

@media (max-width: 480px) {
  body { font-size: 13px; }
  .logo { font-size: 20px; }
  .header .wrap { gap: 10px; }
  .header { padding: 10px 0; }
  .btn-post { padding: 8px 12px; font-size: 13px; }
  .search input { height: 36px; }
  .search button { width: 70px; height: 36px; }
  .nav a { padding: 0 12px; line-height: 38px; }
  .box { padding: 12px; }
  .view-title { font-size: 18px; }
  .info-body .t { font-size: 15px; }
  .info-item .thumb img { width: 88px; height: 64px; }
  .news-list li { flex-direction: column; }
  .news-list .thumb img { width: 100%; height: 150px; }
  .view-imgs { grid-template-columns: repeat(2, 1fr); }
  .view-imgs img { height: 120px; }
  .focus, .focus-item img { height: 170px; }
  /* 16px 输入字号避免 iOS 聚焦自动放大 */
  input[type=text], input[type=password], textarea, select { font-size: 16px; padding: 9px 10px; }
  .form-box { max-width: 100%; }
  .form-box.narrow { margin: 12px auto; }
  .row3 > div { min-width: 100%; }
  .btn-lg { width: 100%; text-align: center; }
  .auth-box { margin: 15px auto; }
  .member-grid .me-nav nav { display: flex; flex-wrap: wrap; }
  .member-grid .me-nav li a { border-left: 0; border-bottom: 2px solid transparent; padding: 8px 10px; }
  .member-grid .me-nav li a.cur { border-bottom-color: #1a66b3; }
  .pager a { padding: 4px 9px; }
  .space-head { flex-direction: column; text-align: center; }
}

/* ============ 会员名片展示 ============ */
.m-hero { background: linear-gradient(135deg, #1a66b3, #2f8be0); color: #fff; border-radius: 8px; padding: 42px 20px 34px; text-align: center; margin-bottom: 16px; }
.m-hero h1 { font-size: 26px; margin: 0 0 8px; }
.m-hero-sub { opacity: .92; margin: 0 0 18px; font-size: 14px; }
.m-search { display: flex; max-width: 520px; margin: 0 auto; background: #fff; border-radius: 6px; overflow: hidden; }
.m-search input { flex: 1; min-width: 0; border: 0; padding: 11px 14px; font-size: 15px; outline: none; }
.m-search button { border: 0; background: #f5a623; color: #fff; padding: 0 22px; font-size: 15px; cursor: pointer; }
.m-hero-stat { margin: 14px 0 0; font-size: 13px; opacity: .95; }
.m-hero-stat b { font-size: 17px; color: #ffd37a; }
.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.m-card { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid #e8ebf0; border-radius: 8px; padding: 14px; transition: .15s; }
.m-card:hover { box-shadow: 0 4px 14px rgba(26, 102, 179, .12); transform: translateY(-2px); }
.m-logo { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; display: block; flex: none; }
.m-logo-txt { display: flex; align-items: center; justify-content: center; background: #e8f1fa; color: #1a66b3; font-size: 26px; font-weight: 700; }
.m-info { flex: 1; min-width: 0; }
.m-name { font-size: 15px; margin: 0 0 4px; color: #222; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-intro { font-size: 12px; color: #777; margin: 0 0 4px; line-height: 1.5; height: 36px; overflow: hidden; }
.m-line { font-size: 12px; color: #999; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-line.tel { color: #1a66b3; }
.m-filter { display: flex; gap: 8px; margin-bottom: 14px; align-items: center; }
.m-filter input { flex: 0 1 320px; border: 1px solid #d9dce1; border-radius: 4px; padding: 8px 10px; }
.m-banner { margin: -20px -20px 16px; max-height: 220px; overflow: hidden; border-radius: 8px 8px 0 0; }
.m-banner img { width: 100%; object-fit: cover; display: block; }
.m-empty { padding: 20px 0; }

/* 产品展示 */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.album-item { display: block; border: 1px solid #e8ebf0; border-radius: 6px; overflow: hidden; background: #fff; }
.album-item:hover { border-color: #1a66b3; }
.album-item img { width: 100%; height: 120px; object-fit: cover; display: block; background: #f0f2f5; }
.album-title { display: block; padding: 6px 8px 2px; font-size: 12px; color: #444; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-price { display: block; padding: 0 8px 8px; font-size: 12px; color: #e33; }
@media (max-width: 900px) { .album-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }

/* 名片子页导航 */
.space-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid #1a66b3; margin: 18px 0 16px; }
.space-tabs a { padding: 8px 18px; background: #f0f2f5; border-radius: 4px 4px 0 0; color: #555; font-size: 14px; }
.space-tabs a:hover { background: #e8f1fa; color: #1a66b3; }
.space-tabs a.cur { background: #1a66b3; color: #fff; }
@media (max-width: 900px) {
  .m-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .m-hero { padding: 30px 14px 26px; }
  .m-hero h1 { font-size: 21px; }
}
