/* 雅之硕供应链 - 现代简洁工业风 */
:root {
  --primary: #0b5cab;
  --primary-dark: #073e75;
  --primary-light: #e8f2fb;
  --accent: #f5a623;
  --text: #2c3540;
  --muted: #6b7785;
  --border: #e3e8ee;
  --bg: #f5f7fa;
  --white: #fff;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(20,45,80,.07);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif; color: var(--text); font-size: 15px; line-height: 1.7; background: var(--white); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

/* 顶部条 */
.topbar { background: var(--primary-dark); color: #cfe0f2; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar-contact strong { color: var(--accent); font-size: 15px; margin-left: 6px; }

/* 主导航 */
.site-header { background: var(--white); border-bottom: 2px solid var(--primary); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 6px rgba(0,0,0,.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: var(--primary); color: #fff; border-radius: 6px; font-size: 24px; font-weight: 800; font-family: Georgia, serif; }
.logo-text b { display: block; font-size: 19px; color: var(--primary-dark); letter-spacing: 1px; }
.logo-text small { display: block; font-size: 9px; color: var(--muted); letter-spacing: 1.5px; }
.site-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav-link { display: block; padding: 10px 13px; font-size: 15px; border-radius: 4px; color: var(--text); transition: .18s; }
.nav-link:hover, .nav-link.active { background: var(--primary); color: #fff; }
.nav-toggle { display: none; border: 0; background: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--primary-dark); margin: 5px 0; }

/* 首页 hero */
.hero { position: relative; height: 380px; overflow: hidden; background: var(--primary-dark); }
.hero-slider { position: relative; height: 100%; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 30px; background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; font-size: 20px; font-weight: 600; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 60px; border: 0; background: rgba(0,0,0,.28); color: #fff; font-size: 32px; cursor: pointer; z-index: 3; }
.hero-arrow:hover { background: rgba(0,0,0,.48); }
.hero-arrow.prev { left: 0; } .hero-arrow.next { right: 0; }
.hero-dots { position: absolute; bottom: 16px; right: 24px; display: flex; gap: 8px; z-index: 3; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.hero-dots button.active { background: var(--accent); }

/* 通用 */
.main { min-height: 50vh; }
.section { padding: 44px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; border-bottom: 2px solid var(--primary-light); padding-bottom: 10px; }
.section-head h2 { font-size: 23px; color: var(--primary-dark); position: relative; padding-left: 14px; }
.section-head h2::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; background: var(--primary); border-radius: 2px; }
.section-head .more { color: var(--muted); font-size: 14px; }
.breadcrumb { font-size: 13px; color: var(--muted); padding: 14px 0 0; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 7px; color: #c3cbd4; }

/* 首页产品分类卡片 */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.cat-card { display: block; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .2s; box-shadow: var(--shadow); }
.cat-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 22px rgba(11,92,171,.13); }
.cat-card .cat-img { height: 130px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cat-card .cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .cat-img .ph { color: var(--primary); font-size: 32px; font-weight: 700; }
.cat-card .cat-body { padding: 14px 16px; }
.cat-card h3 { font-size: 16px; color: var(--primary-dark); margin-bottom: 3px; }
.cat-card p { font-size: 12px; color: var(--muted); }
.cat-card .count { float: right; color: var(--accent); font-size: 12px; }

/* 产品列表 */
.goods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.goods-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .2s; }
.goods-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.goods-card .thumb { height: 210px; background: #fafbfc; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--border); }
.goods-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.goods-card .noimg { color: #b8c2ce; font-size: 14px; }
.goods-card .body { padding: 13px 15px; }
.goods-card h3 { font-size: 15px; line-height: 1.5; min-height: 44px; }
.goods-card h3 a { color: var(--text); }
.goods-card h3 a:hover { color: var(--primary); }
.goods-card .meta { font-size: 12px; color: var(--muted); margin-top: 7px; display: flex; justify-content: space-between; }
.goods-card .price { color: #d0021b; font-weight: 700; font-size: 15px; }
.goods-card .price.free { color: var(--muted); font-weight: 400; font-size: 13px; }

/* 筛选栏 */
.filter-bar { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.filter-row:last-child { border-bottom: 0; }
.filter-label { width: 64px; flex-shrink: 0; color: var(--muted); font-size: 13px; padding-top: 4px; }
.filter-row a { font-size: 13px; padding: 3px 10px; border-radius: 3px; }
.filter-row a:hover { background: var(--primary-light); }
.filter-row a.on { background: var(--primary); color: #fff; }

/* 列表页布局 */
.layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.sidebar { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sidebar h3 { background: var(--primary); color: #fff; padding: 12px 16px; font-size: 16px; }
.sidebar ul li a { display: block; padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.sidebar ul li a:hover, .sidebar ul li a.on { background: var(--primary-light); color: var(--primary); }
.sidebar ul li a .cnt { float: right; color: var(--muted); font-size: 12px; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 28px 0; }
.pagination a, .pagination span { min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; background: #fff; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 文章列表 / 下载列表 */
.list-item { display: flex; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.list-item .date { flex-shrink: 0; width: 76px; color: var(--muted); font-size: 13px; text-align: center; border-right: 1px solid var(--border); }
.list-item .date b { display: block; color: var(--primary); font-size: 19px; line-height: 1.2; }
.list-item .content { flex: 1; }
.list-item h3 { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.list-item h3 a:hover { color: var(--primary); }
.list-item p { color: var(--muted); font-size: 13px; }

/* 文章详情 */
.article-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; }
.article-box h1 { font-size: 25px; color: var(--primary-dark); text-align: center; margin-bottom: 12px; }
.article-meta { text-align: center; color: var(--muted); font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.article-content { font-size: 15px; line-height: 1.9; }
.article-content img { max-width: 100%; height: auto; margin: 10px 0; }
.article-content table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.article-content td, .article-content th { border: 1px solid var(--border); padding: 7px 10px; }

/* 产品详情 */
.detail-layout { display: grid; grid-template-columns: 380px 1fr; gap: 30px; }
.detail-img { border: 1px solid var(--border); border-radius: var(--radius); background: #fafbfc; min-height: 340px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.detail-img img { max-width: 100%; max-height: 420px; object-fit: contain; }
.detail-title { font-size: 24px; color: var(--primary-dark); margin-bottom: 14px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.spec-table td { border: 1px solid var(--border); padding: 9px 12px; font-size: 14px; }
.spec-table td:first-child { width: 130px; background: var(--bg); color: var(--muted); }
.detail-tabs { margin-top: 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.tab-heads { display: flex; border-bottom: 1px solid var(--border); background: var(--bg); }
.tab-heads button { border: 0; background: none; padding: 12px 20px; font-size: 15px; cursor: pointer; color: var(--muted); }
.tab-heads button.on { background: #fff; color: var(--primary); border-bottom: 2px solid var(--primary); font-weight: 600; }
.tab-body { padding: 20px; min-height: 100px; }
.tab-body img { max-width: 100%; }
.tab-body table { border-collapse: collapse; width: 100%; }
.tab-body td, .tab-body th { border: 1px solid var(--border); padding: 6px 9px; }
.btn { display: inline-block; padding: 9px 20px; background: var(--primary); color: #fff; border: 0; border-radius: 4px; font-size: 14px; cursor: pointer; }
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn-o { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-o:hover { background: var(--primary); color: #fff; }

/* 品牌网格 */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.brand-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; background: #fff; transition: .2s; }
.brand-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.brand-card img { height: 62px; margin: 0 auto 10px; object-fit: contain; }
.brand-card .ph { height: 62px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 24px; font-weight: 700; }
.brand-card b { display: block; color: var(--primary-dark); font-size: 15px; }

/* 联系/表单 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.info-card { background: var(--bg); border-radius: var(--radius); padding: 22px; }
.info-card h3 { color: var(--primary-dark); margin-bottom: 12px; }
.info-card p { padding: 5px 0; border-bottom: 1px dashed var(--border); }
.info-card p:last-child { border: 0; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; border: 1px solid var(--border); border-radius: 4px; padding: 9px 11px; font-size: 14px; font-family: inherit; background: #fff; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: 0; border-color: var(--primary); }
.form-group textarea { min-height: 110px; resize: vertical; }
.alert { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; }
.alert-ok { background: #eaf8ee; color: #19692c; border: 1px solid #b8e0c2; }
.alert-err { background: #fdecea; color: #a61b1b; border: 1px solid #f3c2bd; }

/* 搜索 */
.search-box { display: flex; gap: 8px; max-width: 460px; }
.search-box input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; }

/* 页脚 */
.site-footer { background: #1b2838; color: #aab7c4; margin-top: 50px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.5fr; gap: 34px; padding: 38px 0 30px; }
.footer-col h3 { color: #fff; font-size: 15px; margin-bottom: 13px; }
.footer-col p, .footer-col li { font-size: 13px; line-height: 2; }
.footer-col a:hover { color: var(--accent); }
.footer-logo { color: #fff; font-size: 19px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.footer-logo .logo-mark { width: 32px; height: 32px; font-size: 18px; }
.hotline { color: var(--accent); font-size: 19px; }
.footer-bottom { border-top: 1px solid #2c3a4b; padding: 14px 0; font-size: 12px; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* 响应式 */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); flex-direction: column; padding: 10px 20px; box-shadow: 0 6px 12px rgba(0,0,0,.08); }
  .site-nav.open { display: flex; }
  .layout, .detail-layout, .contact-grid, .footer-top { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .footer-top { gap: 20px; }
  .hero { height: 260px; }
  .topbar-tip { display: none; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 24px); }
  .logo-text b { font-size: 16px; }
  .section { padding: 28px 0; }
  .article-box { padding: 18px; }
  .detail-title { font-size: 20px; }
}

/* 反垃圾蜜罐：对真人不可见、不占位、不干扰表单 */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
