/* 山东有色金属网 - 官网样式（系统字体栈，无外部资源依赖） */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; color: #333; background: #f5f6f7; line-height: 1.6;
}
a { color: #333; text-decoration: none; }
a:hover { color: #c8161d; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* 顶栏 */
.topbar { background: #3b3b3b; color: #bbb; font-size: 12px; }
.topbar-inner { display: flex; justify-content: space-between; height: 32px; align-items: center; }
.topbar-right { color: #d9a23f; }

/* 头部 */
.header { background: #fff; border-bottom: 3px solid #c8161d; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 15px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 46px; height: 46px; border-radius: 8px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.3; }
.logo-text strong { font-size: 22px; color: #c8161d; letter-spacing: 1px; }
.logo-text span { font-size: 12px; color: #999; }
.search-box { display: flex; }
.search-box input {
  width: 300px; height: 38px; padding: 0 12px; font-size: 14px;
  border: 2px solid #c8161d; border-right: none; border-radius: 4px 0 0 4px; outline: none;
}
.search-box button {
  height: 38px; padding: 0 22px; font-size: 15px; color: #fff; background: #c8161d;
  border: none; border-radius: 0 4px 4px 0; cursor: pointer;
}
.search-box button:hover { background: #a91118; }

/* 导航 */
.nav { background: #c8161d; }
.nav-inner { display: flex; }
.nav a { display: block; padding: 12px 34px; font-size: 16px; color: #fff; }
.nav a:hover, .nav a.active { background: #a91118; color: #fff; }

/* 主体 */
.main { padding: 16px 15px 30px; }
.breadcrumb { padding: 8px 2px 14px; color: #888; font-size: 13px; }
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #c8161d; }

.panel { background: #fff; border-radius: 6px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid #eee;
}
.panel-head h2 { font-size: 17px; color: #c8161d; border-left: 4px solid #c8161d; padding-left: 10px; }
.panel-head .more { font-size: 13px; color: #999; }
.panel-head .more:hover { color: #c8161d; }
.empty { padding: 30px; text-align: center; color: #999; }

/* 首页布局 */
.home-layout { display: flex; gap: 16px; align-items: flex-start; }
.home-main { flex: 1; min-width: 0; }
.home-side { width: 300px; flex-shrink: 0; }

/* 报价表格 */
.quote-group { padding: 10px 18px 4px; }
.quote-group-head h3 { font-size: 15px; padding: 6px 0; }
.quote-group-head h3 a { color: #d9a23f; }
.quote-group-head h3 a:hover { color: #c8161d; }
.quote-table { width: 100%; border-collapse: collapse; margin: 4px 0 8px; }
.quote-table th, .quote-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.quote-table th { color: #888; font-weight: normal; background: #fafafa; }
.quote-table tr:hover td { background: #fdf7f0; }
.td-name a { color: #2b6cb0; }
.td-name a:hover { color: #c8161d; text-decoration: underline; }
.td-price { color: #c8161d; font-weight: bold; }
.td-price em { font-style: normal; font-weight: normal; color: #999; font-size: 12px; }
.td-date { color: #999; }
.up { color: #e0392f; }
.down { color: #1a9e4b; }
.flat { color: #999; }
.price-block { margin: 10px 18px 16px; width: calc(100% - 36px); }

/* 分类导航 */
.cat-nav { list-style: none; padding: 8px 18px 14px; }
.cat-nav li { padding: 8px 0; border-bottom: 1px dashed #eee; }
.cat-nav li:last-child { border-bottom: none; }
.cat-nav strong { color: #c8161d; display: block; margin-bottom: 4px; }
.cat-links a {
  display: inline-block; margin: 2px 8px 2px 0; padding: 1px 8px; font-size: 12px;
  color: #555; background: #f5f6f7; border-radius: 3px;
}
.cat-links a:hover { background: #c8161d; color: #fff; }

/* 分类页 */
.cat-block { padding: 12px 18px; border-bottom: 1px dashed #eee; }
.cat-block:last-child { border-bottom: none; }
.cat-block h3 { font-size: 15px; color: #c8161d; margin-bottom: 8px; }
.cat-row { display: flex; gap: 14px; padding: 6px 0; align-items: baseline; }
.cat-mid { font-weight: bold; color: #2b6cb0; white-space: nowrap; }
.cat-mid:hover { color: #c8161d; }

/* 标签筛选 */
.tabs { padding: 12px 18px 0; }
.tabs a {
  display: inline-block; margin: 0 8px 8px 0; padding: 4px 14px; font-size: 13px;
  border: 1px solid #ddd; border-radius: 16px; color: #555;
}
.tabs a:hover { border-color: #c8161d; color: #c8161d; }
.tabs a.active { background: #c8161d; border-color: #c8161d; color: #fff; }

/* 分页 */
.pager { padding: 14px 18px; text-align: center; }
.pager a, .pager .cur {
  display: inline-block; min-width: 32px; padding: 5px 10px; margin: 0 3px;
  border: 1px solid #ddd; border-radius: 4px; font-size: 13px;
}
.pager a:hover { border-color: #c8161d; color: #c8161d; }
.pager .cur { background: #c8161d; border-color: #c8161d; color: #fff; }
.pager-total { margin-left: 10px; color: #999; font-size: 13px; }

/* 资讯 */
.news-list { list-style: none; padding: 6px 18px 12px; }
.news-list li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed #eee; }
.news-list li:last-child { border-bottom: none; }
.news-list li a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 14px; }
.news-list li a::before { content: "·"; color: #c8161d; margin-right: 8px; font-weight: bold; }
.news-date { color: #999; font-size: 12px; flex-shrink: 0; }

.news-card-list { list-style: none; padding: 6px 18px 10px; }
.news-card { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px dashed #eee; }
.news-card:last-child { border-bottom: none; }
.news-thumb { width: 168px; height: 105px; flex-shrink: 0; overflow: hidden; border-radius: 4px; background: #f0f0f0; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.news-card-body h3 { font-size: 16px; margin-bottom: 6px; }
.news-card-body h3 a:hover { color: #c8161d; }
.news-synopsis { color: #777; font-size: 13px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-body .news-date { margin-top: 8px; }

/* 详情页 */
.detail-layout { display: flex; gap: 16px; align-items: flex-start; }
.detail-main { flex: 1; min-width: 0; }
.detail-side { width: 300px; flex-shrink: 0; }
.info-table { width: calc(100% - 36px); margin: 14px 18px 4px; border-collapse: collapse; }
.info-table th, .info-table td { padding: 9px 12px; border: 1px solid #f0f0f0; font-size: 13px; text-align: left; }
.info-table th { width: 90px; color: #888; font-weight: normal; background: #fafafa; }

/* 小程序推广 */
.mp-box { padding: 16px 18px; text-align: center; }
.mp-box img { width: 96px; height: 96px; border-radius: 12px; border: 1px solid #eee; }
.mp-box p { margin-top: 10px; font-size: 13px; color: #777; }

/* 文章 */
.article-panel { padding: 26px 34px; }
.article-title { font-size: 24px; line-height: 1.4; margin-bottom: 12px; text-align: center; }
.article-meta { text-align: center; color: #999; font-size: 13px; border-bottom: 1px solid #eee; padding-bottom: 14px; margin-bottom: 18px; }
.article-meta span { margin: 0 12px; }
.article-content { font-size: 15px; line-height: 1.9; color: #444; word-break: break-all; }
.article-content p { margin-bottom: 12px; }
.article-content h2 { font-size: 18px; color: #c8161d; margin: 20px 0 10px; }
.article-content img { max-width: 100%; height: auto; display: block; margin: 10px auto; }
.article-content table { max-width: 100%; border-collapse: collapse; margin: 10px 0; }
.article-content table td, .article-content table th { border: 1px solid #ddd; padding: 6px 10px; }
.article-back { padding: 0 2px 20px; }
.article-back a { color: #2b6cb0; }

/* 页脚 */
.footer { background: #3b3b3b; color: #bbb; margin-top: 20px; }
.footer-inner { display: flex; gap: 40px; padding: 26px 15px 18px; }
.footer-col { flex: 1; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer-col p { font-size: 13px; line-height: 2; }
.footer-col a { color: #bbb; }
.footer-col a:hover { color: #d9a23f; }
.copyright { border-top: 1px solid #4d4d4d; padding: 12px 15px; font-size: 12px; color: #888; text-align: center; }

/* 六大金属横幅 */
.metal-banner { background: #fff; border-radius: 6px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.metal-banner-inner { display: flex; }
.metal-cell {
  flex: 1; padding: 14px 10px; text-align: center; border-right: 1px solid #f0f0f0;
  display: flex; flex-direction: column; gap: 3px;
}
.metal-cell:last-child { border-right: none; }
.metal-cell:hover { background: #fdf7f0; }
.metal-label { font-size: 14px; font-weight: bold; color: #333; }
.metal-label em { font-style: normal; font-weight: normal; font-size: 12px; color: #999; margin-left: 4px; }
.metal-price { font-size: 18px; color: #c8161d; font-weight: bold; }
.metal-price i { font-style: normal; font-size: 11px; color: #999; font-weight: normal; margin-left: 2px; }
.metal-zd { font-size: 12px; }
.metal-rq { color: #bbb; margin-left: 6px; }

/* 热搜/快捷入口 */
.hot-box { padding: 12px 18px; }
.hot-box a {
  display: inline-block; margin: 0 8px 8px 0; padding: 3px 12px; font-size: 12px;
  color: #555; background: #f5f6f7; border-radius: 12px;
}
.hot-box a:hover { background: #c8161d; color: #fff; }
.quick-box { padding: 12px 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.quick-box a {
  flex: 1; min-width: 100px; text-align: center; padding: 8px 0; font-size: 13px;
  background: #f5f6f7; border-radius: 4px; color: #555;
}
.quick-box a:hover { background: #c8161d; color: #fff; }

/* 供需信息 */
.gx-tag {
  display: inline-block; padding: 1px 8px; font-size: 12px; border-radius: 3px;
  color: #fff; flex-shrink: 0; line-height: 1.7;
}
.gx-sup { background: #d9a23f; }
.gx-dem { background: #2b6cb0; }
.gx-list li a::before { content: none; }
.gx-list li { gap: 10px; }
.gx-list-main { list-style: none; padding: 6px 18px 10px; }
.gx-list-main li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed #eee; }
.gx-list-main li:last-child { border-bottom: none; }
.gx-list-main .gx-tag { margin-top: 3px; }
.gx-body { flex: 1; min-width: 0; }
.gx-body h3 { font-size: 15px; margin-bottom: 4px; }
.gx-body h3 a:hover { color: #c8161d; }
.gx-synopsis { color: #888; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-date { color: #999; font-size: 12px; flex-shrink: 0; margin-top: 4px; }
.gx-contact { margin-top: 20px; padding: 14px 18px; background: #fdf7f0; border-radius: 6px; }
.gx-contact h3 { font-size: 15px; color: #c8161d; margin-bottom: 6px; }
.gx-tip-box { padding: 14px 18px; font-size: 13px; color: #777; line-height: 1.9; }
.gx-content p { white-space: pre-wrap; }

/* 产品中心 */
.panel-tip { font-size: 13px; color: #999; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 16px 18px; }
.product-card {
  border: 1px solid #eee; border-radius: 6px; overflow: hidden; background: #fff;
  transition: box-shadow .2s;
}
.product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); border-color: #d9a23f; }
.product-pic { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #f5f6f7; }
.product-pic img { width: 100%; height: 100%; object-fit: cover; }
.product-pic-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #bbb; font-size: 13px; background: #f5f6f7;
}
.product-pic-empty.big { height: 300px; border-radius: 4px; }
.product-body { padding: 12px; }
.product-body h3 { font-size: 15px; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #333; }
.product-card:hover h3 { color: #c8161d; }
.product-spec { font-size: 12px; color: #888; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-synopsis { font-size: 12px; color: #999; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 产品详情 */
.pd-top { display: flex; gap: 24px; padding: 22px 24px; }
.pd-pic { width: 360px; flex-shrink: 0; }
.pd-pic img { width: 100%; border-radius: 4px; }
.pd-info { flex: 1; min-width: 0; }
.pd-title { font-size: 22px; margin-bottom: 14px; }
.pd-table { margin: 0 0 14px; width: 100%; }
.pd-synopsis { color: #666; font-size: 14px; line-height: 1.8; margin-bottom: 16px; }
.pd-contact { padding: 14px 16px; background: #fdf7f0; border-radius: 6px; font-size: 14px; color: #555; line-height: 2; }
.pd-section-head { border-bottom: 1px solid #eee; margin: -26px -34px 18px; padding: 12px 18px; }
.pd-section-head h2 { font-size: 17px; color: #c8161d; border-left: 4px solid #c8161d; padding-left: 10px; }

/* 行情速递分组更多 */
.group-more { padding: 0 18px 12px; text-align: right; }
.group-more a { font-size: 13px; color: #2b6cb0; }
.group-more a:hover { color: #c8161d; }

/* 帮助中心 */
.help-panel { padding: 26px 34px; }
.help-item { margin-bottom: 26px; }
.help-item:last-child { margin-bottom: 0; }
.help-item h2 { font-size: 18px; color: #c8161d; margin-bottom: 12px; border-left: 4px solid #c8161d; padding-left: 10px; }
.help-item h3 { font-size: 15px; margin: 12px 0 6px; }
.help-item p { font-size: 14px; color: #555; line-height: 1.9; margin-bottom: 6px; }
.help-item ul { padding-left: 22px; font-size: 14px; color: #555; line-height: 2; }
.help-nav { list-style: none; padding: 10px 18px; }
.help-nav li { border-bottom: 1px dashed #eee; }
.help-nav li:last-child { border-bottom: none; }
.help-nav a { display: block; padding: 9px 0; font-size: 14px; }
.help-nav a:hover { color: #c8161d; }

/* 响应式 */
@media (max-width: 900px) {
  .home-layout, .detail-layout { flex-direction: column; }
  .home-side, .detail-side { width: 100%; }
  .header-inner { flex-direction: column; gap: 10px; }
  .search-box input { width: 220px; }
  .nav a { padding: 10px 14px; font-size: 15px; }
  .footer-inner { flex-direction: column; gap: 14px; }
  .quote-table th:nth-child(2), .quote-table td:nth-child(2),
  .quote-table th:nth-child(3), .quote-table td:nth-child(3) { display: none; }
  .metal-banner-inner { flex-wrap: wrap; }
  .metal-cell { flex: 0 0 33.33%; border-bottom: 1px solid #f0f0f0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-top { flex-direction: column; }
  .pd-pic { width: 100%; }
  .help-panel, .article-panel { padding: 18px 16px; }
  .pd-section-head { margin: -18px -16px 14px; }
}
