/* V28 — compliance, bilingual controls and production-ready interactions */
.market-readiness-banner {
  display: grid;
  grid-template-columns: minmax(230px,.85fr) minmax(320px,1.5fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
  padding: 26px 28px;
  border: 1px solid rgba(75,120,177,.17);
  border-radius: 24px;
  background: linear-gradient(125deg,#f7fbff 0%,#fffaf5 56%,#edf7ff 100%);
  box-shadow: 0 20px 50px rgba(55,87,127,.09);
}
.market-readiness-banner h3 { margin: 4px 0 0; color: #17375f; font-size: clamp(20px,2vw,28px); line-height: 1.15; }
.market-readiness-banner > p { margin: 0; color: #536b83; line-height: 1.72; }
.market-readiness-banner .text-link { white-space: nowrap; }
.compliance-support { background: linear-gradient(145deg,#f8fbff,#fffaf6); }
.compliance-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.compliance-card { padding: 26px; border: 1px solid rgba(66,111,169,.15); border-radius: 22px; background: rgba(255,255,255,.88); box-shadow: 0 15px 38px rgba(53,82,121,.07); }
.compliance-card h3 { margin: 8px 0 10px; color: #17375f; font-size: 21px; }
.compliance-card p { margin: 0; color: #5b7087; line-height: 1.7; }
.compliance-examples { margin: 24px 0 8px; color: #405d7c; line-height: 1.7; }
.compliance-disclaimer { margin: 0; padding: 15px 18px; border-left: 3px solid #7aa5d5; border-radius: 0 14px 14px 0; background: rgba(230,241,252,.7); color: #60748a; font-size: 13px; line-height: 1.65; }
.optional { color: #798a9e; font-size: .88em; font-weight: 500; }

html.i18n-pending body { visibility: hidden; }

.film-play-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; }
.pause-symbol { display: none; align-items: center; justify-content: center; gap: 4px; width: 18px; height: 18px; }
.pause-symbol i { display: block; width: 4px; height: 15px; border-radius: 3px; background: currentColor; }
.show-pause-icon .play-symbol { display: none; }
.show-pause-icon .pause-symbol { display: flex; }
.journey-slide:last-child::after { transition: background .45s ease; }
.journey-closing { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; padding: 30px; color: #fff; background: rgba(3,13,26,.76); opacity: 0; pointer-events: none; transition: opacity 1.2s ease; }
.journey-closing.is-visible { opacity: 1; }
.journey-closing.is-fading { opacity: 0; transition-duration: .6s; }
.journey-closing p { max-width: 920px; margin: 0; padding: 0; border: 0; color: #fff; background: transparent; box-shadow: none; font-size: clamp(26px,3.35vw,50px); font-weight: 820; line-height: 1.28; text-align: center; text-shadow: 0 3px 18px rgba(0,0,0,.72); text-wrap: balance; }

.form-success-modal[hidden] { display: none; }
.form-success-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 22px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,25,45,.58); backdrop-filter: blur(5px); }
.success-dialog { position: relative; z-index: 1; width: min(560px,100%); padding: 38px; border-radius: 28px; background: #fff; box-shadow: 0 32px 90px rgba(7,27,51,.28); text-align: center; }
.success-dialog h2 { margin: 12px 0 10px; color: #17375f; }
.success-dialog p { margin: 0 auto 24px; max-width: 450px; color: #5b7087; line-height: 1.7; }
.success-mark { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; color: #fff; background: linear-gradient(135deg,#75a3dd,#9fc2ea); font-size: 25px; }
.modal-close { position: absolute; top: 13px; right: 15px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: #3e5976; background: #edf4fb; font-size: 25px; cursor: pointer; }
.modal-actions { display: flex; justify-content: center; gap: 12px; }
.modal-open { overflow: hidden; }

.cookie-consent[hidden] { display: none; }
.cookie-consent { position: fixed; right: 18px; bottom: 18px; left: 18px; z-index: 900; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px; max-width: 1180px; margin: auto; padding: 18px 20px; border: 1px solid rgba(74,116,165,.2); border-radius: 20px; background: rgba(255,255,255,.97); box-shadow: 0 20px 70px rgba(10,34,61,.2); }
.cookie-consent p { margin: 0; color: #4d657d; font-size: 14px; line-height: 1.55; }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.cookie-actions .button { min-height: 42px; padding: 0 17px; }

.language-switcher { position: relative; margin-left: 3px; }
.language-switcher summary { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: 999px; color: #315273; cursor: pointer; font-weight: 700; list-style: none; }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary:hover,.language-switcher[open] summary { background: #edf5fd; }
.language-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; min-width: 150px; padding: 7px; border: 1px solid #dae6f2; border-radius: 14px; background: #fff; box-shadow: 0 18px 45px rgba(20,50,80,.15); }
.language-menu a { display: block; padding: 9px 11px; border-radius: 9px; color: #355474; white-space: nowrap; }
.language-menu a:hover,.language-menu a[aria-current="true"] { background: #edf5fd; color: #215a9b; }
.language-prompt { position: fixed; right: 18px; bottom: 18px; z-index: 880; max-width: 380px; padding: 18px; border: 1px solid #d9e6f3; border-radius: 18px; background: #fff; box-shadow: 0 20px 65px rgba(15,40,70,.2); }
.language-prompt p { margin: 0 0 13px; color: #36536f; line-height: 1.55; }
.language-prompt-actions { display: flex; gap: 9px; }
.language-prompt button,.language-prompt a { padding: 9px 13px; border: 1px solid #adc8e5; border-radius: 999px; color: #254b73; background: #f2f7fd; font-weight: 700; cursor: pointer; }
.language-prompt a { color: #fff; background: #739fd4; text-decoration: none; }

.journey-subtitle { position: absolute; right: 18px; bottom: 10px; left: 18px; z-index: 3; margin: 0 auto; max-width: 920px; padding: 7px 14px; border-radius: 10px; color: #fff; background: rgba(5,17,31,.72); font-size: clamp(13px,1.45vw,18px); line-height: 1.45; text-align: center; }
.narration-language { margin-left: 4px; color: #70859b; font-size: 11px; white-space: nowrap; }
html[lang="zh-CN"] body { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif; }
html[lang="zh-CN"] .journey-caption { padding-bottom: 54px; }

@media (max-width: 980px) {
  .market-readiness-banner { grid-template-columns: 1fr; gap: 14px; }
  .market-readiness-banner .text-link { justify-self: start; }
  .compliance-grid { grid-template-columns: 1fr; }
  .site-nav .language-switcher { margin-left: 0; }
  .language-menu { right: auto; left: 0; }
}
@media (max-width: 680px) {
  .market-readiness-banner { padding: 22px; }
  .cookie-consent { grid-template-columns: 1fr; gap: 14px; }
  .cookie-actions { justify-content: flex-start; }
  .success-dialog { padding: 32px 22px 24px; }
  .modal-actions { flex-direction: column; }
  .journey-closing { padding: 22px; }
}
@media (max-width: 620px) {
  .system-visual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 18px 0 8px;
    transform: none !important;
  }
  .system-visual::before {
    inset: 2% 8% 43%;
  }
  .system-orbit {
    top: 145px;
    width: min(270px, 78vw);
    height: min(270px, 78vw);
  }
  .system-core {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    width: min(210px, 68vw);
    min-height: 265px;
    padding: 18px 20px;
    border-radius: 24px;
  }
  .system-core .air-monitor {
    width: 122px;
    height: 150px;
    margin: 2px auto 0;
  }
  .system-core .core-caption { font-size: 16px; }
  .system-core .core-subcaption { font-size: 9px; line-height: 1.45; }
  .system-node {
    position: relative;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    font-size: 11px;
    line-height: 1.25;
  }
  .system-node::before { flex: 0 0 auto; }
  .system-node::after { display: none !important; }
  .mobile-system-tip {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1200;
    width: min(340px, calc(100vw - 36px));
    padding: 17px 19px;
    border: 1px solid rgba(55, 105, 163, .2);
    border-radius: 18px;
    color: #294760;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 22px 60px rgba(22, 52, 88, .24);
    font-size: 15px;
    font-weight: 560;
    line-height: 1.58;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, calc(-50% + 10px));
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    pointer-events: none;
  }
  .mobile-system-tip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
  }
  .journey-player { padding: 8px; }
  .journey-screen {
    min-height: 0;
    aspect-ratio: 4 / 5;
    background: #102b47;
  }
  .journey-slide { background: #102b47; }
  .journey-slide img {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    display: block;
    width: 100%;
    height: auto !important;
    max-height: none;
    object-fit: initial;
    object-position: center;
    background: #eaf1f7;
  }
  .journey-caption {
    top: 50%;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 20px;
    background: linear-gradient(145deg, #173a5e, #0b223a);
  }
  .journey-caption h3 { font-size: clamp(23px, 6.8vw, 28px); line-height: 1.2; }
  .journey-caption p { margin-top: 9px; font-size: 14px; line-height: 1.48; }
  .journey-step-label { margin: 8px 9px 0; font-size: 10px; }
  .journey-controls {
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 9px;
    margin: 5px 0 2px;
    padding: 7px 8px 3px;
  }
  .journey-controls .film-toggle {
    width: min(238px, calc(100% - 55px));
    height: 44px;
    min-height: 44px;
    padding: 0 15px;
    font-size: 15px;
  }
  .journey-controls .sound-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .journey-progress { gap: 6px; padding: 5px 6px 8px; }
  .narration-language { display: none; }
}
@media (max-width: 360px) {
  .system-visual { gap: 8px; }
  .system-core { width: min(195px, 68vw); min-height: 248px; }
  .system-core .air-monitor { width: 112px; height: 138px; }
  .system-node { min-height: 46px; padding: 9px 10px; font-size: 10px; }
  .journey-caption { padding: 14px 16px; }
  .journey-caption h3 { font-size: 21px; }
  .journey-caption p { font-size: 12.5px; line-height: 1.42; }
}
@media (prefers-reduced-motion: reduce) {
}
