/* ============ 基础 ============ */
:root {
  --primary: #1458a6;
  --primary-light: #3a7bd5;
  --primary-dark: #0b3a6b;
  --primary-deep: #072a4f;
  --accent: #ff7a00;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --text: #3a4658;
  --text-light: #6b7890;
  --border: #e3eaf6;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(7, 42, 79, 0.10);
  --shadow-sm: 0 3px 12px rgba(7, 42, 79, 0.08);
  --transition: 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

section[id] { scroll-margin-top: 72px; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============ 导航栏 ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.navbar.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--primary-dark); }
.brand:hover { color: var(--primary-dark); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.brand-text { font-size: 17px; font-weight: 700; letter-spacing: 0.5px; }

.nav-menu { display: flex; gap: 28px; }
.nav-menu a {
  color: var(--text);
  font-size: 15px;
  position: relative;
  padding: 4px 0;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-menu a:hover { color: var(--primary); }
.nav-menu a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 18px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eef3fc;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px 4px 12px;
  transition: box-shadow var(--transition);
}
.lang-switch:hover { box-shadow: var(--shadow-sm); }

.lang-globe { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }

.lang-track { position: relative; display: flex; }

.lang-track button {
  position: relative;
  z-index: 1;
  width: 52px;
  padding: 5px 0;
  border: none;
  background: none;
  font-size: 13px;
  font-family: inherit;
  text-align: center;
  color: var(--text-light);
  cursor: pointer;
  transition: color var(--transition);
}
.lang-track button:hover { color: var(--primary); }
.lang-track button.active { color: #fff; font-weight: 600; }

.lang-slider {
  position: absolute;
  top: 2px; bottom: 2px; left: 2px;
  width: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 2px 8px rgba(20, 88, 166, 0.35);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.lang-switch.en .lang-slider { transform: translateX(52px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ 首页横幅（轮播） ============ */
.banner { position: relative; }

.banner-slides {
  position: relative;
  height: min(72vh, 620px);
  min-height: 430px;
  overflow: hidden;
}

.banner-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}
.banner-slide.active { opacity: 1; z-index: 1; }
.banner-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(7, 42, 79, 0.88) 0%, rgba(7, 42, 79, 0.55) 50%, rgba(20, 88, 166, 0.45) 100%);
}

.banner-caption {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.hero-kicker {
  display: inline-block;
  font-size: 15px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 6px 20px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(26px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}
.hero-slogan {
  font-size: clamp(17px, 2.4vw, 22px);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0 auto 30px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

.banner-slide-title { font-size: clamp(26px, 4vw, 42px); font-weight: 700; letter-spacing: 1px; margin-bottom: 14px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3); }
.banner-slide-desc { font-size: 16px; color: rgba(255, 255, 255, 0.88); max-width: 640px; margin: 0 auto 26px; }

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 6px 20px rgba(20, 88, 166, 0.45);
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 28px rgba(20, 88, 166, 0.55); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.16); }

.banner-dots {
  position: absolute;
  left: 0; right: 0; bottom: 24px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.banner-dots .dot {
  width: 12px; height: 12px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.banner-dots .dot.active { background: #fff; transform: scale(1.2); }

/* 首页统计条 */
.hero-stats {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
}
.hero-stats .container {
  display: flex;
  justify-content: center;
  gap: clamp(32px, 7vw, 90px);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
}
.stat-label { font-size: 14px; color: var(--text-light); letter-spacing: 1px; }

/* ============ 通用区块 ============ */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  text-align: center;
  font-size: clamp(24px, 3.2vw, 32px);
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 18px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 56px; height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.section-sub {
  text-align: center;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto 52px;
  font-size: 15px;
}

.subsection-title {
  text-align: center;
  font-size: 22px;
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 1px;
  margin: 52px 0 28px;
}

/* ============ 产品中心 ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: zoom-in;
}
.product-card-body { padding: 16px 18px 18px; }
.product-card-title { font-size: 16px; color: var(--primary-dark); margin-bottom: 10px; }
.product-card-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-card-tags li {
  font-size: 12px;
  color: var(--text-light);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: 999px;
}

/* 推荐系列 */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.featured-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.featured-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.featured-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.featured-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 16px 14px;
  background: linear-gradient(transparent, rgba(7, 42, 79, 0.85));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

/* ============ 关于我们 ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 44px;
  align-items: center;
}
.about-text p { margin-bottom: 16px; font-size: 15.5px; }
.about-motto {
  color: var(--primary-dark);
  font-size: 16px;
  border-left: 4px solid var(--accent);
  background: #fff;
  border-radius: 0 10px 10px 0;
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
}
.about-motto strong { color: var(--accent); }
.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

/* 优势 */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.advantage-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 22px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.advantage-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.advantage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px; height: 62px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  margin-bottom: 16px;
}
.advantage-title { color: var(--primary-dark); font-size: 17px; margin-bottom: 8px; }
.advantage-desc { font-size: 14px; color: var(--text-light); }

/* ============ 新闻动态 ============ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.news-date {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.news-title { font-size: 17px; color: var(--primary-dark); margin-bottom: 10px; }
.news-desc { font-size: 14px; color: var(--text-light); }

/* ============ 联系我们 ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 22px;
  color: var(--text);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
a.contact-card:hover {
  color: var(--text);
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.contact-card svg { color: var(--primary); flex-shrink: 0; margin-top: 4px; }
.contact-card h3 { color: var(--primary-dark); font-size: 16px; margin-bottom: 4px; }
.contact-text { font-size: 17px; font-weight: 700; color: var(--primary); letter-spacing: 0.5px; }

/* ============ 页脚 ============ */
.footer {
  background: var(--primary-deep);
  color: rgba(255, 255, 255, 0.72);
  padding-top: 56px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-name { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 1px; margin-bottom: 12px; }
.footer-desc { color: rgba(255, 255, 255, 0.6); max-width: 320px; }
.footer-col-title { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.62); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-tags li {
  font-size: 13px;
  padding: 3px 11px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-contact { color: rgba(255, 255, 255, 0.7); margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  text-align: center;
}
.footer-icp a { color: rgba(255, 255, 255, 0.5); }
.footer-icp a:hover { color: var(--accent); }
.footer-copy { margin-top: 8px; color: rgba(255, 255, 255, 0.4); font-size: 13px; }

/* ============ 灯箱 ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 12, 30, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 40px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(94vw, 1100px);
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 26px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition);
}
.lightbox-close:hover { color: #fff; }

/* ============ 滚动渐入动画 ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============ AI 客服悬浮按钮与面板 ============ */
.widget-btn {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 12px 12px;
  border: none;
  border-radius: 28px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(20, 88, 166, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: widget-breathe 2.6s ease-in-out infinite;
}
.widget-btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 26px rgba(20, 88, 166, 0.55); }
.widget-btn.hidden { display: none; }
.widget-badge { font-size: 13px; font-weight: 600; letter-spacing: 0.5px; }
@keyframes widget-breathe {
  0%, 100% { box-shadow: 0 6px 20px rgba(20, 88, 166, 0.45); }
  50% { box-shadow: 0 6px 26px rgba(20, 88, 166, 0.7); }
}
.widget-panel {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 91;
  width: 360px;
  max-width: calc(100vw - 24px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(15, 40, 80, 0.28);
  background: #fff;
  display: none;
}
.widget-panel.open { display: block; }
.widget-head {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.widget-head h4 { font-size: 16px; font-weight: 600; }
.widget-body { padding: 18px 20px; }
.widget-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}
.widget-row:last-child { border-bottom: none; }
.widget-row svg { color: var(--primary); flex-shrink: 0; }
.widget-close {
  background: rgba(255, 255, 255, 0.25);
  border: none;
  border-radius: 50%;
  width: 26px; height: 26px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
}
.widget-close:hover { background: rgba(255, 255, 255, 0.4); }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .nav-menu.open { max-height: 340px; }
  .nav-menu a { padding: 15px 24px; border-top: 1px solid var(--border); }
  .nav-menu a::after { display: none; }

  .banner-slides { min-height: 400px; height: 68vh; }
  .hero-stats .container { gap: 28px; }
  .stat-num { font-size: 30px; }
  .section { padding: 64px 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .featured-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .advantages-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .widget-btn { right: 14px; bottom: 16px; }
  .widget-panel { right: 8px; bottom: 12px; width: calc(100vw - 16px); }
}

/* ============ 产品目录/详情弹窗 ============ */
.product-card { cursor: pointer; }
.product-card-count { font-size: 13px; color: var(--accent); margin-top: 8px; }

.catalog-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.catalog-modal.open { display: flex; }
.catalog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 30, 0.62);
}
.catalog-panel {
  position: relative;
  width: min(1080px, 100%);
  max-height: 88vh;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 70px rgba(7, 42, 79, 0.35);
}
.catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}
.catalog-head-left { display: flex; align-items: center; gap: 12px; }
.catalog-title { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.catalog-back {
  width: 34px; height: 34px;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px; line-height: 1;
  cursor: pointer;
  visibility: hidden;
}
.catalog-back:hover { background: rgba(255, 255, 255, 0.35); }
.catalog-close {
  width: 34px; height: 34px;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 15px; line-height: 1;
  cursor: pointer;
}
.catalog-close:hover { background: rgba(255, 255, 255, 0.35); }

.catalog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 0;
  flex: 1;
}
.catalog-subs {
  border-right: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.catalog-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.catalog-sub:hover { background: #fff; }
.catalog-sub.active { background: #fff; color: var(--primary); border-color: var(--border); font-weight: 600; box-shadow: var(--shadow-sm); }
.catalog-sub-count {
  font-size: 12px;
  color: var(--text-light);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 8px;
  flex-shrink: 0;
}
.catalog-sub.active .catalog-sub-count { color: var(--primary); }

.catalog-main { overflow-y: auto; padding: 20px 24px; }
.catalog-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.catalog-empty { color: var(--text-light); }
.catalog-item {
  position: relative;
  text-align: left;
  padding: 16px 40px 16px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.catalog-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.catalog-item-title { font-size: 15px; font-weight: 600; color: var(--primary-dark); margin-bottom: 4px; }
.catalog-item-series { font-size: 13px; color: var(--text-light); }
.catalog-item-arrow { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--primary); }

.catalog-detail-title { font-size: 20px; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.catalog-detail-series { font-size: 14px; color: var(--accent); margin-bottom: 18px; }
.catalog-detail-sub { font-size: 15px; font-weight: 700; color: var(--primary-dark); margin: 20px 0 10px; padding-left: 10px; border-left: 4px solid var(--accent); }
.catalog-models { display: flex; flex-direction: column; gap: 6px; }
.catalog-model-line {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  word-break: break-all;
}
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 12px; border: 1px solid var(--border); vertical-align: top; }
.spec-table th { width: 180px; background: var(--bg-alt); color: var(--primary-dark); font-weight: 600; white-space: nowrap; }
.spec-table td { color: var(--text); word-break: break-word; }
.catalog-extra p { font-size: 14px; color: var(--text-light); margin-bottom: 6px; }

.catalog-images { display: flex; flex-direction: column; gap: 16px; }
.catalog-figure {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.catalog-figure img { width: 100%; height: auto; cursor: zoom-in; display: block; }
.catalog-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
  .catalog-modal { padding: 0; }
  .catalog-panel { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .catalog-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .catalog-subs { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--border); overflow-x: auto; }
  .catalog-sub { width: auto; }
  .catalog-list { grid-template-columns: 1fr; }
  .spec-table th { width: 120px; }
}
