/* mingjing — crystalline brand mirror · diagonal split + glass */
:root {
  --bg: #e8eef4;
  --surface: rgba(255, 255, 255, 0.72);
  --ink: #1c2a38;
  --muted: #5a6d7e;
  --ice: #c8d9ea;
  --blue: #6ba3c9;
  --blue-deep: #3d7aa6;
  --silver: #dde6ef;
  --glass-border: rgba(255, 255, 255, 0.55);
  --line: rgba(28, 42, 56, 0.1);
  --accent: #3d7aa6;
  --a2: #6ba3c9;
  --display: "Cormorant Garamond", "Noto Sans SC", serif;
  --body: "Noto Sans SC", sans-serif;
  --sans: "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.tpl-mingjing {
  margin: 0;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(160deg, #dfe8f0 0%, #eef3f8 40%, #e4ecf4 100%);
  padding-bottom: 5rem;
}
a { color: var(--blue-deep); text-decoration: none; }
a:hover { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; }

/* minimal top nav — NO phone */
.mj-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(232, 238, 244, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 163, 201, 0.15);
}
.mj-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
}
.mj-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.mj-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.25s;
}
.mj-nav a:hover { color: var(--blue-deep); }

/* diagonal split hero */
.mj-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 88vh;
  position: relative;
  overflow: hidden;
}
.mj-hero-glass {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
  background: var(--surface);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  z-index: 2;
  animation: mj-shimmer-bg 6s ease-in-out infinite alternate;
}
@keyframes mj-shimmer-bg {
  from { background: rgba(255, 255, 255, 0.68); }
  to { background: rgba(255, 255, 255, 0.82); }
}
.mj-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--blue);
  margin: 0 0 1rem;
}
.mj-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-style: italic;
}
.mj-tagline { font-size: 1.05rem; color: var(--muted); margin: 0 0 0.75rem; max-width: 32ch; }
.mj-tip { font-size: 0.85rem; color: var(--muted); opacity: 0.8; margin: 0 0 1.75rem; }
.mj-cta {
  align-self: flex-start;
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--blue);
  color: var(--blue-deep);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: background 0.3s, color 0.3s;
}
.mj-cta:hover { background: var(--blue); color: #fff; }

.mj-hero-prism {
  position: relative;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -12%;
}
.mj-banner { margin: 0; height: 100%; }
.mj-banner img {
  width: 100%;
  height: 100%;
  min-height: 88vh;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}
.mj-prism-shard {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.mj-shard-a {
  background: linear-gradient(135deg, rgba(200, 217, 234, 0.5) 0%, transparent 50%);
  animation: mj-refract 5s ease-in-out infinite alternate;
}
.mj-shard-b {
  background: linear-gradient(225deg, rgba(107, 163, 201, 0.25) 0%, transparent 60%);
  animation: mj-refract 5s ease-in-out infinite alternate-reverse;
}
@keyframes mj-refract {
  from { opacity: 0.4; transform: translateX(0); }
  to { opacity: 0.85; transform: translateX(12px); }
}

.mj-main { padding: 0 clamp(1.25rem, 4vw, 3rem) 3rem; max-width: 1100px; margin: 0 auto; }
.mj-section { padding: 4rem 0; }
.mj-sec-head p { color: var(--muted); margin: 0.5rem 0 1.5rem; }

.mj-glass-card {
  padding: 2rem 2.25rem;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(61, 122, 166, 0.08);
  margin-bottom: 2rem;
}
.mj-glass-card h2 { font-size: 1.75rem; }
.mj-glass-card p { margin: 0; color: var(--muted); max-width: 65ch; }

#mj-about.mj-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.mj-about-media {
  overflow: hidden;
  border-radius: 12px;
  max-height: 420px;
  border: 1px solid var(--glass-border);
  background: var(--surface);
}
.mj-about-media img,
.mj-about-media .about-media,
.mj-about-media .about-media img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.mj-brand .brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}

.mj-features,
.mj-products,
.mj-cases,
.mj-articles {
  display: block;
  }

.content-card, .news-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  color: inherit;
  transition: transform 0.35s, box-shadow 0.35s;
}
.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(61, 122, 166, 0.12);
}
.card-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 1rem; }
.card-body h3 { font-size: 1rem; font-family: var(--display); }
.card-body p { margin: 0; font-size: 0.82rem; color: var(--muted); }
.feature-item {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--ice);
  border-top: 2px solid var(--blue);
}
.feature-item h3 { font-family: var(--display); font-size: 1.05rem; }
.feature-item p { margin: 0; font-size: 0.82rem; color: var(--muted); }

.mj-contact-glass {
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(200,217,234,0.4));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
}
.mj-contact-glass p { color: var(--muted); margin: 0 0 1.25rem; }
.mj-call-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--blue-deep);
  color: #fff;
  font-weight: 600;
  margin-bottom: 1.5rem;
  transition: background 0.25s;
}
.mj-call-btn:hover { background: var(--blue); color: #fff; }
.mj-contact-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.mj-contact-meta div { font-size: 0.88rem; }
.mj-contact-meta em { display: block; font-style: normal; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; }
.mj-contact-meta .wide { grid-column: 1 / -1; }

/* floating bottom consultation bar */
.mj-float-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.9rem 1.5rem;
  background: rgba(28, 42, 56, 0.92);
  backdrop-filter: blur(12px);
  color: #fff;
  z-index: 100;
  transform: translateY(100%);
  animation: mj-bar-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
  box-shadow: 0 -4px 24px rgba(28, 42, 56, 0.2);
}
@keyframes mj-bar-rise {
  to { transform: translateY(0); }
}
.mj-float-label { font-size: 0.78rem; letter-spacing: 0.1em; opacity: 0.75; }
.mj-float-phone {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ice);
  letter-spacing: 0.04em;
}
.mj-float-phone:hover { color: #fff; }

.site-footer {
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  border-top: 1px solid rgba(107, 163, 201, 0.2);
}
.mj-year { margin: 0 0 0.5rem; font-size: 0.82rem; color: var(--muted); }

.fx-rise, .content-card, .news-card, .feature-item, .fx-block {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fx-ready .fx-rise.is-in,
.fx-ready .content-card.is-in,
.fx-ready .news-card.is-in,
.fx-ready .feature-item.is-in,
.fx-ready .fx-block.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 800px) {
  .mj-hero { grid-template-columns: 1fr; min-height: auto; }
  .mj-hero-glass { clip-path: none; padding: 2.5rem 1.5rem; }
  .mj-hero-prism { clip-path: none; margin-left: 0; }
  .mj-banner img { min-height: 50vh; }
  .mj-nav { gap: 0.75rem 1rem; }
  .mj-contact-meta { grid-template-columns: 1fr; }
  #mj-about.mj-section { grid-template-columns: 1fr; }
  .mj-about-media { max-height: 280px; }
  .mj-about-media img,
  .mj-about-media .about-media img { max-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mj-float-bar { transform: none; }
  .fx-rise, .content-card, .news-card, .feature-item, .fx-block { opacity: 1; transform: none; }
}

/* === enterprise card grids (injected) === */
.card-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  width: 100%;
}
.card-grid-case {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.content-card,
.news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface, #fff);
  border: 1px solid var(--line, rgba(15, 23, 42, 0.08));
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.content-card:hover,
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.04);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-body {
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.card-body h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
}
.card-body p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted, #667085);
  line-height: 1.55;
}
.card-link {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 18px);
  margin-bottom: 1.25rem;
}
@media (max-width: 960px) {
  .card-grid,
  .news-grid,
  .card-grid-case,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .card-grid,
  .news-grid,
  .card-grid-case,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.card-index{display:inline-block;font-size:.72rem;letter-spacing:.12em;color:var(--muted,#667085);opacity:.75;margin-bottom:.15rem}

/* === enterprise polish v2 === */
img { max-width: 100%; height: auto; }
.card-media img,
.about-media img,
.case-cover img,
.article-cover img,
.nb-cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.content-card,
.news-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.content-card:hover,
.news-card:hover {
  transform: translateY(-3px);
}
.card-body h3 {
  letter-spacing: 0.01em;
}
.card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-item h3 { letter-spacing: 0.01em; }
.site-footer {
  letter-spacing: 0.01em;
}
@media (max-width: 1100px) {
  .card-grid,
  .news-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 720px) {
  .card-grid,
  .news-grid,
  .feature-grid,
  .card-grid-case {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .card-body { padding: 14px 15px 16px; }
  .card-body h3 { font-size: 1rem; }
  .card-body p { font-size: 0.84rem; }
}
@media (max-width: 480px) {
  .card-media { aspect-ratio: 16 / 10; }
  .site-footer { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .content-card:hover,
  .news-card:hover { transform: none; }
}

/* === layout fix: wrappers must not nest outer grids === */
.qf-products,.qf-cases,.qf-articles,.qf-matrix,.mj-products,.mj-cases,.mj-articles { display: block !important; }

