/* ============================================================
   科王厨博会 · 蓄水池企业名录（前台样式）
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Microsoft Yahei", "PingFang SC", sans-serif; }
body { color: #333; background: #f5f6f8; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------------- 顶部导航 ---------------- */
.header {
    padding: 16px 5%; display: flex; justify-content: space-between; align-items: center;
    background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); position: sticky; top: 0; z-index: 20;
}
.logo { font-size: 22px; font-weight: bold; color: #c0392b; }
.logo span { color: #d4a017; }
.header-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
.header-nav a { color: #555; font-size: 14px; }
.header-nav a:hover { color: #c0392b; }
.nav-user { font-size: 12px; color: #1e8e5a; background: #eaf7f0; border-radius: 12px; padding: 3px 10px; }

.flash { max-width: 1100px; margin: 14px auto 0; padding: 10px 16px; border-radius: 8px; font-size: 14px; }
.flash.ok { background: #eaf7f0; color: #1e8e5a; border: 1px solid #bfe6d0; }
.flash.err { background: #fdecea; color: #b03a2e; border: 1px solid #f5c6c0; }

/* ---------------- Banner ---------------- */
.banner {
    padding: 52px 5% 44px; text-align: center; color: #fff;
    background: linear-gradient(135deg, #8e1f17 0%, #c0392b 55%, #d4563b 100%);
}
.banner h1 { font-size: 30px; margin-bottom: 14px; letter-spacing: 2px; }
.banner p { font-size: 16px; max-width: 780px; margin: 0 auto; opacity: .95; }
.banner-stats { margin-top: 22px; display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; font-size: 14px; color: #ffe9e4; }
.banner-stats b { font-size: 22px; color: #fff; margin-right: 4px; }

/* ---------------- 搜索 ---------------- */
.searchbar { max-width: 1100px; margin: -22px auto 0; padding: 0 5%; position: relative; z-index: 5; }
.searchbar form {
    background: #fff; border-radius: 12px; padding: 14px; display: flex; gap: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .1); flex-wrap: wrap;
}
.searchbar input[type=text] { flex: 1 1 320px; min-width: 0; }
.searchbar select { flex: 0 0 190px; }
.searchbar .btn { flex: 0 0 auto; padding: 10px 22px; }

input[type=text], input[type=tel], input[type=url], input[type=password], select, textarea {
    border: 1px solid #e3e4e8; border-radius: 8px; padding: 10px 12px; font-size: 14px; color: #333;
    background: #fff; outline: none; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: #c0392b; }
textarea { resize: vertical; }

/* ---------------- 广告 ---------------- */
.ad-top { max-width: 1100px; margin: 24px auto 0; padding: 0 5%; display: grid; gap: 12px; }
.ad-banner {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px;
    min-height: 104px; border-radius: 12px; padding: 20px 26px; overflow: hidden;
    background: linear-gradient(120deg, #2b2b3a, #4a3b32 60%, #8e1f17);
    background-size: cover; background-position: center; color: #fff;
}
.ad-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .15)); }
.ad-banner > * { position: relative; z-index: 1; }
.ad-label {
    position: absolute; top: 10px; right: 10px; z-index: 2; font-size: 11px; color: rgba(255, 255, 255, .85);
    border: 1px solid rgba(255, 255, 255, .5); border-radius: 8px; padding: 1px 6px; line-height: 1.5;
}
.ad-copy { display: flex; flex-direction: column; gap: 2px; }
.ad-copy b { font-size: 19px; letter-spacing: 1px; }
.ad-copy i { font-style: normal; font-size: 13px; opacity: .82; }
.ad-cta { flex-shrink: 0; font-size: 13px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .45); border-radius: 18px; padding: 6px 14px; }

.ad-feed {
    position: relative; background: #fffdf7; border: 1px dashed #e8c766; border-radius: 12px;
    padding: 22px; display: flex; flex-direction: column; gap: 6px; min-height: 280px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}
.ad-feed .ad-label { color: #b8860b; border-color: #e8c766; }
.ad-feed-art {
    height: 84px; border-radius: 10px; margin-bottom: 6px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(120deg, #8e1f17, #d4563b); color: #fff; font-size: 15px; letter-spacing: 2px;
}
.ad-feed img { height: 84px; object-fit: cover; border-radius: 10px; }
.ad-feed h3 { font-size: 17px; color: #8a5a10; margin-top: 2px; }
.ad-feed-sub { font-size: 13px; color: #8a7a62; flex: 1; }
.ad-feed .ad-cta { align-self: flex-start; color: #b8860b; border-color: #e8c766; background: #fff; }

.notice {
    max-width: 1100px; margin: 18px auto 0; padding: 0 5%; font-size: 13px; color: #8a8f99;
}

/* ---------------- 滚动摘要 ---------------- */
.ticker-wrap { max-width: 1100px; margin: 18px auto 0; padding: 0 5%; }
.ticker-box { background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0, 0, 0, .05); }
.ticker-title { padding: 12px 20px; font-size: 15px; font-weight: bold; color: #c0392b; border-bottom: 1px dashed #eee; }
.ticker-title small { font-size: 12px; color: #999; font-weight: normal; margin-left: 8px; }
.ticker { height: 180px; overflow: hidden; position: relative; }
.ticker ul { list-style: none; }
.ticker li { padding: 12px 20px; border-bottom: 1px dashed #f0f0f0; font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ticker li .nm { font-weight: bold; color: #222; }
.ticker li .pd { color: #777; font-size: 13px; flex: 1; text-align: right; }
.ticker li .tag { flex-shrink: 0; font-size: 12px; color: #b8860b; border: 1px solid #e8c766; border-radius: 10px; padding: 2px 10px; }
.ticker li .tag.on { color: #1e8e5a; border-color: #9ed3b8; }
.ticker.animate ul { animation: scrollUp 18s linear infinite; }
.ticker.animate:hover ul { animation-play-state: paused; }
@keyframes scrollUp { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }

/* ---------------- 列表 ---------------- */
.container { max-width: 1100px; margin: 28px auto 60px; padding: 0 5%; }
.narrow { max-width: 760px; }
.section-title { font-size: 20px; margin-bottom: 20px; color: #222; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.section-title small { font-size: 13px; color: #999; font-weight: normal; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

.card { background: #fff; border-radius: 12px; padding: 22px; box-shadow: 0 2px 12px rgba(0, 0, 0, .06); display: flex; flex-direction: column; }
.card-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.cat { display: inline-block; font-size: 12px; color: #c0392b; background: #fbecea; border-radius: 6px; padding: 2px 10px; }
.badge { font-size: 12px; border-radius: 6px; padding: 2px 8px; }
.badge.ok { color: #1e8e5a; background: #eaf7f0; }
.badge.new { color: #b8860b; background: #fdf6e3; }
.card h3 { font-size: 17px; color: #1a1a1a; margin-bottom: 10px; line-height: 1.45; }
.card h3 a:hover { color: #c0392b; }
.products { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.products span { font-size: 13px; color: #555; background: #f4f5f7; border-radius: 6px; padding: 4px 10px; }
.meta { font-size: 13px; color: #888; margin-bottom: 6px; }
.meta b { color: #555; font-weight: normal; }
.status { font-size: 13px; color: #b8860b; margin: 8px 0 14px; }
.status.ok { color: #1e8e5a; }
.btns { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
    display: inline-block; text-align: center; padding: 10px 18px; border-radius: 8px; font-size: 14px;
    cursor: pointer; border: 1px solid transparent; line-height: 1.4;
}
.btn-primary { background: #c0392b; color: #fff; }
.btn-line { border-color: #c0392b; color: #c0392b; background: #fff; }
.btn:hover { opacity: .9; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { display: block; width: 100%; margin-top: 18px; }
.empty { grid-column: 1 / -1; background: #fff; border-radius: 12px; padding: 40px 20px; text-align: center; color: #999; font-size: 14px; }

/* ---------------- 分页 ---------------- */
.pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pg {
    min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid #e3e4e8; background: #fff; color: #555;
    border-radius: 8px; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.pg:hover { border-color: #c0392b; color: #c0392b; }
.pg.active { background: #c0392b; border-color: #c0392b; color: #fff; cursor: default; }
.pg[disabled] { color: #ccc; cursor: not-allowed; }
.dots { color: #bbb; padding: 0 4px; }
.page-info { color: #999; font-size: 13px; width: 100%; text-align: center; margin-top: 4px; }

/* ---------------- 详情 ---------------- */
.back { display: inline-block; margin-bottom: 16px; color: #c0392b; font-size: 14px; }
.panel { background: #fff; border-radius: 14px; padding: 30px; box-shadow: 0 2px 12px rgba(0, 0, 0, .06); }
.panel h1 { font-size: 24px; color: #1a1a1a; margin: 4px 0 14px; }
.info-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed #f0f0f0; font-size: 15px; }
.info-row .label { width: 96px; color: #888; flex-shrink: 0; }
.info-row .value { color: #333; flex: 1; }
.desc { margin-top: 20px; font-size: 15px; color: #555; }
.desc h3 { font-size: 16px; color: #222; margin-bottom: 8px; }

.claim-box { margin-top: 24px; background: #fbecea; border-radius: 12px; padding: 20px; }
.claim-box h3 { font-size: 16px; color: #c0392b; margin-bottom: 8px; }
.claim-box p { font-size: 14px; color: #555; margin-bottom: 12px; }
.contact-mask, .contact-box { background: #fff; border-radius: 10px; padding: 6px 16px; margin: 12px 0; }
.mask-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #f2f2f2; font-size: 14px; }
.mask-row:last-child { border-bottom: 0; }
.mask-row span { color: #888; width: 90px; flex-shrink: 0; }
.mask-row b { color: #333; font-weight: normal; flex: 1; }
.mask-row a { color: #c0392b; font-size: 16px; }
.mask-row .mini { background: #fff; border: 1px solid #c0392b; color: #c0392b; border-radius: 6px; font-size: 12px; padding: 2px 8px; cursor: pointer; }
.hint { font-size: 12px; color: #999; margin-top: 6px; }
.auth-note { margin-top: 22px; border-top: 1px solid #f0f0f0; padding-top: 16px; font-size: 13px; color: #777; }
.auth-note h3 { font-size: 15px; color: #333; margin-bottom: 6px; }
.auth-note p { margin-bottom: 6px; }
.related { margin-top: 34px; }
.related h3 { font-size: 18px; margin-bottom: 16px; color: #222; }
.mini-card { padding: 18px; }
.mini-card .meta { margin-top: 6px; }

/* ---------------- 认证 / 认领 ---------------- */
.auth-panel h1 { font-size: 24px; margin-bottom: 8px; }
.sub { font-size: 14px; color: #777; margin-bottom: 20px; }
.ok-box { background: #eaf7f0; border: 1px solid #bfe6d0; border-radius: 10px; padding: 18px; margin: 14px 0; color: #1e6b48; }
.ok-box p { font-size: 14px; margin: 8px 0; color: #3d6b57; }
.alert { border-radius: 10px; padding: 12px 16px; font-size: 14px; margin: 12px 0; }
.alert.err { background: #fdecea; border: 1px solid #f5c6c0; color: #b03a2e; }
.alert.ok { background: #eaf7f0; border: 1px solid #bfe6d0; color: #1e6b48; }
.alert.demo { background: #fff7e6; border: 1px solid #ffe1a6; color: #8a5a10; }
.auth-form { margin-top: 8px; }
.auth-form label { display: block; font-size: 14px; color: #444; margin: 14px 0 6px; }
.auth-form label i { color: #c0392b; font-style: normal; }
.auth-form .hint { margin-top: 4px; }
.resend { margin-top: 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.link-btn { background: none; border: 0; color: #c0392b; cursor: pointer; font-size: 13px; padding: 0; }
.claim-target { background: #f7f8fa; border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; font-size: 14px; }
.claim-target b { display: block; font-size: 16px; margin: 6px 0 4px; }
.claim-target p { color: #777; font-size: 13px; }
.inline-search { display: flex; gap: 10px; margin: 12px 0 18px; flex-wrap: wrap; }
.inline-search input { flex: 1 1 240px; }
.claim-list { display: flex; flex-direction: column; gap: 10px; }
.claim-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid #eee; border-radius: 10px; padding: 12px 16px; }
.claim-row b { display: block; font-size: 14px; }
.claim-row span { font-size: 12px; color: #888; }

/* ---------------- 底部 ---------------- */
.footer { padding: 26px 5%; text-align: center; color: #bbb; font-size: 13px; background: #1a1a2e; line-height: 1.9; }
.footer a { color: #ccc; }
.footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 768px) {
    .banner { padding: 36px 5% 40px; }
    .banner h1 { font-size: 22px; }
    .banner p { font-size: 14px; }
    .header { padding: 14px 4%; }
    .header-nav { gap: 4px 12px; }
    .header-nav a { font-size: 13px; }
    .grid { grid-template-columns: 1fr; }
    .panel { padding: 20px; }
    .panel h1 { font-size: 20px; }
    .info-row { flex-direction: column; gap: 4px; }
    .info-row .label { width: auto; font-size: 13px; }
    .searchbar { margin-top: -18px; }
    .searchbar select { flex: 1 1 100%; }
    .ad-banner { flex-direction: column; align-items: flex-start; }
    .ad-cta { align-self: flex-start; }
}
