/* ============================================
   七台河信息网 - 前台样式
   ============================================ */

/* 基础重置 */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:"Microsoft YaHei","PingFang SC","Helvetica Neue",Arial,sans-serif; font-size:14px; color:#333; background:#f5f5f5; line-height:1.6; }
a { color:#1e3c72; text-decoration:none; }
a:hover { color:#2a5298; text-decoration:underline; }
img { max-width:100%; height:auto; }
ul { list-style:none; }
.container { max-width:1200px; margin:0 auto; padding:0 15px; }

/* ---------- 顶部工具栏 ---------- */
.top-bar { background:#fff; border-bottom:1px solid #e8e8e8; padding:6px 0; font-size:12px; color:#999; }
.top-bar .container { display:flex; justify-content:space-between; align-items:center; }
.top-bar-left { color:#666; }
.top-bar-right { display:flex; align-items:center; gap:8px; }
.top-bar a { color:#1e3c72; font-size:12px; }
.top-bar .sep { color:#d9d9d9; margin:0 4px; }
.top-bar a:hover { color:#2a5298; }

/* ---------- 头部Logo区 ---------- */
.header { background:#fff; padding:16px 0; border-bottom:1px solid #e8e8e8; }
.header .container { display:flex; align-items:center; gap:20px; }
.logo { flex:1; }
.logo a { font-size:28px; font-weight:bold; color:#1e3c72; }
.logo small { display:block; font-size:12px; color:#999; font-weight:normal; margin-top:2px; }
.header-search { flex:1; max-width:420px; }
.header-search form { display:flex; }
.search-input { flex:1; height:40px; border:2px solid #1e3c72; border-right:none; border-radius:4px 0 0 4px; padding:0 12px; font-size:14px; outline:none; }
.search-btn { background:#1e3c72; color:#fff; border:none; padding:0 20px; border-radius:0 4px 4px 0; cursor:pointer; font-size:14px; }
.search-btn:hover { background:#2a5298; }
.header-publish { flex-shrink:0; }
.btn-publish { display:inline-block; background:linear-gradient(135deg, #ff6b35, #f7931e); color:#fff; padding:10px 24px; border-radius:4px; font-size:15px; font-weight:bold; }
.btn-publish:hover { opacity:0.9; text-decoration:none; color:#fff; }

/* ---------- 主导航 ---------- */
.main-nav { background:#1e3c72; }
.nav-list { display:flex; list-style:none; }
.nav-list li {  }
.nav-list li a { display:block; padding:0 18px; height:44px; line-height:44px; color:#fff; font-size:14px; }
.nav-list li a:hover, .nav-list li.active a { background:#2a5298; text-decoration:none; color:#fff; }

/* ---------- 快速导航 ---------- */
.sub-nav { background:#fff; border-bottom:1px solid #e8e8e8; padding:8px 0; font-size:13px; }
.sub-nav-links { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.sub-nav-links a { color:#666; padding:2px 6px; }
.sub-nav-links a:hover { color:#1e3c72; }

/* 网站公告滚动条 */
.site-notice { background:#fff7e6; border-bottom:1px solid #ffd591; padding:6px 0; font-size:13px; color:#874d00; }
.site-notice .container { display:flex; align-items:center; gap:8px; }
.notice-icon { font-style:normal; flex-shrink:0; }
.site-notice marquee { flex:1; }

/* 天气栏 */
.weather-bar { background:linear-gradient(135deg,#e8f4fd,#d4ecfc); border-bottom:1px solid #bae0ff; padding:5px 0; font-size:13px; }
.weather-bar .container { display:flex; align-items:center; gap:3px; }
.weather-icon { font-size:16px; }
.weather-city { color:#555; margin-right:8px; }
.weather-temp { color:#fa8c16; font-weight:700; font-size:15px; margin-right:4px; }
.weather-desc { color:#1890ff; }
.weather-wind { color:#999; margin-left:auto; font-size:12px; }

/* 地图容器 */
.map-container { width:100%; height:300px; border-radius:8px; margin:10px 0; border:1px solid #e8e8e8; }
.map-picker { width:100%; height:280px; border-radius:8px; border:1px solid #e8e8e8; margin:8px 0; }
.map-search { display:flex; gap:8px; margin-bottom:8px; }
.map-search input { flex:1; padding:8px 12px; border:1px solid #d9d9d9; border-radius:4px; font-size:13px; }
.map-search button { padding:8px 16px; background:#1e3c72; color:#fff; border:none; border-radius:4px; cursor:pointer; }
.map-coords { font-size:12px; color:#999; margin-top:6px; }
.map-coords input { width:100px; padding:4px 8px; border:1px solid #d9d9d9; border-radius:4px; font-size:12px; margin-right:8px; }

/* 微信登录按钮 */
.btn-wechat-login { display:inline-flex; align-items:center; gap:6px; padding:8px 20px; background:#07c160; color:#fff; border:none; border-radius:6px; font-size:14px; cursor:pointer; text-decoration:none; }
.btn-wechat-login:hover { background:#06ad56; }

/* ---------- 主容器 ---------- */
.main-container { display:flex; gap:20px; padding:20px 15px; max-width:1200px; margin:0 auto; }

/* ---------- 广告横幅 ---------- */
.banner-section { margin-bottom:16px; }
.banner-section img { width:100%; border-radius:6px; }

/* ---------- 置顶信息区 ---------- */
.top-posts-section { margin-bottom:20px; }
.section-title { font-size:16px; color:#1e3c72; margin-bottom:12px; padding-bottom:8px; border-bottom:2px solid #1e3c72; }
.top-posts-section .section-title span { display:inline-block; background:#1e3c72; color:#fff; padding:4px 16px; border-radius:3px; }
.top-posts-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; }
.top-post-item { background:#fff; border-radius:6px; padding:12px; box-shadow:0 1px 4px rgba(0,0,0,0.06); transition:box-shadow .2s; }
.top-post-item:hover { box-shadow:0 4px 12px rgba(0,0,0,0.1); }
.top-post-item img { width:100%; height:140px; object-fit:cover; border-radius:4px; margin-bottom:8px; }
.top-post-item .post-title { font-size:14px; color:#333; display:block; font-weight:500; }
.top-post-item .post-title.red { color:#ff4d4f; }
.top-post-item .post-price { color:#ff4d4f; font-weight:bold; font-size:15px; }
.top-post-item .post-meta { font-size:12px; color:#999; margin-top:4px; display:flex; gap:8px; }
.top-post-item.top-lg { grid-column:span 2; }
.top-post-item.top-lg img { height:180px; }

/* ---------- 筛选栏 ---------- */
.filter-bar { background:#fff; border-radius:6px; padding:12px 16px; margin-bottom:16px; box-shadow:0 1px 4px rgba(0,0,0,0.06); }
.filter-row { display:flex; align-items:center; gap:6px; padding:6px 0; border-bottom:1px solid #f0f0f0; flex-wrap:wrap; }
.filter-row:last-child { border-bottom:none; }
.filter-label { font-size:13px; color:#999; white-space:nowrap; }
.filter-row a { display:inline-block; padding:3px 10px; font-size:13px; color:#666; border-radius:3px; }
.filter-row a:hover, .filter-row a.active { background:#1e3c72; color:#fff; text-decoration:none; }
.filter-view-switch { font-size:13px; color:#999; }

/* ---------- 信息列表 ---------- */
.post-list {  }
.post-item { display:flex; gap:12px; background:#fff; border-radius:6px; padding:14px 16px; margin-bottom:8px; box-shadow:0 1px 3px rgba(0,0,0,0.04); transition:box-shadow .2s; align-items:flex-start; }
.post-item:hover { box-shadow:0 2px 8px rgba(0,0,0,0.08); }
.post-item.post-top { border-left:3px solid #ff4d4f; }
.post-item.post-red {  }
.post-item.post-red .post-item-title { color:#ff4d4f; }
.post-item-img { flex-shrink:0; width:120px; height:80px; }
.post-item-img img { width:100%; height:100%; object-fit:cover; border-radius:4px; }
.post-item-info { flex:1; min-width:0; }
.post-item-header { display:flex; align-items:flex-start; gap:8px; margin-bottom:6px; }
.post-item-title { font-size:15px; font-weight:500; color:#333; flex:1; }
.post-item-title:hover { color:#1e3c72; }
.post-item-title .tag-top { display:inline-block; background:#ff4d4f; color:#fff; font-size:11px; padding:1px 6px; border-radius:2px; margin-right:4px; vertical-align:middle; }
.post-item-price { color:#ff4d4f; font-weight:bold; font-size:15px; white-space:nowrap; }
.post-item-desc { font-size:13px; color:#999; margin-bottom:6px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.post-item-meta { font-size:12px; color:#bbb; display:flex; gap:12px; flex-wrap:wrap; }
.meta-fav { color:#ffa940; cursor:pointer; }

/* ---------- 内容布局 ---------- */
.content-layout { display:flex; gap:20px; }
.content-main { flex:1; min-width:0; }
.content-sidebar { width:300px; flex-shrink:0; }

/* ---------- 侧边栏卡片 ---------- */
.sidebar-card { background:#fff; border-radius:8px; padding:16px; margin-bottom:16px; box-shadow:0 1px 4px rgba(0,0,0,0.06); }
.sidebar-card h4 { font-size:15px; color:#1e3c72; margin:0 0 12px; padding-bottom:8px; border-bottom:1px solid #f0f0f0; }
.biz-list {  }
.biz-item { padding:8px 0; border-bottom:1px solid #fafafa; }
.biz-item:last-child { border-bottom:none; }
.biz-name { font-size:14px; font-weight:500; color:#333; }
.biz-cat { font-size:12px; color:#999; }
.biz-phone { font-size:13px; color:#1e3c72; font-weight:500; }
.phone-list {  }
.phone-item { display:flex; justify-content:space-between; padding:5px 0; font-size:13px; border-bottom:1px solid #fafafa; }
.phone-item:last-child { border-bottom:none; }
.phone-name { color:#666; }
.phone-num { color:#1e3c72; font-weight:500; }
.biz-cats { display:flex; flex-wrap:wrap; gap:6px; }
.biz-cats a { display:inline-block; padding:4px 10px; background:#f5f5f5; border-radius:3px; font-size:13px; color:#666; }
.biz-cats a:hover { background:#1e3c72; color:#fff; text-decoration:none; }
.more-link { display:block; text-align:center; margin-top:10px; font-size:13px; color:#1e3c72; }

/* ---------- 空状态 ---------- */
.empty-state { text-align:center; padding:60px 20px; color:#999; font-size:14px; }
.empty-state a { color:#1e3c72; }

/* ---------- 分页 ---------- */
.pagination { text-align:center; padding:20px 0; }
.pagination .page-info { font-size:13px; color:#999; margin-bottom:8px; }
.pagination a, .pagination span { display:inline-block; padding:5px 12px; margin:0 2px; border:1px solid #d9d9d9; border-radius:3px; font-size:13px; color:#666; }
.pagination a:hover { border-color:#1e3c72; color:#1e3c72; text-decoration:none; }
.pagination .page-current { background:#1e3c72; color:#fff; border-color:#1e3c72; }
.pagination .page-ellipsis { border:none; color:#999; }

/* ---------- 详情页 ---------- */
.breadcrumb { font-size:13px; color:#999; margin-bottom:16px; }
.breadcrumb a { color:#1e3c72; }
.detail-layout { display:flex; gap:20px; }
.detail-main { flex:1; background:#fff; border-radius:8px; padding:24px; box-shadow:0 1px 4px rgba(0,0,0,0.06); }
.detail-title { font-size:22px; color:#333; margin-bottom:12px; line-height:1.4; }
.detail-title.red { color:#ff4d4f; }
.detail-title .tag-top { background:#ff4d4f; color:#fff; font-size:12px; padding:2px 8px; border-radius:3px; margin-right:6px; vertical-align:middle; }
.detail-meta { font-size:12px; color:#999; display:flex; gap:16px; padding-bottom:16px; border-bottom:1px solid #f0f0f0; flex-wrap:wrap; }
.detail-images { margin:16px 0; display:flex; gap:8px; flex-wrap:wrap; }
.detail-images img { border-radius:4px; cursor:pointer; }
.detail-price { margin:16px 0; }
.price-label { font-size:14px; color:#999; }
.price-value { font-size:24px; color:#ff4d4f; font-weight:bold; }
.detail-content { line-height:1.8; font-size:15px; color:#333; margin:16px 0; white-space:pre-wrap; }
.detail-address { background:#f5f5f5; padding:10px 16px; border-radius:4px; margin:16px 0; font-size:14px; }
.detail-contact { background:#f0f8ff; border:1px solid #bae7ff; border-radius:6px; padding:16px; margin:16px 0; }
.detail-contact h4 { font-size:15px; color:#1e3c72; margin:0 0 10px; }
.detail-contact p { font-size:14px; margin:4px 0; }
.detail-actions { display:flex; gap:12px; margin-top:20px; padding-top:16px; border-top:1px solid #f0f0f0; }
.btn-fav { cursor:pointer; color:#ffa940; font-size:14px; }
.action-item { cursor:pointer; color:#999; font-size:14px; }
.action-item:hover { color:#ff4d4f; }

.detail-sidebar { width:300px; flex-shrink:0; }
.detail-sidebar .sidebar-card ul { list-style:none; }
.detail-sidebar .sidebar-card .simple-list li { padding:5px 0; border-bottom:1px solid #fafafa; }
.detail-sidebar .sidebar-card .simple-list li a { font-size:13px; color:#666; }
.detail-sidebar .sidebar-card .simple-list li a:hover { color:#1e3c72; }

/* ---------- 分类页 ---------- */
.category-header { margin-bottom:20px; }
.category-header h1 { font-size:24px; color:#1e3c72; }
.sub-cats { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.sub-cats a { display:inline-block; padding:6px 16px; background:#f5f5f5; border-radius:4px; color:#666; font-size:14px; }
.sub-cats a:hover { background:#1e3c72; color:#fff; text-decoration:none; }

/* ---------- 注册/登录页 ---------- */
.auth-page { display:flex; justify-content:center; align-items:center; min-height:80vh; background:#f5f5f5; }
.auth-box { width:400px; background:#fff; border-radius:12px; padding:40px; box-shadow:0 4px 20px rgba(0,0,0,0.1); }
.auth-box h2 { text-align:center; color:#1e3c72; margin:0 0 8px; font-size:24px; }
.auth-subtitle { text-align:center; color:#999; margin:0 0 24px; font-size:14px; }
.auth-error { background:#fff2f0; border:1px solid #ffccc7; color:#ff4d4f; padding:10px 16px; border-radius:6px; margin-bottom:16px; font-size:13px; }
.auth-success { background:#f6ffed; border:1px solid #b7eb8f; color:#52c41a; padding:10px 16px; border-radius:6px; margin-bottom:16px; font-size:13px; }
.auth-box .form-item { margin-bottom:16px; }
.auth-box .form-item label { display:block; margin-bottom:6px; color:#333; font-size:14px; font-weight:500; }
.auth-box .form-item input { width:100%; height:44px; border:1px solid #d9d9d9; border-radius:6px; padding:0 12px; font-size:14px; box-sizing:border-box; }
.auth-box .form-item input:focus { border-color:#1e3c72; outline:none; }
.btn-auth { width:100%; height:44px; background:linear-gradient(135deg, #1e3c72, #2a5298); color:#fff; border:none; border-radius:6px; font-size:16px; cursor:pointer; }
.btn-auth:hover { opacity:0.9; }
.auth-footer { text-align:center; margin-top:16px; font-size:13px; color:#999; }
.auth-footer a { color:#1e3c72; }

/* ---------- 发布页 ---------- */
.publish-page { background:#fff; border-radius:8px; padding:24px; box-shadow:0 1px 4px rgba(0,0,0,0.06); margin-bottom:20px; }
.publish-page .page-header { margin-bottom:20px; }
.publish-page .page-header h2 { font-size:20px; color:#1e3c72; }
.publish-page .page-header p { color:#999; font-size:13px; margin-top:4px; }
.publish-form .form-section { margin-bottom:24px; padding-bottom:20px; border-bottom:1px solid #f0f0f0; }
.publish-form .form-section:last-of-type { border-bottom:none; }
.publish-form .form-section h3 { font-size:16px; color:#1e3c72; margin:0 0 16px; padding-bottom:8px; border-bottom:2px solid #f0f0f0; }
.publish-form .form-item { margin-bottom:14px; }
.publish-form .form-item label { display:block; margin-bottom:6px; color:#333; font-size:14px; font-weight:500; }
.publish-form .form-item input, .publish-form .form-item select, .publish-form .form-item textarea { width:100%; padding:8px 12px; border:1px solid #d9d9d9; border-radius:4px; font-size:14px; box-sizing:border-box; font-family:inherit; }
.publish-form .form-item textarea { resize:vertical; min-height:120px; }
.publish-form .form-item input:focus, .publish-form .form-item select:focus, .publish-form .form-item textarea:focus { border-color:#1e3c72; outline:none; }
.publish-form .form-row { display:flex; gap:16px; flex-wrap:wrap; }
.publish-form .form-row .form-item { flex:1; min-width:150px; }
.form-tip { font-size:12px; color:#999; margin-top:4px; }
.publish-success { background:#f6ffed; border:1px solid #b7eb8f; color:#52c41a; padding:12px 16px; border-radius:6px; margin-bottom:16px; }
.publish-error { background:#fff2f0; border:1px solid #ffccc7; color:#ff4d4f; padding:12px 16px; border-radius:6px; margin-bottom:16px; }
.publish-actions { display:flex; gap:12px; padding-top:16px; }
.btn-publish { background:linear-gradient(135deg, #1e3c72, #2a5298); color:#fff; border:none; padding:10px 32px; border-radius:6px; font-size:15px; cursor:pointer; }
.btn-reset { background:#fff; color:#666; border:1px solid #d9d9d9; padding:10px 32px; border-radius:6px; font-size:15px; cursor:pointer; }

/* ---------- 用户中心 ---------- */
.user-page { display:flex; gap:20px; background:#fff; border-radius:8px; padding:24px; box-shadow:0 1px 4px rgba(0,0,0,0.06); }
.user-sidebar { width:200px; flex-shrink:0; border-right:1px solid #f0f0f0; padding-right:20px; }
.user-avatar { width:80px; height:80px; background:#1e3c72; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:36px; color:#fff; margin:0 auto 12px; }
.user-name { text-align:center; font-size:16px; font-weight:500; color:#333; margin-bottom:16px; }
.user-stats { display:flex; justify-content:space-around; margin-bottom:20px; }
.user-stats .stat { text-align:center; }
.user-stats .stat .num { display:block; font-size:18px; font-weight:bold; color:#1e3c72; }
.user-stats .stat span:last-child { font-size:12px; color:#999; }
.user-nav {  }
.user-nav a { display:block; padding:10px 12px; color:#666; font-size:14px; border-radius:4px; margin-bottom:4px; }
.user-nav a:hover, .user-nav a.active { background:#f0f8ff; color:#1e3c72; text-decoration:none; }
.user-content { flex:1; }
.user-section {  }
.user-section h3 { font-size:16px; color:#1e3c72; margin:0 0 16px; padding-bottom:8px; border-bottom:2px solid #f0f0f0; }
.user-post-item { padding:10px 0; border-bottom:1px solid #fafafa; }
.user-post-item .upi-title { font-size:14px; }
.user-post-item .upi-title a { color:#333; }
.user-post-item .upi-meta { font-size:12px; color:#999; margin-top:4px; display:flex; gap:12px; }
.badge-pending { display:inline-block; background:#fff7e6; color:#fa8c16; font-size:11px; padding:1px 6px; border-radius:2px; }
.badge-top { display:inline-block; background:#fff2f0; color:#ff4d4f; font-size:11px; padding:1px 6px; border-radius:2px; }

/* ---------- 底部 ---------- */
.footer { background:#1e3c72; color:#ccc; padding:40px 0 0; margin-top:40px; }
.footer .container { display:flex; gap:40px; }
.footer-col { flex:1; }
.footer-col h4 { color:#fff; font-size:15px; margin:0 0 16px; }
.footer-col ul li { margin-bottom:8px; }
.footer-col ul li a { color:#aaa; font-size:13px; }
.footer-col ul li a:hover { color:#fff; }
.footer-col p { font-size:13px; color:#aaa; line-height:1.8; }
.footer-bottom { background:rgba(0,0,0,0.2); padding:16px 0; margin-top:30px; text-align:center; font-size:12px; color:#888; }
.friend-links { margin-bottom:10px; }
.friend-links a { color:#aaa; font-size:12px; margin:0 6px; }
.friend-links a:hover { color:#fff; }
.copyright a { color:#aaa; }
.copyright a:hover { color:#fff; }

/* ---------- 商家页面 ---------- */
.biz-page {  }
.biz-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; }
.biz-card { background:#fff; border-radius:8px; padding:16px; box-shadow:0 1px 4px rgba(0,0,0,0.06); }
.biz-card h4 { font-size:15px; color:#1e3c72; margin:0 0 8px; }
.biz-card p { font-size:13px; color:#666; margin:3px 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .main-container { flex-direction:column; }
    .content-sidebar { width:100%; }
    .header .container { flex-direction:column; gap:10px; }
    .header-search { max-width:100%; }
    .top-posts-grid { grid-template-columns:repeat(2, 1fr); }
    .nav-list { overflow-x:auto; }
    .detail-layout { flex-direction:column; }
    .detail-sidebar { width:100%; }
    .footer .container { flex-direction:column; gap:20px; }
}
