/*
Theme Name: 龙江美控工业官网
Theme URI: https://example.com/
Author: 龙江美控
Description: 为工业自动化企业定制的轻量 WordPress 主题，配合“龙江美控产品与选型”插件使用。
Version: 1.3.7
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: ljmk-industrial
*/

:root {
  --ljmk-navy: #08243c;
  --ljmk-blue: #0e4f80;
  --ljmk-cyan: #1c7fa8;
  --ljmk-orange: #ef7f1a;
  --ljmk-ink: #17212b;
  --ljmk-muted: #657584;
  --ljmk-line: #dce5eb;
  --ljmk-paper: #f5f8fa;
  --ljmk-white: #fff;
  --ljmk-radius: 16px;
  --ljmk-shadow: 0 18px 50px rgba(9, 38, 63, .10);
  --ljmk-width: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ljmk-ink); background: var(--ljmk-white); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; }
.ljmk-shell { width: min(calc(100% - 40px), var(--ljmk-width)); margin-inline: auto; }
.ljmk-section { padding: 84px 0; }
.ljmk-section--soft { background: var(--ljmk-paper); }
.ljmk-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ljmk-orange); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ljmk-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.ljmk-section__head { max-width: 760px; margin-bottom: 34px; }
.ljmk-section__head h1, .ljmk-section__head h2 { margin: 10px 0 12px; color: var(--ljmk-navy); font-size: clamp(30px, 4vw, 46px); line-height: 1.2; }
.ljmk-section__head p { margin: 0; color: var(--ljmk-muted); font-size: 17px; }

.ljmk-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95); border-bottom: 1px solid rgba(9,38,63,.08); backdrop-filter: blur(16px); }
.ljmk-header__inner { min-height: 64px; display: flex; align-items: center; gap: 28px; }
.ljmk-brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.ljmk-brand--image { min-width: 150px; }
.ljmk-logo-img { width: 136px; max-height: 40px; object-fit: contain; }
.ljmk-brand__mark { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--ljmk-navy); border-radius: 10px; font-size: 12px; font-weight: 900; letter-spacing: .08em; box-shadow: inset -6px -6px 0 var(--ljmk-orange); }
.ljmk-brand__name { color: var(--ljmk-navy); font-size: 20px; font-weight: 900; letter-spacing: .04em; }
.ljmk-brand__sub { display: block; margin-top: -2px; color: var(--ljmk-muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ljmk-nav { margin-left: auto; }
.ljmk-nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.ljmk-nav a { color: #31404d; font-size: 14px; font-weight: 700; }
.ljmk-nav a:hover { color: var(--ljmk-orange); }
.ljmk-header__cta { padding: 9px 16px; color: #fff; background: var(--ljmk-orange); border-radius: 999px; font-size: 14px; font-weight: 800; box-shadow: 0 8px 18px rgba(239,127,26,.22); }

.ljmk-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 78% 24%, rgba(28,127,168,.34), transparent 27%), linear-gradient(120deg, #061c2f 0%, #0a3150 55%, #0e4f80 100%); }
.ljmk-hero::before, .ljmk-hero::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.12); transform: rotate(45deg); }
.ljmk-hero::before { width: 360px; height: 360px; right: 6%; top: -130px; }
.ljmk-hero::after { width: 250px; height: 250px; right: 17%; bottom: -150px; }
.ljmk-hero__grid { position: relative; z-index: 1; min-height: 620px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 72px; align-items: center; }
.ljmk-hero h1 { max-width: 780px; margin: 18px 0 22px; font-size: clamp(40px, 6vw, 72px); line-height: 1.1; letter-spacing: -.02em; }
.ljmk-hero__lead { max-width: 680px; margin: 0 0 34px; color: #d4e2eb; font-size: clamp(17px, 2vw, 20px); }
.ljmk-hero__tagline { display: block; margin-top: 14px; color: #73c5e3; font-size: clamp(24px, 3.2vw, 42px); font-weight: 800; letter-spacing: 0; }
.ljmk-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ljmk-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 8px; font-weight: 800; cursor: pointer; }
.ljmk-button--primary { color: #fff; background: var(--ljmk-orange); }
.ljmk-button--ghost { color: #fff; border-color: rgba(255,255,255,.38); }
.ljmk-hero__panel { padding: 28px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 24px; backdrop-filter: blur(12px); }
.ljmk-hero__panel h3 { margin: 0 0 20px; font-size: 16px; }
.ljmk-metric { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.13); }
.ljmk-metric:first-of-type { border-top: 0; }
.ljmk-metric__no { color: #73c5e3; font-weight: 900; font-size: 22px; }
.ljmk-metric strong { display: block; }
.ljmk-metric span { color: #b9cad5; font-size: 13px; }

.ljmk-about-strip { position: relative; overflow: hidden; color: #fff; background: linear-gradient(90deg, rgba(6,28,47,.92), rgba(9,38,63,.78)), url('assets/images/about-bg.png') center/cover no-repeat; }
.ljmk-about-strip__grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 72px; align-items: start; }
.ljmk-about-strip .ljmk-section__head h2, .ljmk-about-strip .ljmk-about-copy { color: #fff; }
.ljmk-about-copy { font-size: 17px; }
.ljmk-about-copy p { margin: 0 0 18px; color: rgba(255,255,255,.84); }
.ljmk-about-strip .ljmk-eyebrow { color: #ffb36b; }

.ljmk-news-slider { position: relative; min-height: 360px; overflow: hidden; border-radius: 12px; border: 1px solid var(--ljmk-line); background: #fff; box-shadow: var(--ljmk-shadow); }
.ljmk-news-slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; opacity: 0; animation: ljmkNews 15s infinite; }
.ljmk-news-slide--1 { animation-delay: 0s; }
.ljmk-news-slide--2 { animation-delay: 5s; }
.ljmk-news-slide--3 { animation-delay: 10s; }
.ljmk-news-slide__visual { min-height: 360px; display: grid; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(135deg, #09263f, #1c7fa8); }
.ljmk-news-slide__visual img { width: 100%; height: 100%; object-fit: cover; }
.ljmk-news-slide__body { padding: 48px; align-self: center; }
.ljmk-news-slide__body span { color: var(--ljmk-orange); font-size: 13px; font-weight: 900; }
.ljmk-news-slide__body h3 { margin: 12px 0 14px; color: var(--ljmk-navy); font-size: clamp(26px, 3vw, 38px); line-height: 1.25; }
.ljmk-news-slide__body p { margin: 0; color: var(--ljmk-muted); }
@keyframes ljmkNews { 0%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }

.ljmk-grid { display: grid; gap: 24px; }
.ljmk-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.ljmk-card { background: #fff; border: 1px solid var(--ljmk-line); border-radius: var(--ljmk-radius); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ljmk-card:hover { transform: translateY(-4px); border-color: #b9ccd7; box-shadow: var(--ljmk-shadow); }
.ljmk-product-group { margin-top: 46px; }
.ljmk-product-group:first-of-type { margin-top: 0; }
.ljmk-product-group__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--ljmk-line); }
.ljmk-product-group__head h3 { margin: 0; color: var(--ljmk-navy); font-size: 28px; }
.ljmk-product-group__head span { color: var(--ljmk-muted); font-weight: 700; }
.ljmk-product-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ljmk-product-row-card { display: grid; grid-template-columns: minmax(0, 1fr) 190px auto; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--ljmk-line); border-radius: 14px; background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ljmk-product-row-card:hover { transform: translateY(-2px); border-color: #b7c9d5; box-shadow: var(--ljmk-shadow); }
.ljmk-product-card__meta { color: var(--ljmk-orange); font-size: 12px; font-weight: 900; letter-spacing: .06em; }
.ljmk-product-row-card h3 { margin: 6px 0 6px; color: var(--ljmk-navy); font-size: 19px; line-height: 1.35; }
.ljmk-product-row-card p { margin: 0; color: var(--ljmk-muted); font-size: 14px; }
.ljmk-product-row-card__facts { display: grid; gap: 5px; color: #536575; font-size: 13px; }
.ljmk-text-link { display: inline-flex; color: var(--ljmk-blue); font-weight: 800; font-size: 14px; white-space: nowrap; }

.ljmk-product-card { overflow: hidden; }
.ljmk-product-card__visual { aspect-ratio: 4/3; display: grid; place-items: center; padding: 18px; color: #7b8b97; background: linear-gradient(145deg,#eef4f7,#fff); }
.ljmk-product-card__visual img { width: 100%; height: 100%; object-fit: contain; }
.ljmk-product-card__placeholder { width: 96px; height: 96px; display: grid; place-items: center; border: 10px solid #d8e4ea; border-radius: 50%; box-shadow: inset 0 0 0 8px #fff; }
.ljmk-product-card__placeholder b { color: var(--ljmk-blue); font-size: 18px; }
.ljmk-product-card__body { padding: 24px; }
.ljmk-product-card h3 { margin: 7px 0 10px; color: var(--ljmk-navy); font-size: 21px; line-height: 1.35; }
.ljmk-product-card p { margin: 0; color: var(--ljmk-muted); font-size: 14px; }

.ljmk-contact { color: #fff; background: var(--ljmk-navy); }
.ljmk-contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.ljmk-contact h2 { margin: 10px 0 18px; font-size: clamp(34px,5vw,54px); line-height: 1.2; }
.ljmk-contact p { color: #c4d2db; }
.ljmk-contact__items { display: grid; gap: 14px; }
.ljmk-contact__item { padding: 20px 22px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; }
.ljmk-contact__item span { display: block; color: #91a9b8; font-size: 12px; }
.ljmk-contact__item strong { font-size: 17px; }

.ljmk-footer { padding: 28px 0; color: #8395a1; background: #051725; font-size: 13px; }
.ljmk-footer__inner { display: flex; justify-content: space-between; gap: 24px; }
.ljmk-content { padding: 72px 0; }
.ljmk-empty { padding: 28px; color: var(--ljmk-muted); background: var(--ljmk-paper); border: 1px dashed #b9c9d3; border-radius: 12px; }

.ljmk-product-hero { color: #fff; background: linear-gradient(120deg, #061c2f 0%, #0a3150 58%, #1c7fa8 100%); }
.ljmk-product-hero__grid { min-height: 500px; display: grid; grid-template-columns: 1fr .85fr; gap: 64px; align-items: center; }
.ljmk-product-hero h1 { margin: 14px 0 18px; font-size: clamp(36px, 5vw, 62px); line-height: 1.15; }
.ljmk-product-hero p { max-width: 700px; color: #d4e2eb; font-size: 18px; }
.ljmk-product-figure { min-height: 330px; display: grid; place-items: center; padding: 22px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.96); overflow: hidden; }
.ljmk-product-figure img { width: 100%; max-height: 420px; object-fit: contain; }
.ljmk-product-illustration { width: min(100%, 440px); aspect-ratio: 4/3; display: grid; place-items: center; padding: 28px; color: var(--ljmk-navy); background: linear-gradient(145deg, #eef4f7, #fff); }
.ljmk-product-illustration span { font-size: 13px; font-weight: 800; color: var(--ljmk-blue); }
.ljmk-product-illustration strong { font-size: clamp(24px, 4vw, 42px); line-height: 1.25; text-align: center; }
.ljmk-product-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 38px; align-items: start; }
.ljmk-product-main { display: grid; gap: 26px; }
.ljmk-detail-block { padding-bottom: 26px; border-bottom: 1px solid var(--ljmk-line); }
.ljmk-detail-block h2, .ljmk-product-side__card h2 { margin: 0 0 18px; color: var(--ljmk-navy); font-size: 24px; }
.ljmk-check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ljmk-check-list li { position: relative; padding-left: 28px; color: #31404d; }
.ljmk-check-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; background: var(--ljmk-orange); border-radius: 2px; }
.ljmk-spec-table { border: 1px solid var(--ljmk-line); border-radius: 8px; overflow: hidden; }
.ljmk-spec-table div { display: grid; grid-template-columns: 180px 1fr; border-top: 1px solid var(--ljmk-line); }
.ljmk-spec-table div:first-child { border-top: 0; }
.ljmk-spec-table span, .ljmk-spec-table strong { padding: 14px 16px; }
.ljmk-spec-table span { color: var(--ljmk-muted); background: var(--ljmk-paper); font-weight: 700; }
.ljmk-spec-table strong { color: var(--ljmk-ink); font-weight: 650; }
.ljmk-product-side { position: sticky; top: 86px; display: grid; gap: 18px; }
.ljmk-product-side__card { padding: 24px; border-radius: 12px; }
.ljmk-side-row { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--ljmk-line); }
.ljmk-side-row span { color: var(--ljmk-muted); font-size: 12px; font-weight: 800; }
.ljmk-side-row strong { color: var(--ljmk-navy); font-size: 15px; line-height: 1.5; }
.ljmk-product-contact-card { border-color: rgba(239,127,26,.38); }
.ljmk-product-contact-card p { margin: 0 0 10px; color: var(--ljmk-muted); }
.ljmk-product-contact-card .ljmk-button { width: 100%; margin-top: 16px; }

.ljmk-contact-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 24px; }
.ljmk-contact-modal.is-open { display: flex; }
.ljmk-contact-modal__backdrop { position: absolute; inset: 0; background: rgba(5, 23, 37, .66); backdrop-filter: blur(8px); }
.ljmk-contact-modal__dialog { position: relative; width: min(100%, 460px); padding: 34px; color: var(--ljmk-ink); background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.ljmk-contact-modal__close { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--ljmk-muted); background: var(--ljmk-paper); cursor: pointer; font-size: 24px; line-height: 1; }
.ljmk-contact-modal__badge { display: flex; gap: 10px; margin-bottom: 20px; }
.ljmk-contact-modal__badge span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px; color: #fff; font-size: 22px; font-weight: 900; }
.ljmk-contact-modal__badge span:first-child { background: var(--ljmk-orange); }
.ljmk-contact-modal__badge span:last-child { background: var(--ljmk-blue); }
.ljmk-contact-modal h2 { margin: 0 0 10px; color: var(--ljmk-navy); font-size: 30px; }
.ljmk-contact-modal p { margin: 0 0 22px; color: var(--ljmk-muted); }
.ljmk-contact-modal__rows { display: grid; gap: 12px; }
.ljmk-contact-modal__row { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--ljmk-line); border-radius: 14px; background: var(--ljmk-paper); }
.ljmk-contact-modal__row-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #fff; font-size: 22px; }
.ljmk-contact-modal__row small { display: block; color: var(--ljmk-muted); font-size: 12px; font-weight: 800; }
.ljmk-contact-modal__row strong { display: block; color: var(--ljmk-navy); font-size: 20px; line-height: 1.25; word-break: break-all; }
html.ljmk-modal-open, html.ljmk-modal-open body { overflow: hidden; }

@media (max-width: 1080px) {
  .ljmk-product-list { grid-template-columns: 1fr; }
  .ljmk-product-row-card { grid-template-columns: minmax(0, 1fr) auto; }
  .ljmk-product-row-card__facts { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .ljmk-nav { display: none; }
  .ljmk-header__cta { margin-left: auto; }
  .ljmk-hero__grid { min-height: auto; grid-template-columns: 1fr; padding: 90px 0; }
  .ljmk-hero__panel { max-width: 600px; }
  .ljmk-about-strip__grid, .ljmk-news-slide, .ljmk-product-hero__grid, .ljmk-product-layout, .ljmk-contact__grid { grid-template-columns: 1fr; }
  .ljmk-grid--3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ljmk-news-slider { min-height: 520px; }
  .ljmk-news-slide__visual { min-height: 240px; }
  .ljmk-product-side { position: static; }
  .ljmk-contact__grid { gap: 42px; }
}
@media (max-width: 620px) {
  .ljmk-shell { width: min(calc(100% - 28px), var(--ljmk-width)); }
  .ljmk-section { padding: 64px 0; }
  .ljmk-logo-img { width: 118px; max-height: 34px; }
  .ljmk-brand--image { min-width: 126px; }
  .ljmk-header__cta { padding: 8px 12px; font-size: 12px; }
  .ljmk-hero h1 { font-size: 40px; }
  .ljmk-grid--3 { grid-template-columns: 1fr; }
  .ljmk-news-slider { min-height: 560px; }
  .ljmk-news-slide__body { padding: 28px; }
  .ljmk-product-group__head { align-items: start; flex-direction: column; }
  .ljmk-product-row-card { grid-template-columns: 1fr; }
  .ljmk-product-row-card__facts { grid-template-columns: 1fr; }
  .ljmk-spec-table div { grid-template-columns: 1fr; }
  .ljmk-footer__inner { flex-direction: column; }
  .ljmk-contact-modal__dialog { padding: 28px 22px; }
  .ljmk-contact-modal__row { grid-template-columns: 40px 1fr; }
  .ljmk-contact-modal__row strong { font-size: 18px; }
}
