/* ===== JNDTECH 天蓝色主题 ===== */
:root {
  --blue: #0ea5e9;          /* 主色 天蓝 */
  --blue-dark: #0369a1;
  --blue-deep: #0c4a6e;
  --blue-light: #e0f2fe;
  --blue-lighter: #f0f9ff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Segoe UI", Arial, "Helvetica Neue", sans-serif; color: var(--text); line-height: 1.6; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; margin-top: 30px; }

/* 顶部条 */
.topbar { background: var(--blue-deep); color: #bae6fd; font-size: 13px; padding: 6px 0; }
.topbar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #e0f2fe; margin-left: 16px; }

/* 导航 */
.site-header { background: var(--white); box-shadow: 0 2px 12px rgba(2, 132, 199, .08); position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 800; color: var(--blue-deep); }
.logo em { color: var(--blue); font-style: normal; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a, .nav-dropdown > a { color: var(--text); font-weight: 600; font-size: 15px; padding: 8px 0; }
.main-nav a.active, .main-nav a:hover { color: var(--blue); }
.nav-cta { background: var(--blue); color: #fff !important; padding: 9px 20px !important; border-radius: 24px; }
.nav-cta:hover { background: var(--blue-dark); }
.nav-dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 240px; box-shadow: 0 8px 24px rgba(2, 132, 199, .15); border-radius: 8px; padding: 8px 0; z-index: 50; }
.dropdown-menu a { display: block; padding: 10px 18px; color: var(--text); font-size: 14px; }
.dropdown-menu a:hover { background: var(--blue-lighter); color: var(--blue); }
.nav-dropdown:hover .dropdown-menu { display: block; }
.nav-dropdown.open .dropdown-menu { display: block; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--blue-deep); cursor: pointer; }

/* Hero */
.hero { position: relative; background: linear-gradient(120deg, var(--blue-deep), var(--blue)); overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.hero-slide.current { position: relative; opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 85vh; object-fit: cover; display: block; }
/* 纯图片横幅：去掉叠加文字层，露出原图 */
.hero-slide.image-only { background: #0c4a6e; }
.hero-slide.image-only img { aspect-ratio: 16 / 9; }
.hero-overlay { position: absolute; inset: 0; display: flex; align-items: center; background: linear-gradient(90deg, rgba(12, 74, 110, .82), rgba(14, 165, 233, .25)); }
.hero-overlay h1 { color: #fff; font-size: 44px; line-height: 1.2; margin-bottom: 14px; max-width: 640px; }
.hero-overlay p { color: #e0f2fe; font-size: 18px; margin-bottom: 26px; max-width: 560px; }

/* Banner 轮播控件 */
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .25); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: .2s; backdrop-filter: blur(4px); }
.slider-arrow:hover { background: rgba(255, 255, 255, .5); }
.slider-arrow.prev { left: 22px; }
.slider-arrow.next { right: 22px; }
.slider-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 10px; }
.slider-dots .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; transition: .2s; }
.slider-dots .dot.active { background: #fff; transform: scale(1.15); }

/* 按钮 */
.btn { display: inline-block; padding: 12px 28px; border-radius: 26px; font-weight: 600; font-size: 15px; cursor: pointer; border: none; transition: .2s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { border: 2px solid #fff; color: #fff; margin-left: 12px; }
.btn-outline:hover { background: #fff; color: var(--blue-dark); }
.btn-outline-dark { border: 2px solid var(--blue); color: var(--blue); margin-left: 12px; }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-sm { padding: 8px 18px; font-size: 13px; background: var(--blue-light); color: var(--blue-dark); }
.btn-sm:hover { background: var(--blue); color: #fff; }

/* 数据统计条 */
.stats { background: var(--blue-deep); padding: 26px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat-item strong { display: block; color: #38bdf8; font-size: 32px; }
.stat-item span { color: #bae6fd; font-size: 14px; }
.stats-inner { padding: 30px 0; }

/* 区块 */
.section { padding: 64px 0; }
.section-alt { background: var(--blue-lighter); }
.section-title { text-align: center; font-size: 32px; color: var(--blue-deep); margin-bottom: 8px; }
.section-title.left { text-align: left; }
.section-title::after { content: ""; display: block; width: 60px; height: 3px; background: var(--blue); margin: 12px auto 0; border-radius: 2px; }
.section-title.left::after { margin-left: 0; }
.section-sub { text-align: center; color: var(--text-light); margin-bottom: 36px; }

/* 卡片 */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 26px; transition: .2s; }
.card:hover { box-shadow: 0 10px 30px rgba(14, 165, 233, .14); transform: translateY(-3px); border-color: var(--blue-light); }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card h3 a { color: var(--blue-deep); }
.card p { color: var(--text-light); font-size: 14px; margin-bottom: 12px; }
.read-more { font-size: 14px; font-weight: 600; }

/* 产品卡片 */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: .2s; }
.product-card:hover { box-shadow: 0 10px 30px rgba(14, 165, 233, .16); transform: translateY(-3px); }
.product-card img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; background: var(--blue-lighter); }
.product-body { padding: 18px; }
.product-body h3 { font-size: 16px; margin-bottom: 8px; }
.product-body h3 a { color: var(--blue-deep); }
.product-body p { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }

/* 关于我们 */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-img img { border-radius: 14px; box-shadow: 0 12px 36px rgba(14, 165, 233, .18); }
.cert-line { margin: 14px 0 20px; color: var(--text-light); }

/* 新闻 */
.news-card { padding: 0; overflow: hidden; }
.news-card img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.news-body { padding: 20px; }
.news-meta { font-size: 12px; color: var(--blue); font-weight: 600; text-transform: uppercase; }

/* CTA 横幅 */
.cta-band { background: linear-gradient(120deg, var(--blue), var(--blue-dark)); color: #fff; text-align: center; padding: 56px 0; }
.cta-band h2 { font-size: 30px; margin-bottom: 10px; }
.cta-band p { color: #e0f2fe; margin-bottom: 22px; }

/* 专利证书模块（About 页） */
.patent-section { background: #f8fafc; }
.patent-sub { color: #64748b; margin-bottom: 22px; }
.patent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.patent-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(15,23,42,.05); margin: 0; }
.patent-img { aspect-ratio: 4 / 3; background: #f1f5f9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.patent-img img { width: 100%; height: 100%; object-fit: contain; }
.patent-empty { color: #94a3b8; font-size: 13px; }
.patent-card figcaption { padding: 12px 14px; }
.patent-card-title { font-weight: 700; font-size: 14px; color: #0f172a; }
.patent-card-num { font-size: 12px; color: #0369a1; margin-top: 4px; }
.patent-card-year { font-size: 12px; color: #64748b; margin-top: 2px; }
@media (max-width: 900px) { .patent-grid { grid-template-columns: repeat(2, 1fr); } }

/* 工厂车间模块（About 页，样式与专利证书一致：4 列小图预览） */
.factory-section { background: #f8fafc; }
.factory-sub { color: #64748b; margin-bottom: 22px; }
.factory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.factory-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(15,23,42,.05); margin: 0; }
.factory-img { aspect-ratio: 4 / 3; background: #f1f5f9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.factory-img img { width: 100%; height: 100%; object-fit: contain; }
.factory-cap { padding: 12px 14px; font-size: 13px; color: #334155; }
@media (max-width: 900px) { .factory-grid { grid-template-columns: repeat(2, 1fr); } }

/* 产品详情图集 */
.pd-gallery { position: relative; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(14, 165, 233, .08); }
.pd-main { position: relative; aspect-ratio: 4 / 3; background: #f0f9ff; }
.pd-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: none; }
.pd-main img:first-child { display: block; }
.pd-thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; background: #f8fafc; }
.pd-thumbs button { flex: 0 0 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; background: #fff; cursor: pointer; overflow: hidden; }
.pd-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumbs button.active { border-color: var(--blue); }
.pd-thumbs button:hover { border-color: var(--blue-light); }
.pd-arrow { position: absolute; top: calc(50% - 32px); transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(12, 74, 110, .7); color: #fff; border: none; font-size: 26px; cursor: pointer; line-height: 1; transition: background .15s; }
.pd-arrow:hover { background: var(--blue); }
.pd-prev { left: 10px; }
.pd-next { right: 10px; }
.pd-counter { position: absolute; top: 10px; right: 10px; background: rgba(12, 74, 110, .8); color: #fff; padding: 4px 10px; border-radius: 12px; font-size: 12px; }

/* 页脚 */
.site-footer { background: var(--blue-deep); color: #bae6fd; padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 36px; }
.site-footer h3, .site-footer h4 { color: #fff; margin-bottom: 14px; }
.site-footer p, .site-footer li { font-size: 13px; line-height: 1.8; }
.site-footer ul { list-style: none; }
.site-footer a { color: #bae6fd; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(186, 230, 253, .2); padding: 16px 0; font-size: 12px; text-align: center; }

/* 浮动询盘按钮 */
.float-inquiry { position: fixed; right: 24px; bottom: 24px; background: var(--blue); color: #fff; padding: 14px 22px; border-radius: 30px; font-weight: 700; box-shadow: 0 8px 24px rgba(14, 165, 233, .4); z-index: 90; }
.float-inquiry:hover { background: var(--blue-dark); color: #fff; }

/* 内页横幅 */
.page-banner { background: linear-gradient(120deg, var(--blue-deep), var(--blue)); color: #fff; padding: 46px 0; }
.page-banner h1 { font-size: 30px; }
.page-banner p { color: #bae6fd; font-size: 13px; margin-top: 6px; }

/* 侧边栏布局 */
.layout-with-sidebar { display: grid; grid-template-columns: 260px 1fr; gap: 36px; }
.sidebar h3 { color: var(--blue-deep); margin-bottom: 14px; }
.cat-list { list-style: none; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.cat-list a { display: block; padding: 12px 16px; color: var(--text); border-bottom: 1px solid var(--border); font-size: 14px; }
.cat-list li:last-child a { border-bottom: none; }
.cat-list a:hover, .cat-list a.active { background: var(--blue-lighter); color: var(--blue-dark); font-weight: 600; }
/* 嵌套分类（第二、三层） */
.cat-list ul { list-style: none; }
.cat-list ul li a { padding-left: 32px; font-size: 13px; background: #f8fafc; }
.cat-list ul ul li a { padding-left: 48px; font-size: 12px; background: #f1f5f9; }

/* 多级 Products 下拉菜单 */
.dropdown-products { min-width: 480px; padding: 6px 0; }
.dropdown-products a { padding: 8px 18px; }
.dropdown-group { padding: 6px 0; }
.dropdown-group-title { padding: 4px 18px; font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .04em; background: #f0f9ff; border-top: 1px solid var(--border); }
.dropdown-group-items { display: grid; grid-template-columns: 1fr 1fr; }
.dropdown-group-items a { padding: 7px 18px; font-size: 13px; }

/* 子分类胶囊（分类页内） */
.subcat-chips { margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.subcat-chips .chip { display: inline-block; padding: 6px 14px; border-radius: 24px; background: #e0f2fe; color: #0369a1; font-size: 13px; text-decoration: none; }
.subcat-chips .chip:hover { background: var(--blue); color: #fff; }
.cat-intro { color: var(--text-light); margin-top: 8px; }

/* 产品详情 */
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-bottom: 40px; }
.pd-image img { border-radius: 14px; border: 1px solid var(--border); }
.pd-info h2 { color: var(--blue-deep); margin-bottom: 12px; }
.pd-summary { color: var(--text-light); margin-bottom: 20px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 14px; }
.spec-table th, .spec-table td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.spec-table th { background: var(--blue-lighter); color: var(--blue-deep); width: 36%; }

/* 富文本（产品/新闻/方案/关于）内表格通用样式：粘贴或插入的表格都会显示成带边框的表格 */
.pd-desc table, .article table, .news-content table, .rte-content table {
  width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 14px; table-layout: auto;
}
.pd-desc table th, .pd-desc table td,
.article table th, .article table td,
.news-content table th, .news-content table td,
.rte-content table th, .rte-content table td {
  border: 1px solid #d7dee8; padding: 9px 12px; text-align: left; vertical-align: top;
}
.pd-desc table th, .article table th, .news-content table th, .rte-content table th {
  background: #f0f6ff; color: #0f3d7a; font-weight: 600;
}
.pd-desc table caption, .article table caption, .news-content table caption, .rte-content table caption {
  caption-side: top; font-size: 13px; color: #64748b; padding-bottom: 6px; text-align: left;
}
/* 小屏：富文本容器可横向滚动，避免表格撑破手机布局 */
@media (max-width: 600px) {
  .pd-desc, .article, .news-content, .rte-content { overflow-x: auto; }
}
.pd-desc { background: var(--blue-lighter); border-radius: 14px; padding: 30px; margin-bottom: 40px; }
.pd-desc h3 { color: var(--blue-deep); margin-bottom: 12px; }
.related-title { color: var(--blue-deep); }

/* 文章 */
.article-wrap { max-width: 820px; }
.article { font-size: 16px; }
.article-img { margin: 18px 0; border-radius: 12px; }
/* 富文本插入的可缩放图片/视频（前台渲染，仅做尺寸约束，不显示拖拽手柄） */
.rte-media { display: block; max-width: 100%; margin: 12px 0; }
.rte-media img, .rte-media video, .rte-media iframe { max-width: 100%; height: auto; border-radius: 6px; }
.rte-media.rte-video > div { position: relative; padding-bottom: 56.25%; height: 0; }
.rte-media.rte-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article p { margin-bottom: 14px; }

/* 联系页 */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; }
.contact-info h2 { color: var(--blue-deep); margin-bottom: 12px; }
.contact-info p { color: var(--text-light); margin-bottom: 20px; }
.contact-list { list-style: none; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.contact-form { background: var(--blue-lighter); padding: 30px; border-radius: 14px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--blue-deep); }
.form-row input, .form-row textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.alert-success { background: #dcfce7; color: #166534; padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-weight: 600; }

/* 404 */
.notfound { text-align: center; padding: 120px 20px; }
.notfound h1 { font-size: 90px; color: var(--blue); }

/* 响应式 */
@media (max-width: 900px) {
  .card-grid, .product-grid, .product-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split, .pd-layout, .contact-layout { grid-template-columns: 1fr; }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-slide img { height: 380px; aspect-ratio: auto; max-height: none; }
  .hero-overlay h1 { font-size: 30px; }
}
@media (max-width: 600px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 20px 20px; box-shadow: 0 10px 24px rgba(2,132,199,.12); gap: 4px; }
  .main-nav.open { display: flex; }
  /* 移动端下拉：默认收起，禁 hover，点击「Products ▾」链接才展开 */
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .main-nav.open .nav-dropdown .dropdown-menu { display: none; position: static; box-shadow: none; padding-left: 12px; }
  .main-nav.open .nav-dropdown.open .dropdown-menu { display: block; position: static; box-shadow: none; padding-left: 12px; }
  .card-grid, .product-grid, .product-grid.cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-overlay h1 { font-size: 24px; }
  .btn-outline { margin-left: 0; margin-top: 10px; }
}

/* 视频页 */
.video-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.video-tabs a { padding: 8px 18px; border-radius: 24px; background: #fff; border: 1px solid #bae6fd; color: #0369a1; font-size: 14px; text-decoration: none; transition: all .2s; }
.video-tabs a:hover { background: #e0f2fe; }
.video-tabs a.active { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; border-color: transparent; box-shadow: 0 2px 8px rgba(14, 165, 233, .35); }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.video-item { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 20px rgba(14, 165, 233, .1); }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0c4a6e; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* YouTube 封面懒加载：默认只显示封面图 + 播放按钮，点击才加载 iframe */
.video-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background-color: #0c4a6e; background-size: cover; background-position: center;
  cursor: pointer; display: flex; align-items: center; justify-content: center; border: 0;
}
.video-poster:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.video-poster .video-play {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255, 0, 0, .85); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35); transition: transform .2s ease, background .2s ease; pointer-events: none;
}
.video-poster .video-play svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }
.video-poster:hover .video-play, .video-poster:focus-visible .video-play { transform: scale(1.08); background: rgba(255, 0, 0, .95); }
.video-info { padding: 16px 18px; }
.video-info h3 { font-size: 16px; color: #0c4a6e; margin-bottom: 6px; }
.video-info p { font-size: 14px; color: #64748b; }
.video-date { font-size: 12px; color: #94a3b8; }

/* 解决方案页 */
.solution-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

@media (max-width: 900px) {
  .video-grid, .solution-grid { grid-template-columns: 1fr; }
}

/* ===== 分类页美化 ===== */
/* 面包屑 */
.bc-sep { margin: 0 8px; color: #7dd3fc; }
.bc-current { color: #fff; font-weight: 600; }

/* 侧边栏 */
.sidebar-title { font-size: 17px; font-weight: 700; color: var(--blue-deep); padding-bottom: 10px; border-bottom: 2px solid var(--blue); margin-bottom: 0 !important; }
.cat-list { list-style: none; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.cat-list a { display: block; padding: 12px 16px; color: var(--text); border-bottom: 1px solid var(--border); font-size: 14px; transition: background .15s, padding-left .15s; }
.cat-list li:last-child > a { border-bottom: none; }
.cat-list a:hover { background: var(--blue-lighter); color: var(--blue-dark); padding-left: 20px; }
.cat-list a.active { background: linear-gradient(90deg, #e0f2fe, #f0f9ff); color: var(--blue-deep); font-weight: 700; border-left: 3px solid var(--blue); padding-left: 13px; }
.cat-caret { display: inline-block; width: 14px; color: var(--blue); font-size: 12px; cursor: pointer; user-select: none; }
.cat-list li.collapsed > ul { display: none; }
.cat-all a { font-weight: 600; color: var(--blue-deep); }
.cat-list ul { list-style: none; }
.cat-list ul li a { padding-left: 36px; font-size: 13px; background: #f8fafc; }
.cat-list ul li a:hover { padding-left: 40px; }
.cat-list ul li a.active { padding-left: 33px; }
.cat-list ul ul li a { padding-left: 52px; font-size: 12px; background: #f1f5f9; }
.cat-list ul ul li a:hover { padding-left: 56px; }
.cat-list ul ul li a.active { padding-left: 49px; }

/* 侧边栏询盘卡 */
.sidebar-contact { margin-top: 24px; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); border-radius: 12px; padding: 22px; color: #fff; }
.sidebar-contact h4 { font-size: 16px; margin-bottom: 8px; }
.sidebar-contact p { font-size: 13px; color: #e0f2fe; margin-bottom: 14px; }
.sidebar-contact .btn { background: #fff; color: var(--blue-deep); }

/* 子分类卡片 */
.subcat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 0 0 28px; }
.subcat-card { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--blue-lighter); border: 1px solid #bae6fd; border-radius: 12px; padding: 20px 14px; text-align: center; transition: all .2s; }
.subcat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(14, 165, 233, .18); border-color: var(--blue); }
.subcat-icon { font-size: 28px; }
.subcat-name { font-size: 14px; font-weight: 700; color: var(--blue-deep); }
.subcat-count { font-size: 12px; color: var(--text-light); }

/* 内容头部 */
.content-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 20px; flex-wrap: wrap; }
.content-head .section-title { margin-bottom: 0; }
.product-count { background: var(--blue-light); color: var(--blue-dark); font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 20px; }

/* 产品卡片 hover */
.product-img-wrap { position: relative; display: block; overflow: hidden; }
.product-img-wrap img { transition: transform .35s ease; }
.product-img-wrap:hover img { transform: scale(1.06); }
.product-hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(12, 74, 110, .55); color: #fff; font-weight: 700; font-size: 14px; opacity: 0; transition: opacity .25s; }
.product-img-wrap:hover .product-hover { opacity: 1; }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; background: var(--blue-lighter); border-radius: 14px; }
.empty-state p { color: var(--text-light); margin-bottom: 8px; }
.empty-state .btn { margin-top: 12px; }

@media (max-width: 900px) {
  .subcat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 双栏 Mega Menu（Products） ===== */
.nav-products { position: relative; }
.dropdown-products { min-width: 0; width: 540px; max-width: calc(100vw - 40px); padding: 0; overflow: hidden; }
/* mega-menu 本身不控制显隐——默认隐藏（同 .dropdown-menu），hover 或 .open 时才以 flex 显示 */
.dropdown-menu.mega-menu { display: none; }
.nav-dropdown:hover .dropdown-menu.mega-menu,
.nav-dropdown.open .dropdown-menu.mega-menu { display: flex; }
.mega-menu { min-height: 200px; max-height: 70vh; }
.mega-side { flex: 0 0 180px; background: #f8fafc; border-right: 1px solid var(--border); padding: 6px 0; overflow-y: auto; }
.mega-side-item { display: block; padding: 10px 16px; color: var(--text); font-size: 14px; text-decoration: none; border-left: 3px solid transparent; transition: background .12s, color .12s, border-color .12s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.mega-side-item:hover { background: #e0f2fe; color: var(--blue-deep); }
.mega-side-item.active { background: #fff; color: var(--blue-deep); font-weight: 700; border-left-color: var(--blue); }
.mega-panels { flex: 1; background: #fff; padding: 10px 0; overflow-y: auto; }
.mega-panel { display: none; padding: 2px 4px; }
.mega-panel.active { display: block; }
.mega-panel a { display: block; padding: 9px 18px; color: var(--text); font-size: 14px; text-decoration: none; border-radius: 6px; transition: background .12s, color .12s, padding-left .12s; }
.mega-panel a:hover { background: var(--blue-lighter); color: var(--blue); padding-left: 22px; }
.mega-panel-title { padding: 4px 18px 10px; font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.mega-panel-title a { display: inline; padding: 0; font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; }
.mega-panel-title a:hover { background: none; padding-left: 0; color: var(--blue-dark); }

/* 移动端：mega 退化为单列，右侧只显示当前 hover 的面板（不全部展开） */
@media (max-width: 900px) {
  .dropdown-products { width: 100%; max-width: none; }
  .mega-menu { flex-direction: column; min-height: 0; max-height: none; }
  .mega-side { flex: none; border-right: none; border-bottom: 1px solid var(--border); }
  .mega-panels { padding: 6px 0; }
  .mega-panel { display: none; padding: 2px 0; border-top: 1px dashed var(--border); }
  .mega-panel.active { display: block; }
}
