/* ============================================================
   许发信息 前台样式 - 橙色主题
   ============================================================ */

/* --- 基础重置 --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 14px; color: #333; background: #f5f5f5; line-height: 1.6; }
a { color: #FF6A00; text-decoration: none; transition: color 0.2s; }
a:hover { color: #FF6A00; }
img { max-width: 100%; height: auto; }
input, select, textarea, button { font-family: inherit; font-size: 14px; }

/* --- 容器 --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* --- 头部 --- */
.header { background: #FF6A00; color: #fff; padding: 12px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-size: 24px; font-weight: bold; color: #fff; }
.header-search form { display: flex; flex: 1; max-width: 500px; }
.header-search input { flex: 1; padding: 8px 15px; border: none; border-radius: 4px 0 0 4px; font-size: 14px; }
.header-search button { padding: 8px 20px; background: #FF6A00; color: #fff; border: none; border-radius: 0 4px 4px 0; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.header-actions a { color: #fff; }
.user-name { color: #fff; }

/* --- 分类导航 --- */
.category-nav { background: #fff; border-bottom: 1px solid #eee; }
.category-list { display: flex; list-style: none; flex-wrap: wrap; }
.category-item { position: relative; }
.category-item > a { display: block; padding: 12px 18px; color: #333; font-weight: 500; border-bottom: 3px solid transparent; }
.category-item:hover > a { color: #FF6A00; border-bottom-color: #FF6A00; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 180px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); border-radius: 0 0 4px 4px; z-index: 100; }
.category-item:hover .dropdown { display: block; }
.dropdown li { list-style: none; }
.dropdown a { display: block; padding: 8px 15px; color: #666; border-bottom: 1px solid #f5f5f5; }
.dropdown a:hover { background: #fff5eb; color: #FF6A00; }

/* --- 按钮 --- */
.btn { display: inline-block; padding: 8px 20px; border-radius: 4px; font-size: 14px; font-weight: 500; cursor: pointer; border: none; transition: all 0.2s; }
.btn-primary { background: #FF6A00; color: #fff; }
.btn-primary:hover { background: #FF6A00; color: #fff; }
.btn-secondary { background: #f0f0f0; color: #666; }
.btn-secondary:hover { background: #e0e0e0; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-large { padding: 12px 40px; font-size: 16px; }

/* --- 发布横幅 --- */
.publish-banner { background: linear-gradient(135deg, #FF6A00 0%, #ff8f3d 100%); color: #fff; padding: 30px; border-radius: 8px; text-align: center; margin: 20px 0; }
.publish-banner h2 { margin-bottom: 15px; font-size: 22px; }
.publish-banner .btn { background: #fff; color: #FF6A00; font-weight: bold; }
.publish-banner .btn:hover { background: #fff5eb; }

/* --- 信息卡片 --- */
.info-section { margin: 25px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #FF6A00; }
.section-header h3 { font-size: 18px; color: #333; }
.section-header .more { font-size: 13px; color: #999; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.info-card { background: #fff; border-radius: 6px; padding: 15px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); transition: box-shadow 0.2s; }
.info-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.info-category { font-size: 12px; color: #999; margin-bottom: 5px; }
.info-title { font-size: 16px; margin: 5px 0 8px; }
.info-title a { color: #333; }
.info-title a:hover { color: #FF6A00; }
.info-desc { font-size: 13px; color: #666; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.info-price { display: inline-block; background: #fff5eb; color: #FF6A00; padding: 2px 8px; border-radius: 3px; font-weight: bold; font-size: 14px; margin-bottom: 5px; }
.info-meta { font-size: 12px; color: #bbb; display: flex; gap: 10px; }

/* --- 信息列表 --- */
.info-list-item { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f0; gap: 10px; }
.info-list-title { flex: 1; color: #333; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-list-cat { font-size: 12px; color: #999; white-space: nowrap; }
.info-list-time { font-size: 12px; color: #bbb; white-space: nowrap; }

/* --- 认证表单 --- */
.auth-container { display: flex; justify-content: center; padding: 40px 15px; }
.auth-box { background: #fff; border-radius: 8px; padding: 40px; width: 100%; max-width: 420px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.auth-box h2 { text-align: center; margin-bottom: 25px; color: #333; }
.form-container { max-width: 700px; margin: 30px auto; background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.form-container h2 { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid #FF6A00; }

/* --- 表单 --- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: #555; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #FF6A00; }
.form-group textarea { resize: vertical; }

/* --- 提示框 --- */
.alert { padding: 12px 15px; border-radius: 4px; margin-bottom: 15px; }
.alert-error { background: #fef0f0; color: #f44336; border: 1px solid #fde2e2; }
.alert-success { background: #f0fff0; color: #4CAF50; border: 1px solid #e2f5e2; }
.alert p { margin: 5px 0; }

/* --- 底部 --- */
.footer { background: #333; color: #999; text-align: center; padding: 25px 0; margin-top: 40px; font-size: 13px; }

/* --- 图片预览 --- */
.image-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.image-preview .preview-item { width: 80px; height: 80px; border-radius: 4px; overflow: hidden; position: relative; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }

/* --- 空提示 --- */
.empty-tip { text-align: center; color: #bbb; padding: 40px 0; font-size: 15px; }

/* --- 响应式 --- */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 10px; }
    .header-search form { max-width: 100%; }
    .info-grid { grid-template-columns: 1fr; }
    .auth-box { padding: 25px; }
}
/* ========== 许发信息 首页/分类/响应式/回到顶部 追加样式（追加到 css/style.css 末尾）========== */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #333; background: #f5f6f8; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 12px; }

.header { background: #FF6A00; color: #fff; }
.header-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
.logo { color: #fff; font-size: 22px; font-weight: bold; text-decoration: none; }
.search-box { flex: 1; display: flex; min-width: 200px; }
.search-box input { flex: 1; height: 38px; border: none; border-radius: 4px 0 0 4px; padding: 0 10px; }
.header-user { display: flex; align-items: center; gap: 12px; }
.header-user .user-link { color: #fff; text-decoration: none; }
.btn { display: inline-block; padding: 8px 16px; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; font-size: 14px; }
.btn-primary { background: #FF6A00; color: #fff; }
.btn-secondary { background: #eee; color: #333; }
.btn-block { width: 100%; }

.main { padding: 12px 0 40px; }
.home-block { background: #fff; border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.block-head { display: flex; align-items: center; justify-content: space-between; border-left: 4px solid #FF6A00; padding-left: 8px; margin-bottom: 12px; }
.block-head h2 { font-size: 18px; margin: 0; }
.block-yellow .block-head { border-color: #f0a020; }
.block-hot .block-head { border-color: #FF6A00; }
.more { color: #999; text-decoration: none; font-size: 13px; }
.empty-tip { color: #999; padding: 20px 0; text-align: center; width: 100%; }

/* 列表两列 */
.list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; }
.list-item { display: flex; align-items: center; gap: 6px; text-decoration: none; color: #333; padding: 6px 0; border-bottom: 1px dashed #eee; }
.item-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-price { color: #FF6A00; font-weight: bold; }
.tag-top, .tag-hot { flex-shrink: 0; font-size: 12px; color: #fff; padding: 1px 5px; border-radius: 3px; }
.tag-top { background: #FF6A00; }
.tag-hot { background: #FF6A00; }

/* 商家黄页卡片 */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.yellow-card { display: flex; flex-direction: column; text-decoration: none; color: #333; border: 1px solid #eee; border-radius: 6px; overflow: hidden; }
.yellow-card img { width: 100%; height: 90px; object-fit: cover; background: #f0f0f0; }
.yellow-card .item-title { padding: 6px; font-size: 14px; white-space: normal; }
.yellow-card .item-area { padding: 0 6px 6px; font-size: 12px; color: #999; }

/* 分类导航宫格 */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cat-item { text-align: center; padding: 12px 4px; background: #f5f8ff; color: #FF6A00; border-radius: 6px; text-decoration: none; font-size: 14px; }

/* 最新信息流 */
.feed-panel { background: #fff; border-radius: 8px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.feed-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feed-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #eee; border-radius: 6px; overflow: hidden; text-decoration: none; color: #333; }
.feed-top-badge { position: absolute; top: 6px; left: 6px; background: #FF6A00; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 3px; z-index: 2; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.feed-img { width: 100%; height: 140px; object-fit: cover; background: #f0f0f0; }
.feed-body { padding: 8px; }
.feed-body .item-title { margin: 0 0 6px; white-space: normal; }
.feed-body .item-price { color: #FF6A00; font-weight: bold; margin: 0 0 4px; }
/* ===== 价格/薪资（2026-09-22 仿 ycqq：大号橙色数字）===== */
.prc { flex-shrink: 0; padding-left: 10px; font-weight: 700; color: #FF6A00; font-size: 14px; white-space: nowrap; }
.prc .u { font-size: 11px; font-weight: 400; margin: 0 1px; }
.prc-nego { color: #bbb; font-weight: 400; font-size: 12px; }
.feed-body .item-price .prc { font-size: 17px; }
.feed-body .item-meta { color: #999; font-size: 12px; margin: 0; }

.page-title { padding: 0 4px; }
/* 小类标签 */
.sub-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sub-tab { padding: 6px 12px; background: #fff; border: 1px solid #ddd; border-radius: 16px; text-decoration: none; color: #555; font-size: 13px; }
.sub-tab.active { background: #FF6A00; color: #fff; border-color: #FF6A00; }
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }

/* 回到顶部 */
.back-top { position: fixed; right: 16px; bottom: 60px; width: 44px; height: 44px; border-radius: 50%; background: #FF6A00; color: #fff; border: none; font-size: 20px; cursor: pointer; display: none; box-shadow: 0 2px 8px rgba(0,0,0,.2); z-index: 999; }
.back-top.show { display: block; }

/* ===== 手机适配 ===== */
@media (max-width: 768px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .feed-grid { grid-template-columns: repeat(2, 1fr); }
    .search-box { order: 3; width: 100%; }
    .header-user { margin-left: auto; }
}
@media (max-width: 420px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .feed-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .list-grid { grid-template-columns: 1fr; }
    .logo { font-size: 18px; }
}
/* 可讲价：金色流动高光标签（亮金高光带扫过） */
@keyframes goldShine { 0% { background-position: 0% center; } 100% { background-position: 300% center; } }
.nego-tag {
    background: linear-gradient(100deg, #b8860b 0%, #daa520 18%, #ffe98a 30%, #fff7cf 40%, #ffe98a 50%, #daa520 68%, #b8860b 85%, #daa520 100%);
    background-size: 300% auto; color: transparent;
    -webkit-background-clip: text; background-clip: text;
    animation: goldShine 2.6s linear infinite;
    text-shadow: 0 0 8px rgba(255, 200, 60, 0.6);
    font-weight: bold;
}

/* 可讲价速度档与关闭态 */
.nego-tag.nego-slow { animation-duration: 4.5s; }
.nego-tag.nego-fast { animation-duration: 1.4s; }
.nego-tag-static { color: #d4a017; font-weight: bold; }

/* 详情页白色卡片区块（与灰色页面区分） */
.detail-header, .detail-gallery, .detail-content, .detail-info, .detail-contact, .detail-actions {
    background: #fff; border-radius: 8px; padding: 16px 20px; margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.detail-header h1.detail-title { margin: 0 0 8px; font-size: 20px; color: #333; }
.detail-content h3, .detail-info h3, .detail-contact h3 { margin: 0 0 10px; font-size: 15px; color: #FF6A00; }

/* 标题后元信息 [发帖人，时间] */
.t-meta { color: #999; font-size: 12px; font-weight: normal; margin-left: 4px; }

/* 用户类型图标（用户类型图标）统一尺寸，防爆格 */
.tier-ico { width: 16px; height: 16px; vertical-align: -3px; display: inline-block; }

/* AI审核通过横幅 */
.ai-pass-banner { text-align:left; font-size:13px; color:#1a7f37; background:#eaf7ee; border:1px solid #bfe3c8; border-radius:6px; padding:8px 12px; margin-bottom:12px; }

/* 信息未通过 */
.reject-banner { text-align:left; font-size:13px; color:#a94442; background:#f2dede; border:1px solid #ebccd1; border-radius:6px; padding:8px 12px; margin-bottom:12px; }
.badge-rej { display:inline-block; font-size:11px; color:#a94442; background:#f2dede; border-radius:3px; padding:1px 6px; margin-right:6px; }


/* ========== 护眼背景主题（2026-09-24）：html[data-bg] 由 🎨 切换器写入，cookie 记忆 ========== */
html[data-bg="green"] body { background: #E3ECE4; }
html[data-bg="grey"] body { background: #F0F2F5; }
html[data-bg="blue"] body { background: #F5F6FA; }
html[data-bg="cream"] body { background: #F6F8F5; }
html[data-bg="lightblue"] body { background: #F7FCFF; }
html[data-bg="white"] body { background: #FFFFFF; }
body { transition: background .25s ease; }

/* 发布者链接（用户名可点进用户主页） */
.poster-link{color:#FF6A00;font-size:12px;text-decoration:none;white-space:nowrap;}
.poster-link:hover{text-decoration:underline;}
/* 标题后【用户名】徽标 */
.t-user-link{color:#FF6A00;font-size:12px;text-decoration:none;font-weight:normal;margin-left:4px;white-space:nowrap;}
.t-user-link:hover{text-decoration:underline;}
.t-meta{color:#999;font-size:12px;margin-left:4px;}
/* 详情页：发布时间移至内容底部、隔一行、右对齐 */
.detail-time{text-align:right;margin-top:18px;padding-top:10px;color:#999;font-size:13px;border-top:1px dashed #eee;}
/* 用户主页 */
.user-home{padding:12px 0;}
.user-card{display:flex;align-items:center;gap:14px;background:#fff;border-radius:10px;padding:16px 18px;box-shadow:0 1px 4px rgba(0,0,0,.05);margin-bottom:14px;}
.u-avatar{width:56px;height:56px;border-radius:50%;background:#FF6A00;color:#fff;font-size:24px;font-weight:bold;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.u-name{font-size:18px;font-weight:bold;color:#333;display:flex;align-items:center;gap:6px;}
.u-sub{font-size:13px;color:#999;margin-top:4px;}
.uh-title{font-size:16px;color:#FF6A00;margin:6px 2px 12px;}

/* ===== 搜索页 search.php ===== */
.search-page{max-width:960px;margin:0 auto;padding:14px 12px 30px;}
.sp-title{font-size:18px;color:#333;margin:6px 2px 12px;}
.sp-form{display:flex;gap:8px;margin-bottom:12px;}
.sp-input{flex:1;border:1px solid #e3e3e3;border-radius:8px;padding:11px 14px;font-size:15px;outline:none;}
.sp-input:focus{border-color:#FF6A00;}
.sp-scope{display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:#fff;border:1px solid #f0f0f0;border-radius:10px;padding:12px 14px;margin-bottom:12px;}
.sp-scope-opt{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:#555;cursor:pointer;padding:6px 10px;border-radius:8px;border:1px solid transparent;}
.sp-scope-opt.active{background:#FFF3E9;color:#FF6A00;border-color:#FFD3A8;font-weight:bold;}
.sp-city{border:1px solid #e3e3e3;border-radius:8px;padding:8px 10px;font-size:14px;min-width:140px;}
.sp-city:disabled{background:#f5f5f5;color:#aaa;}
.sp-stat{font-size:13px;color:#888;margin:4px 2px 14px;}
.sp-stat b{color:#FF6A00;}

/* 搜索页：单字关键词灰字提示（2026-09-29 新增） */
.sp-hint{color:#999;font-size:13px;margin:6px 2px 0;line-height:1.6;}
.empty-tip.sp-hint{text-align:center;padding:40px 0;width:100%;}
