/*
Theme Name: ULilaser Preview
Theme URI: https://www.ulilaser.com
Author: ULilaser
Description: Local preview theme for ULilaser overseas marketing site (reference: Hans Laser English site style). Production site will use Astra + Elementor.
Version: 0.4
Text Domain: ulilaser
*/

:root {
  --navy: #2f302f;
  --navy-2: #1a1b1a;
  --blue: #c12721;
  --accent: #c12721;
  --accent-dark: #9a1f1a;
  --text: #2f302f;
  --muted: #9b9b9b;
  --light: #f5f5f5;
  --border: #e5e5e5;
  --radius: 10px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: auto; }
body {
  margin: 0;
  padding-top: 122px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  background: #fff;
  overflow-x: visible;
  min-width: 1180px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 100%; margin: 0 auto; padding: 0 20px 0 36px; }

/* 内容页：居中、左右对称留白（只作用于 page-body/page-hero/面包屑条里的 container，不碰 header/footer） */
.page-template-page-industry .page-body .container,
.page-template-page-news .page-body .container,
.page-template-page-industry .page-hero .container,
.page-template-page-news .page-hero .container,
.page-template-page-industry .section .container,
.page-template-page-news .section .container,
.page-template-page-about .page-body .container,
.page-template-page-about .page-hero .container,
.page-template-page-service .page-body .container,
.page-template-page-service .page-hero .container,
.single-case_study .page-body .container,
.single-case_study .page-hero .container,
.blog .page-body .container,
.blog .page-hero .container,
.single-post .page-body .container,
.single-post .page-hero .container {
  max-width: 1280px;
  padding: 0 38px;
}

/* ---------- Top social bar ---------- */
.top-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 301;
  background: var(--navy); color: #ccc;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.top-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 44px;
  min-width: 1180px;
  padding: 0 20px 0 36px;
}
.top-bar-left { display: flex; align-items: center; gap: 16px; padding-left: 30px; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  color: #ccc; text-decoration: none !important;
  width: 32px; height: 32px; border-radius: 50%;
  transition: color .15s, background .15s;
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { color: #fff; background: rgba(255,255,255,.1); }

/* QR code popup */
.social-link.has-qr { position: relative; }
.social-link.has-qr .qr-popup {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-6px);
  width: 160px; padding: 10px; background: #fff; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 500;
}
.social-link.has-qr .qr-popup img { display: block; width: 100%; height: auto; border-radius: 4px; }
.social-link.has-qr .qr-popup::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-bottom-color: #fff;
}
.social-link.has-qr:hover .qr-popup,
.social-link.has-qr:focus-within .qr-popup {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto;
}
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.top-contact {
  display: inline-flex; align-items: center; gap: 6px;
  color: #ccc; text-decoration: none !important;
  transition: color .15s;
}
.top-contact:hover { color: #fff; }
.top-divider { color: #555; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 44px; left: 0; right: 0; z-index: 300;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
  min-width: 1180px;   /* 保证桌面导航完整一行,不够时出现横向滚动 */
  padding: 0 20px 0 36px;
}
.logo { display: flex; align-items: center; text-decoration: none !important; margin-left: 60px; margin-right: 48px; flex-shrink: 0; }
.logo-img { height: 48px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 36px; flex-shrink: 0; }
.main-nav a.nav-link {
  color: var(--navy); font-weight: 600; font-size: 18px; padding: 10px 0;
  text-decoration: none !important; cursor: pointer;
}
.main-nav a.nav-link:hover { color: var(--blue); }

/* ---------- Nav caret & dropdown trigger ---------- */
.nav-link-dropdown .caret {
  display: inline-block; font-size: 10px; margin-left: 3px;
  transition: transform .2s;
}
.nav-item-has-dropdown.open .nav-link-dropdown .caret {
  transform: rotate(180deg);
  color: var(--blue);
}

/* ---------- Nav CTA ---------- */
.nav-cta {
  background: var(--accent); color: var(--navy) !important; font-weight: 700;
  padding: 10px 22px !important; border-radius: 6px; font-size: 15px;
  margin-left: 120px;
}
.nav-cta:hover { background: var(--accent-dark); }

/* ---------- Language dropdown (9 countries, Han's Laser style) ---------- */
.lang-group { display: inline-flex; align-items: center; gap: 6px; }
.lang-label { font-size: 17px; font-weight: 600; color: var(--navy); }
.lang-dropdown { position: relative; display: inline-block; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  font-size: 17px; font-weight: 600; color: var(--navy);
  cursor: pointer;
  transition: border-color .2s;
}
.lang-btn:hover, .lang-dropdown.open .lang-btn { border-color: var(--red); }
.lang-current-flag img { width: 18px; height: 12px; object-fit: cover; border-radius: 1px; display: block; }
.lang-current-code { font-weight: 700; letter-spacing: .3px; }
.lang-caret { color: var(--muted); transition: transform .2s; }
.lang-dropdown.open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  padding: 6px;
  display: none; z-index: 200;
}
.lang-dropdown.open .lang-menu { display: block; }

.lang-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  transition: background .15s, color .15s;
}
.lang-item:hover { background: #f7f7f7; color: var(--red); text-decoration: none; }
.lang-item img { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.lang-item span { flex: 1; font-weight: 500; }
.lang-item code {
  font-size: 11px; color: var(--muted);
  background: #f2f2f2; border-radius: 3px;
  padding: 1px 6px; font-family: inherit;
}
.lang-item.active { background: #fff4f4; color: var(--red); }
.lang-item.active code { background: #ffe0e0; color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--navy); }

/* ---------- Nav mega-menu (FULL-WIDTH DROPDOWN like Han's Laser) ---------- */
/* Dropdown panel: full viewport width — positioned relative to .site-header (sticky = positioned ancestor) */
.nav-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; width: auto;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 36px rgba(0,0,0,.12);
  border-top: none;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .35s ease, transform .35s ease;
  z-index: 150;
  border-radius: 0;
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column;
  max-height: calc(100vh - 122px);
}
/* JS-controlled: .open class on the parent nav-item-has-dropdown */
.nav-item-has-dropdown.open > .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}

/* Mega-menu content: transparent so outer 50% white shows through */
.nav-mega { padding: 0; width: 100%; overflow-y: auto; flex: 1 1 auto; }
.nav-mega-inner {
  width: 100%;
  display: flex; flex-direction: column; gap: 0;
  background: transparent;
  padding: 16px 40px 12px;
}

/* Each row: tile + col side by side */
.nav-mega-row {
  display: flex; gap: 40px; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav-mega-row:last-child { border-bottom: none; }

.nav-mega-row .nav-tile {
  width: 280px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 10px;
  padding: 0;
  text-decoration: none !important; transition: transform .15s;
  border-bottom: none;
}
.nav-mega-row .nav-tile:hover { transform: translateY(-2px); }

/* Row 3 compact tiles — 4 small tiles side-by-side */
.nav-mega-row-compact { gap: 16px; }
.nav-mega-row-compact .nav-tile-sm { width: 100%; }
.nav-mega-row-compact .nav-tile-sm .nav-tile-img { width: 100%; height: 140px; }
.nav-mega-row-compact .nav-tile-sm .nav-tile-label { font-size: 14px; text-align: center; }

.nav-mega-row .nav-col {
  flex: 1; min-width: 0;
  padding: 4px 0;
}
.nav-mega-row .nav-col-title {
  font-size: 16px; font-weight: 700; color: var(--navy);
  padding-bottom: 8px; border-bottom: 2px solid var(--navy);
  display: inline-block; margin-bottom: 8px;
}
.nav-mega-row .nav-col-sub {
  display: flex; flex-direction: column; gap: 2px;
}
.nav-tile-img {
  width: 280px; height: 200px; border-radius: 6px; overflow: hidden;
  background: #fff; flex-shrink: 0;
}
.nav-tile-img img { width: 100%; height: 100%; object-fit: contain; transition: opacity .18s ease; }
/* Applications mega-menu tiles: 填满无留白 */
.nav-app-col .nav-tile-img img { object-fit: cover; }
.nav-tile-label {
  font-size: 16px; font-weight: 700; color: var(--navy);
  padding: 0 2px;
}
.nav-tile:hover .nav-tile-label { color: var(--blue); }

/* Category column (general) */
.nav-col { position: relative; flex: 1; min-width: 0; padding-top: 4px; }
.nav-col-title {
  font-size: 15px; font-weight: 700; color: var(--navy);
  padding: 6px 0 10px; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid transparent; transition: border-color .15s, color .15s;
  text-decoration: none;
}
.nav-col:hover .nav-col-title { color: var(--accent); border-color: var(--accent); }
.nav-col-arrow { font-size: 13px; color: var(--muted); transition: transform .2s, color .2s; }
.nav-col:hover .nav-col-arrow { color: var(--accent); transform: translateX(3px); }

/* Sub-items: grid, 4 per column, overflow to next column */
.nav-col-sub {
  background: transparent;
  padding: 4px 0 0;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(4, auto);
  column-gap: 48px;
}
.nav-col-sub a {
  display: block; padding: 4px 0; font-size: 13px; color: var(--text);
  text-decoration: none !important; transition: color .12s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 320px;
}
.nav-col-sub a:hover { color: var(--accent); }

/* Consumables: material link + Leaded / Lead-Free tags */
.nav-sub-item { white-space: nowrap; padding: 3px 0; }
.nav-sub-tags { display: flex; gap: 10px; margin-top: 1px; }
.nav-col-sub .nav-sub-tags a {
	font-size: 11px; padding: 0; color: var(--muted);
}
.nav-col-sub .nav-sub-tags a:hover { color: var(--accent); text-decoration: underline; }

/* Row 2 (Soldering Modules): split 8 sub-items into 2 columns, compact width */
.nav-mega-row:nth-child(2) .nav-col-sub {
  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: 48px;
  row-gap: 2px;
  max-width: 520px;
}

/* Row 3 (Consumables): 4 material groups in a 2x2 grid, same layout as modules row */
.nav-mega-row:nth-child(3) .nav-col-sub {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(2, auto);
  grid-template-rows: repeat(2, auto);
  column-gap: 48px;
  row-gap: 2px;
  max-width: 520px;
  align-items: start;
}

/* Applications案例列表：每个行业一列，最多4条，底部More/View all */
.nav-app-col .nav-col-sub {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px;
}
.nav-app-col .nav-col-sub a {
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Contact Us footer bar inside mega-menu */
.nav-mega-cta {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--navy); color: #fff;
  padding: 14px 40px;
}
.nav-mega-cta .cta-left {
  display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600;
}
.nav-mega-cta .cta-left svg { width: 20px; height: 20px; fill: var(--accent); }
.nav-mega-cta a.nav-mega-contact {
  color: var(--accent); text-decoration: none !important;
  display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px;
}
.nav-mega-cta a.nav-mega-contact:hover { color: #fff; }
.nav-mega-cta .cta-close {
  background: none; border: none; color: #9b9b9b; font-size: 22px; cursor: pointer;
  padding: 0; line-height: 1;
}
.nav-mega-cta .cta-close:hover { color: #fff; }

/* ---------- Applications mega-menu — 2 columns × 3 rows, same DOM as Products ---------- */
.nav-app-inner {
  display: flex !important;
  flex-direction: row !important;
  gap: 48px;
  padding: 12px 32px;
}
.nav-app-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex; flex-direction: column;
}
.nav-app-col .nav-mega-row:last-child { border-bottom: none; }

.nav-col-more {
  display: inline-block;
  font-size: 13px; font-weight: 700; color: var(--accent);
  padding-top: 4px; text-decoration: none;
}
.nav-col-more:hover { color: var(--navy); text-decoration: none; }

/* 应用行业下拉：窗口收窄到 1440px 以下时改单列纵向排列（6 个行业依次排开），
   避免双列下图片+长英文标题挤压错位；宽屏(>1440px)仍为双列，≤1024px 走移动端布局 */
@media (min-width: 1025px) and (max-width: 1440px) {
  .nav-app-inner { flex-direction: column !important; gap: 0; }
  /* 两组合并成一列后，补齐组间分隔线，仅最后一行无底线 */
  .nav-app-col:not(:last-child) .nav-mega-row:last-child { border-bottom: 1px solid var(--border); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 6px; font-weight: 700;
  font-size: 15px; text-decoration: none !important; transition: all .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Hero Slider ---------- */
.hero-slider {
  position: relative; height: calc(100vh - 78px); min-height: 420px; overflow: hidden; background: var(--navy);
}
.hero-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity .8s ease-in-out; pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
/* Hero is now a pure clickable banner; click jumps to the slide's page. */

/* Hero dots & arrows */
.hero-dots {
  position: absolute; bottom: 24px; left: 0; width: 100%;
  display: flex; justify-content: center; gap: 8px; z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #fff;
  background: transparent; cursor: pointer; padding: 0; transition: all .2s;
}
.hero-dot.active { background: var(--accent); border-color: var(--accent); width: 10px; height: 10px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.2); color: #fff; border: none;
  width: 44px; height: 44px; border-radius: 50%; font-size: 18px;
  cursor: pointer; z-index: 10; transition: background .2s;
  display: flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { background: rgba(255,255,255,.4); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.alt { background: #f5f6f8; color: var(--navy); padding-top: 40px; }
.section.section-white { background: #fff; }
.section.alt .section-head h2 { color: var(--navy); }
.section.alt .section-head p { color: var(--muted); }
.section.alt .app-card-body h3 { color: #fff; }
.section.alt .btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.section.alt .btn-outline:hover { background: var(--navy); color: #fff; }
.section.dark { background: var(--navy); color: #fff; }
.section.section-compact { padding: 48px 0 56px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.section-head.left { text-align: left; margin: 0 0 24px; }
.section-head h2 { font-size: 34px; color: var(--navy); margin: 0 0 12px; font-weight: 800; }
.section.dark .section-head h2 { color: #fff; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }
.section.dark .section-head p { color: #b0b0b0; }
.section-cta { text-align: center; margin-top: 48px; }

/* ---------- Cards / grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .15s, box-shadow .15s;
}
a.card { text-decoration: none !important; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.10); }
.prod-card { padding: 0; overflow: hidden; }
.prod-card .card-img { aspect-ratio: 2/1; overflow: hidden; background: #fff; }
.prod-card .card-img img { width: 100%; height: 100%; object-fit: contain; }
.prod-card .card-body { padding: 16px 20px 20px; }
.prod-card h3 { font-size: 18px; color: var(--navy); margin: 0 0 6px; }
.prod-card p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.prod-card .more { font-weight: 700; color: var(--blue); font-size: 13px; }

/* ---------- Case Study cards ---------- */
.case-block { margin-bottom: 48px; }
.case-block:last-child { margin-bottom: 0; }
.case-head { margin-bottom: 20px; }
.case-head h2 { font-size: 24px; color: var(--navy); margin: 0 0 6px; font-weight: 800; }
.case-head p { margin: 0; color: var(--muted); font-size: 15px; }
.case-card { padding: 0; overflow: hidden; }
.case-card .card-img { aspect-ratio: 16/9; overflow: hidden; background: #fff; }
.case-card .card-img img { width: 100%; height: 100%; object-fit: contain; }
.case-card .card-body { padding: 18px 20px 22px; }
.case-card h3 { font-size: 16px; color: var(--navy); margin: 0 0 8px; line-height: 1.4; font-weight: 700; }
.case-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.case-card .more { font-weight: 700; color: var(--blue); font-size: 14px; }

/* ---------- Application grid ---------- */
.app-grid { display: grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: auto; gap: 20px; }
.cases-app .app-grid { grid-template-columns: repeat(3,1fr); }
a.app-card { text-decoration: none !important; }
.app-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; background: #f0f0f0; transition: transform .15s, box-shadow .15s;
}
.app-card.app-card-featured {
  grid-column: span 2; aspect-ratio: 16/9;
}
.app-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.15); }
.app-card-img { width: 100%; height: 100%; }
.app-card-img img { width: 100%; height: 100%; object-fit: cover; }
.app-card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(20,25,40,.82));
  padding: 22px 20px 18px;
}
.app-card-body h3 { margin: 0; color: #fff; font-size: 18px; font-weight: 700; }
.app-card-featured .app-card-body { padding: 28px 26px 22px; }
.app-card-featured .app-card-body h3 { font-size: 22px; letter-spacing: .3px; }
.app-card-meta { display: block; margin-top: 4px; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }

/* ---------- Application carousel (small cards below featured) ---------- */
.app-carousel-wrap {
  position: relative;
  margin-top: 20px;
  display: flex;
  align-items: center;
}
.app-carousel {
  overflow: hidden;
  flex: 1;
}
.app-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform .4s ease;
  will-change: transform;
}
.app-carousel-track .app-card {
  flex: 0 0 calc((100% - 60px) / 4); /* 4 cards + 3 gaps */
  min-width: 0;
}
.app-carousel-arrow {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  margin: 0 8px;
}
.app-carousel-arrow:hover { background: var(--accent); color: #fff; }
.app-carousel-arrow:disabled { opacity: .3; cursor: default; }
.app-carousel-arrow:disabled:hover { background: #fff; color: var(--accent); }

@media (max-width: 900px) {
  .app-carousel-track .app-card { flex: 0 0 calc((100% - 40px) / 3); }
}
@media (max-width: 640px) {
  .app-carousel-track .app-card { flex: 0 0 calc((100% - 20px) / 2); }
  .app-carousel-arrow { width: 36px; height: 36px; font-size: 22px; margin: 0 4px; }
}

/* ---------- About section ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.about-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-text p { color: var(--muted); font-size: 16px; margin: 0 0 16px; }
.about-list { list-style: none; padding: 0; margin: 0 0 28px; }
.about-list li {
  position: relative; padding-left: 28px; margin-bottom: 10px;
  color: var(--text); font-size: 15px;
}
.about-list li::before {
  content: "\2714"; position: absolute; left: 0; top: 0;
  color: var(--accent-dark); font-weight: 700;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat .num { font-size: 44px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat .lbl { color: #b0b0b0; font-size: 14px; margin-top: 6px; }
.cert-strip { margin-top: 56px; text-align: center; color: #9b9b9b; font-size: 14px; letter-spacing: 1px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 28px; }

/* ---------- News cards ---------- */
.news-card { padding: 0; overflow: hidden; }
.news-card .card-img { aspect-ratio: 16/9; overflow: hidden; background: #f0f0f0; }
.news-card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
}
.news-placeholder span { color: rgba(255,255,255,.3); font-size: 24px; font-weight: 800; }
.news-card .card-body { padding: 20px 22px 24px; }
.news-date { display: block; font-size: 13px; color: var(--accent-dark); font-weight: 600; margin-bottom: 8px; }
.news-card h3 { font-size: 18px; color: var(--navy); margin: 0 0 10px; line-height: 1.4; }
.news-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.news-card .more { font-weight: 700; color: var(--blue); font-size: 14px; }
.news-card .more.muted { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 36px 0 !important; }
.cta-band h2 { font-size: 26px; margin: 0 0 10px; color: #fff; }
.cta-band p { color: #b0b0b0; font-size: 15px; max-width: 640px; margin: 0 auto 18px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 60px 0; }
.page-hero h1 { margin: 0; font-size: 34px; font-weight: 800; }
.page-hero .sub { color: #b0b0b0; font-size: 17px; margin-top: 10px; max-width: 800px; }
.breadcrumb { font-size: 20px; color: #9b9b9b; margin-bottom: 12px; }
.breadcrumb a { color: #9b9b9b; }
.page-body { padding: 60px 0 90px; }
.page-body h2 { color: var(--navy); font-size: 26px; margin: 40px 0 14px; }
.page-body h3 { color: var(--navy); font-size: 20px; margin: 28px 0 10px; }
.page-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.page-body th, .page-body td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.page-body th { background: var(--light); color: var(--navy); }
.page-body ul { padding-left: 22px; }
.page-body .notice { background: #fdecea; border: 1px solid #c12721; border-radius: 8px; padding: 16px 20px; font-size: 14px; color: #2f302f; margin: 20px 0; }

/* Pillar cards (About Us page) */
.pillar-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin: 24px 0;
}
.pillar-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.pillar-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-3px); }
.pillar-img { width: 100%; height: 240px; overflow: hidden; background: #f0f0f0; }
.pillar-img img { width: 100%; height: 100%; object-fit: cover; }
.pillar-body { padding: 20px 24px 24px; }
.pillar-body h3 { margin: 0 0 8px; font-size: 20px; color: var(--navy); font-weight: 700; }
.pillar-body p { margin: 0; font-size: 14px; color: #2f302f; line-height: 1.7; }
.pillar-card:nth-child(4) { grid-column: span 3; display: flex; gap: 24px; }
.pillar-card:nth-child(4) .pillar-img { width: 300px; height: auto; flex-shrink: 0; }

/* ---------- Contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 14px; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  padding: 11px 13px; border: 1px solid var(--border); border-radius: 6px; font-size: 15px; font-family: inherit;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { background: #1a1b1a; color: #cccccc; padding: 64px 0 0; font-size: 14px; }
.footer-logo { display: inline-block; margin-bottom: 16px; text-decoration: none; }
.footer-logo img { height: 40px; width: auto; display: block; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin: 0 0 16px; letter-spacing: .5px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #cccccc; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #888888; }

/* ---------- Back-to-top button ---------- */
.back-to-top {
  position: fixed; right: 28px; bottom: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 14px rgba(204, 0, 0, .35);
  opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: opacity .25s ease, transform .25s ease, background .15s ease;
  z-index: 400;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: #a50000; }
.back-to-top svg { display: block; }
@media (max-width: 1024px) {
  .back-to-top { right: 18px; bottom: 70px; width: 40px; height: 40px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .app-grid { grid-template-columns: repeat(2,1fr); }
  .cases-app .app-grid { grid-template-columns: repeat(2,1fr); }
}
/* ---------- Products Listing Page (page-products.php) ---------- */
.product-body { padding: 60px 0 90px; background: #fafafa; }
.product-layout { display: flex; gap: 40px; align-items: flex-start; }

.product-sidebar {
	width: 260px; flex-shrink: 0;
	position: sticky; top: 122px;
}
.sidebar-inner {
	background: #fff; border: 1px solid var(--border); border-radius: 10px;
	padding: 24px 20px;
}
.sidebar-title {
	font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
	color: var(--muted); margin: 0 0 14px; padding-bottom: 10px;
	border-bottom: 1px solid var(--border);
}
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.sidebar-nav a {
	display: block; padding: 10px 12px; font-size: 14px; font-weight: 500;
	color: var(--text); border-radius: 6px; transition: all .15s;
	text-decoration: none !important;
}
.sidebar-nav a:hover {
	background: var(--accent); color: #fff;
}
.sidebar-cta { border-top: 1px solid var(--border); padding-top: 16px; }
.sidebar-cta p { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.sidebar-cta .btn { padding: 9px 14px; font-size: 13px; width: 100%; text-align: center; }

.product-main { flex: 1; min-width: 0; }

.product-cat-section {
	background: #fff; border: 1px solid var(--border); border-radius: 12px;
	padding: 36px 40px; margin-bottom: 28px;
}
.product-cat-title {
	font-size: 24px; font-weight: 800; color: var(--navy);
	margin: 0 0 8px;
}
.product-cat-desc {
	color: var(--muted); font-size: 15px; margin: 0 0 24px;
	padding-bottom: 20px; border-bottom: 1px solid var(--border);
}

/* Consumables sidebar: material sub-links */
.sidebar-nav a.sidebar-sub {
	padding-left: 26px; font-size: 13px; font-weight: 400; color: var(--muted);
}

/* Consumables: each material (Wire / Paste / Balls / Flux) is a separate
   block with its own dark header bar and card grids, so categories never
   share a grid row */
.material-group {
	margin-top: 32px;
	scroll-margin-top: 90px;
}
.material-group:first-of-type { margin-top: 8px; }
.material-group-head {
	background: #303030;
	border-radius: 8px;
	padding: 18px 26px;
	margin-bottom: 24px;
}
.material-group-title {
	font-size: 18px; font-weight: 700; color: #fff;
	margin: 0 0 6px;
}
.material-group-sub {
	font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.72);
	margin: 0;
}
.material-batch { margin-bottom: 24px; scroll-margin-top: 90px; }
.material-batch:last-child { margin-bottom: 0; }

/* Leaded / Lead-Free corner badge on consumable cards */
.product-card-badge {
	position: absolute; top: 10px; left: 10px; z-index: 2;
	background: var(--accent); color: #fff;
	font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
	padding: 3px 9px; border-radius: 3px;
	box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

.product-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
/* 焊锡耗材：每张卡片信息量少（图+型号），一行显示 6 个 */
.material-batch .product-card-grid {
	grid-template-columns: repeat(6, 1fr);
	gap: 14px;
}
.material-batch .product-card-body h3 {
	font-size: 13px;
	line-height: 1.35;
}
.material-batch .product-card-body p {
	display: none;  /* 耗材卡片不显示描述，节省宽度 */
}
.material-batch .product-card-more {
	font-size: 12px;
}
.product-card {
	position: relative;
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--border); border-radius: 10px;
	overflow: hidden; text-decoration: none !important;
	transition: transform .18s, box-shadow .18s, border-color .18s;
}
.product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0,0,0,.08);
	border-color: var(--accent);
}
.product-card-img { aspect-ratio: 16/10; overflow: hidden; background: #fff; }
.product-card-img img {
	width: 100%; height: 100%; object-fit: contain;
	transition: transform .3s;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.product-card-body h3 {
	font-size: 16px; font-weight: 700; color: var(--navy);
	margin: 0 0 8px; line-height: 1.4;
}
.product-card-body p {
	font-size: 13px; color: var(--muted); margin: 0 0 12px;
	line-height: 1.6; flex: 1;
}
.product-card-more {
	font-size: 13px; font-weight: 600; color: var(--accent);
}
.product-card:hover .product-card-more { color: var(--accent-dark); }

/* ---------- Product Detail Page (page-product-detail.php) ---------- */

/* Breadcrumb bar (compact, below header) */
.prod-breadbar {
  background: #f4f4f4; border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.prod-breadcrumb { font-size: 20px; color: var(--muted); }
.prod-breadcrumb a { color: var(--muted); text-decoration: none; }
.prod-breadcrumb a:hover { color: var(--accent); }
.prod-breadcrumb span { color: var(--navy); }

/* Main layout: left sidebar + right content */
.prod-detail-body { padding: 40px 0 80px; background: #fafafa; }
.prod-detail-grid { display: flex; gap: 36px; align-items: flex-start; }

/* LEFT SIDEBAR */
.prod-left { width: 260px; flex-shrink: 0; }
.prod-side-block {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 20px 18px; margin-bottom: 18px;
}
.prod-side-title {
  font-size: 14px; font-weight: 700; color: var(--navy); margin: 0 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.prod-side-list { list-style: none; margin: 0; padding: 0; }
.prod-side-list li { margin-bottom: 2px; }
.prod-side-list a {
  display: block; padding: 8px 12px; font-size: 14px; color: var(--text);
  border-radius: 6px; text-decoration: none !important; transition: all .15s;
}
.prod-side-list a:hover { background: #f2f2f2; color: var(--accent); }
.prod-side-list a.active { background: var(--navy); color: #fff; font-weight: 600; }

.prod-side-hot { list-style: none; margin: 0; padding: 0; }
.prod-side-hot li { margin-bottom: 14px; }
.prod-side-hot li:last-child { margin-bottom: 0; }
.prod-side-hot a {
  display: flex; gap: 10px; text-decoration: none !important;
  color: var(--text); align-items: center;
}
.prod-side-hot-img {
  width: 64px; height: 50px; border-radius: 4px; overflow: hidden;
  background: #fff; flex-shrink: 0;
}
.prod-side-hot-img img { width: 100%; height: 100%; object-fit: contain; }
.prod-side-hot-title { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--navy); }
.prod-side-hot a:hover .prod-side-hot-title { color: var(--accent); }

/* RIGHT MAIN */
.prod-right { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }

/* TOP BLOCK: gallery + summary side by side */
.prod-top-block { display: flex; gap: 36px; padding: 32px 36px; border-bottom: 1px solid var(--border); }

/* Gallery */
.prod-gallery { width: 40%; flex-shrink: 0; }
.prod-gallery-main {
  width: 100%; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden;
  background: #fff; margin-bottom: 12px;
}
.prod-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.prod-gallery-thumbs { display: flex; gap: 8px; }
.prod-thumb {
  width: 60px; height: 48px; border-radius: 4px; overflow: hidden;
  border: 2px solid transparent; background: #fff; padding: 0; cursor: pointer;
  transition: border-color .15s;
}
.prod-thumb img { width: 100%; height: 100%; object-fit: contain; }
.prod-thumb:hover { border-color: var(--accent); }
.prod-thumb.active { border-color: var(--accent); }

/* Summary */
.prod-summary { flex: 1; min-width: 0; }
.prod-title {
  font-size: 26px; font-weight: 800; color: var(--navy);
  margin: 0 0 12px; line-height: 1.3;
}
.prod-lead {
  font-size: 15px; color: var(--text); line-height: 1.7; margin: 0 0 18px;
}
.prod-meta { border-collapse: collapse; margin-bottom: 20px; }
.prod-meta th, .prod-meta td {
  padding: 6px 12px 6px 0; font-size: 14px; border-bottom: 1px dashed var(--border);
}
.prod-meta th {
  color: var(--muted); font-weight: 500; width: 100px; text-align: left;
}
.prod-meta td { color: var(--navy); font-weight: 500; }

.prod-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* TABS */
.prod-tabs { padding: 0 36px; }
.prod-tab-head {
  display: flex; gap: 0; border-bottom: 2px solid var(--border);
}
.prod-tab-btn {
  padding: 14px 22px; font-size: 15px; font-weight: 600; color: var(--muted);
  background: none; border: none; border-bottom: 3px solid transparent;
  margin-bottom: -2px; cursor: pointer; transition: color .15s, border-color .15s;
}
.prod-tab-btn:hover { color: var(--navy); }
.prod-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.prod-tab-panel {
  display: none; padding: 28px 0 8px;
  font-size: 15px; line-height: 1.8; color: var(--text);
}
.prod-tab-panel.active { display: block; }
.prod-tab-panel p { margin: 0 0 14px; }
.prod-tab-panel h3 { font-size: 18px; color: var(--navy); margin: 18px 0 10px; }

/* Feature list inside tab */
.prod-feature-list { list-style: none; padding: 0; margin: 0; }
.prod-feature-list li {
  padding: 12px 0 12px 22px; font-size: 15px;
  border-bottom: 1px dashed var(--border); position: relative;
}
.prod-feature-list li:last-child { border-bottom: none; }
.prod-feat-num { color: var(--accent); font-size: 10px; position: absolute; left: 0; top: 16px; }

/* Apps grid inside tab */
.prod-tab-panel .prod-apps-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px;
}
.prod-tab-panel .prod-app-card {
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  transition: transform .15s, box-shadow .15s; background: #fff;
}
.prod-tab-panel .prod-app-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.prod-tab-panel .prod-app-img { aspect-ratio: 16/9; overflow: hidden; background: #f0f0f0; }
.prod-tab-panel .prod-app-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-tab-panel .prod-app-body { padding: 14px 18px 16px; }
.prod-tab-panel .prod-app-body h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin: 0 0 6px; }
.prod-tab-panel .prod-app-body p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; }

/* Specs table inside tab */
.prod-specs-full { width: 100%; border-collapse: collapse; background: #fff; }
.prod-specs-full th {
  width: 220px; text-align: left; font-weight: 600;
  background: #f7f7f7; color: var(--navy);
  padding: 12px 18px; font-size: 14px;
  border: 1px solid var(--border);
}
.prod-specs-full td {
  padding: 12px 18px; font-size: 14px; color: var(--text);
  border: 1px solid var(--border);
}

/* INQUIRY FORM */
.prod-inquiry-panel {
  margin: 36px 36px 0; padding: 28px;
  background: #fafafa; border: 1px solid var(--border); border-radius: 10px;
}
.prod-inquiry-panel .prod-section-title {
  font-size: 20px; border-bottom: none; padding: 0; margin-bottom: 18px;
}
.prod-inquiry-form label {
  display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px;
}
.prod-inquiry-form input[type="text"],
.prod-inquiry-form input[type="email"],
.prod-inquiry-form input[type="tel"],
.prod-inquiry-form textarea {
  width: 100%; padding: 10px 14px; font-size: 14px; color: var(--text);
  border: 1px solid var(--border); border-radius: 6px; background: #fff;
  margin-bottom: 14px; box-sizing: border-box;
  transition: border-color .15s;
  font-family: inherit;
}
.prod-inquiry-form input:focus,
.prod-inquiry-form textarea:focus { outline: none; border-color: var(--accent); }
.prod-inquiry-form input[readonly] { background: #f0f0f0; color: var(--muted); }
.prod-inquiry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }

/* RELATED PRODUCTS */
.prod-related { margin: 36px 36px 40px; }
.prod-related .prod-section-title {
  font-size: 20px; border-bottom: none; padding: 0; margin-bottom: 18px;
}
.prod-related-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.prod-rel-card {
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  text-decoration: none !important; color: var(--text);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  background: #fff; display: block;
}
.prod-rel-card:hover {
  transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.1);
  border-color: var(--accent);
}
.prod-rel-img { aspect-ratio: 4/3; overflow: hidden; background: #fff; }
.prod-rel-img img { width: 100%; height: 100%; object-fit: contain; }
.prod-rel-card h4 {
  font-size: 14px; font-weight: 600; color: var(--navy); margin: 0;
  padding: 12px 14px; line-height: 1.45;
}
.prod-rel-card:hover h4 { color: var(--accent); }

/* ---------- Consumable Datasheet (PDF-style) ---------- */
.ds-sheet {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 40px 44px 36px; margin: 0 36px;
}
.ds-head {
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.ds-model-box {
  border: 2px solid #333; background: #fff;
  box-shadow: 8px 8px 0 #9aa3ad;
  font-size: 22px; font-weight: 700; color: #222;
  padding: 18px 26px; letter-spacing: .3px; white-space: nowrap;
}
.ds-head-text { flex: 1; min-width: 240px; }
.ds-series { font-size: 19px; color: #333; margin-bottom: 8px; }
.ds-type {
  font-size: 24px; font-weight: 700; color: var(--navy);
  margin: 0; line-height: 1.4;
}
.ds-feature {
  font-size: 15px; line-height: 1.75; color: #333;
  margin: 0 0 14px;
}
.ds-table-caption {
  text-align: center; font-size: 15px; color: #333;
  margin: 18px 0 12px;
}
.ds-table-wrap { overflow-x: auto; }
.ds-table {
  width: 100%; min-width: 560px;
  border-collapse: collapse; table-layout: fixed;
  border: 2px solid #333;
}
.ds-table th, .ds-table td {
  border: 1.5px solid #333;
  padding: 10px 12px;
  font-size: 14px; line-height: 1.55;
  vertical-align: middle; word-break: break-word;
}
.ds-table thead th {
  background: #b9bec4; color: #1d1d1d;
  font-weight: 700; text-align: center; font-size: 14.5px;
}
.ds-table td { text-align: center; color: #222; }
.ds-table .ds-cell-item { font-weight: 600; }
.ds-table .ds-cell-sub { width: 70px; font-weight: 600; }
.ds-table .ds-cell-char { width: 34%; }
.ds-table .ds-cell-method { width: 34%; color: #333; }
.ds-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border);
}
@media (max-width: 900px) {
  .ds-sheet { padding: 26px 18px; margin: 0 12px; }
  .ds-head { gap: 22px; }
  .ds-model-box { font-size: 18px; padding: 14px 18px; box-shadow: 5px 5px 0 #9aa3ad; }
  .ds-type { font-size: 19px; }
}

/* ---------- Single News Post ---------- */
.news-single-title { font-size: 34px; font-weight: 800; color: var(--navy); margin: 8px 0 10px; line-height: 1.3; }
.news-single-meta { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.news-meta-sep { margin: 0 8px; }
.news-single-wrap { max-width: 820px; }
.news-single-thumb { border-radius: 10px; overflow: hidden; margin: 0 0 28px; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.news-single-thumb img { display: block; width: 100%; height: auto; }
.news-single-lead { font-size: 17px; color: var(--navy); font-weight: 600; line-height: 1.6; border-left: 3px solid var(--accent); padding-left: 16px; margin: 0 0 24px; }
.news-single-content p { line-height: 1.85; color: #333; margin: 0 0 16px; }
.news-single-content h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin: 28px 0 12px; line-height: 1.35; }
.news-single-content ul { padding-left: 22px; margin: 0 0 16px; }
.news-single-content li { line-height: 1.85; margin-bottom: 6px; color: #333; }
.news-single-content strong { color: var(--navy); font-weight: 700; }
.news-nav {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 20px; font-size: 14px;
}
.news-nav a { color: var(--navy); text-decoration: none; max-width: 48%; line-height: 1.5; }
.news-nav a:hover { color: var(--accent); }
.news-nav-empty { color: #ccc; }

/* News grid (archive page) */
.news-grid { padding-top: 8px; }

/* ---------- News page (page-news.php) tab switcher ---------- */
.news-tabs {
  display: flex; gap: 0; border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}
.news-tab {
  background: none; border: 0; padding: 12px 24px;
  font-size: 16px; font-weight: 700; color: var(--muted);
  cursor: pointer; border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: color .18s, border-color .18s;
}
.news-tab:hover { color: var(--navy); }
.news-tab.active { color: var(--navy); border-bottom-color: var(--accent); }
.news-tab-count {
  display: inline-block; min-width: 24px; text-align: center;
  background: #eee; color: var(--muted); font-size: 12px; font-weight: 600;
  padding: 2px 7px; border-radius: 12px; margin-left: 6px;
}
.news-tab.active .news-tab-count { background: var(--accent); color: #fff; }
.news-tab-panel { display: none; }
.news-tab-panel.active { display: block; }

/* News page grid — 3-col responsive */
.news-page .news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 0;
}
.news-page .news-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; text-decoration: none !important;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.news-page .news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
  border-color: var(--accent);
}
.news-page .news-card-img { aspect-ratio: 16/9; overflow: hidden; background: #f0f0f0; }
.news-page .news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-page .news-card-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
}
.news-page .news-card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.news-page .news-card-meta { margin-bottom: 8px; }
.news-page .news-card-date { font-size: 12px; color: var(--muted); letter-spacing: .3px; }
.news-page .news-card-body h3 {
  font-size: 17px; font-weight: 700; color: var(--navy);
  margin: 0 0 10px; line-height: 1.4;
}
.news-page .news-card-body p {
  font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; flex: 1;
}
.news-page .news-empty {
  text-align: center; color: var(--muted); padding: 60px 20px; font-size: 15px;
}

/* News page responsive */
@media (max-width: 1024px) {
  .news-page .news-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 600px) {
  .news-page .news-grid { grid-template-columns: 1fr; }
  .news-tab { padding: 10px 16px; font-size: 15px; }
}

/* ---------- Responsive for product templates ---------- */
@media (max-width: 1060px) {
  .material-batch .product-card-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
@media (max-width: 900px) {
  /* Listing page */
  .product-layout { flex-direction: column; }
  .product-sidebar { width: 100%; position: static; }
  .product-card-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .material-batch .product-card-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  /* Detail page */
  .prod-detail-grid { flex-direction: column; }
  .prod-left { width: 100%; }
  .prod-top-block { flex-direction: column; gap: 24px; padding: 24px 20px; }
  .prod-gallery { width: 100%; max-width: 340px; }
  .prod-tabs { padding: 0 20px; }
  .prod-tab-btn { padding: 12px 14px; font-size: 14px; }
  .prod-tab-panel .prod-apps-grid { grid-template-columns: 1fr; }
  .prod-specs-full th { width: 140px; padding: 10px 14px; font-size: 13px; }
  .prod-specs-full td { padding: 10px 14px; font-size: 13px; }
  .prod-inquiry-panel { margin: 24px 20px 0; padding: 20px; }
  .prod-inquiry-grid { grid-template-columns: 1fr; }
  .prod-related { margin: 24px 20px 30px; }
  .prod-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .product-card-grid { grid-template-columns: 1fr; }
  .product-cat-section { padding: 24px 20px; }
  .product-cat-title { font-size: 20px; }
  .prod-related-grid { grid-template-columns: 1fr; }
}

/* Hamburger nav: tablets (≤1024px) and below */
/* Desktop always shows full nav; browser-window smaller than content scrolls horizontally */
@media (max-width: 1024px) {
  body { min-width: 0; overflow-x: hidden; }
  .top-bar-inner { min-width: 0; }
  .header-inner { min-width: 0; }
  .logo { margin-left: 0; margin-right: 0; }
  .nav-cta { margin-left: 0 !important; }
  .hero-slider { height: calc(100vh - 78px); min-height: 380px; }
  .hero-slide h1 { font-size: 28px; }
  .hero-slide p { font-size: 16px; }
  .hero-grid, .grid-3, .grid-2, .stats, .form-grid, .about-grid, .app-grid { grid-template-columns: 1fr; }
  .app-grid, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 56px 0; }
  .main-nav {
    display: none; position: fixed; top: 122px; left: 0; right: 0; bottom: 0; background: #fff;
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 20px 14px;
    border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(0,0,0,.1);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .main-nav.open { display: flex; }
  .main-nav a.nav-link { padding: 9px 0; width: 100%; font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-cta { margin-left: 0 !important; }
  /* CTA button full-width in mobile */
  .main-nav a.nav-cta {
    display: block; width: 100%; text-align: center;
    margin: 8px 0 4px !important; padding: 12px 16px !important; font-size: 16px;
  }
  /* Language row full-width in mobile, matches nav-link height */
  .main-nav .lang-group {
    display: flex; width: 100%; justify-content: space-between;
    padding: 9px 0; margin-top: 0;
    border-top: 1px solid var(--border);
  }

  /* Mobile mega-menu: inline, no hover */
  .nav-item-has-dropdown { width: 100%; padding: 9px 0; }
  .nav-item-has-dropdown > .nav-link-dropdown { padding: 0 !important; }
  .nav-dropdown {
    position: static; width: 100%; top: auto; left: auto; right: auto;
    transform: none; opacity: 0; visibility: hidden; pointer-events: none;
    box-shadow: none; border-radius: 0; border-top: none;
    max-height: 0; overflow: hidden; transition: max-height .25s ease, opacity .15s;
    z-index: auto;
    display: block; flex-direction: unset;
  }
  .nav-mega { padding: 0; overflow: visible; flex: none; }
  .nav-item-has-dropdown.open > .nav-dropdown {
    opacity: 1; visibility: visible; pointer-events: auto;
    max-height: 4000px; transform: none;
  }
  .nav-mega-inner {
    flex-direction: column; gap: 0; padding: 12px 24px; max-width: 100%;
  }
  .nav-mega-left {
    width: 100%; border-right: none; padding-right: 0; min-width: 0;
    flex-direction: row; flex-wrap: wrap; gap: 12px;
  }
  .nav-mega-left .nav-tile {
    width: calc(50% - 6px); flex-direction: row; gap: 10px; min-width: 0;
    padding: 10px 0; border-bottom: 1px solid var(--border);
  }
  .nav-tile-img { width: 60px; height: 45px; border-radius: 4px; flex-shrink: 0; }
  .nav-tile-label { font-size: 13px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
  .nav-mega-right {
    padding-left: 0; gap: 4px; padding-top: 12px; border-top: 1px solid var(--border);
    flex-direction: column;
  }
  .nav-col { width: 100%; position: static; min-width: 0; }
  .nav-col-sub {
    position: static; transform: none; box-shadow: none; padding: 0 0 0 16px; min-width: 0;
    opacity: 0; visibility: hidden; pointer-events: none; max-height: 0; overflow: hidden;
    transition: max-height .2s, opacity .15s;
  }
  .nav-col.open > .nav-col-sub {
    opacity: 1; visibility: visible; pointer-events: auto; max-height: 600px;
  }
  .nav-mega-row:nth-child(3) .nav-col-sub {
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(2, auto);
    row-gap: 6px;
  }
  .nav-col-title { border-bottom: none; padding: 4px 0; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
  .nav-col:hover .nav-col-title { color: var(--navy); border-color: transparent; }
  .nav-col:hover .nav-col-arrow { transform: none; }
  .nav-mega-cta { padding: 12px 24px; }
  .nav-mega-cta .cta-left { font-size: 14px; }
  .nav-app-inner { flex-direction: column !important; gap: 0; }

  .hero-arrow { width: 36px; height: 36px; font-size: 15px; }
  .hero-prev { left: 12px; }
  .hero-next { right: 12px; }
}
@media (max-width: 600px) {
  .app-grid, .grid-4 { grid-template-columns: 1fr; }
  .hero-slider { height: 360px; }
  .hero-slide h1 { font-size: 22px; }
  .nav-mega-left { flex-direction: column; }
  .nav-mega-left .nav-tile { width: 100%; }
  .nav-col-sub a { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }

  /* Completely hide top-bar on phones to save vertical space */
  .top-bar { display: none; }
  .site-header { top: 0; }
  body { padding-top: 60px; }
  .header-inner { height: 60px; }
  .logo-img { height: 36px; }
  .nav-toggle { font-size: 30px; }
  .main-nav { top: 60px; padding: 8px 16px 16px; }
}

/* ============================================================
   PRODUCT DETAIL (single-product.php) — Hans Laser style
   ============================================================ */

/* Breadcrumb bar */
.prod-breadbar {
  background: #f7f7f8; border-bottom: 1px solid var(--border);
  padding: 12px 0; font-size: 13px; color: #888;
}
.prod-breadcrumb a { color: #888; text-decoration: none; }
.prod-breadcrumb a:hover { color: var(--primary); }
.prod-breadcrumb > span { color: #333; font-weight: 500; }

/* Layout grid */
.prod-detail-body { padding: 40px 0 60px; }
.prod-detail-grid {
  display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start;
}

/* Sidebar */
.prod-left { position: sticky; top: 90px; }
.prod-side-block {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 20px 16px; margin-bottom: 16px;
}
.prod-side-title {
  font-size: 14px; font-weight: 600; color: var(--navy);
  margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--primary);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.prod-side-list { list-style: none; padding: 0; margin: 0; }
.prod-side-list li { margin-bottom: 4px; }
.prod-side-list a {
  display: block; padding: 8px 12px; font-size: 13px; color: #555;
  text-decoration: none; border-radius: 4px; transition: all .15s;
}
.prod-side-list a:hover { background: #f0f4ff; color: var(--primary); }
.prod-side-list a.active {
  background: var(--primary); color: #fff; font-weight: 500;
}
.prod-side-cta { text-align: center; }
.prod-side-cta .btn { width: 100%; }

/* Right column */
.prod-right { min-width: 0; }

/* Top block: gallery + summary */
.prod-top-block {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; margin-bottom: 40px;
}

/* Gallery */
.prod-gallery { width: 100%; }
.prod-gallery-main {
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  background: #fafafa; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
}
.prod-gallery-main img {
  width: 100%; height: 100%; object-fit: contain;
}
.prod-gallery-thumbs {
  display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px;
}
.prod-thumb {
  flex: 0 0 72px; width: 72px; height: 54px; border: 2px solid transparent;
  border-radius: 4px; padding: 0; cursor: pointer; background: #eee;
  overflow: hidden; transition: border-color .15s;
}
.prod-thumb:hover { border-color: var(--primary); }
.prod-thumb.active { border-color: var(--primary); }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Summary */
.prod-summary h1 {
  font-size: 26px; font-weight: 700; color: var(--navy);
  margin: 0 0 14px; line-height: 1.3;
}
.prod-lead { font-size: 14px; color: #666; line-height: 1.7; margin: 0 0 18px; }
.prod-meta {
  width: 100%; border-collapse: collapse; margin-bottom: 20px;
  font-size: 13px;
}
.prod-meta th, .prod-meta td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee;
}
.prod-meta th { color: #888; font-weight: 500; width: 80px; }
.prod-meta td { color: #333; font-weight: 500; }
.prod-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.prod-cta-row .btn { padding: 10px 22px; font-size: 14px; }

/* Tabs */
.prod-tabs { border-top: 1px solid var(--border); margin-bottom: 40px; }
.prod-tab-head {
  display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px;
  overflow-x: auto;
}
.prod-tab-btn {
  background: none; border: none; padding: 14px 22px; font-size: 15px;
  font-weight: 500; color: #888; cursor: pointer; border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: all .15s; white-space: nowrap;
}
.prod-tab-btn:hover { color: var(--primary); }
.prod-tab-btn.active {
  color: var(--primary); border-bottom-color: var(--primary);
}
.prod-tab-panel { display: none; padding: 10px 0; }
.prod-tab-panel.active { display: block; }

/* Description tab */
.prod-tab-panel p { font-size: 15px; line-height: 1.8; color: #444; margin: 0 0 16px; }

/* Features */
.prod-feature-list { list-style: none; padding: 0; margin: 0; }
.prod-feature-list li {
  padding: 10px 0 10px 28px; font-size: 14px; line-height: 1.7; color: #444;
  position: relative; border-bottom: 1px dashed #eee;
}
.prod-feature-list li:last-child { border-bottom: none; }
.prod-feat-num {
  position: absolute; left: 0; top: 12px; color: var(--primary); font-size: 10px;
}

/* Apps grid */
.prod-apps-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
}
.prod-app-card {
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.prod-app-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.prod-app-img { aspect-ratio: 16/10; overflow: hidden; background: #f5f5f5; }
.prod-app-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-app-body { padding: 16px; }
.prod-app-body h4 { margin: 0 0 8px; font-size: 15px; color: var(--navy); }
.prod-app-body p { margin: 0; font-size: 13px; color: #666; line-height: 1.6; }

/* Specs */
.prod-specs-full {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.prod-specs-full th, .prod-specs-full td {
  padding: 12px 16px; border-bottom: 1px solid #eee; text-align: left;
}
.prod-specs-full th {
  width: 30%; color: #666; font-weight: 500; background: #fafafa;
}
.prod-specs-full tr:hover td { background: #f9f9ff; }

/* Inquiry form */
.prod-inquiry-panel {
  background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 32px; margin-bottom: 40px;
}
.prod-section-title {
  font-size: 20px; font-weight: 700; color: var(--navy);
  margin: 0 0 24px;
}
.prod-inquiry-form label {
  display: block; font-size: 13px; font-weight: 500; color: #555; margin-bottom: 6px;
}
.prod-inquiry-form input, .prod-inquiry-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 14px; margin-bottom: 14px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.prod-inquiry-form input:focus, .prod-inquiry-form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200,30,50,.1);
}
.prod-inquiry-form input[readonly] { background: #f5f5f5; color: #888; }
.prod-inquiry-form textarea { resize: vertical; min-height: 100px; }
.prod-inquiry-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.prod-inquiry-form button.btn { padding: 12px 32px; font-size: 15px; }

/* Related products */
.prod-related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px;
}
.prod-rel-card {
  text-decoration: none; color: inherit; border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; transition: transform .2s, box-shadow .2s;
  display: block; background: #fff;
}
.prod-rel-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.prod-rel-img { aspect-ratio: 4/3; overflow: hidden; background: #f5f5f5; }
.prod-rel-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-rel-card h4 {
  margin: 12px 14px 14px; font-size: 14px; color: #333; line-height: 1.4;
}

/* Mobile responsive */
@media (max-width: 1024px) {
  .prod-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .prod-left { position: static; order: -1; }
  .prod-top-block { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .prod-inquiry-grid { grid-template-columns: 1fr; }
  .prod-tab-btn { padding: 10px 14px; font-size: 14px; }
  .prod-summary h1 { font-size: 22px; }
  .prod-inquiry-panel { padding: 20px; }
}

/* ---------- Case Category Archive / Industry Page (Hanslaser-style) ---------- */

/* Hero + intro + body 所有 container 统一居中在 1400px（参考大族 1600px） */
.page-hero .container,
.case-cat-intro .container,
.case-cat-body .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Category intro block — pulled from case_category term description */
.case-cat-intro {
  padding: 32px 0 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}
.case-cat-intro-inner {
  max-width: 720px;
  color: #555;
  font-size: 17px;
  line-height: 1.9;
}
.case-cat-intro-inner p { margin: 0 0 12px; }
.case-cat-intro-inner p:last-child { margin-bottom: 0; }

.case-cat-body { padding: 30px 0 90px; }

/* Sub-category filter pills */
.case-cat-pills {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px;
}
.case-cat-pills .pill {
  display: inline-block; padding: 8px 18px; border-radius: 30px;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  font-size: 14px; font-weight: 600; text-decoration: none !important;
  transition: background .15s, color .15s, border-color .15s;
}
.case-cat-pills .pill:hover { border-color: var(--accent); color: var(--accent); }
.case-cat-pills .pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/*
  Vertical list of left-image / right-text cards.
  Proportions (matched from hanslaser.com/solu-energy.html @ 1440px viewport):
    container  ~ 850px
    card       padding: 40px all sides, margin-bottom: 20px
    image      ~ 390px  (content area ~57%)
    text       ~ 293px  (content area ~43%)
  Outside .page-hero: section has thin top border only, no card box-shadow.
*/
/* Page layout: sidebar on LEFT + main cards on right */
.case-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.case-main {
  flex: 1;
  min-width: 0;
  padding-bottom: 120px;
}
/* 卡片列表 — max-width + margin auto 居中 */
.case-cat-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}

/* Left sticky sidebar — 在 flex 里自然占流 */
.case-sidebar {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 122px;
}
.case-sidebar .sidebar-nav a {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
}
.case-sidebar .sidebar-nav a.active,
.product-sidebar .sidebar-nav a.active {
  background: var(--accent); color: #fff;
}
.sidebar-count {
  font-size: 12px; color: var(--muted);
  background: var(--light); padding: 2px 8px; border-radius: 10px;
  min-width: 22px; text-align: center;
}
.case-sidebar .sidebar-nav a.active .sidebar-count {
  color: var(--accent); background: #fff;
}

/* Card — transform-origin center 让缩放是居中的 */
.case-cat-item {
  display: flex; flex-direction: row; align-items: stretch;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none !important;
  color: inherit;
  will-change: opacity, transform;
  transform-origin: center center;
  position: relative;
  overflow: visible;
  background: #fff;
}

/* Image — compact 48% */
.case-cat-img {
  flex: 0 0 48%; max-width: 48%;
  overflow: hidden; background: #f4f4f4;
  position: relative;
}
.case-cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* New badge — 发布 30 天内的案例显示 */
.case-new-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 4px;
  line-height: 1; z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* Text — compact padding & spacing */
.case-cat-text {
  flex: 1; padding: 0 20px 0 24px;
  display: flex; flex-direction: column; justify-content: center;
}
.case-cat-text h2 {
  font-size: 22px; color: var(--navy);
  margin: 0 0 12px; font-weight: 700; line-height: 1.4;
}
.case-cat-text p {
  font-size: 15px; color: #666; line-height: 1.8;
  margin: 0 0 16px;
}
.case-cat-more {
  font-size: 14px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 4px;
  letter-spacing: .3px;
}

/* Responsive — collapse to single column below tablet (≤768px = mobile) */
@media (max-width: 768px) {
  .case-layout { flex-direction: column; gap: 28px; }
  .case-sidebar { width: 100%; position: static; order: -1; }
  .case-sidebar .sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .case-sidebar .sidebar-nav a { padding: 8px 14px; }
}
@media (max-width: 820px) {
  .case-cat-item { flex-direction: column; padding: 28px 0; }
  .case-cat-img { flex: none; max-width: 100%; aspect-ratio: 16/9; }
  .case-cat-text { padding: 20px 0 0; }
  .case-cat-text h2 { font-size: 20px; }
}
