/*
Theme Name: Acorn Magnet
Theme URI: https://acornmagnet.com
Author: Acorn Magnet
Author URI: https://acornmagnet.com
Description: A responsive English B2B manufacturing company theme. Includes Home / About / Products / Solutions / Contact pages, a Products directory sidebar on all inner pages, product + case custom post types, and full mobile support.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: acornmag
Tags: blog, e-commerce, business, two-columns, custom-menu, featured-images
*/

/* ============ Base & Reset ============ */
:root {
  --navy: #0a2540;
  --navy-2: #123a63;
  --blue: #1c5fc4;
  --blue-2: #2e7bdc;
  --red: #e63946;
  --amber: #f4a340;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #243447;
  --muted: #5b6b7c;
  --line: #e3e8ef;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(10, 37, 64, .08);
  --shadow-lg: 0 10px 30px rgba(10, 37, 64, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }
ul, ol { list-style-position: inside; }
h1, h2, h3, h4, h5 { color: var(--navy); line-height: 1.25; font-weight: 700; }
p { margin-bottom: 1em; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ============ Top Bar ============ */
.topbar {
  background: var(--navy);
  color: #cdd9e6;
  font-size: 13px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #cdd9e6; }
.topbar a:hover { color: #fff; }
.topbar .topbar-left span { margin-right: 18px; }

/* ============ Header / Nav ============ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 1px 0 rgba(10,37,64,.04);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 22px; letter-spacing: -1px;
}
.brand-text .brand-name { font-size: 24px; font-weight: 800; color: var(--navy); letter-spacing: .5px; }
.brand-text .brand-name em { font-style: normal; color: var(--red); }
.brand-text .brand-tag { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 2.5px; }

.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; }
.main-nav a {
  display: block; padding: 10px 16px; border-radius: 6px;
  color: var(--navy); font-weight: 600; font-size: 15px;
}
.main-nav a:hover { background: #eef4fc; color: var(--blue); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { background: var(--blue); color: #fff; }
.main-nav .current-menu-item > a:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 44px; height: 44px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ Cascade dropdown (Products menu) ============ */
/* NOTE: all cascade selectors are prefixed with .main-nav so their
   specificity (0-2-0+) beats the generic `.main-nav ul { display:flex }`
   rule (0-1-1) that would otherwise force the sub-lists into a row. */
.main-nav li.has-cascade { position: relative; }
.main-nav .cascade-caret {
  display: inline-block; margin-left: 6px; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; vertical-align: 1px;
  transition: transform .2s ease;
}
.main-nav li.has-cascade:hover > a > .cascade-caret,
.main-nav li.has-cascade:focus-within > a > .cascade-caret,
.main-nav li.has-cascade.cascade-open > a > .cascade-caret { transform: rotate(180deg); }

.main-nav .cascade-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -8px;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 36px rgba(10,37,64,.16);
  padding: 8px 0;
  z-index: 60;
  list-style: none; margin: 0;
  flex-direction: column; gap: 0;
}
.main-nav li.has-cascade:hover > .cascade-menu,
.main-nav li.has-cascade:focus-within > .cascade-menu,
.main-nav li.has-cascade.cascade-open > .cascade-menu { display: block; }

.main-nav .cascade-menu > li { position: relative; }
.main-nav .cascade-menu > li > a {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 10px 18px; color: var(--navy); font-weight: 600; font-size: 14.5px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.main-nav .cascade-menu > li > a:hover,
.main-nav .cascade-menu > li:focus-within > a,
.main-nav .cascade-menu > li.sub-open > a { background: #eef4fc; color: var(--blue); }

.main-nav .sub-caret {
  display: inline-block; flex: none; width: 0; height: 0;
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor; opacity: .55;
}

.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: -9px;
  left: 100%;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(10,37,64,.16);
  padding: 8px 0;
  z-index: 61;
  list-style: none; margin: 0;
  flex-direction: column; gap: 0;
}
.main-nav .cascade-menu > li.has-sub:hover > .sub-menu,
.main-nav .cascade-menu > li.has-sub:focus-within > .sub-menu,
.main-nav .cascade-menu > li.has-sub.sub-open > .sub-menu { display: block; }

.main-nav .sub-menu li { margin: 0; }
.main-nav .sub-menu a {
  display: block; padding: 9px 18px;
  color: var(--text); font-size: 14.5px; font-weight: 500; white-space: nowrap;
  transition: background .15s, color .15s, padding .15s;
}
.main-nav .sub-menu a:hover {
  background: #eef4fc; color: var(--blue); padding-left: 22px;
}

/* Responsive (desktop) */
@media (min-width: 769px) {
  .main-nav .menu { gap: 6px; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s;
  text-align: center;
}
.btn-primary { background: var(--red); color: #fff !important; }
.btn-primary:hover { background: #c22833; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { border-color: #fff; color: #fff !important; }
.btn-outline:hover { background: #fff; color: var(--navy) !important; }
.btn-blue { background: var(--blue); color: #fff !important; }
.btn-blue:hover { background: var(--navy); }

/* ============ Hero (front page) ============ */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(44,123,220,.45), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(230,57,70,.25), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, #16406e 60%, #1a4f8c 100%);
  color: #fff;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -80px; bottom: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,163,64,.35), transparent 70%);
}
.hero-inner { max-width: 640px; position: relative; z-index: 2; }
.hero-kicker {
  display: inline-block; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 { color: #fff; font-size: 44px; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p { color: #d7e3f2; font-size: 18px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 40px; margin-top: 55px; flex-wrap: wrap; position: relative; z-index: 2; }
.hero-stat { min-width: 120px; }
.hero-stat b { display: block; font-size: 30px; color: var(--amber); }
.hero-stat span { color: #c3d4e8; font-size: 14px; }

/* Hero banner: full-bleed engineering line illustration */
.hero-art {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,37,64,.99) 0%, rgba(10,37,64,.95) 30%, rgba(10,37,64,.62) 54%, rgba(13,45,80,.22) 78%, rgba(20,64,110,0) 100%),
    linear-gradient(0deg, rgba(10,37,64,.92) 0%, rgba(10,37,64,.45) 12%, rgba(10,37,64,0) 26%);
}
@media (max-width: 1024px) {
  .hero { display: flex; flex-direction: column; }
  .hero .container { order: 1; }
  .hero-art {
    position: static; order: 2;
    height: 280px; margin-top: 34px;
    border-top: 1px solid rgba(159,194,236,.22);
  }
  .hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
  .hero-shade { display: none; }
}

/* ============ Trust strip ============ */
.trust-strip { background: var(--navy-2); color: #dce8f5; padding: 14px 0; }
.trust-strip .container { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.trust-strip b { color: var(--amber); }

/* ============ Sections ============ */
.section { padding: 70px 0; }
.section.alt { background: var(--card); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 45px; }
.section-kicker { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 3px; font-size: 13px; margin-bottom: 8px; }
.section-head h2 { font-size: 34px; margin-bottom: 12px; }
.section-head p { color: var(--muted); }

/* ============ Category cards ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card-cover {
  height: 170px; display: flex; align-items: center; justify-content: center;
}
.cat-card-cover svg { width: 64px; height: 64px; opacity: .92; }
.cat-card-cover svg.term-schematic { width: 150px; height: 150px; opacity: 1; }
/* 应用分类（sensor/motor/encoder）用具象线稿图，背景改浅灰让蓝磁铁更清楚 */
.cat-card-cover.has-schematic { background: #eef2f7; }
.cat-card-cover.has-schematic svg.term-schematic { color: #1c5fc4; }
.cover-1 { background: linear-gradient(135deg, #1c5fc4, #0a2540); }
.cover-2 { background: linear-gradient(135deg, #e63946, #8f1029); }
.cover-3 { background: linear-gradient(135deg, #0e9594, #075e5d); }
.cover-4 { background: linear-gradient(135deg, #f4a340, #c05f00); }
.cover-5 { background: linear-gradient(135deg, #5b6b7c, #243447); }
.cover-6 { background: linear-gradient(135deg, #7b2ff7, #3a0d7a); }
.cat-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.cat-card-body h3 { font-size: 19px; margin-bottom: 8px; }
.cat-card-body p { color: var(--muted); font-size: 14.5px; flex: 1; }
.cat-link { margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--blue); }
.cat-card:hover .cat-link { color: var(--red); }
.cat-card-cover-link { display: block; width: 100%; height: 100%; }

/* ============ About / stats ============ */
.about-flex { display: flex; gap: 50px; align-items: center; }
.about-flex > div:first-child { flex: 1.2; }
.about-flex > div:last-child { flex: 1; }
.about-flex h2 { font-size: 32px; margin-bottom: 16px; }
.about-flex p { color: var(--muted); }
.stat-box {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 22px; text-align: center; border-top: 4px solid var(--blue);
}
.stat-box b { display: block; font-size: 34px; color: var(--navy); }
.stat-box span { color: var(--muted); font-size: 14px; }
.stat-box:nth-child(2) { border-top-color: var(--red); }
.stat-box:nth-child(3) { border-top-color: var(--amber); }
.stat-box:nth-child(4) { border-top-color: #0e9594; }
/* About 区数字卡：2x2 排列，避免 "3-Stage"/"4-Phase" 被连字符折断 */
.about-stats { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 16px; }
.about-stats .stat-box {
  padding: 20px 14px; display: flex; flex-direction: column; justify-content: center;
}
.about-stats .stat-box b { font-size: 30px; white-space: nowrap; }
@media (max-width: 480px) { .about-stats .stat-box b { font-size: 25px; } }

/* ============ Product grid ============ */
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-thumb {
  height: 180px; display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.product-thumb svg { width: 58px; height: 58px; }
.product-card-body { padding: 18px; flex: 1; }
.product-card-body .p-cat { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--red); font-weight: 700; margin-bottom: 6px; }
.product-card-body h3 { font-size: 17px; margin-bottom: 6px; }
.product-card-body .p-excerpt { font-size: 13.5px; color: var(--muted); }

/* ============ News (blog) cards ============ */
.post-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-cover {
  height: 170px; color: #fff; padding: 20px;
  display: flex; align-items: flex-end; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
}
.pc-1 { background: linear-gradient(135deg, #0a2540, #1c5fc4); }
.pc-2 { background: linear-gradient(135deg, #8f1029, #e63946); }
.pc-3 { background: linear-gradient(135deg, #075e5d, #0e9594); }
.pc-4 { background: linear-gradient(135deg, #5b3a10, #f4a340); }
.post-cover.has-thumb {
  background-size: cover; background-position: center; position: relative;
}
.post-cover.has-thumb::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,18,36,.80), rgba(8,18,36,.12) 55%, rgba(8,18,36,.04) 100%);
}
.post-cover .cover-label {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  padding: 6px 11px; border-radius: 7px;
  font-size: 12px; letter-spacing: .4px;
  box-shadow: 0 1px 6px rgba(0,0,0,.18);
}
.post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card-body h3 { font-size: 17px; margin-bottom: 8px; }
.post-card-body p { font-size: 14px; color: var(--muted); flex: 1; }
.post-meta { font-size: 12.5px; color: #93a1b0; margin-bottom: 8px; }

/* ============ Testimonials ============ */
.quote-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; position: relative;
}
.quote-card::before {
  content: "\201C"; position: absolute; top: 6px; left: 18px;
  font-size: 60px; color: var(--blue); opacity: .18; font-family: Georgia, serif;
}
.quote-card p { font-size: 14.5px; color: var(--text); font-style: italic; }
.quote-who { margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.quote-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.quote-who b { display: block; font-size: 14.5px; color: var(--navy); }
.quote-who span { font-size: 12.5px; color: var(--muted); }
.quote-stars { margin-top: 14px; color: #f5b301; font-size: 18px; letter-spacing: 3px; line-height: 1; }

/* ============ CTA band ============ */
.cta-band {
  background: linear-gradient(120deg, var(--navy), #1a4f8c);
  color: #fff; text-align: center; padding: 60px 0;
}
.cta-band h2 { color: #fff; font-size: 32px; margin-bottom: 10px; }
.cta-band p { color: #c9d9ec; margin-bottom: 26px; }

/* Closing CTA inside an article (cases / technical guides).
   2026-09-25 定稿（第 3 改）：
   - 第 1 版 26px/h3 21px → 用户嫌"太隐晦"
   - 第 2 版 46px/h3 28px + 红色顶条 + 铺满整栏 → 用户嫌"红边丑、太宽笨重"
   - 第 3 版 收窄到 620px → 用户又要"跟 neodymium 那页一样长"
   结论：**宽度铺满整栏（不设 max-width），但用薄内边距 + 小字号 + 无红边保持轻**，
   这样既有 .cta-band 的体量，又不会有"笨重的大色块"感。 */
.post-cta {
  background: linear-gradient(120deg, var(--navy) 8%, #1a4f8c 100%);
  color: #fff; border-radius: 12px;
  padding: 34px 40px 36px; margin: 40px 0 8px;
  text-align: center;
  box-shadow: 0 14px 30px -18px rgba(10, 37, 64, .45);
}
.post-cta h3 { color: #fff; font-size: 24px; line-height: 1.3; margin: 0 0 10px; }
.post-cta p { color: #d3e0f0; font-size: 15.5px; line-height: 1.7; margin: 0 auto 21px; max-width: 620px; }
.post-cta p:last-child { margin-bottom: 0; }
.post-cta .btn { padding: 13px 32px; font-size: 15.5px; }
@media (max-width: 560px) {
  .post-cta { padding: 26px 20px 28px; margin: 32px 0 8px; }
  .post-cta h3 { font-size: 20px; }
  .post-cta p { font-size: 14.5px; margin-bottom: 18px; }
}

/* ============ Page layout with sidebar ============ */
.page-banner {
  background: linear-gradient(120deg, var(--navy), #1a4f8c);
  color: #fff; padding: 44px 0;
}
.page-banner h1 { color: #fff; font-size: 32px; margin-bottom: 6px; }
.page-banner .breadcrumb { font-size: 13.5px; color: #bcd0e6; }
.page-banner .breadcrumb a { color: #e8f0fa; }

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 34px;
  padding: 46px 0 70px;
  align-items: start;
}
.content-main { min-width: 0; }
.content-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px;
}
.content-card h2 { font-size: 26px; margin: 26px 0 12px; }
.content-card h3 { font-size: 20px; margin: 22px 0 10px; }
.content-card ul, .content-card ol { margin: 0 0 1em 1.2em; }
.content-card li { margin-bottom: .4em; }

/* ============ Term landing (Neodymium Magnets) ============ */
.term-landing .term-section { margin-top: 26px; }
.term-landing .term-section h2 { margin-top: 0; }
.term-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 34px;
  align-items: center;
}
.term-hero-grid h2 { margin-top: 0; }
.term-hero-media img,
.term-hero-media img.term-hero-img {
  display: block; width: 100%; height: auto;
  border-radius: 10px; border: 1px solid var(--line);
}
.term-prop-list { list-style: none; margin: 0; }
.term-prop-list li {
  padding: 9px 0 9px 26px; position: relative;
  border-bottom: 1px dashed var(--line); margin: 0;
}
.term-prop-list li:last-child { border-bottom: none; }
.term-prop-list li::before {
  content: ""; position: absolute; left: 2px; top: 16px;
  width: 9px; height: 9px; border-radius: 2px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
}

/* Spec tables */
.spec-table-wrap { overflow-x: auto; margin: 14px 0; border-radius: 8px; }
.spec-table {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
  background: #fff; border: 1px solid var(--line); white-space: nowrap;
}
.spec-table thead th {
  background: var(--navy); color: #fff; font-weight: 700;
  padding: 11px 14px; text-align: left; white-space: nowrap;
}
.spec-table tbody td { padding: 9px 14px; border-bottom: 1px solid var(--line); }
.spec-table tbody tr:nth-child(even) { background: #f6f9fd; }
.spec-table tbody tr:hover { background: #eef4fc; }
/* Wide summary tables: allow wrapping so the last column stays visible in the
   narrow article column instead of forcing a horizontal scroll. */
.spec-table.spec-wrap,
.spec-table.spec-wrap thead th { white-space: normal; }
.spec-table.spec-wrap { font-size: 13px; }
.spec-table.spec-wrap tbody td { vertical-align: top; }
.spec-note { font-size: 12.5px; color: #93a1b0; margin-top: 6px; }

/* Shape product grid (real photos) */
.shape-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 18px;
}
.shape-grid .product-thumb.shape-photo {
  background: #f4f7fb; display: block; height: auto; overflow: hidden;
}
.shape-grid .product-thumb.shape-photo img.card-photo {
  display: block; width: 100%; height: 200px; object-fit: cover;
}
.shape-grid .product-thumb.shape-photo svg { width: 58px; height: 58px; }

/* Icon / diagram tile grid */
.tile-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px;
}
.tile-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 14px 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tile-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow);
  border-color: var(--blue);
}
.tile-card > svg { width: 100%; max-width: 150px; height: auto; }
.tile-card > span,
.tile-card > p {
  margin: 0;
  font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.35;
}
.tile-card.app-card { color: var(--blue); }
.tile-card.app-card > svg { max-width: 66px; color: var(--blue); }
.tile-card.app-card:hover { color: var(--red); }
.tile-card.app-card:hover > svg { color: var(--red); }

@media (max-width: 1024px) {
  .shape-grid, .tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .term-hero-grid { grid-template-columns: 1fr; }
  .term-hero-media { order: -1; }
}
@media (max-width: 560px) {
  .shape-grid, .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tile-card { padding: 16px 8px 12px; }
  .tile-card > span { font-size: 12.5px; }
  .spec-table { font-size: 12.5px; }
  .spec-table thead th, .spec-table tbody td { padding: 8px 10px; }
}

/* ============ Sidebar (Products directory) ============ */
.site-sidebar .widget {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px;
}
.site-sidebar .widget-title {
  font-size: 16px; padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 2px solid var(--red); display: flex; align-items: center; gap: 8px;
}
.site-sidebar .widget-title svg { width: 18px; height: 18px; }
.sidebar-cta {
  background: linear-gradient(135deg, var(--navy), #1a4f8c);
  color: #fff; border-radius: var(--radius); padding: 24px;
}
.sidebar-cta h4 { color: #fff; margin-bottom: 8px; font-size: 18px; }
.sidebar-cta p { color: #c9d9ec; font-size: 14px; margin-bottom: 16px; }
.sidebar-cta .btn { width: 100%; }
.prod-dir-list { list-style: none; margin: 0; }
.prod-dir-list li { border-bottom: 1px dashed var(--line); }
.prod-dir-list li:last-child { border-bottom: none; }
.prod-dir-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 4px; color: var(--text); font-weight: 600; font-size: 14.5px;
}
.prod-dir-list a:hover { color: var(--blue); padding-left: 8px; transition: .2s; }
.prod-dir-list .count {
  background: #eef4fc; color: var(--blue); border-radius: 999px;
  font-size: 12px; padding: 1px 9px; font-weight: 700;
}
/* Sidebar directory: nested application categories under a hub term (2026-09-22) */
.prod-dir-list > li > a.is-hub:after {
  content: ""; width: 7px; height: 7px; flex: 0 0 auto;
  border-right: 2px solid #b9c4d4; border-bottom: 2px solid #b9c4d4;
  transform: rotate(45deg); margin-left: 8px; margin-top: -4px;
}
.prod-dir-sub { list-style: none; margin: 0 0 10px; padding: 0 0 0 13px; border-left: 2px solid #e6eef9; }
.prod-dir-sub li { border-bottom: none; padding-top: 4px; }
.prod-dir-sub a { padding: 5px 4px; font-size: 13.5px; font-weight: 500; color: #6b7688; }
.prod-dir-sub a:hover { color: var(--blue); padding-left: 6px; }
.prod-dir-sub a svg { display: none; }
.prod-dir-list li.is-current > a { color: var(--blue); }
.prod-dir-list li.is-current > a span { border-bottom: 2px solid var(--blue); padding-bottom: 2px; }
.prod-dir-sub li.is-current > a { color: var(--blue); font-weight: 600; }
.side-post-list { list-style: none; margin: 0; }
.side-post-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.side-post-list li:last-child { border-bottom: none; }
.side-post-list a { color: var(--text); font-weight: 600; font-size: 14.5px; line-height: 1.4; display: block; }
.side-post-list a:hover { color: var(--blue); }
.side-post-list time { font-size: 12px; color: #93a1b0; }

/* ============ Blog listing ============ */
.archive-list { display: flex; flex-direction: column; gap: 22px; }
.archive-item {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex;
}
.archive-item .ai-cover { width: 210px; min-height: 170px; flex-shrink: 0; color: #fff; display: flex; align-items: flex-end; padding: 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.archive-item .ai-body { padding: 22px; }
.archive-item .ai-body h2 { font-size: 20px; margin-bottom: 6px; }
.archive-item .ai-body p { color: var(--muted); font-size: 14.5px; }

/* ============ Single post / product ============ */
.single-head h1 { font-size: 30px; margin-bottom: 10px; }
.single-meta { font-size: 13px; color: #93a1b0; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.single-cat-chip {
  display: inline-block; background: #eef4fc; color: var(--blue);
  border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.pager { margin-top: 34px; display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }

/* ============ Contact page ============ */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 15px; font-family: inherit; background: #fbfcfe;
  transition: border .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); }
.info-item { display: flex; gap: 14px; margin-bottom: 18px; }
.info-icon {
  width: 42px; height: 42px; border-radius: 10px; background: #eef4fc;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--blue);
}
.info-icon svg { width: 20px; height: 20px; }
.info-item b { display: block; font-size: 14px; color: var(--navy); }
.info-item span { font-size: 14px; color: var(--muted); }
/* 联系页：手机号旁边的 WhatsApp 图标（不再单独占一行写号码） */
.wa-inline {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin-left: 9px; border-radius: 6px;
  border: 1px solid #cfe0d6; color: #25d366; vertical-align: middle;
  transition: background .15s, border-color .15s;
}
.wa-inline svg { width: 15px; height: 15px; display: block; }
.wa-inline:hover { background: #eafaf1; border-color: #25d366; }
.sent-notice {
  background: #e8f8ee; border: 1px solid #b7e4c7; color: #1b6b32;
  padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 600;
}

/* ============ Footer ============ */
.site-footer { background: var(--navy); color: #b6c8db; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding: 56px 0 40px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer a { color: #b6c8db; }
.site-footer a:hover { color: var(--amber); }
.footer-brand .brand-name { color: #fff !important; font-size: 22px; }
.footer-about { font-size: 14px; margin-top: 12px; }

/* 页脚社交：方块 app-logo 按钮 + 小标签（FOLLOW US / CONTACT US） */
.footer-social { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.fs-item { display: flex; align-items: center; gap: 12px; }
.fs-label {
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #7f93a8; min-width: 84px;
}
.fs-btn {
  width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.22); color: #b6c8db;
  transition: border-color .15s, color .15s;
}
.fs-btn svg { width: 20px; height: 20px; display: block; }
.fs-btn:hover { border-color: var(--amber); color: var(--amber); }
.fs-btn.is-wa:hover { border-color: #4ade80; color: #4ade80; }
.footer-links ul { list-style: none; margin: 0; }
.footer-links li { margin-bottom: 9px; font-size: 14px; }
/* 页脚链接：箭头在 <a> 内部，用悬挂缩进让折行文字与首行文字对齐。
   原来 .footer-links a 是 inline-flex（原子内联盒），长标签在箭头之后放不下会整体换行，
   箭头就被孤零零留在上一行（2026-09-26 修）。 */
.footer-links a { display: inline-block; padding-left: 15px; text-indent: -15px; }
.footer-links a .fl-ar { display: inline-block; width: 15px; }
.footer-contact li { list-style: none; margin-bottom: 10px; font-size: 14px; display: flex; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ============ Cookie consent bar ============ */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  background: rgba(9,20,35,.97);
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 14px 0;
  transform: translateY(100%);
  transition: transform .25s ease;
}
.cookie-bar.is-open { transform: translateY(0); }
.cookie-bar[hidden] { display: none; }
.cookie-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-text { margin: 0; font-size: 13px; color: #cdd9e6; max-width: 760px; }
.cookie-text a { color: var(--amber); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  font-size: 13px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.28); background: transparent; color: #cdd9e6;
  transition: border-color .15s, color .15s, background .15s;
}
.cookie-btn:hover { border-color: rgba(255,255,255,.6); color: #fff; }
.cookie-btn.is-accept { background: var(--amber); border-color: var(--amber); color: #10233a; font-weight: 600; }
.cookie-btn.is-accept:hover { background: #ffb95c; border-color: #ffb95c; color: #10233a; }
@media (max-width: 760px) {
  .cookie-bar .container { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-actions { justify-content: flex-end; }
}

/* ============ Back to top ============ */
.back-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--red); color: #fff; border: none; cursor: pointer;
  font-size: 20px; display: none; z-index: 99; box-shadow: var(--shadow-lg);
}
.back-top.show { display: block; }

/* ============ WordPress core ============ */
.alignleft { float: left; margin: 0 18px 12px 0; }
.alignright { float: right; margin: 0 0 12px 18px; }
.aligncenter { margin: 0 auto 12px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.wp-caption-text, .sticky, .gallery-caption, .bypostauthor { font-size: 13px; color: var(--muted); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); padding: 10px 4%;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 13px 14px; }

  /* Cascade menu collapses to nested list on mobile. */
  .main-nav li.has-cascade { position: static; }
  .main-nav .cascade-menu {
    position: static;
    min-width: 0;
    border: none;
    box-shadow: none;
    padding: 0 0 0 12px;
    background: transparent;
    border-radius: 0;
    display: none;
  }
  .main-nav li.has-cascade.cascade-open > .cascade-menu { display: block; }
  .main-nav .cascade-menu > li { position: static; }
  .main-nav .cascade-menu > li > a {
    padding: 9px 12px;
    border-radius: 6px;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
  }
  .main-nav .cascade-menu > li > a:hover,
  .main-nav .cascade-menu > li.sub-open > a { background: #eef4fc; color: var(--blue); }

  .main-nav .sub-menu {
    position: static;
    min-width: 0;
    border: none;
    box-shadow: none;
    padding: 0 0 6px 12px;
    background: transparent;
    border-radius: 0;
    display: none;
  }
  .main-nav .cascade-menu > li.has-sub.sub-open > .sub-menu { display: block; }
  .main-nav .sub-menu a { padding: 8px 16px; font-size: 14px; }
  .main-nav .sub-menu a:hover { padding-left: 20px; }

  .hero { padding: 55px 0 60px; }
  .hero h1 { font-size: 31px; }
  .hero p { font-size: 16px; }
  .hero-stats { gap: 22px; margin-top: 36px; }
  .hero-stat b { font-size: 24px; }
  .about-flex { flex-direction: column; gap: 30px; }
  .contact-grid, .form-row { grid-template-columns: 1fr; }
  .archive-item { flex-direction: column; }
  .archive-item .ai-cover { width: 100%; min-height: 120px; }
  .content-card { padding: 22px; }
  .page-banner h1 { font-size: 25px; }
  .section { padding: 50px 0; }
  .section-head h2 { font-size: 26px; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .topbar-left span { margin-right: 8px; }
  .brand-text .brand-name { font-size: 19px; }
  .btn { width: 100%; }
  .hero-actions { gap: 10px; }
}

/* ===== 404 page & search ===== */
.error-404-card { text-align: center; padding: 55px 30px; }
.error-404-code { font-size: 88px; font-weight: 800; color: var(--blue, #1d4e89); opacity: .16; line-height: 1; letter-spacing: 4px; }
.error-404-title { font-size: 24px; margin: 8px 0 10px; }
.error-404-text { color: #5b6b7d; line-height: 1.7; }
.error-404-search { max-width: 430px; margin: 26px auto 5px; }
.error-404-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.error-404-link { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 108px; padding: 16px 10px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafd; transition: .2s; text-decoration: none; }
.error-404-link:hover { border-color: var(--blue, #1d4e89); background: #eef4fb; transform: translateY(-2px); }
.error-404-link-icon { font-size: 24px; line-height: 1; }
.error-404-link-label { font-size: 13px; font-weight: 600; color: #23303f; }
.error-404-alt { margin-top: 26px; font-size: 14px; color: #5b6b7d; }
.error-404-alt a { color: var(--blue, #1d4e89); }
.search-form { display: flex; gap: 8px; }
.search-field { flex: 1; padding: 12px 16px; border: 1px solid #d4dce6; border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff; }
.search-field:focus { outline: none; border-color: var(--blue, #1d4e89); }
.search-submit { padding: 12px 22px; background: var(--blue, #1d4e89); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s; white-space: nowrap; }
.search-submit:hover { background: #16395f; }
.search-results-info p { font-size: 15px; color: #5b6b7d; }
.post-item-type-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; text-decoration: none; }
.post-item-type-badge.is-product { background: #e8f1fb; color: var(--blue, #1d4e89); }
.post-item-type-badge.is-post { background: #eaf6ec; color: #2c7a3d; }
@media (max-width: 560px) {
  .error-404-card { padding: 36px 18px; }
  .error-404-code { font-size: 64px; }
  .error-404-links { gap: 8px; }
  .error-404-link { width: calc(50% - 8px); }
  .search-form { flex-direction: column; }
}

/* ===== 卡片真实产品图 ===== */
.product-thumb img.card-photo,
.cat-card-cover img.card-photo {
  width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer;
}
.product-thumb:has(img.card-photo),
.cat-card-cover:has(img.card-photo) { padding: 0; }
.cat-card-cover {
  height: 190px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cat-card-cover svg { width: 58px; height: 58px; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; }
.entry-content h2 { font-size: 21px; margin: 26px 0 10px; }
.entry-content h3 { font-size: 18px; margin: 20px 0 8px; }
.entry-content p { line-height: 1.75; margin-bottom: 12px; }
.entry-content ul { margin: 0 0 14px 22px; list-style: disc; }
.entry-content li { margin-bottom: 6px; line-height: 1.65; }

/* About Us (#10): "How we do" Certainty items and "Support at Every Stage"
   render as icon-bulleted lists (dashicon checkmark), consistent with each other
   and clearly subordinate to the bold navy h2 section titles. */
.page-id-10 .entry-content h2 { margin-top: 30px; }
.page-id-10 .entry-content ul {
  list-style: none;
  margin: 6px 0 14px;
  padding: 0;
}
.page-id-10 .entry-content ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  line-height: 1.65;
}
.page-id-10 .entry-content ul li::before {
  content: "\f147";
  font-family: dashicons;
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--blue-2);
  font-size: 18px;
  line-height: 1.5;
}

/* About Us (#10) production equipment grid under "What We Do" */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0 32px;
}
.equipment-grid figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.equipment-grid img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.equipment-grid figcaption {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  background: #f7f9fc;
  border-top: 1px solid var(--line);
}
@media (max-width: 600px) {
  .equipment-grid { grid-template-columns: 1fr; }
}

/* ---------- Image lightbox (click to enlarge) ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(10, 20, 35, 0.86);
  cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  background: #fff;
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.32); }
.lightbox-caption {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0 20px;
  text-align: center;
  color: #fff;
  font-size: 14px;
}
body.lightbox-active { overflow: hidden; }
.entry-content img { cursor: zoom-in; }

/* ============ Solutions: case library ============ */
.section-title { font-size: 26px; font-weight: 700; margin: 34px 0 6px; color: var(--text); }
.section-sub { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.case-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 22px; }
.case-filter input[type="search"] { flex: 1 1 220px; min-width: 180px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; color: var(--text); background: #fff; }
.case-filter select { flex: 0 1 210px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; color: var(--text); background: #fff; }
.case-filter select:disabled { color: #9aa7b5; background: #f7f9fb; }
.case-filter .btn-filter { padding: 11px 22px; border-radius: var(--radius); font: inherit; font-weight: 600; background: var(--blue); color: #fff; border: 1px solid var(--blue); cursor: pointer; }
.case-filter .btn-filter:hover { background: var(--navy); }
.case-filter .btn-reset { padding: 11px 18px; border-radius: var(--radius); font: inherit; color: var(--muted); border: 1px solid var(--line); background: #fff; text-decoration: none; }
.case-filter .btn-reset:hover { color: var(--text); }
.archive-item .ai-cover:has(img) { padding: 0; }
.archive-item .ai-cover img.card-photo { width: 100%; height: 100%; min-height: 170px; object-fit: cover; display: block; cursor: pointer; }
.case-empty { padding: 22px 24px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--muted); }
.case-nav { margin-top: 24px; }

/* ============ Solutions: tag chips (case_tag) — 2026-09-25 ============ */
.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 22px; }
.tag-row-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--navy); font-size: 13px; font-weight: 600; text-decoration: none;
}
.tag-chip:hover { border-color: var(--blue); color: var(--blue); }
.tag-chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tag-chip .tag-n { font-size: 11px; font-weight: 700; color: var(--muted); }
.tag-chip.is-on .tag-n { color: #c9d9ec; }
.tag-chip.is-clear { border-style: dashed; color: var(--muted); font-weight: 400; }
@media (max-width: 560px) {
  .tag-row { margin-bottom: 18px; }
  .tag-chip { font-size: 12.5px; padding: 5px 10px; }
}

/* ============ Product pages: model chart ============ */
.model-chart { margin: 30px 0 14px; padding: 0; max-width: 640px; }
.model-chart svg { width: 100%; height: auto; display: block; }
.model-chart figcaption { font-size: 13.5px; line-height: 1.65; color: var(--muted); margin-top: 14px; }
.model-chart figcaption strong { color: var(--text); }
@media (max-width: 640px) {
  .model-chart { margin: 24px 0 10px; }
}
.side-more { margin: 12px 0 0; font-size: 13px; }
.side-more a { color: var(--blue); font-weight: 600; }
@media (max-width: 640px) {
  .archive-item { flex-direction: column; }
  .archive-item .ai-cover { width: 100%; min-height: 180px; }
  .case-filter input[type="search"], .case-filter select { flex: 1 1 100%; }
}

/* ============ Rank Math FAQ block (case pages) ============ */
#rank-math-faq { margin: 20px 0 26px; }
#rank-math-faq .rank-math-list { margin: 0; padding: 0; }
#rank-math-faq .rank-math-list-item { padding: 15px 0; border-top: 1px solid var(--line); }
#rank-math-faq .rank-math-list-item:last-child { border-bottom: 1px solid var(--line); }
#rank-math-faq .rank-math-question { font-size: 17px; margin: 0 0 6px; color: var(--navy); }
#rank-math-faq .rank-math-answer { color: var(--text); font-size: 15.5px; }
#rank-math-faq .rank-math-answer > p { margin-bottom: 0; }
@media (max-width: 640px) {
  #rank-math-faq .rank-math-question { font-size: 16px; }
  #rank-math-faq .rank-math-answer { font-size: 15px; }
}
