/* =====================================================================
   yulinjun-website · 御林军官网设计系统（M1 高保真原型）
   色板取自公司介绍画册：橙红渐变主视觉 + 近黑褐深色段落 + 鎏金点缀
   ===================================================================== */

:root {
  /* 色板 */
  --yj-orange: #e8542f;
  --yj-orange-2: #ff7a45;
  --yj-grad: linear-gradient(135deg, #e8542f 0%, #ff7a45 100%);
  --yj-ink: #23262d;
  --yj-ink-2: #5a6070;
  --yj-dark: #1c1a18;
  --yj-dark-2: #2a2521;
  --yj-gold: #d4a24e;
  --yj-gold-soft: rgba(212, 162, 78, .16);
  --yj-line: #e8e9ee;
  --yj-bg: #ffffff;
  --yj-bg-soft: #f7f5f2;
  --yj-accent-soft: rgba(232, 84, 47, .08);

  /* 排版 */
  --yj-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --yj-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;

  /* 布局 */
  --yj-max: 1240px;
  --yj-radius: 16px;
  --yj-shadow: 0 12px 40px rgba(28, 26, 24, .10);
  --yj-shadow-sm: 0 4px 16px rgba(28, 26, 24, .08);
  --yj-header-h: 72px;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--yj-header-h) + 16px); }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--yj-font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--yj-ink);
  background: var(--yj-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--yj-orange); outline-offset: 2px; }

.yj-wrap { max-width: var(--yj-max); margin: 0 auto; padding: 0 24px; }

/* ==================== 通用组件 ==================== */
.yj-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  color: var(--yj-orange); text-transform: uppercase; margin: 0 0 12px;
}
.yj-kicker::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--yj-grad); }
.yj-h2 { margin: 0 0 12px; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.3; letter-spacing: .01em; }
.yj-sub { margin: 0; color: var(--yj-ink-2); font-size: 16px; max-width: 640px; }
.yj-section { padding: 88px 0; }
.yj-section-soft { background: var(--yj-bg-soft); }
.yj-section-dark { background: var(--yj-dark); color: #f2efe9; }
.yj-section-dark .yj-sub { color: #b8b2a8; }
.yj-center { text-align: center; }
.yj-center .yj-sub { margin-left: auto; margin-right: auto; }
.yj-center .yj-kicker { justify-content: center; }
.yj-head { margin-bottom: 48px; }

.yj-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 999px; border: none; cursor: pointer;
  font-size: 16px; font-weight: 600; font-family: inherit;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.yj-btn-primary { background: var(--yj-grad); color: #fff; box-shadow: 0 8px 24px rgba(232, 84, 47, .35); }
.yj-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(232, 84, 47, .45); }
.yj-btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }
.yj-btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.yj-btn-ghost-dark { background: transparent; color: var(--yj-ink); border: 1.5px solid var(--yj-line); }
.yj-btn-ghost-dark:hover { border-color: var(--yj-orange); color: var(--yj-orange); }
.yj-btn-light { background: #fff; color: var(--yj-orange); }
.yj-btn-light:hover { transform: translateY(-2px); box-shadow: var(--yj-shadow); }

.yj-chip {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: var(--yj-accent-soft); color: var(--yj-orange);
}
.yj-chip-gold { background: var(--yj-gold-soft); color: #a87c2e; }

/* ==================== header ==================== */
.yj-header {
  position: sticky; top: 0; z-index: 50; height: var(--yj-header-h);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 233, 238, .8);
  transition: background .25s ease, border-color .25s ease;
}
.yj-header-inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.yj-logo { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: .06em; color: var(--yj-ink); }
.yj-logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--yj-grad); color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; letter-spacing: 0;
}
.yj-logo small { display: block; font-size: 10px; font-weight: 500; letter-spacing: .3em; color: var(--yj-ink-2); }
.yj-nav { margin-left: auto; }
.yj-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.yj-nav a { display: block; padding: 9px 16px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--yj-ink); transition: color .15s, background .15s; }
.yj-nav a:hover { color: var(--yj-orange); background: var(--yj-accent-soft); }
.yj-nav .is-active a { color: var(--yj-orange); background: var(--yj-accent-soft); font-weight: 700; }
.yj-header-cta { white-space: nowrap; }
.yj-header-cta .yj-btn { padding: 10px 24px; font-size: 14px; }
@media (max-width: 1020px) {
  .yj-nav { display: none; }
  .yj-burger { display: grid !important; }
}
.yj-burger { display: none; place-items: center; width: 42px; height: 42px; border: 1px solid var(--yj-line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 18px; }

/* ==================== hero ==================== */
.yj-hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  color: #fff;
  background: var(--yj-dark);
  overflow: hidden;
}
.yj-hero-bg { position: absolute; inset: 0; }
.yj-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.yj-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(28, 26, 24, .92) 10%, rgba(28, 26, 24, .62) 48%, rgba(232, 84, 47, .30) 100%);
}
.yj-hero-content { position: relative; padding: 140px 24px 120px; max-width: 780px; }
.yj-hero-tag {
  display: inline-block;
  max-width: 100%; padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .10);
  font-size: 13.5px; letter-spacing: .06em; margin: 0 0 26px;
  line-height: 1.9;
}
.yj-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.16; font-weight: 900; letter-spacing: .02em;
  font-family: var(--yj-serif);
}
.yj-hero h1 em { font-style: normal; color: transparent; background: var(--yj-grad); -webkit-background-clip: text; background-clip: text; }
.yj-hero p { margin: 0 0 36px; font-size: clamp(16px, 2vw, 20px); color: rgba(255, 255, 255, .88); max-width: 560px; }
.yj-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.yj-hero-meta { display: flex; gap: 28px; margin-top: 56px; flex-wrap: wrap; }
.yj-hero-meta div { font-size: 13px; color: rgba(255, 255, 255, .72); }
.yj-hero-meta strong { display: block; font-size: 26px; font-weight: 800; color: #fff; letter-spacing: .02em; }
.yj-hero-meta strong i { font-style: normal; color: var(--yj-gold); }
.yj-hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  font-size: 12px; letter-spacing: .3em; color: rgba(255, 255, 255, .6);
  writing-mode: vertical-rl;
}

/* ==================== 数据带 ==================== */
.yj-stats { background: var(--yj-dark-2); color: #fff; border-top: 1px solid rgba(255, 255, 255, .06); }
.yj-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 44px 0; }
.yj-stat { text-align: center; position: relative; }
.yj-stat + .yj-stat::before { content: ""; position: absolute; left: 0; top: 14%; height: 72%; width: 1px; background: rgba(255, 255, 255, .12); }
.yj-stat b { display: block; font-size: clamp(30px, 3.4vw, 44px); font-weight: 900; letter-spacing: .02em; }
.yj-stat b i { font-style: normal; background: var(--yj-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.yj-stat span { font-size: 13px; color: rgba(255, 255, 255, .62); letter-spacing: .06em; }
@media (max-width: 760px) {
  .yj-stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .yj-stat:nth-child(3)::before { display: none; }
}

/* ==================== 服务矩阵 ==================== */
.yj-services-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1100px) { .yj-services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .yj-services-grid { grid-template-columns: repeat(2, 1fr); } }
.yj-service-card {
  position: relative; padding: 26px 20px 22px;
  border: 1px solid var(--yj-line); border-radius: var(--yj-radius);
  background: #fff; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.yj-service-card:hover { transform: translateY(-4px); box-shadow: var(--yj-shadow); border-color: transparent; }
.yj-service-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--yj-grad); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.yj-service-card:hover::after { transform: scaleX(1); }
.yj-service-ico { font-size: 30px; line-height: 1; margin-bottom: 14px; }
.yj-service-card h3 { margin: 0 0 6px; font-size: 16.5px; }
.yj-service-card p { margin: 0; font-size: 13px; color: var(--yj-ink-2); line-height: 1.6; }

/* ==================== 案例卡片 ==================== */
.yj-cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1000px) { .yj-cases-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .yj-cases-grid { grid-template-columns: 1fr; } }
.yj-case-card {
  position: relative; border-radius: var(--yj-radius); overflow: hidden;
  background: var(--yj-dark); aspect-ratio: 4 / 4.6;
  transition: transform .22s ease, box-shadow .22s ease;
}
.yj-case-card:hover { transform: translateY(-5px); box-shadow: var(--yj-shadow); }
.yj-case-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.yj-case-card:hover img { transform: scale(1.05); }
.yj-case-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28, 26, 24, 0) 30%, rgba(28, 26, 24, .92) 100%);
}
.yj-case-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; z-index: 1; color: #fff; }
.yj-case-body .yj-chip { margin-bottom: 10px; background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(4px); }
.yj-case-body h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: .02em; }
.yj-case-body p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.yj-case-num { margin-top: 12px; display: flex; gap: 20px; }
.yj-case-num div b { display: block; font-size: 22px; font-weight: 800; color: var(--yj-gold); }
.yj-case-num div span { font-size: 11.5px; color: rgba(255, 255, 255, .65); }

/* ==================== 荣誉墙 ==================== */
.yj-honors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .yj-honors-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .yj-honors-grid { grid-template-columns: 1fr; } }
.yj-honor {
  border-radius: var(--yj-radius); overflow: hidden; background: #fff;
  border: 1px solid var(--yj-line); box-shadow: var(--yj-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.yj-honor:hover { transform: translateY(-4px); box-shadow: var(--yj-shadow); }
.yj-honor img { width: 100%; max-height: 420px; object-fit: contain; background: #fff; }
.yj-honor figcaption { padding: 14px 18px; font-size: 14px; font-weight: 600; border-top: 1px solid var(--yj-line); }
.yj-honor figcaption span { display: block; font-size: 12px; font-weight: 400; color: var(--yj-ink-2); margin-top: 2px; }

/* ==================== 客户 logo 墙 ==================== */
.yj-clients { overflow: hidden; position: relative; }
.yj-clients-track { display: flex; gap: 14px; width: max-content; animation: yj-marquee 46s linear infinite; }
.yj-clients:hover .yj-clients-track { animation-play-state: paused; }
@keyframes yj-marquee { to { transform: translateX(-50%); } }
.yj-client-logo {
  flex: none; padding: 14px 26px; border-radius: 12px;
  background: #fff; border: 1px solid var(--yj-line);
  font-weight: 700; font-size: 15px; color: var(--yj-ink-2);
  white-space: nowrap; letter-spacing: .04em;
  transition: color .15s, border-color .15s;
}
.yj-client-logo:hover { color: var(--yj-orange); border-color: var(--yj-orange); }
.yj-clients-fade { position: absolute; top: 0; bottom: 0; width: 110px; z-index: 1; pointer-events: none; }
.yj-clients-fade.l { left: 0; background: linear-gradient(90deg, var(--yj-bg-soft), transparent); }
.yj-clients-fade.r { right: 0; background: linear-gradient(-90deg, var(--yj-bg-soft), transparent); }

/* ==================== 方法论 ==================== */
.yj-method-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .yj-method-grid { grid-template-columns: 1fr; gap: 40px; } }
.yj-method-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.yj-method-list li {
  display: flex; gap: 16px; padding: 18px 20px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px; font-size: 14.5px; color: #d8d3ca;
}
.yj-method-list b { color: #fff; }
.yj-method-list .no { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--yj-gold-soft); color: var(--yj-gold); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.yj-flow { display: grid; gap: 0; }
.yj-flow-node { position: relative; padding: 20px 24px; border-left: 3px solid var(--yj-orange); background: rgba(232, 84, 47, .06); margin-bottom: 14px; border-radius: 0 14px 14px 0; }
.yj-flow-node b { display: block; font-size: 15px; margin-bottom: 3px; }
.yj-flow-node span { font-size: 13px; color: var(--yj-ink-2); }
.yj-flow-node::after { content: "↓"; position: absolute; left: 22px; bottom: -20px; color: var(--yj-orange); font-size: 13px; }
.yj-flow-node:last-child { margin-bottom: 0; }
.yj-flow-node:last-child::after { display: none; }

/* ==================== 文化 ==================== */
.yj-culture-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .yj-culture-grid { grid-template-columns: 1fr; } }
.yj-culture-img { border-radius: var(--yj-radius); overflow: hidden; box-shadow: var(--yj-shadow); }
.yj-culture-img img { width: 100%; }
.yj-culture-vals { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
@media (max-width: 520px) { .yj-culture-vals { grid-template-columns: 1fr; } }
.yj-culture-val { padding: 16px 18px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.yj-culture-val b { display: block; font-size: 14px; color: var(--yj-gold); margin-bottom: 4px; }
.yj-culture-val span { font-size: 13px; color: #cfc9bf; }

/* ==================== 洞察 ==================== */
.yj-news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1060px) { .yj-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .yj-news-grid { grid-template-columns: 1fr; } }
.yj-news-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--yj-line); border-radius: var(--yj-radius); background: #fff; transition: transform .2s, box-shadow .2s; }
.yj-news-card:hover { transform: translateY(-4px); box-shadow: var(--yj-shadow-sm); }
.yj-news-card .yj-chip { align-self: flex-start; font-size: 12px; }
.yj-news-card h3 { margin: 2px 0 0; font-size: 16.5px; line-height: 1.55; }
.yj-news-card p { margin: 0; font-size: 13.5px; color: var(--yj-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yj-news-card time { margin-top: auto; padding-top: 8px; font-size: 12.5px; color: #9aa0ab; }

/* ==================== FAQ ==================== */
.yj-faq { max-width: 860px; margin: 0 auto; }
.yj-faq-item { border: 1px solid var(--yj-line); border-radius: 14px; background: #fff; margin-bottom: 12px; overflow: hidden; }
.yj-faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-weight: 600; font-size: 16px;
}
.yj-faq-item summary::-webkit-details-marker { display: none; }
.yj-faq-item summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--yj-accent-soft); color: var(--yj-orange); display: grid; place-items: center; font-size: 17px; transition: transform .2s; }
.yj-faq-item[open] summary::after { content: "−"; transform: rotate(180deg); }
.yj-faq-item .a { padding: 0 22px 20px; color: var(--yj-ink-2); font-size: 15px; }

/* ==================== CTA ==================== */
.yj-cta { background: var(--yj-grad); color: #fff; text-align: center; padding: 84px 0; }
.yj-cta h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: .04em; }
.yj-cta p { margin: 0 auto 32px; color: rgba(255, 255, 255, .92); max-width: 560px; }
.yj-cta-form {
  display: flex; gap: 10px; max-width: 560px; margin: 0 auto;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .38);
  padding: 8px; border-radius: 999px; backdrop-filter: blur(6px);
}
.yj-cta-form input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; padding: 10px 18px; color: #fff; font-size: 15px; font-family: inherit; }
.yj-cta-form input::placeholder { color: rgba(255, 255, 255, .68); }
.yj-cta-form button { flex: none; }
.yj-cta-note { margin-top: 16px; font-size: 12.5px; color: rgba(255, 255, 255, .72); }

/* ==================== footer ==================== */
.yj-footer { background: var(--yj-dark); color: #b8b2a8; font-size: 14px; }
.yj-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px; padding: 64px 0 44px; }
@media (max-width: 960px) { .yj-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .yj-footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.yj-footer .yj-logo { color: #fff; margin-bottom: 14px; }
.yj-footer h4 { color: #fff; font-size: 15px; margin: 0 0 16px; letter-spacing: .06em; }
.yj-footer ul { list-style: none; margin: 0; padding: 0; }
.yj-footer li { margin: 9px 0; }
.yj-footer a:hover { color: var(--yj-orange-2); }
.yj-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .09); padding: 20px 0; font-size: 12.5px; color: #8b8578; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ==================== 内页通用 ==================== */
.yj-page-head { background: var(--yj-dark); color: #fff; padding: 96px 0 72px; position: relative; overflow: hidden; }
.yj-page-head::after {
  content: ""; position: absolute; right: -140px; top: -140px; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 84, 47, .35), transparent 65%);
}
.yj-page-head h1 { margin: 0 0 12px; font-size: clamp(32px, 4.6vw, 52px); font-weight: 900; letter-spacing: .03em; position: relative; }
.yj-page-head p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 16.5px; max-width: 640px; position: relative; }
.yj-crumbs { font-size: 13px; color: rgba(255, 255, 255, .55); margin-bottom: 22px; position: relative; }
.yj-crumbs a:hover { color: var(--yj-orange-2); }
.yj-crumbs .sep { margin: 0 10px; color: rgba(255, 255, 255, .3); }

/* 服务详情 */
.yj-svc-block > .yj-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.yj-svc-block { padding: 0; }
.yj-svc-block + .yj-svc-block { border-top: 1px solid var(--yj-line); }
.yj-svc-block.flip .yj-svc-media { order: 2; }
@media (max-width: 920px) {
  .yj-svc-block > .yj-wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 52px; padding-bottom: 52px; }
  .yj-svc-block.flip .yj-svc-media { order: 0; }
}
.yj-svc-block .yj-wrap { padding-top: 72px; padding-bottom: 72px; }
.yj-svc-block.yj-section-soft .yj-wrap { padding-top: 72px; padding-bottom: 72px; }
.yj-svc-media { border-radius: var(--yj-radius); overflow: hidden; box-shadow: var(--yj-shadow); }
.yj-svc-media img { width: 100%; }
.yj-svc-body h2 { margin: 0 0 14px; font-size: clamp(22px, 2.8vw, 30px); }
.yj-svc-body p { color: var(--yj-ink-2); }
.yj-svc-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.yj-svc-points li { display: flex; gap: 10px; font-size: 14.5px; }
.yj-svc-points li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--yj-accent-soft); color: var(--yj-orange); display: grid; place-items: center; font-size: 12px; font-weight: 800; }

/* 案例详情 */
.yj-case-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; color: #fff; background: var(--yj-dark); overflow: hidden; }
.yj-case-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; opacity: .55; }
.yj-case-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,26,24,.62) 0%, rgba(28,26,24,.55) 45%, rgba(28,26,24,.94) 100%); }
.yj-case-hero .yj-wrap { position: relative; z-index: 1; padding: 90px 24px 56px; }
.yj-case-hero h1 { margin: 10px 0 14px; font-size: clamp(30px, 5vw, 54px); font-weight: 900; letter-spacing: .03em; }
.yj-case-hero p { margin: 0; font-size: 16.5px; color: rgba(255, 255, 255, .85); max-width: 680px; }
.yj-kpi-band { background: var(--yj-dark-2); color: #fff; }
.yj-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 38px 0; }
@media (max-width: 860px) { .yj-kpi-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; } }
.yj-kpi { text-align: center; }
.yj-kpi b { display: block; font-size: clamp(26px, 3vw, 38px); font-weight: 900; color: var(--yj-gold); }
.yj-kpi span { font-size: 12.5px; color: rgba(255, 255, 255, .6); letter-spacing: .08em; }
.yj-article { max-width: 820px; margin: 0 auto; padding: 72px 24px; }
.yj-article h2 { margin: 44px 0 14px; font-size: 24px; padding-left: 14px; border-left: 4px solid var(--yj-orange); line-height: 1.4; }
.yj-article p { margin: 0 0 16px; color: #3c414c; }
.yj-article .lead { font-size: 17.5px; color: var(--yj-ink); font-weight: 500; }

/* 案例列表筛选 */
.yj-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 40px; }
.yj-filter button {
  padding: 9px 22px; border-radius: 999px; border: 1px solid var(--yj-line);
  background: #fff; font-size: 14px; font-weight: 600; color: var(--yj-ink-2);
  cursor: pointer; font-family: inherit; transition: all .15s ease;
}
.yj-filter button:hover { border-color: var(--yj-orange); color: var(--yj-orange); }
.yj-filter button.is-on { background: var(--yj-grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(232, 84, 47, .3); }

/* ==================== 动效 ==================== */
/* 仅在 JS 可用时启用初始隐藏（.yj-js 由 main.js 添加），无 JS 内容照常可见 */
.yj-js .yj-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.yj-js .yj-reveal.is-in { opacity: 1; transform: none; }
/* 截图钩子 ?flat=1：全显 + 固定 hero 高度 */
.yj-flat .yj-reveal { opacity: 1 !important; transform: none !important; }
.yj-flat .yj-hero { min-height: 0; }
.yj-flat .yj-hero-content { padding: 120px 0 96px; }
.yj-flat .yj-case-hero { min-height: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .yj-js .yj-reveal { opacity: 1; transform: none; transition: none; }
  .yj-clients-track { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 响应式细节 */
@media (max-width: 760px) {
  .yj-section { padding: 60px 0; }
  .yj-hero-content { padding: 110px 24px 90px; }
  .yj-hero-meta { gap: 14px 22px; }
  .yj-hero-meta div { font-size: 12px; }
  .yj-hero-meta strong { font-size: 22px; }
  .yj-stat b { font-size: clamp(26px, 7vw, 34px); }
  .yj-footer-grid { padding: 48px 0 36px; }
}
@media (max-width: 860px) {
  .yj-kpi-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .yj-kpi b { font-size: clamp(24px, 6.5vw, 30px); }
  .yj-kpi span { font-size: 11.5px; }
}

/* =====================================================================
   WP 主题扩展层（在原型设计系统之上，补齐 WordPress 场景）
   ===================================================================== */

/* 可访问性 */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 14px; border-radius: 8px; box-shadow: var(--yj-shadow); }

/* WP 菜单当前项（对应原型 .is-active） */
.yj-nav .current-menu-item > a,
.yj-nav .current_page_item > a,
.yj-nav .current-post-parent > a { color: var(--yj-orange); background: var(--yj-accent-soft); font-weight: 700; }

/* 案例归档筛选钮（a 标签版本，对应原型 button.yj-filter） */
.yj-filter a {
  padding: 9px 22px; border-radius: 999px; border: 1px solid var(--yj-line);
  background: #fff; font-size: 14px; font-weight: 600; color: var(--yj-ink-2);
  transition: all .15s ease; display: inline-block;
}
.yj-filter a:hover { border-color: var(--yj-orange); color: var(--yj-orange); text-decoration: none; }
.yj-filter a.is-on { background: var(--yj-grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(232, 84, 47, .3); }

/* 正文排版（洞察文章 / 案例详情 / 页面） */
.entry-content { font-size: 16px; word-break: break-word; }
.entry-content h2 { margin: 40px 0 14px; font-size: 24px; padding-left: 14px; border-left: 4px solid var(--yj-orange); line-height: 1.4; }
.entry-content h3 { margin: 28px 0 10px; font-size: 19px; }
.entry-content p { margin: 0 0 16px; color: #3c414c; }
.entry-content ul, .entry-content ol { margin: 0 0 16px; padding-left: 24px; }
.entry-content li { margin: 6px 0; }
.entry-content blockquote { margin: 20px 0; padding: 12px 18px; border-left: 4px solid var(--yj-line); color: var(--yj-ink-2); background: var(--yj-bg-soft); border-radius: 0 8px 8px 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.entry-content th, .entry-content td { border: 1px solid var(--yj-line); padding: 9px 12px; text-align: left; }
.entry-content th { background: var(--yj-bg-soft); }
.entry-content img { border-radius: 12px; }
.entry-content a { color: var(--yj-orange); text-decoration: underline; text-underline-offset: 3px; }
.entry-content pre { overflow-x: auto; background: #1f2329; color: #e8eaef; padding: 16px; border-radius: 8px; font-size: 14px; }
.wp-caption-text, figcaption { font-size: 13px; color: var(--yj-ink-2); text-align: center; margin-top: 6px; }

/* TL;DR 摘要卡 / 作者盒（洞察文章） */
.yj-tldr {
  margin: 26px 0; padding: 18px 20px;
  background: var(--yj-accent-soft); border-left: 4px solid var(--yj-orange);
  border-radius: 0 var(--yj-radius) var(--yj-radius) 0;
}
.yj-tldr h2 { margin: 0 0 6px; font-size: 15px; color: var(--yj-orange); }
.yj-tldr p { margin: 0; font-size: 15px; }
.yj-author { display: flex; gap: 14px; align-items: flex-start; margin: 30px 0; padding: 18px; border: 1px solid var(--yj-line); border-radius: var(--yj-radius); background: var(--yj-bg-soft); }
.yj-author-avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; background: var(--yj-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; }
.yj-author h3 { margin: 0 0 4px; font-size: 15px; }
.yj-author p { margin: 0; font-size: 13px; color: var(--yj-ink-2); }

/* 搜索表单 / 分页 */
.yj-search-form { display: flex; gap: 10px; max-width: 520px; }
.yj-search-form input[type="search"] { flex: 1; min-width: 0; padding: 12px 18px; border: 1px solid var(--yj-line); border-radius: 999px; font-size: 15px; font-family: inherit; outline: none; }
.yj-search-form input[type="search"]:focus { border-color: var(--yj-orange); }
.yj-pagination { display: flex; gap: 8px; justify-content: center; padding: 34px 0 0; flex-wrap: wrap; }
.yj-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--yj-line); border-radius: 8px; color: var(--yj-ink); font-size: 14px; background: #fff; }
.yj-pagination .current, .yj-pagination a.page-numbers:hover { background: var(--yj-orange); border-color: var(--yj-orange); color: #fff; text-decoration: none; }

/* 对齐工具类 */
.alignwide { max-width: var(--yj-max); margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; }
.alignleft { float: left; margin: 6px 24px 16px 0; }
.alignright { float: right; margin: 6px 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* 打印 */
@media print {
  .yj-header, .yj-footer, .yj-cta, .yj-toc, .yj-pagination, .yj-filter { display: none !important; }
}

/* ==================== M3 视觉精修 ==================== */
/* 服务卡 SVG 图标（替换 emoji，与主色联动） */
.yj-service-ico { color: var(--yj-orange); }
.yj-service-ico svg { width: 32px; height: 32px; display: block; }
.yj-service-card:hover .yj-service-ico { transform: scale(1.08); transition: transform .2s ease; }

/* Hero 书法字锚点（画册封面真迹抠图） */
.yj-hero-calligraphy {
  position: absolute; right: 4%; top: 14%;
  width: clamp(280px, 34vw, 560px);
  opacity: .92;
  pointer-events: none;
  z-index: 1;
}
.yj-hero-calligraphy img { width: 100%; height: auto; }
@media (max-width: 900px) {
  .yj-hero-calligraphy {
    right: 5%; top: 7%;
    width: clamp(180px, 46vw, 300px);
    opacity: .55;
  }
}
@media (prefers-reduced-motion: reduce) {
  .yj-service-card:hover .yj-service-ico { transform: none; }
}
