/* ==========================================================================
   煤炭信息网 - 移动端响应式覆盖层
   PC模板保留，通过 @media 在 768px 以下自动切换为移动端布局
   ========================================================================== */

/* ========== 平板设备适配 (768px ~ 1024px) ========== */
@media (max-width: 1024px) {

/* 全局容器 */
.container { width: 100% !important; padding: 0 16px; }

/* 头部 */
.dt-header { padding: 14px 0; }
.dt-header .container { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.dt-logo { width: auto; text-align: left; }
.dt-logo img { max-height: 48px; }
.dt-search-box { flex: 1; min-width: 240px; max-width: 480px; }

/* 导航栏 */
.dt-navbar { height: auto; }
.dt-nav-menu { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dt-nav-menu li a { padding: 0 12px; line-height: 42px; font-size: 14px; }

/* 主内容区 */
.dt-main-inner { flex-direction: column; }
.dt-sidebar { width: 100%; order: 99; }

/* 首页Banner */
.home-banner { flex-direction: column; gap: 12px; margin-bottom: 12px; }
.home-slider { width: 100%; height: 220px; border-radius: 4px; }
.home-quick { flex-direction: row; width: 100%; }
.home-quick-tab, .home-quick-announce { width: 50%; }
.home-quick-tab ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.home-quick-tab li a { font-size: 13px; padding: 8px 6px; }
.home-quick-tab .ico { font-size: 18px; margin-right: 4px; }

/* 内容区块 */
.home-section { margin-bottom: 14px; }
.home-section-hd { padding: 10px 12px; }
.home-section-hd h2 { font-size: 17px; }
.home-section-bd { padding: 10px 12px; }

/* 缩略图列表 */
.thumb-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.thumb-list-5 li { width: calc(33.333% - 12px) !important; }
.thumb-img { aspect-ratio: 1 / 1; }
.thumb-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.thumb-title { font-size: 13px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 底部 */
.dt-footer { padding: 16px 12px; font-size: 13px; }
.dt-footer-links { flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.dt-footer-links a { font-size: 13px; }

}

@media (max-width: 768px) {

/* ========== 全局容器 ========== */
.container { width: 100% !important; padding: 0 12px; }

/* ========== 顶部栏 ========== */
.dt-topbar { height: auto; line-height: 28px; font-size: 12px; }
.dt-topbar .container { flex-direction: column; align-items: flex-start; }
.dt-topbar-right { width: 100%; text-align: right; }

/* ========== 头部 ========== */
.dt-header { padding: 12px 0; }
.dt-header .container { flex-direction: column; gap: 12px; align-items: stretch; }
.dt-logo { width: auto; text-align: center; }
.dt-logo img { max-height: 44px; }

/* ========== 搜索框 ========== */
.dt-search-box { flex-wrap: nowrap; }
.dt-search-module { padding: 6px 8px; height: 40px; font-size: 13px; }
.dt-search-input { padding: 6px 10px; height: 40px; font-size: 14px; }
.dt-search-btn { padding: 0 16px; height: 40px; font-size: 14px; }
.dt-hot-keywords { font-size: 11px; white-space: nowrap; overflow-x: auto; }
.dt-hot-keywords a { margin-right: 6px; }

/* ========== 导航栏 ========== */
.dt-navbar { height: auto; }
.dt-nav-menu { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dt-nav-menu li a { padding: 0 10px; line-height: 40px; font-size: 14px; }

/* ========== 面包屑 ========== */
.dt-bread { padding: 8px 12px; font-size: 12px; }

/* ========== 主内容区 ========== */
.dt-main { padding: 8px 0; }
.dt-main-inner { flex-direction: column; }
.dt-content { padding: 12px; }
.dt-sidebar { width: 100%; order: 99; }

/* ========== 首页Banner ========== */
.home-banner { flex-direction: column; gap: 10px; margin-bottom: 10px; }
.home-slider { height: 180px; border-radius: 4px; }
.home-slide img { object-fit: cover; }
.home-quick { flex-direction: column; }
.home-quick-tab, .home-quick-announce { width: 100%; }
.home-quick-tab ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.home-quick-tab li a { font-size: 13px; padding: 8px 6px; }
.home-quick-tab .ico { font-size: 18px; margin-right: 4px; }

/* ========== 内容区块 ========== */
.home-section { margin-bottom: 12px; }
.home-section-hd { padding: 10px 12px; }
.home-section-hd h2 { font-size: 16px; }
.home-section-bd { padding: 10px 12px; }

/* ========== 缩略图列表 ========== */
.thumb-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.thumb-list-5 { grid-template-columns: repeat(2, 1fr) !important; }
.thumb-img { aspect-ratio: 1 / 1; }
.thumb-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.thumb-title { font-size: 13px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thumb-price { font-size: 13px; color: #e4393c; }
.thumb-desc, .thumb-area { font-size: 11px; color: #999; }

/* ========== 文字列表 ========== */
.text-list li { padding: 8px 0; font-size: 13px; display: flex; align-items: center; gap: 4px; }
.text-list a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-list-cat { font-size: 11px; color: #e4393c; flex-shrink: 0; }
.text-list-area { font-size: 11px; color: #999; flex-shrink: 0; }
.text-list-date { font-size: 11px; color: #999; flex-shrink: 0; }

/* ========== 投票调查 ========== */
.vote-page { padding: 12px; }
.vote-options { gap: 8px; }
.vote-option label { padding: 10px; font-size: 14px; }
.vote-submit { flex-direction: column; gap: 8px; align-items: stretch; }
.vote-submit button { width: 100%; }

/* ========== 详情页 ========== */
.show-title { font-size: 18px; line-height: 1.4; padding: 12px; }
.show-pic-main { max-width: 100%; height: auto; border-radius: 4px; }
.show-attrs { padding: 12px; }
.show-attrs li { flex-direction: column; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.show-attrs .attr-name { width: auto; font-size: 12px; color: #999; margin-bottom: 2px; }
.show-attrs .attr-value { font-size: 14px; }
.show-intro { padding: 12px; font-size: 14px; line-height: 1.7; }
.show-contact { padding: 12px; }
.show-contact li { font-size: 13px; padding: 6px 0; }

/* ========== 列表页 ========== */
.list-filter { padding: 10px 12px; flex-direction: column; gap: 8px; }
.list-filter select { width: 100%; height: 36px; }
.list-item { padding: 12px; flex-direction: column; }
.list-item-thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; margin-bottom: 8px; }
.list-item-info { width: 100%; }
.list-item-title { font-size: 15px; }
.list-item-meta { font-size: 12px; }
.list-item-price { font-size: 16px; }

/* ========== 分页 ========== */
.pagination { padding: 12px; flex-wrap: wrap; justify-content: center; gap: 4px; }
.pagination a, .pagination span { padding: 6px 10px; font-size: 13px; }

/* ========== 侧边栏 ========== */
.side-box { margin-bottom: 10px; }
.side-box-hd { padding: 8px 12px; }
.side-box-hd h3 { font-size: 14px; }
.side-box-bd { padding: 10px 12px; }

/* ========== 表单 ========== */
.form-row { flex-direction: column; gap: 4px; }
.form-label { width: auto; text-align: left; font-size: 13px; }
.form-input, .form-select, .form-textarea { width: 100%; height: 40px; font-size: 14px; }
.form-textarea { height: 100px; }

/* ========== 底部 ========== */
.dt-footer { padding: 16px 12px; font-size: 12px; }
.dt-footer-links { flex-wrap: wrap; justify-content: center; gap: 6px 12px; }
.dt-footer-links a { font-size: 12px; }

/* ========== 登录/注册 ========== */
.auth-box { padding: 20px 12px; }
.auth-box-hd { font-size: 18px; }
.auth-form { max-width: 100%; }
.auth-row input { height: 44px; font-size: 15px; }
.auth-submit { height: 44px; font-size: 15px; }

/* ========== 会员中心 ========== */
.mcenter-sidebar { width: 100%; margin-bottom: 12px; }
.mcenter-content { padding: 12px; }
.mcenter-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mcenter-menu a { padding: 10px 4px; font-size: 12px; text-align: center; }

/* ========== 浮动按钮 ========== */
#back-to-top { width: 40px; height: 40px; right: 12px; bottom: 60px; }

}

/* ========== 更小的屏幕适配 (480px以下) ========== */
@media (max-width: 480px) {

.thumb-list { grid-template-columns: repeat(2, 1fr) !important; }
.thumb-list-5 { grid-template-columns: repeat(2, 1fr) !important; }

.home-quick-tab ul { grid-template-columns: repeat(2, 1fr); }

.dt-nav-menu li a { padding: 0 8px; font-size: 13px; }

.mcenter-menu { grid-template-columns: repeat(2, 1fr); }

.show-title { font-size: 16px; }

}
