/* ============================================================
   M·BLUEPRINT · English site — supplementary styles
   只补中文站 style.css 里没有的东西：语言切换器、灯箱。
   其余全部沿用 ../assets/css/style.css，保证视觉一致。
   ============================================================ */

/* ---------- 语言切换器 ---------- */
.lang-sw {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.lang-sw:hover { color: var(--text); border-color: var(--text3, var(--text2)); background: var(--bg2); }
.lang-sw svg { width: 14px; height: 14px; flex: none; }

/* ---------- 灯箱 ---------- */
.en-lb {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .9);
  padding: 32px 24px;
}
.en-lb.open { display: flex; }
.en-lb img { max-width: 94vw; max-height: 86vh; border-radius: 8px; object-fit: contain; }
.en-lb .en-lb-cap {
  position: absolute; left: 0; right: 0; bottom: 22px;
  text-align: center; color: rgba(255, 255, 255, .82);
  font-size: 13px; letter-spacing: .2px; padding: 0 24px;
}
.en-lb .en-lb-x {
  position: absolute; top: 14px; right: 20px;
  width: 44px; height: 44px; border: 0; background: none;
  color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
  opacity: .65; transition: opacity .2s ease;
}
.en-lb .en-lb-x:hover { opacity: 1; }

/* ---------- 英文站文字排版微调（英文比中文长，微调字距而非字号） ---------- */
html[lang="en"] .nav-links a { letter-spacing: .1px; }
html[lang="en"] .hero-full h1 { letter-spacing: -1.2px; }
html[lang="en"] .hero-full .sub { letter-spacing: .1px; }

/* ---------- 色卡中心入口（对齐中文站首页，中文站是页内内联样式，这里落到样式表） ---------- */
.sw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sw-cell {
  position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  cursor: pointer; background: #fff;
  box-shadow: 0 8px 20px rgba(30, 20, 10, .16);
  transition: transform .5s cubic-bezier(.28, .11, .32, 1), box-shadow .5s cubic-bezier(.28, .11, .32, 1);
}
.sw-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-cell em {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 8px;
  font-style: normal; font-size: 10.5px; letter-spacing: .4px; color: #fff;
  text-align: center; line-height: 1.35;
  background: linear-gradient(transparent, rgba(20, 12, 4, .72));
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .sw-cell:hover { transform: scale(1.03); box-shadow: 0 12px 28px rgba(30, 20, 10, .22); }
}
.sw-cell.on { outline: 2px solid var(--blue); outline-offset: 2px; }

.sec-bg {
  position: absolute; inset: 0; z-index: 0; background-size: cover;
  background-position: center; background-repeat: no-repeat;
  opacity: 1; transition: opacity .5s ease;
}
.sec-bg.fade { opacity: 0; }

.cf-panel {
  position: relative; z-index: 200; padding: 46px 44px; border-radius: 28px;
  background: linear-gradient(160deg, #ffffff 0%, #fdfaf6 55%, #f6efe4 100%);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 24px 60px rgba(30, 20, 10, .10), inset 0 1px 0 rgba(255, 255, 255, .95);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.cf-panel .sec-title { font-size: 28px; }
.cf-panel .btn-light {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(60, 45, 28, .16);
  box-shadow: 0 2px 10px rgba(30, 20, 10, .05);
}

/* ---------- 视频弹窗（沿用 style.css 的 .modal 体系，补一个纯黑播放器） ---------- */
#videoModal .modal-card { position: relative; padding: 0; background: #000; }
#videoModal video { border-radius: 20px; }
@media (max-width: 640px) {
  .sw-grid { gap: 8px; }
  .cf-panel { padding: 30px 24px; border-radius: 22px; }
  .cf-panel .sec-title { font-size: 22px; }
}

@media (max-width: 768px) {
  .lang-sw { height: 30px; padding: 0 11px; font-size: 12px; }
  .en-lb { padding: 16px; }
}
