/* 雅尔居产品中心 · 全站样式
 * 外壳（header / 主导航 / footer）对齐 www.yaerju.cn 的结构与尺寸；
 * 内容区沿用项目一贯的深蓝 #12275A + 橙金 #F5A623。
 * 断点：>=1200 桌面 / 768-1199 平板 / <768 手机。禁用 emoji。
 */
:root {
  --nav: #26447a;          /* 官网主导航条深蓝 */
  --nav-dark: #1d355c;
  --deep: #12275a;         /* 产品中心主深蓝 */
  --deep-2: #183050;       /* 官网深块 */
  --gold: #f5a623;         /* 橙金强调（内容区 CTA） */
  --gold-dark: #d98c0b;
  --tel: #8a6f3d;          /* 官网电话/页脚电话的暗金色 */
  --gold-soft: #fff7e8;
  --ink: #202830;
  --sub: #5f6c7f;
  --muted: #8a97a8;
  --line: #e4e9f1;
  --bg: #f5f7fa;
  --card: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-1: 0 2px 10px rgba(18, 39, 90, .06);
  --shadow-2: 0 10px 30px rgba(18, 39, 90, .10);
  --font: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { color-scheme: light; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- 头部第一行（官网 76px） ---------- */
.topbar { background: #fff; border-bottom: 2px solid var(--line); }
.topbar-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.brand-name { font-size: 24px; font-weight: 700; letter-spacing: .06em; color: var(--ink); white-space: nowrap; }
.brand-slogan { font-size: 15px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 12px; flex: none; }
.tel { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--tel); white-space: nowrap; }
.nav-arrow { width: 10px; height: 10px; margin-left: 4px; opacity: .75; flex: none; }
.tel svg { width: 22px; height: 22px; flex: none; }
.nav-toggle { display: none; width: 40px; height: 40px; place-items: center; border-radius: 6px; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- 主导航第二行（官网 58px） ---------- */
.mainnav { background: var(--nav); box-shadow: 0 2px 6px rgba(18, 39, 90, .12); }
.mainnav-inner { height: 58px; display: flex; align-items: center; }
.mainnav ul { height: 100%; width: 100%; display: flex; align-items: center; justify-content: space-between; list-style: none; }
.mainnav li { height: 100%; display: flex; align-items: center; position: relative; }
.mainnav li a { height: 100%; display: flex; align-items: center; padding: 0 12px; font-size: 16px; font-weight: 500; color: rgba(255,255,255,.9); transition: background-color .16s, color .16s; white-space: nowrap; }
.mainnav li a:hover { background: rgba(255,255,255,.1); color: #fff; }
.mainnav li.on a { color: var(--gold); font-weight: 700; }
.mainnav li.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold); }
.nav-mask { display: none; }

/* ---------- Banner ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--deep-2); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,30,62,.92) 0%, rgba(12,30,62,.72) 45%, rgba(12,30,62,.18) 100%); }
.hero-inner { position: relative; z-index: 1; }
.hero-lg { min-height: 430px; display: flex; align-items: center; }
.hero-sm { min-height: 178px; display: flex; align-items: center; }
.hero h1 { font-size: 42px; line-height: 1.25; font-weight: 700; letter-spacing: .02em; }
.hero-sm h1 { font-size: 30px; }
.hero .lead { margin-top: 14px; font-size: 17px; color: rgba(255,255,255,.88); max-width: 640px; }
.hero .lead-sm { margin-top: 8px; font-size: 15px; color: rgba(255,255,255,.82); }
.hero .eyebrow { display: inline-block; margin-bottom: 16px; padding: 5px 14px; border-left: 3px solid var(--gold); background: rgba(245,166,35,.14); color: #ffd996; font-size: 13px; letter-spacing: .12em; }
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { margin-top: 34px; display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .num { font-size: 26px; font-weight: 700; color: var(--gold); }
.hero-stats .lbl { font-size: 13px; color: rgba(255,255,255,.78); }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 24px; border-radius: 6px; font-size: 15px; font-weight: 600; transition: transform .16s, background-color .16s, box-shadow .16s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #221500; }
.btn-gold:hover { background: #ffb640; box-shadow: 0 8px 20px rgba(245,166,35,.3); }
.btn-ghost-light { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-deep { background: var(--deep); color: #fff; }
.btn-deep:hover { background: #1b3779; }
.btn-outline { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--deep); color: var(--deep); }
.btn-sm { height: 34px; padding: 0 16px; font-size: 13px; }

/* ---------- 区块标题 ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-size: 28px; font-weight: 700; color: var(--deep); position: relative; padding-left: 16px; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 5px; border-radius: 3px; background: var(--gold); }
.section-head .sub { font-size: 14px; color: var(--sub); }
.section-head .more { font-size: 14px; color: var(--deep); font-weight: 600; }

/* ---------- 卡片分层：重 / 中 / 轻 ---------- */
.lib-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lib-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); transition: transform .2s, box-shadow .2s; }
.lib-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.lib-card .cover { height: 168px; background: #eef2f8; overflow: hidden; }
.lib-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.lib-card:hover .cover img { transform: scale(1.05); }
.lib-card .body { padding: 18px 18px 20px; }
.lib-card h3 { font-size: 19px; font-weight: 700; color: var(--deep); }
.lib-card .desc { margin-top: 6px; font-size: 13px; color: var(--sub); min-height: 40px; }
.lib-card .meta { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.lib-card .go { color: var(--gold-dark); font-weight: 700; }
/* 重卡：首个库跨两列两行，深蓝大图 */
.lib-card.heavy { grid-column: span 2; grid-row: span 2; background: var(--deep); color: #fff; border: 0; display: flex; flex-direction: column; }
.lib-card.heavy .cover { height: auto; flex: 1; min-height: 250px; background: rgba(255,255,255,.06); }
.lib-card.heavy .cover img { opacity: .9; }
.lib-card.heavy .body { background: linear-gradient(180deg, rgba(18,39,90,.65), var(--deep)); padding: 24px; }
.lib-card.heavy h3 { color: #fff; font-size: 27px; }
.lib-card.heavy .desc { color: rgba(255,255,255,.82); font-size: 15px; min-height: 0; }
.lib-card.heavy .meta { color: rgba(255,255,255,.7); }
.lib-card.heavy .go { color: var(--gold); }
/* 轻卡：服务承诺信息条 */
.light-strip { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.light-item { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.light-item .mark { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--gold-soft); color: var(--gold-dark); font-size: 18px; font-weight: 700; }
.light-item b { display: block; font-size: 15px; color: var(--deep); }
.light-item span { font-size: 13px; color: var(--sub); }

/* ---------- 产品卡片 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prod-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.prod-card .pic { aspect-ratio: 4 / 3; background: #eef2f8; overflow: hidden; }
.prod-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.prod-card:hover .pic img { transform: scale(1.04); }
.prod-card .info { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; }
.prod-card .tag { align-self: flex-start; font-size: 12px; color: var(--deep); background: #eef3fb; border-radius: 4px; padding: 2px 8px; }
.prod-card h3 { margin-top: 9px; font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-card .model { margin-top: 5px; font-size: 12px; color: var(--muted); }
.prod-card .foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ask-price { font-size: 13px; font-weight: 700; color: var(--gold-dark); }
/* 游客态：整站不出现任何价格，只出现询价引导 */
.price-none { font-size: 13px; color: var(--sub); }

/* ---------- 面包屑 / 列表布局 ---------- */
.crumb { padding: 16px 0; font-size: 13px; color: var(--sub); }
.crumb a:hover { color: var(--deep); }
.crumb span { margin: 0 8px; color: var(--muted); }
.list-layout { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; padding-bottom: 60px; }
.filter { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 16px; }
.filter h3 { font-size: 16px; color: var(--deep); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.filter-group { margin-top: 16px; }
.filter-group h4 { font-size: 13px; color: var(--sub); margin-bottom: 9px; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 11px; border: 1px solid var(--line); border-radius: 5px; font-size: 13px; color: var(--ink); background: #fff; }
.chip:hover { border-color: var(--deep); color: var(--deep); }
.chip.on { background: var(--deep); border-color: var(--deep); color: #fff; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.list-toolbar .count { font-size: 14px; color: var(--sub); }
.list-toolbar .count b { color: var(--deep); font-size: 17px; }
.search { display: flex; gap: 8px; }
.search input { width: 220px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.pager { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pager button { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-size: 14px; }
.pager button:hover { border-color: var(--deep); color: var(--deep); }
.pager button.on { background: var(--deep); border-color: var(--deep); color: #fff; }
.pager button:disabled { opacity: .45; cursor: default; }
.empty { padding: 70px 20px; text-align: center; color: var(--sub); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- 详情页 ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 36px 0 60px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: #eef2f8; border: 1px solid var(--line); }
.gallery-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-thumbs { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-thumbs img { width: 74px; height: 74px; object-fit: cover; border: 2px solid transparent; border-radius: 6px; cursor: pointer; }
.gallery-thumbs img.on { border-color: var(--gold); }
.detail-info h1 { font-size: 28px; line-height: 1.35; color: var(--deep); }
.detail-info .dl-sub { margin-top: 8px; font-size: 14px; color: var(--sub); }
.detail-info .dl-ask { margin: 22px 0; padding: 18px 20px; background: var(--gold-soft); border: 1px solid #f6dfae; border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.detail-info .dl-ask .t { font-size: 15px; font-weight: 700; color: #7a4d00; }
.detail-info .dl-ask .s { font-size: 12px; color: #9a7127; }
.spec { margin-top: 22px; }
.spec h2 { font-size: 18px; color: var(--deep); padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.spec dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 22px; }
.spec .row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.spec .row dt { width: 96px; flex: none; color: var(--sub); }
.spec .row dd { color: var(--ink); word-break: break-all; }
.notice-line { margin-top: 18px; font-size: 13px; color: var(--sub); }

/* ---------- 询价弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; z-index: 90; background: rgba(12, 24, 48, .6); display: grid; place-items: center; padding: 20px; }
.modal { width: min(480px, 100%); background: #fff; border-radius: var(--radius-lg); box-shadow: 0 24px 64px rgba(0,0,0,.24); overflow: hidden; }
.modal-head { padding: 20px 24px; background: var(--deep); color: #fff; display: flex; align-items: center; justify-content: space-between; }
.modal-head h2 { font-size: 19px; }
.modal-head button { color: rgba(255,255,255,.8); font-size: 24px; line-height: 1; }
.modal-body { padding: 22px 24px 26px; }
.modal-body .tip { font-size: 13px; color: var(--sub); margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.field label i { color: #c7353f; font-style: normal; }
.field input, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 14px; }
.field textarea { min-height: 78px; resize: vertical; }
.form-err { color: #c7353f; font-size: 13px; min-height: 18px; }
.modal .btn { width: 100%; }
.form-ok { text-align: center; padding: 18px 0 8px; }
.form-ok b { display: block; font-size: 18px; color: var(--deep); margin-bottom: 8px; }
.form-ok p { font-size: 14px; color: var(--sub); }

/* ---------- 页脚（照官网 4 列结构） ---------- */
.footer { background: #fff; border-top: 2px solid var(--line); color: #475569; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; padding: 54px 0 40px; }
.footer .fbrand { display: flex; align-items: center; gap: 10px; }
.footer .fbrand img { width: 36px; height: 36px; object-fit: contain; }
.footer .fbrand b { font-size: 18px; color: var(--ink); }
.footer p { margin-top: 14px; font-size: 13px; line-height: 1.9; color: #5f6c7f; }
.footer p.small { font-size: 12px; color: #8a97a8; }
.footer h3 { font-size: 14px; font-weight: 700; color: var(--ink); }
.footer ul { margin-top: 16px; list-style: none; }
.footer li { margin-bottom: 10px; font-size: 13px; }
.footer li a:hover { color: var(--deep); }
.footer .qr { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.footer .qr-box { width: 76px; height: 76px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; font-size: 10px; line-height: 1.5; text-align: center; color: #8a97a8; }
.footer .qr p { margin: 0; font-size: 12px; }
.footer .contact-tel { font-size: 20px; font-weight: 700; color: var(--tel); }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0 24px; font-size: 12px; color: #8a97a8; }
.footer-bottom .row { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.footer-bottom a:hover { color: var(--deep); }
.footer-bottom .links a { margin-right: 14px; }

/* ---------- 响应式：平板 / 手机 ---------- */
@media (max-width: 1199px) {
  .brand-slogan { display: none; }
  .mainnav li a { padding: 0 8px; font-size: 15px; }
  .lib-grid { grid-template-columns: repeat(3, 1fr); }
  .lib-card.heavy { grid-column: span 2; grid-row: span 2; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .list-layout { grid-template-columns: 200px 1fr; }
}
@media (max-width: 767px) {
  .container { width: calc(100% - 28px); }
  .topbar-inner { height: 62px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 20px; }
  .brand { flex: 1; min-width: 0; }
  .topbar-right { gap: 6px; }
  .tel { font-size: 13px; }
  .tel svg { width: 15px; height: 15px; }
  .nav-toggle { display: grid; }
  .mainnav { position: fixed; z-index: 80; top: 0; left: 0; bottom: 0; width: 76%; max-width: 300px; background: var(--nav); transform: translateX(-101%); transition: transform .22s ease; overflow-y: auto; box-shadow: 8px 0 30px rgba(0,0,0,.2); }
  body.nav-open .mainnav { transform: translateX(0); }
  .mainnav-inner { height: auto; display: block; padding: 18px 0; }
  .mainnav ul { display: block; }
  .mainnav li { height: auto; display: block; }
  .mainnav li a { height: 48px; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .mainnav li.on::after { left: 0; right: auto; top: 8px; bottom: 8px; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
  .nav-mask { display: none; position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.45); }
  body.nav-open .nav-mask { display: block; }
  .hero-lg { min-height: 340px; }
  .hero-sm { min-height: 132px; }
  .hero h1 { font-size: 29px; }
  .hero-sm h1 { font-size: 23px; }
  .hero .lead { font-size: 15px; }
  .hero-stats { gap: 20px; margin-top: 24px; }
  .hero-stats .num { font-size: 21px; }
  .section { padding: 38px 0; }
  .section-head h2 { font-size: 22px; }
  .lib-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .lib-card.heavy { grid-column: span 2; grid-row: auto; }
  .lib-card.heavy .cover { min-height: 190px; }
  .lib-card.heavy h3 { font-size: 22px; }
  .lib-card .cover { height: 120px; }
  .lib-card .desc { min-height: 0; }
  .light-strip { grid-template-columns: 1fr; gap: 10px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .prod-card h3 { font-size: 14px; }
  .list-layout { grid-template-columns: 1fr; }
  .filter { position: static; }
  .search input { width: 100%; }
  .search { flex: 1; }
  .detail-layout { grid-template-columns: 1fr; gap: 22px; }
  .detail-info h1 { font-size: 23px; }
  .spec dl { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 36px 0 26px; }
  .footer-bottom .row { gap: 6px 12px; }
}
@media (max-width: 400px) {
  .prod-grid { grid-template-columns: 1fr; }
  .lib-grid { grid-template-columns: 1fr; }
  .lib-card.heavy { grid-column: auto; }
  .hero h1 { font-size: 25px; }
}
