/* 公共结构样式；颜色、字体、圆角等风格由各站 theme.css 的变量决定 */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.3; margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
.header { position: sticky; top: 0; z-index: 10; background: var(--header-bg); color: var(--header-text); border-bottom: 1px solid var(--header-border); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { display: grid; place-items: center; width: 42px; height: 42px; background: var(--primary); color: #fff; font-family: var(--font-head); font-size: 22px; font-weight: 700; border-radius: var(--radius-logo); }
.logo-text b { display: block; font-size: 18px; font-family: var(--font-head); }
.logo-text small { display: block; font-size: 12px; opacity: .65; }
.header nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.header nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.header nav a:hover, .header nav a.active { color: var(--accent); border-color: var(--accent); }
.header-phone { font-weight: 700; color: var(--accent); white-space: nowrap; }

/* 首页大图 */
.hero { background: var(--hero-bg); color: var(--hero-text); }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; padding: 96px 20px 80px; }
.hero h1 { font-size: 48px; margin: 12px 0 20px; }
.hero .lead { font-size: 18px; opacity: .9; max-width: 600px; margin: 0 0 32px; }
.hero-search { display: flex; max-width: 560px; }
.hero-search input { flex: 1; height: 52px; padding: 0 18px; border: 0; font-size: 16px; border-radius: var(--radius) 0 0 var(--radius); outline: none; min-width: 0; }
.hero-search button { height: 52px; padding: 0 26px; border: 0; background: var(--accent); color: var(--accent-text); font-size: 16px; font-weight: 700; cursor: pointer; border-radius: 0 var(--radius) var(--radius) 0; font-family: inherit; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--stat-line); border: 1px solid var(--stat-line); }
.hero-stats div { background: var(--stat-bg); padding: 22px; }
.hero-stats b { display: block; font-family: var(--font-head); font-size: 30px; color: var(--accent); }
.hero-stats span { font-size: 14px; opacity: .85; }
.eyebrow { margin: 0; font-size: 13px; letter-spacing: .2em; color: var(--accent); font-weight: 700; }

/* 通用区块 */
.section { padding: 88px 0; }
.section-alt { background: var(--alt-bg); }
.section-dark { background: var(--dark-bg); color: var(--dark-text); }
.section-head { margin-bottom: 40px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
.section-head .eyebrow { width: 100%; }
.section-head h2 { font-size: 34px; }
.more { margin-left: auto; color: var(--primary); font-weight: 600; }
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.about-text p { margin: 0 0 16px; font-size: 16px; color: var(--muted); }

.series-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.series { display: flex; flex-direction: column; padding: 28px; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, box-shadow .2s; }
.series:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.series h3 { font-size: 20px; margin-bottom: 10px; }
.series p { margin: 0 0 20px; color: var(--muted); font-size: 14px; flex: 1; }
.series span { color: var(--primary); font-weight: 600; font-size: 14px; }

.adv-grid, .ind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.adv, .ind { padding: 28px; border-radius: var(--radius); }
.adv { border: 1px solid var(--dark-line); }
.ind { background: var(--card-bg); border: 1px solid var(--line); }
.num { display: block; font-family: var(--font-head); font-size: 14px; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.adv h3, .ind h3 { font-size: 19px; margin-bottom: 8px; }
.adv p { margin: 0; opacity: .8; font-size: 14px; }
.ind p { margin: 0; color: var(--muted); font-size: 14px; }

.contact { background: var(--contact-bg); color: var(--contact-text); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-text { opacity: .85; font-size: 16px; }
.contact-card { background: var(--card-bg); color: var(--text); padding: 32px; border-radius: var(--radius); }
.contact-card p { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; }
.contact-card p:last-child { border: 0; }
.contact-card span { width: 72px; flex-shrink: 0; color: var(--muted); }
.contact-card a { color: var(--primary); font-weight: 700; font-size: 20px; }

/* 产品卡片 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 1; background: var(--can-bg); }
.card-img img, .card-img svg, .detail-img img, .detail-img svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 18px 20px 22px; }
.card h3 { font-size: 16px; margin: 10px 0 4px; font-family: var(--font-body); font-weight: 600; }
.tag { display: inline-block; font-size: 12px; color: var(--primary); background: var(--tag-bg); padding: 2px 10px; border-radius: var(--radius-tag); }
.meta { margin: 0; color: var(--muted); font-size: 13px; }
.price { margin: 8px 0 0; color: var(--price); font-size: 20px; font-weight: 700; }
.price-ask { font-size: 15px; }
.can-brand { font: 700 24px var(--font-head); fill: var(--label-text); }
.can-grade { font: 700 22px var(--font-body); fill: var(--label-text); }
.can-spec { font: 14px var(--font-body); fill: var(--label-text); opacity: .75; }

/* 产品列表页 */
.page-banner { background: var(--hero-bg); color: var(--hero-text); padding: 56px 0; }
.page-banner h1 { font-size: 36px; margin: 8px 0 24px; }
.list-search { width: 100%; max-width: 560px; height: 50px; padding: 0 18px; border: 0; border-radius: var(--radius); font-size: 16px; outline: none; }
.list-main { padding-top: 32px; padding-bottom: 80px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1px solid var(--line); background: var(--card-bg); color: var(--text); border-radius: var(--radius-tag); padding: 6px 16px; font-size: 14px; cursor: pointer; font-family: inherit; }
.chips button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
#count { margin-left: auto; color: var(--muted); font-size: 14px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 0; }

/* 产品详情页 */
.detail { padding-top: 24px; padding-bottom: 80px; }
.crumb { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.crumb a:hover { color: var(--primary); }
.detail-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; background: var(--card-bg); padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.detail-img { aspect-ratio: 1; background: var(--can-bg); border-radius: var(--radius); overflow: hidden; }
.detail-info h1 { font-size: 28px; margin: 12px 0 6px; }
.summary { color: var(--muted); }
.detail table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 14px; }
.detail th, .detail td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.detail th { width: 32%; background: var(--alt-bg); font-weight: 500; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-text); padding: 14px 28px; font-weight: 700; border-radius: var(--radius); }
.detail-body { background: var(--card-bg); padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 24px; }
.detail-body h2 { font-size: 20px; margin-bottom: 12px; }
.detail-body ul { margin: 0; padding-left: 20px; color: var(--muted); }

/* 页脚 */
.footer { background: var(--footer-bg); color: var(--footer-text); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding: 56px 20px 32px; }
.footer h4 { font-size: 16px; margin-bottom: 14px; color: #fff; }
.footer p { margin: 0 0 8px; opacity: .75; }
.footer-grid a { display: block; opacity: .75; margin-bottom: 8px; }
.footer a:hover { opacity: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px; opacity: .6; font-size: 13px; }

@media (max-width: 860px) {
  .header-inner { height: auto; flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
  .header nav { order: 3; width: 100%; margin: 0; gap: 20px; overflow-x: auto; }
  .header-phone { margin-left: auto; font-size: 14px; }
  .logo-text small { display: none; }
  .hero-inner, .about-grid, .contact-inner, .detail-top, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-inner { padding: 56px 20px; }
  .hero h1 { font-size: 32px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 26px; }
  .detail-top { padding: 20px; }
}

/* 关于我们 / 技术支持 / 联系我们 */
.banner-lead { max-width: 720px; opacity: .88; margin: 0; font-size: 17px; }
.info-main { padding-top: 64px; padding-bottom: 88px; }
.info-section { margin-bottom: 64px; }
.info-section > p { font-size: 16px; color: var(--muted); max-width: 860px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.info-item { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.info-item h3 { font-size: 18px; margin-bottom: 8px; }
.info-item p { margin: 0; color: var(--muted); font-size: 14px; }
.contact-page-card { max-width: 720px; margin: 0 auto 64px; border: 1px solid var(--line); }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--primary); margin-left: 8px; }
.detail-img img { object-fit: contain; background: #fff; }
.card-img img { object-fit: contain; background: #fff; }

/* 首页配图：横幅商品拼贴、数据条、关于配图、系列配图、选购指南 */
.hero-inner { align-items: center; }
.hero-visual { position: relative; height: 380px; }
.hero-pic { position: absolute; background: #fff; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0,0,0,.28); overflow: hidden; transition: transform .25s; }
.hero-pic:hover { transform: translateY(-6px) rotate(0deg) !important; }
.hero-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-pic-0 { width: 54%; height: 78%; left: 4%; top: 6%; transform: rotate(-4deg); z-index: 2; }
.hero-pic-1 { width: 42%; height: 58%; right: 2%; top: 0; transform: rotate(5deg); }
.hero-pic-2 { width: 40%; height: 54%; right: 8%; bottom: 0; transform: rotate(-2deg); z-index: 3; }
.stats-band { background: var(--card-bg); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid div { padding: 28px 20px; border-right: 1px solid var(--line); }
.stats-grid div:last-child { border-right: 0; }
.stats-grid b { display: block; font-family: var(--font-head); font-size: 30px; color: var(--primary); line-height: 1.2; }
.stats-grid span { color: var(--muted); font-size: 14px; }
.about-grid { align-items: center; }
.about-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-mosaic div { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.about-mosaic div:nth-child(1) { grid-row: span 2; aspect-ratio: auto; }
.about-mosaic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.about-text .btn { margin-top: 8px; }
.series { padding: 0 0 24px; overflow: hidden; }
.series h3, .series p, .series span { padding: 0 24px; }
.series-img { height: 170px; background: #fff; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.series-img img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 12px; }
.guide-lead { color: var(--muted); max-width: 760px; margin: -16px 0 28px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.guide-item { background: var(--card-bg); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 24px; }
.guide-item h3 { font-size: 18px; margin-bottom: 8px; }
.guide-item p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) {
  .hero-visual { height: 260px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid div:nth-child(2) { border-right: 0; }
}
.series-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .series-grid { grid-template-columns: 1fr 1fr; } }
.logo-img { width: 44px; height: 44px; display: block; flex-shrink: 0; }

/* 页头顶部信息栏 + 报价按钮（各站主题决定是否显示及样式） */
.topbar { font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.header-cta { display: none; }
@media (max-width: 860px) { .topbar { display: none; } }

/* ===== H5 / 手机端 ===== */
.m-callbar { display: none; }
@media (max-width: 640px) {
  body { padding-bottom: 58px; }
  .container { padding: 0 14px; }
  .header-inner { gap: 6px 12px; }
  .logo-img { width: 36px; height: 36px; }
  .logo-text b { font-size: 15px; }
  .header nav { gap: 18px; font-size: 14px; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .header nav::-webkit-scrollbar { display: none; }
  .header-phone, .header-cta { display: none !important; }
  .hero-inner { padding: 36px 14px 28px; gap: 24px; }
  .hero h1 { font-size: 26px; margin: 8px 0 12px; }
  .hero .lead { font-size: 14px; margin-bottom: 20px; }
  .hero-search input { height: 44px; font-size: 14px; }
  .hero-search button { height: 44px; padding: 0 14px; font-size: 14px; }
  .hero-visual { height: 200px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid div { padding: 16px 12px; border-bottom: 1px solid var(--line); }
  .stats-grid b { font-size: 20px; }
  .stats-grid span { font-size: 12px; }
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 22px; }
  .section-head h2 { font-size: 22px; }
  .about-grid { gap: 20px; }
  .about-text p { font-size: 14px; }
  .series-grid, .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .series-img { height: 110px; margin-bottom: 10px; }
  .series h3 { font-size: 16px; }
  .series p { font-size: 12px; margin-bottom: 10px; }
  .series h3, .series p, .series span { padding: 0 12px; }
  .series { padding-bottom: 14px; }
  .card-body { padding: 10px 12px 14px; }
  .card h3 { font-size: 13px; line-height: 1.45; }
  .meta { font-size: 12px; }
  .price { font-size: 15px; }
  .tag { font-size: 11px; }
  .adv-grid, .ind-grid, .guide-grid, .info-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .adv, .ind, .guide-item, .info-item { padding: 16px; }
  .adv h3, .ind h3, .guide-item h3, .info-item h3 { font-size: 15px; }
  .adv p, .ind p, .guide-item p, .info-item p { font-size: 12px; }
  .contact-card { padding: 18px; }
  .contact-card a { font-size: 17px; }
  .page-banner { padding: 32px 0; }
  .page-banner h1 { font-size: 24px; margin-bottom: 14px; }
  .banner-lead { font-size: 14px; }
  .list-search { height: 44px; font-size: 14px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { flex-shrink: 0; padding: 5px 12px; font-size: 13px; }
  #count { margin-left: 0; }
  .detail-top { padding: 14px; gap: 16px; }
  .detail-info h1 { font-size: 20px; }
  .detail th, .detail td { padding: 8px 10px; font-size: 13px; }
  .btn { display: block; text-align: center; padding: 12px; }
  .btn-ghost { margin: 10px 0 0; }
  .detail-body { padding: 18px; }
  .info-main { padding-top: 32px; padding-bottom: 40px; }
  .info-section { margin-bottom: 36px; }
  .footer-grid { padding: 32px 14px 20px; gap: 20px; }
  .m-callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: 54px; box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
  .m-callbar a { display: grid; place-items: center; font-weight: 700; font-size: 15px; }
  .m-callbar a:first-child { background: var(--card-bg); color: var(--primary); }
  .m-callbar a:last-child { background: var(--accent); color: var(--accent-text); }
}
