/* 闹捞企业网 B2B 前台样式
   配色：主蓝 #0f5fbe / 深蓝 #0a3f7d / 强调橙 #ff7a18 / 背景 #f4f6fa */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font: 14px/1.7 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: #2b3245;
    background: #f4f6fa;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #0f5fbe; }
img { max-width: 100%; display: block; border: 0; }
li { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: 14px; outline: none; }

.wrap { width: 1200px; margin: 0 auto; padding: 0 12px; }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.mt10 { margin-top: 10px; } .mt20 { margin-top: 20px; } .mb10 { margin-bottom: 10px; }
.muted { color: #8a93a6; }
.orange { color: #ff7a18; }
.blue { color: #0f5fbe; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 顶部条 ---------- */
.topbar { background: #0a2f5c; color: #b9cde6; font-size: 12px; }
.topbar .wrap { display: flex; justify-content: space-between; height: 34px; line-height: 34px; }
.topbar a { color: #b9cde6; margin-left: 14px; }
.topbar a:hover { color: #fff; }

/* ---------- 头部 ---------- */
.header { background: #fff; border-bottom: 1px solid #e6ebf4; position: sticky; top: 0; z-index: 90; }
.header-main { display: flex; align-items: center; height: 88px; gap: 26px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; color: #0a3f7d; white-space: nowrap; }
.logo em { font-style: normal; color: #ff7a18; font-size: 13px; font-weight: 400; display: block; line-height: 1.2; }
.logo-mark {
    width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, #1466b8, #0a3f7d); color: #fff; font-size: 20px; font-weight: 700;
}
.search-box { flex: 1; display: flex; max-width: 560px; border: 2px solid #0f5fbe; border-radius: 4px; overflow: hidden; height: 44px; }
.search-box select { border: 0; background: #eef4fd; padding: 0 8px; color: #40506b; }
.search-box input { flex: 1; border: 0; padding: 0 14px; }
.search-box button { border: 0; background: #0f5fbe; color: #fff; padding: 0 26px; cursor: pointer; font-size: 15px; }
.search-box button:hover { background: #0a4b96; }
.header-actions { display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.header-actions .btn-small { padding: 7px 16px; }

/* ---------- 导航 ---------- */
.nav { background: #0f5fbe; }
.nav .wrap { display: flex; align-items: center; height: 46px; overflow-x: auto; gap: 4px; }
.nav a { color: #dce8f8; padding: 0 18px; height: 46px; line-height: 46px; font-size: 15px; white-space: nowrap; }
.nav a.on, .nav a:hover { background: #0a4b96; color: #fff; }
.nav .nav-strong { background: #08407e; color: #fff; font-weight: 600; }

/* ---------- 首页横幅 ---------- */
.hero {
    background: linear-gradient(120deg, #0a3f7d 0%, #0f5fbe 55%, #1a7ad4 100%);
    color: #fff; padding: 52px 0 46px;
}
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero h1 { font-size: 34px; line-height: 1.35; font-weight: 700; }
.hero p { margin-top: 12px; color: #cfe0f5; font-size: 15px; }
.hero-tags { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tags span { background: rgba(255,255,255,.14); padding: 5px 12px; border-radius: 3px; font-size: 13px; }
.hero-stats { display: flex; gap: 34px; }
.hero-stats div { text-align: center; }
.hero-stats b { display: block; font-size: 30px; color: #ffd9b8; }
.hero-stats span { font-size: 13px; color: #cfe0f5; }

/* ---------- 通用区块 ---------- */
.section { background: #fff; border-radius: 8px; padding: 26px 28px; margin-top: 22px; box-shadow: 0 1px 3px rgba(16, 40, 75, .06); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { font-size: 20px; font-weight: 700; position: relative; padding-left: 12px; }
.section-head h2::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: #0f5fbe; }
.section-head .more { font-size: 13px; color: #8a93a6; }
.section-head .tabs { display: flex; gap: 8px; }
.section-head .tabs a { padding: 4px 14px; border-radius: 3px; font-size: 13px; color: #5b6a85; background: #f1f4f9; }
.section-head .tabs a.on { background: #0f5fbe; color: #fff; }

/* ---------- 行业导航 ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.industry-grid a {
    display: block; padding: 16px; border: 1px solid #e6ebf4; border-radius: 6px; background: #fafbfe;
    transition: .18s; text-align: center;
}
.industry-grid a:hover { border-color: #0f5fbe; background: #fff; box-shadow: 0 4px 14px rgba(15,95,190,.12); transform: translateY(-2px); }
.industry-grid b { display: block; font-size: 15px; color: #1d2740; }
.industry-grid span { font-size: 12px; color: #99a3b6; }

/* ---------- 产品卡 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.p-card { border: 1px solid #e9eef6; border-radius: 6px; overflow: hidden; background: #fff; transition: .18s; }
.p-card:hover { border-color: #cfe0f5; box-shadow: 0 6px 18px rgba(15,95,190,.1); transform: translateY(-2px); }
.p-card .thumb { width: 100%; aspect-ratio: 4/3; background: #f2f5fa; object-fit: cover; }
.p-card .p-body { padding: 10px 12px 14px; }
.p-card .p-name { font-size: 14px; color: #1d2740; height: 44px; overflow: hidden; }
.p-card .p-price { margin-top: 6px; color: #e8510e; font-weight: 700; font-size: 16px; }
.p-card .p-price small { font-weight: 400; font-size: 12px; color: #8a93a6; }
.p-card .p-shop { margin-top: 6px; font-size: 12px; color: #8a93a6; display: flex; justify-content: space-between; }
.tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 3px; vertical-align: middle; }
.tag-gold { background: #fff2e4; color: #d9760b; border: 1px solid #ffd9b3; }
.tag-cert { background: #e9f3ff; color: #0f5fbe; border: 1px solid #c9e0fa; }
.tag-new { background: #eafaf1; color: #11895a; border: 1px solid #c6efd8; }
.tag-gray { background: #f1f3f7; color: #7b8598; }

/* ---------- 企业卡 ---------- */
.c-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.c-item { display: flex; gap: 14px; padding: 16px; border: 1px solid #e9eef6; border-radius: 6px; background: #fff; }
.c-item:hover { border-color: #cfe0f5; background: #fbfdff; }
.c-logo { width: 64px; height: 64px; border-radius: 6px; background: #eef3fb; object-fit: contain; flex: none; }
.c-info { flex: 1; min-width: 0; }
.c-info h3 { font-size: 15px; font-weight: 700; }
.c-info p { margin-top: 4px; font-size: 12px; color: #8a93a6; }
.c-info .intro { color: #5b6a85; font-size: 13px; margin-top: 6px; height: 40px; overflow: hidden; }

/* ---------- 供求列表 ---------- */
.s-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed #eceff5; font-size: 14px; }
.s-list li:last-child { border-bottom: 0; }
.s-list .badge { flex: none; font-size: 12px; padding: 1px 7px; border-radius: 3px; }
.badge-sell { background: #e9f3ff; color: #0f5fbe; }
.badge-buy { background: #fff1e8; color: #d9640b; }
.s-list .title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-list .date { color: #9aa4b7; font-size: 12px; }

/* ---------- 列表页筛选 ---------- */
.filter { background: #fff; border-radius: 8px; padding: 16px 22px; margin-top: 18px; box-shadow: 0 1px 3px rgba(16,40,75,.06); }
.filter-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #eef1f6; align-items: center; font-size: 13px; }
.filter-row:last-child { border-bottom: 0; }
.filter-row .label { width: 64px; color: #8a93a6; flex: none; }
.filter-row .opts { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.filter-row .opts a { padding: 2px 10px; border-radius: 3px; color: #33415c; }
.filter-row .opts a.on { background: #0f5fbe; color: #fff; }
.filter-sort { display: flex; align-items: center; gap: 10px; padding: 12px 22px; background: #fff; border-radius: 8px; margin-top: 14px; font-size: 13px; }
.filter-sort a { padding: 4px 12px; border: 1px solid #e2e8f2; border-radius: 3px; color: #445069; }
.filter-sort a.on { border-color: #0f5fbe; color: #0f5fbe; background: #f4f9ff; }
.result-tip { margin-top: 14px; font-size: 13px; color: #66718a; }

/* ---------- 详情 ---------- */
.detail-main { display: grid; grid-template-columns: 1fr 340px; gap: 20px; margin-top: 20px; align-items: start; }
.gallery { display: flex; gap: 10px; }
.gallery .big { width: 440px; height: 330px; object-fit: contain; background: #fff; border: 1px solid #e9eef6; border-radius: 6px; }
.gallery .thumbs { display: flex; flex-direction: column; gap: 8px; }
.gallery .thumbs img { width: 72px; height: 72px; object-fit: cover; border: 1px solid #e9eef6; border-radius: 4px; cursor: pointer; }
.price-box { background: #fff7f2; border: 1px solid #ffe2cc; border-radius: 6px; padding: 16px 20px; margin-top: 16px; }
.price-box .p { font-size: 30px; color: #e8510e; font-weight: 700; }
.price-box .p small { font-size: 14px; font-weight: 400; color: #8a93a6; margin-left: 6px; }
.price-box .meta { margin-top: 8px; font-size: 13px; color: #7a859b; display: flex; gap: 22px; }
.side-box { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(16,40,75,.06); }
.side-box + .side-box { margin-top: 16px; }
.side-box h3 { font-size: 16px; margin-bottom: 12px; }
.side-box .row { font-size: 13px; color: #5b6a85; padding: 6px 0; border-bottom: 1px dashed #eef1f6; display: flex; justify-content: space-between; gap: 10px; }
.side-box .row:last-child { border-bottom: 0; }

/* ---------- 表单 ---------- */
.form-card { background: #fff; border-radius: 8px; padding: 26px 30px; margin-top: 18px; box-shadow: 0 1px 3px rgba(16,40,75,.06); }
.form-card h2 { font-size: 18px; margin-bottom: 18px; }
.form-row { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.form-row > label { width: 110px; flex: none; text-align: right; color: #5b6a85; padding-top: 9px; font-size: 13px; }
.form-row .ctrl { flex: 1; min-width: 0; }
.form-row .ctrl input[type=text], .form-row .ctrl input[type=password], .form-row .ctrl input[type=email],
.form-row .ctrl input[type=tel], .form-row .ctrl input[type=number], .form-row .ctrl select, .form-row .ctrl textarea {
    width: 100%; border: 1px solid #dfe5ef; border-radius: 4px; padding: 9px 12px; background: #fff;
}
.form-row .ctrl textarea { min-height: 110px; resize: vertical; }
.form-row .ctrl input:focus, .form-row .ctrl select:focus, .form-row .ctrl textarea:focus { border-color: #0f5fbe; box-shadow: 0 0 0 2px rgba(15,95,190,.1); }
.form-row .hint { font-size: 12px; color: #99a3b6; margin-top: 4px; }
.form-row .two { display: flex; gap: 10px; }
.form-actions { padding-left: 124px; display: flex; gap: 12px; margin-top: 8px; }
.upload-note { font-size: 12px; color: #99a3b6; }

.btn, .btn-small, .btn-line, .btn-warn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; cursor: pointer; border-radius: 4px; transition: .16s; white-space: nowrap;
}
.btn { padding: 11px 26px; background: #ff7a18; color: #fff; font-size: 15px; }
.btn:hover { background: #ea6c0a; color: #fff; }
.btn-blue { background: #0f5fbe; }
.btn-blue:hover { background: #0a4b96; }
.btn-line { padding: 10px 22px; border: 1px solid #cbd7e8; color: #33415c; background: #fff; }
.btn-line:hover { border-color: #0f5fbe; color: #0f5fbe; }
.btn-small { padding: 6px 14px; font-size: 13px; background: #0f5fbe; color: #fff; }
.btn-small.line { background: #fff; color: #33415c; border: 1px solid #d7dfeb; }
.btn-small.gray { background: #eef1f6; color: #5b6a85; }
.btn-warn { padding: 6px 14px; font-size: 13px; background: #fdeceb; color: #c0342b; }

/* ---------- 登录注册 ---------- */
.auth-box { width: 460px; margin: 40px auto; background: #fff; border-radius: 10px; padding: 34px 40px; box-shadow: 0 10px 30px rgba(10,63,125,.1); }
.auth-box h2 { font-size: 22px; text-align: center; margin-bottom: 6px; }
.auth-box .sub { text-align: center; color: #8a93a6; font-size: 13px; margin-bottom: 24px; }
.auth-box .form-row > label { width: 76px; }
.auth-box .form-actions { padding-left: 76px; }
.auth-box .btn { width: 100%; }
.auth-tip { margin-top: 16px; text-align: center; font-size: 13px; color: #8a93a6; }
.sso-btn { display: block; width: 100%; text-align: center; padding: 11px 0; border-radius: 4px; border: 1px solid #cbd7e8; color: #0f5fbe; margin-top: 12px; background: #f7fbff; font-size: 14px; }
.sso-btn:hover { background: #eef6ff; }

/* ---------- 会员中心 / 企业中心 ---------- */
.center-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.side-menu { background: #fff; border-radius: 8px; padding: 10px 0; box-shadow: 0 1px 3px rgba(16,40,75,.06); }
.side-menu a { display: block; padding: 11px 22px; font-size: 14px; color: #47536b; border-left: 3px solid transparent; }
.side-menu a.on { background: #f4f9ff; border-left-color: #0f5fbe; color: #0f5fbe; font-weight: 600; }
.side-menu a:hover { background: #f8fafd; }
.side-title { padding: 14px 22px 6px; font-size: 12px; color: #99a3b6; }
.panel { background: #fff; border-radius: 8px; padding: 22px 26px; box-shadow: 0 1px 3px rgba(16,40,75,.06); }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.panel-head h2 { font-size: 18px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { border: 1px solid #e9eef6; border-radius: 8px; padding: 16px 18px; background: #fafbfe; }
.kpi b { display: block; font-size: 26px; color: #0f5fbe; }
.kpi span { font-size: 13px; color: #7a859b; }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 11px 12px; border-bottom: 1px solid #eef1f6; text-align: left; }
.table th { background: #f7f9fc; color: #5b6a85; font-weight: 600; white-space: nowrap; }
.table td { color: #33415c; }
.table tr:hover td { background: #fbfcfe; }
.table .thumb-sm { width: 46px; height: 46px; object-fit: cover; border-radius: 4px; background: #f2f5fa; }

/* ---------- 分页 ---------- */
.pagination { margin-top: 22px; display: flex; justify-content: center; }
.pagination ul { display: flex; gap: 6px; }
.pagination li a, .pagination li span {
    display: inline-block; min-width: 34px; text-align: center; padding: 6px 10px; border: 1px solid #e2e8f2;
    border-radius: 4px; background: #fff; color: #47536b; font-size: 13px;
}
.pagination li a:hover { border-color: #0f5fbe; color: #0f5fbe; }
.pagination li.active span { background: #0f5fbe; border-color: #0f5fbe; color: #fff; }
.pagination li.disabled span { color: #b9c2d2; background: #f7f9fc; }

/* ---------- 提示 ---------- */
.flash { margin-top: 14px; padding: 11px 16px; border-radius: 4px; font-size: 13px; }
.flash-success { background: #eefaf3; color: #11794f; border: 1px solid #c8ecd9; }
.flash-error { background: #fdeeee; color: #b3302a; border: 1px solid #f6cfcc; }
.empty { padding: 60px 0; text-align: center; color: #9aa4b7; font-size: 14px; }

/* ---------- 底部 ---------- */
.footer { margin-top: 34px; background: #0a2f5c; color: #a9c1de; padding: 34px 0 22px; font-size: 13px; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 24px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer a { color: #a9c1de; display: block; padding: 3px 0; }
.footer a:hover { color: #fff; }
.footer-bottom { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; font-size: 12px; color: #8aa6c8; }

/* ---------- 面包屑 ---------- */
.crumb { padding: 14px 0 0; font-size: 13px; color: #8a93a6; }
.crumb a { color: #66718a; }

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
    .wrap { width: 100%; }
    .card-grid { grid-template-columns: repeat(4, 1fr); }
    .industry-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
    .header-main { height: auto; flex-wrap: wrap; padding: 12px 0; gap: 12px; }
    .search-box { order: 3; max-width: 100%; width: 100%; }
    .header-actions { margin-left: auto; }
    .hero-inner { flex-direction: column; align-items: flex-start; }
    .hero h1 { font-size: 24px; }
    .hero-stats { gap: 22px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .c-list { grid-template-columns: 1fr; }
    .detail-main { grid-template-columns: 1fr; }
    .gallery { flex-direction: column; }
    .gallery .big { width: 100%; height: auto; }
    .gallery .thumbs { flex-direction: row; }
    .center-layout { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { flex-direction: column; gap: 6px; }
    .form-row > label { width: auto; text-align: left; }
    .form-actions { padding-left: 0; }
    .footer-cols { grid-template-columns: 1fr; }
    .table { font-size: 12px; }
}

/* 图形验证码输入行 */
.captcha-ctrl{display:flex;align-items:center;gap:10px}
.captcha-ctrl input{flex:0 0 150px;width:150px}
.captcha-ctrl img{height:44px;border:1px solid #dfe5ef;border-radius:5px;cursor:pointer;background:#ebf2fa}
@media (max-width:640px){.captcha-ctrl img{height:40px}.captcha-ctrl input{flex:1 1 auto;width:auto}}
/* 广告位横幅 */
.ad-strip{display:flex;gap:12px;margin:16px 0;flex-wrap:wrap}
.ad-strip .ad-item{flex:1 1 320px;min-width:0;display:block;border-radius:8px;overflow:hidden;background:#eef4fb;line-height:0}
.ad-strip .ad-item img{width:100%;height:auto;display:block;transition:opacity .2s}
.ad-strip .ad-item:hover img{opacity:.92}
@media (max-width:640px){.ad-strip{margin:12px 0}.ad-strip .ad-item{flex:1 1 100%}}