/* 批链批发平台 - 平台门户端样式（现代化卡片视觉）
   作者：星球软件CEWWW
   适用页面：/index.php /announce.php /article.php /products.php /markets.php /announce_detail.php /article_detail.php
   依赖：base.css（需在本文件之前引入） */

/* ===== 页头 ===== */
.site-header { background: var(--white); border-bottom: 2px solid var(--primary); box-shadow: var(--shadow); }
.site-header-inner { max-width: 1200px; margin: 0 auto; padding: 18px 15px; display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo .logo-icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 22px; overflow: hidden; flex-shrink: 0; }
.site-logo .logo-icon img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: var(--radius); }
.site-logo .logo-text { font-size: 22px; font-weight: 700; color: var(--primary); }
.site-logo .logo-sub { font-size: 12px; color: var(--text-light); }

/* ===== 顶部导航菜单 ===== */
.portal-nav { display: flex; align-items: center; gap: 2px; }
.portal-nav-item { display: flex; align-items: center; gap: 5px; padding: 8px 14px; font-size: 16px; color: var(--text); border-radius: var(--radius-sm); transition: background .2s; white-space: nowrap; }
.portal-nav-item i { font-size: 16px; transition: color .2s; }
.portal-nav-item:hover { background: #FFF8F0; }
.portal-nav-item.active { font-weight: 700; }
/* 首页保持默认品牌橙色；其余五个栏目图标与文字同色 */
.portal-nav-item[data-key="home"] { color: var(--primary); } .portal-nav-item[data-key="home"] i { color: var(--primary); }
.portal-nav-item[data-key="market"]  { color: #E8A200; } .portal-nav-item[data-key="market"] i  { color: #E8A200; }
.portal-nav-item[data-key="product"] { color: #2E9E4F; } .portal-nav-item[data-key="product"] i { color: #2E9E4F; }
.portal-nav-item[data-key="group"]   { color: #1E7FD6; } .portal-nav-item[data-key="group"] i   { color: #1E7FD6; }
.portal-nav-item[data-key="freight"] { color: #E03A30; } .portal-nav-item[data-key="freight"] i { color: #E03A30; }
.portal-nav-item[data-key="finance"] { color: #8B5A2B; } .portal-nav-item[data-key="finance"] i { color: #8B5A2B; }

/* ===== 用户区 ===== */
.portal-user { display: flex; align-items: center; gap: 8px; }
.user-box { position: relative; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 4px 10px; border-radius: var(--radius-sm); transition: background .2s; }
.user-box:hover { background: #FFF8F0; }
.user-avatar { width: 23px; height: 23px; border-radius: 50%; object-fit: cover; background: var(--gray); display: block; flex-shrink: 0; }
.user-name { font-size: 13px; color: var(--text); max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1; }
.user-dropdown { position: absolute; top: 100%; right: 0; min-width: 150px; background: var(--white); border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,0.12); padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .2s; z-index: 200; }
.user-box:hover .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown a { display: flex; align-items: center; gap: 8px; padding: 8px 15px; font-size: 13px; color: var(--text); }
.user-dropdown a:hover { background: #FFF8F0; color: var(--primary); }
.user-dropdown a i { width: 16px; color: var(--text-light); }

/* ===== Banner 轮播 ===== */
.banner-swiper { position: relative; max-width: 1200px; margin: 15px auto; padding: 0 15px; }
.banner-track { position: relative; height: 360px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.banner-slide.active { opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-slide a { display: block; width: 100%; height: 100%; }
.banner-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.banner-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.6); cursor: pointer; transition: all .2s; }
.banner-dots span.active { background: var(--primary); }
/* Banner 占位（无数据时） */
.banner-placeholder { height: 360px; background: linear-gradient(135deg, #FF6A00, #E55A00 60%, #5C310F); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; box-shadow: var(--shadow); text-align: center; padding: 0 15px; }
.banner-placeholder .ico { font-size: 42px; margin-bottom: 14px; opacity: .9; }
.banner-placeholder .tit { font-size: 24px; font-weight: 700; letter-spacing: 2px; }
.banner-placeholder .sub { font-size: 13px; opacity: .85; margin-top: 8px; }

/* ===== 内容容器 ===== */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ===== 板块（现代化标题栏） ===== */
.section { max-width: 1200px; margin: 25px auto; padding: 0 15px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 18px; font-weight: 700; color: var(--brown); display: flex; align-items: center; gap: 8px; }
.section-title i { color: var(--primary); }
.section-more { font-size: 13px; color: var(--text-light); }
.section-more:hover { color: var(--primary); }
/* 列表页标题栏（page-wrap 内使用） */
.list-head { display: flex; align-items: center; justify-content: space-between; margin: 15px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.list-head .title { font-size: 18px; font-weight: 700; color: var(--brown); }
.list-head .title i { color: var(--primary); margin-right: 8px; }
.list-head .count { font-size: 13px; color: var(--text-light); }

/* ===== 文章卡（公告/专题通用） ===== */
.article-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; display: flex; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.article-card .cover { width: 200px; height: 130px; object-fit: cover; flex-shrink: 0; transition: transform .3s; }
.article-card .body { padding: 14px; flex: 1; min-width: 0; }
.article-card .title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article-card .title a { color: inherit; }
.article-card .title a:hover { color: var(--primary); }
.article-card .summary { font-size: 13px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.article-card .meta { font-size: 12px; color: var(--gray-dark); display: flex; gap: 15px; }
.article-card .meta i { margin-right: 4px; }

/* ===== 商品卡 ===== */
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.product-card .cover-wrap { display: block; overflow: hidden; }
.product-card .cover { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform .3s; }
.product-card:hover .cover { transform: scale(1.04); }
.product-card .info { padding: 12px; }
.product-card .name { font-size: 14px; font-weight: 500; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card .name a { color: var(--text); }
.product-card .name a:hover { color: var(--primary); }
.product-card .merchant { font-size: 12px; color: var(--text-light); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card .merchant i { margin-right: 4px; color: var(--primary); }
.product-card .price-row { display: flex; align-items: baseline; gap: 8px; }
.product-card .price { color: var(--primary); font-size: 18px; font-weight: 700; }
.product-card .market-price { color: var(--gray-dark); font-size: 12px; text-decoration: line-through; }
.product-card .meta { font-size: 12px; color: var(--gray-dark); margin-top: 6px; display: flex; justify-content: space-between; }

/* ===== 物流拼单卡（与商品卡同视觉体系） ===== */
.freight-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.freight-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.freight-card .freight-cover { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 180px; background: linear-gradient(135deg, #FFF3E8, #FFE0C2); transition: background .3s; }
.freight-card:hover .freight-cover { background: linear-gradient(135deg, #FFE0C2, #FFCC99); }
.freight-card .freight-cover i { font-size: 42px; color: var(--primary); margin-bottom: 8px; }
.freight-card .freight-cover .v-type { font-size: 13px; color: var(--brown); font-weight: 600; }
.freight-card .info { padding: 12px; }
.freight-card .route { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.freight-card .route .addr { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.freight-card .route i { color: var(--primary); font-size: 12px; flex-shrink: 0; }
.freight-card .merchant { font-size: 12px; color: var(--text-light); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.freight-card .merchant i { margin-right: 4px; color: var(--primary); }
.freight-card .price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.freight-card .price { color: var(--primary); font-size: 18px; font-weight: 700; }
.freight-card .price small { font-size: 12px; font-weight: normal; }
.freight-card .meta { font-size: 12px; color: var(--gray-dark); margin-top: 6px; display: flex; justify-content: space-between; }
.freight-card .meta i { margin-right: 4px; }

/* ===== 市场卡 ===== */
.market-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.market-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.market-card .banner-wrap { display: block; position: relative; overflow: hidden; }
.market-card .banner { width: 100%; height: 130px; object-fit: cover; transition: transform .3s; }
.market-card:hover .banner { transform: scale(1.04); }
.market-card .banner-mask { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 12px; background: linear-gradient(transparent, rgba(0,0,0,0.5)); color: var(--white); font-size: 12px; }
.market-card .body { padding: 12px; }
.market-card .logo-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.market-card .logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--gray); }
.market-card .name { font-size: 15px; font-weight: 600; color: var(--text); }
.market-card .name a { color: inherit; }
.market-card .name a:hover { color: var(--primary); }
.market-card .intro { font-size: 12px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; min-height: 32px; }
.market-card .meta { font-size: 12px; color: var(--gray-dark); display: flex; justify-content: space-between; }
.market-card .meta i { margin-right: 4px; color: var(--primary); }

/* ===== 网格微调 ===== */
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.empty-card-lg { min-height: 210px; }

/* ===== 详情页 ===== */
.detail-wrap { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.detail-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; margin-bottom: 15px; }
.detail-head { text-align: center; padding-bottom: 20px; border-bottom: 1px dashed var(--gray-border); margin-bottom: 20px; }
.detail-head h1 { font-size: 24px; color: var(--text); margin-bottom: 12px; line-height: 1.4; }
.detail-meta { font-size: 13px; color: var(--gray-dark); display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.detail-meta i { margin-right: 4px; color: var(--primary); }
.detail-cover { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; }
.detail-content { font-size: 14px; line-height: 1.8; color: var(--text); }
.detail-content p { margin-bottom: 14px; }
.detail-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 8px 0; }
.detail-tags { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--gray-border); font-size: 13px; color: var(--text-light); }
.detail-tags a { color: var(--primary); margin-right: 8px; }
.detail-summary { color: var(--text-light); font-size: 13px; background: var(--gray); padding: 10px 15px; border-radius: var(--radius-sm); }
.nav-row { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.nav-item { flex: 1; min-width: 0; padding: 12px 15px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 13px; transition: box-shadow .2s; }
.nav-item:hover { box-shadow: var(--shadow-hover); }
.nav-item a { color: var(--text); }
.nav-item .label { color: var(--text-light); margin-right: 6px; }
.nav-item .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item.next { text-align: right; }
.back-row { margin-top: 15px; text-align: center; }

/* ===== 详情页通用：小标题 ===== */
.section-title-sm { font-size: 16px; font-weight: 700; color: var(--brown); margin-bottom: 15px; display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-border); }
.section-title-sm i { color: var(--primary); }

/* ===== 进度条 ===== */
.progress-bar { width: 100%; height: 8px; background: var(--gray); border-radius: 4px; overflow: hidden; }
.progress-inner { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 4px; transition: width .3s; }
.progress-text { font-size: 13px; color: var(--text-light); margin-top: 8px; }

/* ===== 团购详情 ===== */
.gb-head-main { display: flex; gap: 24px; flex-wrap: wrap; }
.gb-cover { flex: 0 0 320px; border-radius: var(--radius); overflow: hidden; }
.gb-cover img { width: 100%; height: 240px; object-fit: cover; }
.gb-info { flex: 1; min-width: 280px; }
.gb-info h1 { font-size: 22px; color: var(--text); margin-bottom: 10px; line-height: 1.4; }
.gb-merchant { font-size: 13px; color: var(--text-light); margin-bottom: 14px; }
.gb-merchant i { color: var(--primary); margin-right: 4px; }
.gb-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.gb-price .now { font-size: 30px; font-weight: 700; color: var(--primary); }
.gb-price .origin { font-size: 14px; color: var(--gray-dark); text-decoration: line-through; }
.gb-progress { margin-bottom: 18px; }
.gb-actions { margin-top: 16px; }

/* ===== 物流拼单详情 ===== */
.fp-route { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.fp-from, .fp-to { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 160px; }
.fp-from > i { font-size: 20px; color: var(--primary); }
.fp-to > i { font-size: 20px; color: var(--success); }
.fp-label { font-size: 12px; color: var(--text-light); }
.fp-addr { font-size: 16px; font-weight: 600; color: var(--text); }
.fp-arrow { color: var(--primary); font-size: 18px; }
.fp-status-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fp-vehicle { font-size: 13px; color: var(--text-light); }
.fp-vehicle i { color: var(--primary); margin-right: 4px; }
.fp-price-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.fp-price .now { font-size: 28px; font-weight: 700; color: var(--primary); }
.fp-price small { font-size: 14px; color: var(--text-light); }
.fp-price .origin { font-size: 13px; color: var(--gray-dark); margin-left: 10px; }
.fp-progress { flex: 1; min-width: 200px; }
.fp-actions { margin-top: 16px; }

/* ===== 参团/参与记录列表 ===== */
.gb-remark { font-size: 14px; line-height: 1.8; color: var(--text); }
.gb-records { display: flex; flex-direction: column; gap: 10px; }
.gb-record { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--gray); border-radius: var(--radius-sm); }
.record-avatar { width: 36px; height: 36px; border-radius: 50%; background: #FFF3E8; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.record-info { flex: 1; min-width: 0; }
.record-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.record-desc { font-size: 12px; color: var(--text-light); }
.record-time { font-size: 12px; color: var(--gray-dark); white-space: nowrap; }

@media (max-width: 768px) {
  .gb-cover { flex: 1 1 100%; }
  .gb-cover img { height: 200px; }
  .gb-info h1 { font-size: 18px; }
  .gb-price .now { font-size: 24px; }
  .fp-route { flex-direction: column; align-items: stretch; }
  .fp-arrow { text-align: center; }
}

/* ===== 财税委托表单 ===== */
.finance-form-card { margin-bottom: 25px; }
.finance-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.finance-form .form-group { margin-bottom: 15px; }
.finance-form label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.finance-form .form-control { width: 100%; padding: 10px 12px; border: 1px solid var(--gray-border); border-radius: var(--radius-sm); font-size: 14px; box-sizing: border-box; transition: border-color .2s; }
.finance-form .form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,106,0,0.1); }
.finance-form .form-control[readonly] { background: var(--gray); cursor: not-allowed; }
.finance-form textarea.form-control { resize: vertical; min-height: 100px; }
.finance-form .btn-block { width: 100%; padding: 12px; font-size: 15px; }
@media (max-width: 600px) {
  .finance-form .form-row { grid-template-columns: 1fr; }
}

/* ===== 页脚（随页面滚动，不固定） ===== */
body.has-footer { display: flex; flex-direction: column; min-height: 100vh; }
/* flex 纵向布局下，水平 auto 外边距会抑制 stretch 拉伸，导致无正常流内容的容器
   （如轮播 banner，其 slide 均为 absolute 定位）宽度塌缩为 0，统一显式宽度修复 */
body.has-footer > * { width: 100%; }
.site-footer { position: static; margin-top: auto; background: var(--brown); color: rgba(255,255,255,0.7); padding: 20px 15px; text-align: center; font-size: 13px; }
.site-footer .links { margin-bottom: 10px; }
.site-footer .links:last-of-type { margin-top: -4px; margin-bottom: 10px; }
.site-footer .links a { color: rgba(255,255,255,0.85); margin: 0 8px; }

/* ===== 筛选栏 ===== */
.filter-bar { display: flex; align-items: flex-end; gap: 12px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 15px; margin-bottom: 15px; flex-wrap: wrap; }
.filter-item { display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.filter-item label { font-size: 12px; color: var(--text-light); }
.filter-item .form-control { height: 34px; }

/* ===== 大类别标签 ===== */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 15px; margin-bottom: 15px; }
.cat-tab { display: inline-flex; align-items: center; gap: 4px; padding: 6px 16px; font-size: 13px; color: var(--text); border: 1px solid var(--gray-border); border-radius: 20px; transition: all .2s; background: var(--white); }
.cat-tab i { font-size: 12px; }
.cat-tab:hover { color: var(--primary); border-color: var(--primary); }
.cat-tab.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  /* 顶部：第一行 logo + 登录区，第二行 APP 模式五列图标菜单 */
  .site-header-inner { flex-wrap: wrap; padding: 10px 12px; gap: 10px; }
  .site-logo .logo-icon { width: 36px; height: 36px; font-size: 18px; }
  .site-logo .logo-text { font-size: 17px; }
  .site-logo .logo-sub { font-size: 11px; }
  .portal-nav { order: 3; width: 100%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--gray-border); padding-top: 8px; }
  .portal-nav-item { flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 14px; justify-content: center; line-height: 1.3; }
  .portal-nav-item i { font-size: 22px; margin: 0; }
  .portal-nav-item span { font-size: 14px; }
  /* 移动端“首页”由 logo 承担，菜单保留其余 5 项正好一行五列 */
  .portal-nav-item[data-key="home"] { display: none; }
  .portal-user .btn { padding: 5px 10px; font-size: 12px; }
  .user-name { display: none; }
  .banner-track { height: 200px; }
  .banner-placeholder { height: 200px; }
  .banner-placeholder .tit { font-size: 18px; }
  .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .article-card { flex-direction: column; }
  .article-card .cover { width: 100%; height: 140px; }
  .product-card .cover { height: 140px; }
  .detail-card { padding: 18px; }
  .detail-head h1 { font-size: 18px; }

  /* 底部栏目菜单：一行四列 */
  .site-footer { padding: 15px 10px; }
  .site-footer .links:first-of-type {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 10px 4px; margin-bottom: 12px;
  }
  .site-footer .links:first-of-type a { margin: 0; font-size: 12px; white-space: nowrap; }
  /* 第二行五个条款链接保持一行 */
  .site-footer .links:last-of-type { margin-top: 0; }
  .site-footer .links:last-of-type a { margin: 0 5px; font-size: 11px; white-space: nowrap; }
}

/* ===== 广告位 ===== */
.ad-zone { margin: 15px 0; }
.ad-zone .ad-zone-title { font-size: 14px; font-weight: 600; color: var(--brown); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.ad-zone .ad-zone-title i { color: var(--primary); }
.ad-zone .ad-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ad-zone .ad-item { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; background: var(--white); }
.ad-zone .ad-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.ad-zone .ad-item img { width: 100%; height: 120px; object-fit: cover; display: block; }
.ad-zone .ad-item .ad-title { padding: 8px 10px; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 768px) {
  .ad-zone .ad-list { grid-template-columns: repeat(2, 1fr); }
  .ad-zone .ad-item img { height: 90px; }
}

/* ===== 市场官方主页 Hero ===== */
.mk-hero { position: relative; max-width: 1200px; margin: 15px auto 0; padding: 0 15px; }
.mk-hero-inner-wrap { position: relative; height: 380px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mk-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mk-hero-bg-photo { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #FF6A00, #E55A00 55%, #5C310F); }
.mk-hero-bg-photo i { font-size: 130px; color: rgba(255,255,255,0.25); }
.mk-hero-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,15,5,0.25) 0%, rgba(30,15,5,0.55) 55%, rgba(30,15,5,0.82) 100%); }
.mk-hero-inner { position: relative; z-index: 2; height: 100%; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; }
/* logo 占 1/4，主信息占 3/4 */
.mk-hero-head { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; align-items: center; margin-bottom: 16px; }
.mk-hero-logo-col { display: flex; align-items: center; justify-content: center; }
.mk-hero-logo { width: 120px; height: 120px; border-radius: var(--radius); object-fit: cover; background: #fff; border: 4px solid rgba(255,255,255,0.9); box-shadow: 0 6px 18px rgba(0,0,0,0.3); }
.mk-hero-logo-photo { display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 44px; }
.mk-hero-title h1 { font-size: 34px; font-weight: 700; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.4); line-height: 1.25; }
.mk-hero-subname { font-size: 15px; color: rgba(255,255,255,0.9); margin-top: 6px; letter-spacing: 2px; }
.mk-hero-meta { display: flex; flex-wrap: wrap; gap: 22px; color: rgba(255,255,255,0.95); font-size: 14px; margin-bottom: 20px; }
.mk-hero-meta i { color: #FFB27A; margin-right: 6px; }
.mk-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-light { background: #fff; color: var(--primary); border: 1px solid #fff; }
.btn-light:hover { background: #FFF3E8; }
.btn-outline-light { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.75); }
.btn-outline-light:hover { background: rgba(255,255,255,0.2); }

/* ===== 市场简介 ===== */
.mk-about { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; margin-top: 25px; }
.mk-about-body { margin-top: 12px; font-size: 14px; line-height: 1.9; color: var(--text); }

/* ===== 招租门面卡 ===== */
.booth-card { display: block; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.booth-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.booth-cover { position: relative; height: 170px; overflow: hidden; }
.booth-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.booth-card:hover .booth-cover img { transform: scale(1.05); }
.booth-cover-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #FFF3E8, #FFE0C2); }
.booth-cover-photo i { font-size: 44px; color: var(--primary); }
.booth-tag { position: absolute; top: 10px; left: 10px; background: var(--primary); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.booth-body { padding: 13px 14px; }
.booth-no { font-size: 16px; font-weight: 700; color: var(--brown); margin-bottom: 8px; }
.booth-info { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-light); margin-bottom: 6px; }
.booth-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booth-info i { color: var(--primary); margin-right: 4px; }
.booth-price-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--gray-border); }
.booth-price { color: var(--primary); font-size: 20px; font-weight: 700; }
.booth-price small { font-size: 12px; font-weight: 400; }
.booth-deposit { font-size: 12px; color: var(--gray-dark); }

/* ===== 资讯+商户 双栏 ===== */
.mk-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin: 25px 0; }
.mk-col-main, .mk-col-side { min-width: 0; }
.mk-col-main .article-card { margin-bottom: 12px; }
.article-cover-photo { width: 200px; height: 130px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #FFF3E8, #FFE0C2); flex-shrink: 0; }
.article-cover-photo i { font-size: 36px; color: var(--primary); }

/* 侧栏商户列表 */
.merchant-side-list { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.merchant-side-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--gray-border); transition: background .2s; }
.merchant-side-item:last-child { border-bottom: none; }
.merchant-side-item:hover { background: #FFF8F0; }
.merchant-side-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--gray); flex-shrink: 0; }
.merchant-side-logo-photo { display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); font-size: 16px; }
.merchant-side-info { flex: 1; min-width: 0; }
.merchant-side-name { font-size: 14px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.merchant-side-desc { font-size: 12px; color: var(--text-light); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.merchant-side-arrow { color: var(--gray-dark); font-size: 12px; flex-shrink: 0; }
.merchant-side-item:hover .merchant-side-arrow { color: var(--primary); }

/* 市场主页响应式 */
@media (max-width: 768px) {
  .mk-hero-inner-wrap { height: auto; }
  .mk-hero-inner { padding: 20px; }
  .mk-hero-head { grid-template-columns: 1fr; gap: 12px; }
  .mk-hero-title { text-align: center; }
  .mk-hero-title h1 { font-size: 22px; }
  .mk-hero-logo { width: 80px; height: 80px; }
  .mk-hero-meta { gap: 10px; font-size: 12px; justify-content: center; }
  .mk-hero-actions { justify-content: center; }
  .mk-cols { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .booth-info { flex-direction: column; gap: 3px; }
}

/* ===== 单页详情页（现代化卡片式） ===== */
.single-page-layout { margin-top: 25px; }
/* 顶部封面横幅 */
.single-page-banner { position: relative; height: 220px; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #FF6A00 0%, #E55A00 50%, #5C310F 100%); box-shadow: var(--shadow); }
.single-page-banner-mask { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 40%, rgba(255,255,255,0.18) 0%, rgba(0,0,0,0.2) 70%); }
.single-page-banner-inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.single-page-banner-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; margin-bottom: 14px; backdrop-filter: blur(4px); border: 2px solid rgba(255,255,255,0.3); }
.single-page-banner-title { font-size: 30px; font-weight: 700; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.3); margin: 0 0 10px; }
.single-page-banner-meta { font-size: 13px; color: rgba(255,255,255,0.85); }
.single-page-banner-meta i { margin-right: 4px; }

/* 正文卡片 */
.single-page-content-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 40px; margin-top: -30px; position: relative; z-index: 3; }
.single-page-body { font-size: 15px; line-height: 1.9; color: var(--text); }
.single-page-body p { margin: 0 0 16px; }
.single-page-body h2 { font-size: 20px; color: var(--brown); margin: 28px 0 12px; padding-left: 12px; border-left: 4px solid var(--primary); }
.single-page-body h3 { font-size: 17px; color: var(--brown); margin: 22px 0 10px; }
.single-page-body ul, .single-page-body ol { margin: 0 0 16px; padding-left: 24px; }
.single-page-body li { margin-bottom: 6px; }
.single-page-body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 14px 0; box-shadow: var(--shadow); }
.single-page-body a { color: var(--primary); text-decoration: underline; }
.single-page-body blockquote { border-left: 4px solid var(--primary); background: #FFF8F0; padding: 12px 18px; margin: 16px 0; border-radius: 0 var(--radius) var(--radius) 0; color: var(--text-light); }
.single-page-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.single-page-body table th, .single-page-body table td { border: 1px solid var(--gray-border); padding: 8px 12px; }

/* 空状态 */
.single-page-empty { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 60px 30px; text-align: center; }
.single-page-empty-icon { width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 50%; background: #FFF3E8; display: flex; align-items: center; justify-content: center; font-size: 36px; color: var(--primary); }
.single-page-empty-text { font-size: 15px; color: var(--text-light); margin-bottom: 8px; }

@media (max-width: 768px) {
  .single-page-banner { height: 170px; }
  .single-page-banner-title { font-size: 22px; }
  .single-page-banner-icon { width: 50px; height: 50px; font-size: 22px; }
  .single-page-content-card { padding: 22px 18px; margin-top: -20px; }
  .single-page-body { font-size: 14px; }
}
