/* 山东有色金属网 - 官网样式（系统字体栈，无外部资源依赖） */
* { 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; table-layout: auto; }
.quote-table th, .quote-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: 13px; word-break: break-all; white-space: normal; overflow: visible; text-overflow: clip; }
.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; word-break: keep-all; white-space: nowrap; }
.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; }
.mp-box .mini-code-link { display: inline-block; line-height: 0; }
.mp-box img.mini-code { width: 128px; height: 128px; border-radius: 8px; }
.mp-box .mini-code-link:hover img { border-color: #d9a23f; }

/* 文章 */
.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; }
.footer-mini { flex: 0 0 140px; }
.footer-mini p { margin-top: 6px; font-size: 12px; }
.footer-mini .mini-code-link { display: inline-block; padding: 4px; border-radius: 5px; background: #fff; line-height: 0; }
.footer-mini .mini-code-link:hover { background: #f3e6c8; }
.footer-mini img { display: block; width: 120px; height: 120px; border-radius: 2px; }
.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; }

/* 官网配置化内容 */
.nav-inner { flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.home-info-body { padding: 16px 18px; color: #555; line-height: 1.9; }
.home-info-body p + p { margin-top: 6px; }
.home-image { overflow: hidden; }
.home-image > a, .home-image > img { display: block; width: 100%; }
.home-image > a > img { display: block; width: 100%; height: auto; }
.quote-table-wrap { overflow-x: auto; }
.muted { color: #999; }
.text-link { color: #2b6cb0; }
.about-lead { font-size: 16px; color: #333; }
.contact-intro { text-align: center; color: #777; margin: 4px 0 24px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-item { padding: 22px; background: #faf7f3; border: 1px solid #f0e7dd; border-radius: 6px; }
.contact-label { display: block; color: #999; margin-bottom: 6px; }
.contact-item strong { font-size: 17px; color: #444; overflow-wrap: anywhere; }
.contact-business { margin-top: 24px; }
.contact-business h2 { font-size: 18px; color: #c8161d; margin-bottom: 8px; }
.site-carousel { position: relative; overflow: hidden; margin-bottom: 16px; border-radius: 6px; background: #eee; outline: none; }
.site-carousel:focus-visible { box-shadow: 0 0 0 3px rgba(200,22,29,.28); }
.carousel-track { position: relative; aspect-ratio: 1200 / 360; }
.carousel-slide { display: none; width: 100%; height: 100%; }
.carousel-slide.is-active { display: block; }
.carousel-slide a, .carousel-slide img { display: block; width: 100%; height: 100%; }
.carousel-slide img { object-fit: cover; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 48px; border: 0; border-radius: 4px; background: rgba(0,0,0,.38); color: #fff; font-size: 25px; cursor: pointer; }
.carousel-arrow:hover, .carousel-arrow:focus-visible { background: rgba(200,22,29,.85); }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.carousel-dots button { width: 24px; height: 4px; padding: 0; border: 0; border-radius: 3px; background: rgba(255,255,255,.55); cursor: pointer; }
.carousel-dots button.is-active { background: #fff; }

/* 响应式 */
@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; }
  /* 列表页隐藏牌号和规格；详情页 .price-block 的第 2、3 列是价格与单位，必须保留。 */
  .quote-table:not(.price-block) th:nth-child(2), .quote-table:not(.price-block) td:nth-child(2),
  .quote-table:not(.price-block) th:nth-child(3), .quote-table:not(.price-block) 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; }
}
@media (max-width: 600px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .main { padding-left: 10px; padding-right: 10px; }
  .search-box { width: 100%; }
  .search-box input { flex: 1; width: auto; min-width: 0; }
  .nav a { padding: 9px 11px; font-size: 14px; }
  .metal-cell { flex-basis: 50%; }
  .metal-rq { display: block; margin-left: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-item { padding: 16px; }
  .news-list li { align-items: flex-start; gap: 8px; }
  .news-date { padding-top: 2px; }
  .carousel-arrow { width: 32px; height: 40px; }
}


/* 里程碑 1：首页组合布局。新组件统一使用三层色彩变量。 */
:root {
  --metal-red-primitive: oklch(48% 0.19 25);
  --metal-red-dark-primitive: oklch(40% 0.16 25);
  --metal-gold-primitive: oklch(65% 0.12 75);
  --ink-primitive: oklch(28% 0.02 60);
  --paper-primitive: oklch(99% 0.003 75);
  --line-primitive: oklch(91% 0.008 75);
  --color-accent: var(--metal-red-primitive);
  --color-accent-hover: var(--metal-red-dark-primitive);
  --color-text: var(--ink-primitive);
  --color-surface: var(--paper-primitive);
  --color-border: var(--line-primitive);
  --home-panel-heading: var(--color-accent);
  --home-panel-border: var(--color-border);
}
.home-modern { font-size: 16px; color: var(--color-text); }
.home-modern .panel-head h2 { color: var(--home-panel-heading); }
.home-modern .panel { border-color: var(--home-panel-border); }
.home-quote-group { overflow: hidden; }
.quote-combo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.05fr) minmax(0, 1fr); gap: 12px; padding: 16px; align-items: start; }
.quote-side { display: grid; gap: 12px; min-width: 0; }
.quote-slot, .quote-center { min-width: 0; border: 1px solid #e5e7e9; background: #fff; }
.quote-slot-head { display: flex; min-height: 45px; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-bottom: 1px solid #eee; background: #fafafa; }
.quote-slot-head h3 { min-width: 0; font-size: 15px; line-height: 1.35; color: #333; overflow-wrap: anywhere; }
.quote-slot-head a, .market-more a { flex-shrink: 0; font-size: 12px; color: #8b5b15; }
.quote-slot-head a:hover, .market-more a:hover { color: #c8161d; }
.quote-mini-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.quote-mini-table th, .quote-mini-table td { padding: 8px 6px; text-align: left; vertical-align: top; border-bottom: 1px solid #f0f0f0; font-size: 12px; line-height: 1.45; }
.quote-mini-table th { color: #737373; font-weight: 500; background: #fcfcfc; }
.quote-mini-table th:nth-child(1) { width: 28%; }
.quote-mini-table th:nth-child(2) { width: 29%; }
.quote-mini-table th:nth-child(3) { width: 20%; }
.quote-mini-table th:nth-child(4) { width: 23%; }
.quote-mini-table .td-name a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-mini-table .td-price { overflow-wrap: anywhere; white-space: normal; }
.quote-mini-table .td-price em { display: block; margin-top: 2px; font-size: 11px; white-space: normal; }
.quote-mini-table .td-date { font-size: 11px; color: #777; overflow-wrap: anywhere; }
.quote-mini-table tr:last-child td { border-bottom: 0; }
.market-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid #e5e7e9; background: #fafafa; }
.market-tabs button { min-height: 44px; padding: 8px 18px; border: 0; border-right: 1px solid #e5e7e9; border-bottom: 2px solid transparent; background: transparent; color: #444; font-size: 15px; cursor: pointer; transition: background-color .18s ease-out, color .18s ease-out; }
.market-tabs button:hover { background: #f3f3f3; color: #c8161d; }
.market-tabs button.is-active { background: #fff; color: #c8161d; border-bottom-color: #c8161d; font-weight: 600; }
.market-more { min-height: 40px; display: flex; align-items: center; justify-content: flex-end; padding: 6px 12px; border-bottom: 1px solid #f0f0f0; }
.market-quote-panel[hidden] { display: none; }
.compact-empty { padding: 22px 12px; font-size: 14px; }
.home-banner { margin-bottom: 16px; overflow: hidden; border-radius: 6px; background: #eee; }
.home-banner > a, .home-banner > img, .home-banner > a > img { display: block; width: 100%; }
.home-banner img { max-height: 240px; object-fit: cover; }
.home-news-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-news-column { min-width: 0; margin-bottom: 16px; }
.home-news-column .news-list { padding-left: 14px; padding-right: 14px; }
.home-news-column .news-list li { gap: 8px; }
.home-news-column .news-list li a { font-size: 14px; }
.home-news-column .news-date { font-size: 11px; }
.home-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.image-fallback { display: flex; width: 100%; min-height: 120px; height: 100%; align-items: center; justify-content: center; padding: 16px; background: #f1f2f3; color: #777; font-size: 13px; text-align: center; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(200, 22, 29, .35); outline-offset: 2px; }
.nav-toggle { display: none; min-height: 44px; margin: 0 15px 10px; padding: 8px 16px; border: 1px solid #c8161d; border-radius: 4px; background: #fff; color: #c8161d; font-size: 15px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (max-width: 1000px) {
  .quote-combo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 8px; padding: 12px; }
  .quote-mini-table th, .quote-mini-table td { padding: 7px 4px; font-size: 11px; }
  .market-tabs button { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 900px) {
  .quote-combo { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .quote-center { order: -1; }
  .quote-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-mini-table th, .quote-mini-table td { padding: 8px 6px; font-size: 12px; }
  .home-news-columns { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .home-news-column { margin-bottom: 12px; }
  .home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; }
  .nav.is-open { display: block; }
  .nav-inner { padding-top: 4px; padding-bottom: 4px; }
  .nav a { min-height: 44px; padding: 11px 14px; }
  .search-box button { min-width: 64px; min-height: 44px; }
  .search-box input { min-height: 44px; }
}
@media (max-width: 600px) {
  .quote-combo { padding: 10px; }
  .quote-side { grid-template-columns: minmax(0, 1fr); }
  .quote-slot-head { min-height: 44px; }
  .quote-slot-head h3 { font-size: 14px; }
  .market-tabs button { flex: 1 1 auto; padding-left: 10px; padding-right: 10px; font-size: 14px; }
  .home-product-grid { gap: 12px; padding: 12px; }
}
@media (max-width: 420px) {
  .home-product-grid { grid-template-columns: minmax(0, 1fr); }
  .panel-head { padding-left: 12px; padding-right: 12px; }
  .panel-head h2 { font-size: 16px; }
}


/* 全站内容、会员与产品图集 */
.member-entry, .member-entry a { display: inline-flex; min-height: 32px; align-items: center; color: #f0c16f; }
.topbar-inner { min-height: 32px; height: auto; gap: 16px; }
.copyright { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.copyright a { color: #aaa; }
.page-summary { margin: 0 0 22px; padding-bottom: 16px; border-bottom: 1px solid #eee; color: #777; font-size: 16px; text-align: center; }
.page-content { min-height: 120px; white-space: pre-wrap; overflow-wrap: anywhere; }
.page-contact-grid { margin-top: 24px; }
.standard-page .contact-business p { line-height: 1.8; }
.search-title { color: #c8161d; font-size: 18px; }
.search-tabs { padding-bottom: 4px; border-bottom: 1px solid #eee; }
.search-tabs a { min-height: 36px; }
.search-result-list { padding: 0 18px; }
.search-result { display: flex; min-height: 112px; align-items: center; gap: 16px; padding: 18px 4px; border-bottom: 1px solid #eee; }
.search-result > img { width: 120px; height: 84px; flex: 0 0 120px; border-radius: 4px; object-fit: cover; background: #f3f4f5; }
.search-result-body { flex: 1; min-width: 0; }
.search-result h2 { margin: 5px 0; color: #333; font-size: 17px; }
.search-result:hover h2 { color: #c8161d; }
.search-result p { display: -webkit-box; overflow: hidden; color: #777; font-size: 14px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.search-result time { color: #999; font-size: 12px; }
.result-type { display: inline-block; padding: 1px 7px; border-radius: 3px; background: #eef3f8; color: #2b6cb0; font-size: 12px; }
.result-product { background: #fbf2e4; color: #8b5b15; }
.result-news { background: #f1f1f1; color: #666; }
.result-arrow { color: #aaa; font-size: 28px; }
.product-card { position: relative; }
.recommend-badge { position: absolute; z-index: 1; top: 8px; left: 8px; padding: 2px 8px; border-radius: 3px; background: #c8161d; color: #fff; font-size: 12px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.gallery-thumb { min-width: 0; min-height: 54px; padding: 2px; border: 2px solid transparent; border-radius: 4px; background: #f4f4f4; cursor: pointer; }
.gallery-thumb.is-active { border-color: #c8161d; }
.gallery-thumb img { display: block; width: 100%; height: 58px; border-radius: 2px; object-fit: cover; }
.pd-pic > #product-gallery-main { width: 100%; aspect-ratio: 4 / 3; border-radius: 4px; object-fit: cover; background: #f5f6f7; }
.auth-layout { display: grid; max-width: 920px; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; margin: 24px auto; align-items: stretch; }
.auth-panel { margin: 0; padding: 32px; }
.auth-heading { margin-bottom: 24px; text-align: center; }
.auth-heading h1 { color: #c8161d; font-size: 25px; }
.auth-heading p { margin-top: 6px; color: #777; font-size: 14px; }
.auth-form { display: grid; gap: 12px; }
.auth-form label { margin-top: 4px; color: #444; font-size: 15px; font-weight: 600; }
.auth-form input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; }
.primary-button, .secondary-button { min-height: 44px; padding: 9px 18px; border-radius: 4px; cursor: pointer; font-size: 15px; }
.primary-button { margin-top: 8px; border: 1px solid #c8161d; background: #c8161d; color: #fff; }
.primary-button:hover { background: #a91118; }
.secondary-button { border: 1px solid #ddd; background: #fff; color: #555; }
.form-error { margin-bottom: 16px; padding: 10px 12px; border: 1px solid #efc4c6; border-radius: 4px; background: #fff2f2; color: #a91118; }
.auth-note { margin-top: 20px; color: #777; font-size: 13px; line-height: 1.8; }
.auth-aside { padding: 32px 26px; border-radius: 6px; background: #403b38; color: #f4f4f4; }
.auth-aside h2 { margin-bottom: 18px; color: #f0c16f; font-size: 20px; }
.auth-aside ul { padding-left: 20px; line-height: 2.1; }
.auth-aside p { margin: 22px 0 12px; color: #fff; font-size: 14px; line-height: 1.8; }
.auth-aside a { color: #f0c16f; }
.member-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.member-heading h1 { color: #333; font-size: 25px; }
.member-heading p { color: #777; }
.member-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.member-status { padding: 20px; border-radius: 6px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.member-status span { display: block; margin-bottom: 8px; color: #888; font-size: 13px; }
.member-status strong { color: #c8161d; font-size: 18px; overflow-wrap: anywhere; }
.member-renewal { margin-bottom: 16px; padding: 16px 18px; border-left: 3px solid #d9a23f; background: #fff9ed; color: #5c4a29; }
.member-renewal p { margin-top: 4px; }
.member-section { scroll-margin-top: 16px; }
.count-badge { display: inline-block; min-width: 22px; margin-left: 4px; padding: 0 6px; border-radius: 10px; background: #f2f2f2; color: #777; font-size: 12px; text-align: center; }
.section-note { padding: 10px 18px 0; color: #888; font-size: 13px; }
.member-record-list { padding: 4px 18px 12px; }
.member-record { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #eee; }
.member-record:last-child { border-bottom: 0; }
.record-main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.record-main strong { color: #2b6cb0; font-size: 15px; }
.record-main span { color: #888; font-size: 13px; overflow-wrap: anywhere; }
.member-record time { color: #777; }
.link-button { min-height: 40px; padding: 6px 0 6px 12px; border: 0; background: transparent; color: #a91118; cursor: pointer; }
@media (max-width: 760px) {
  .topbar-inner { padding-top: 4px; padding-bottom: 4px; }
  .member-entry, .member-entry a { min-height: 40px; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
  .auth-panel { padding: 24px 18px; }
  .member-status-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .member-status { padding: 14px 16px; }
  .search-result > img { width: 88px; height: 72px; flex-basis: 88px; }
  .search-result-list { padding: 0 12px; }
}
@media (max-width: 480px) {
  .topbar-inner > span:first-child { max-width: 62%; }
  .member-heading { align-items: flex-start; flex-direction: column; }
  .member-heading form, .member-heading button { width: 100%; }
  .search-result { gap: 10px; }
  .search-result > img { display: none; }
  .search-result h2 { font-size: 16px; }
  .gallery-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 首页行业新闻＋合并报价、热销产品及分类置顶展示 */
.home-quote-layout { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 2fr); gap: 16px; padding: 16px; }
.industry-news { min-width: 0; border: 1px solid #e5e7e9; background: #fff; }
.quote-block-head { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #e5e7e9; background: #fafafa; }
.quote-block-head h3 { margin: 0; color: #222; font-size: 17px; line-height: 1.4; }
.quote-block-head a { flex-shrink: 0; color: #8b5b15; font-size: 13px; }
.industry-news-list { margin: 0; padding: 8px 14px; list-style: none; }
.industry-news-list li { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.industry-news-list li:last-child { border-bottom: 0; }
.industry-news-list a { color: #25292c; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.industry-news-list a:hover { color: #c8161d; }
.industry-news-list span { color: #777; font-size: 12px; }
.home-quote-content { min-width: 0; display: grid; gap: 16px; }
.market-block, .regional-block { min-width: 0; border: 1px solid #e5e7e9; background: #fff; }
.regional-tabs { background: #f8f9fa; }
.regional-tabs button { padding-left: 14px; padding-right: 14px; }
.home-quote-group .quote-mini-table { color: #222; }
.home-quote-group .quote-mini-table th, .home-quote-group .quote-mini-table td { font-size: 14px; padding-top: 9px; padding-bottom: 9px; }
.home-quote-group .quote-mini-table .td-name a, .home-quote-group .quote-mini-table .td-price { color: #1c1f22; font-weight: 600; }
.home-quote-group .quote-mini-table .td-price { font-size: 16px; }
.home-quote-group .quote-mini-table .td-date, .home-quote-group .quote-mini-table .td-price em { color: #555; }
.hot-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-hot-products .product-pic, .home-product-section .product-pic { aspect-ratio: 16 / 9; }
.home-hot-products .product-body, .home-product-section .product-body { padding: 10px 12px; }
@media (max-width: 1000px) {
  .home-quote-layout { grid-template-columns: minmax(190px, .65fr) minmax(0, 1.6fr); gap: 12px; padding: 12px; }
  .home-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .home-quote-layout { grid-template-columns: minmax(0, 1fr); }
  .industry-news { order: 2; }
  .home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hot-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .home-quote-layout { padding: 10px; }
  .quote-block-head { padding: 8px 10px; }
  .quote-block-head h3 { font-size: 16px; }
  .home-quote-group .quote-mini-table th, .home-quote-group .quote-mini-table td { font-size: 13px; }
  .home-quote-group .quote-mini-table .td-price { font-size: 15px; }
}
@media (max-width: 420px) {
  .home-product-grid, .hot-product-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 首页“我要卖”供应信息：桌面表格、手机供应卡片。 */
.home-selling { overflow: hidden; }
.selling-en { margin-left: 12px; color: #8a8f92; font-size: 15px; font-weight: 400; }
.selling-table-wrap { width: 100%; overflow-x: auto; }
.selling-table { width: 100%; table-layout: fixed; border-collapse: collapse; color: #262b2e; }
.selling-table th, .selling-table td { padding: 13px 10px; border-bottom: 1px solid #eceeef; font-size: 14px; line-height: 1.55; text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.selling-table th { background: #fafafa; color: #656b6f; font-weight: 500; }
.selling-table tr:last-child td { border-bottom: 0; }
.selling-table th:nth-child(1) { width: 18%; }
.selling-table th:nth-child(2), .selling-table th:nth-child(3) { width: 10%; }
.selling-table th:nth-child(4) { width: 12%; }
.selling-table th:nth-child(5), .selling-table th:nth-child(6) { width: 10%; }
.selling-table th:nth-child(7) { width: 18%; }
.selling-table th:nth-child(8) { width: 12%; }
.selling-table tbody tr { transition: background-color .18s ease-out; }
.selling-table tbody tr:hover { background: #fcfcfc; }
.selling-product a, .selling-supplier, .selling-card a { color: #252a2d; }
.selling-product a:hover, .selling-supplier:hover, .selling-card a:hover { color: #c8161d; }
.selling-recommend { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: #c8161d; color: #fff; font-size: 12px; vertical-align: middle; }
.selling-price { color: #a91118; font-weight: 600; }
.selling-cards { display: none; }
@media (max-width: 1000px) {
  .selling-table th, .selling-table td { padding: 11px 7px; font-size: 13px; }
}
@media (max-width: 760px) {
  .selling-table-wrap { display: none; }
  .selling-cards { display: grid; gap: 12px; padding: 12px; }
  .selling-card { padding: 14px; border: 1px solid #e5e7e9; border-radius: 6px; background: #fff; }
  .selling-card-head { display: flex; align-items: flex-start; gap: 4px; }
  .selling-card-head h3 { margin: 0; font-size: 16px; line-height: 1.5; }
  .selling-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
  .selling-card-grid div { min-width: 0; }
  .selling-card-grid span { display: block; margin-bottom: 3px; color: #777; font-size: 12px; }
  .selling-card-grid strong { display: block; color: #333; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
  .selling-card-grid .selling-price { color: #a91118; font-weight: 600; }
  .selling-card-supplier { display: block; min-height: 44px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #eee; font-size: 14px; line-height: 1.6; }
}


/* 材料详情页走势图区间切换：保留缩放条，按钮在手机端自然换行。 */
.trend-panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.trend-range-switch { display: inline-flex; align-items: center; gap: 6px; }
.trend-range-switch button { appearance: none; border: 1px solid #d9dcdf; background: #fff; color: #555; border-radius: 4px; padding: 6px 13px; font-size: 13px; line-height: 1.4; cursor: pointer; transition: color .18s ease-out, border-color .18s ease-out, background-color .18s ease-out; }
.trend-range-switch button:hover { color: #c8161d; border-color: #d98a8f; }
.trend-range-switch button.is-active { color: #fff; border-color: #c8161d; background: #c8161d; }
.trend-range-switch button:focus-visible { outline: 2px solid #c8161d; outline-offset: 2px; }
.trend-feedback { min-height: 4px; margin-top: 4px; font-size: 13px; }
.trend-loading { color: #777; }
.trend-error { color: #b4232a; }
@media (max-width: 600px) {
  .trend-panel-head { align-items: flex-start; }
  .trend-range-switch { width: 100%; }
  .trend-range-switch button { flex: 1; padding: 7px 8px; }
}


/* 报价分类页同级中类下拉：切换时直接进入目标分类。 */
.quote-category-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.quote-category-switch { display: inline-flex; align-items: center; gap: 8px; color: #666; font-size: 13px; font-weight: 400; }
.quote-category-switch select { min-width: 150px; max-width: 220px; min-height: 34px; padding: 5px 30px 5px 10px; border: 1px solid #d9dcdf; border-radius: 4px; background: #fff; color: #333; font: inherit; cursor: pointer; }
.quote-category-switch select:focus-visible { outline: 2px solid #c8161d; outline-offset: 2px; }
@media (max-width: 600px) {
  .quote-category-switch { width: 100%; }
  .quote-category-switch select { flex: 1; max-width: none; min-width: 0; }
}
