/* 基础色板：黑、深灰、金色，保持离线静态页面一致性。 */
:root {
  --bg: #050606;
  --page: #080909;
  --panel: #10100f;
  --panel-soft: #151411;
  --if-plaque-gap: 1.45em;
  --if-plaque-canvas-trim: 48px;
  --plaque-menu-hit-size: 54px;
  --plaque-menu-hit-half: 27px;
  --plaque-menu-anchor-right: 15.25%;
  --plaque-menu-toggle-right: calc(var(--plaque-menu-anchor-right) - var(--plaque-menu-hit-half));
  --line: rgba(214, 180, 95, 0.22);
  --line-soft: rgba(255, 255, 255, 0.055);
  --if-gold-metal-hi: #f3df9a;
  --if-gold-metal: #d6b45f;
  --if-gold-metal-mid: #b89143;
  --if-gold-metal-low: #7f6228;
  --if-text-main: #e8e1d2;
  --if-text-soft: #c9c0ad;
  --if-text-muted: #9a9285;
  --if-text-dim: #7f786d;
  --if-gold: var(--if-gold-metal);
  --if-gold-soft: var(--if-gold-metal-mid);
  --if-gold-bright: var(--if-gold-metal-hi);
  --gold: var(--if-gold-metal);
  --gold-bright: var(--if-gold-metal-hi);
  --gold-dark: var(--if-gold-metal-low);
  --text: var(--if-text-main);
  --muted: var(--if-text-muted);
  --dim: var(--if-text-dim);
  --black: #050505;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.055), transparent 30rem),
    linear-gradient(135deg, #070809, #111214 45%, #050606);
  letter-spacing: 0;
}

button,
a { font: inherit; }
button { cursor: pointer; }

svg {
  width: 1.18rem;
  height: 1.18rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 桌面居中显示手机宽度，移动端直接铺满视口宽度。 */
.page-shell {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: var(--if-plaque-gap) 0 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    radial-gradient(circle at 18% 0%, rgba(214, 180, 95, 0.055), transparent 18rem),
    linear-gradient(180deg, #0b0c0b 0%, #060707 45%, #0c0b09 100%);
  background-size: 100% 7px, auto, auto;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
}

/* 顶部钢牌使用定稿图片：只等比显示，不叠加滤镜、阴影或重绘元素。 */
.steel-header {
  position: relative;
  display: block;
  margin: 0 0 var(--if-plaque-gap);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.top-plaque-img {
  display: block;
  width: 100%;
  height: auto;
  margin: calc(-1 * var(--if-plaque-canvas-trim)) auto;
}

.plaque-menu-toggle {
  position: absolute;
  right: var(--plaque-menu-anchor-right);
  top: 46.5%;
  z-index: 4;
  width: var(--plaque-menu-hit-size);
  height: var(--plaque-menu-hit-size);
  transform: translate(50%, -50%);
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
}

.plaque-menu-toggle[aria-expanded="true"] {
  z-index: 33;
  border-color: rgba(243, 223, 154, 0.18);
  background: rgba(0, 0, 0, 0.08);
}

.plaque-menu {
  position: absolute;
  right: 7px;
  top: calc(var(--if-plaque-gap) + 78px);
  z-index: 32;
  width: min(306px, calc(100% - 84px));
  max-height: min(78vh, 680px);
  max-height: min(calc(100dvh - 112px), 78vh, 680px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 9px 10px 8px;
  border: 1px solid rgba(214, 180, 95, 0.25);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.036), transparent 18%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #171613, #070707 74%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -14px 26px rgba(0,0,0,0.48),
    0 18px 34px rgba(0,0,0,0.5);
}

.plaque-menu[hidden] {
  display: none;
}

.plaque-menu-group {
  padding: 2px 0 7px;
  border-bottom: 1px solid rgba(214, 180, 95, 0.12);
}

.plaque-menu-group + .plaque-menu-group {
  padding-top: 7px;
}

.plaque-menu-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.plaque-menu-title {
  margin: 0 0 4px;
  color: var(--if-text-dim);
  font-size: 0.898rem;
  font-weight: 720;
  letter-spacing: 0.08em;
}

.plaque-menu-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  padding: 6px 14px 6px 9px;
  border: 0;
  border-radius: 2px;
  color: var(--if-text-soft);
  background: transparent;
  font-size: 1.082rem;
  line-height: 1.28;
  text-align: left;
  text-decoration: none;
  appearance: none;
}

.plaque-menu-item::after {
  flex: 0 0 auto;
  margin-left: 10px;
  content: "›";
  color: rgba(214, 181, 95, 0.46);
  font-size: 0.95em;
  font-weight: 500;
  line-height: 1;
}

.plaque-menu-item:hover,
.plaque-menu-item:focus-visible {
  color: var(--if-gold-metal-hi);
  background: rgba(214, 180, 95, 0.07);
  outline: 1px solid rgba(243, 223, 154, 0.16);
}

.plaque-menu-action {
  font: inherit;
  cursor: pointer;
}

.plaque-menu-highlight {
  color: var(--if-text-soft);
  background: linear-gradient(90deg, rgba(214, 180, 95, 0.045), rgba(214, 180, 95, 0.012));
}

.plaque-menu-parent {
  padding-right: 14px;
}

.plaque-menu-parent::after {
  content: none;
}

.submenu-symbol {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  color: var(--if-gold-metal);
  font-size: 1.22rem;
  line-height: 1;
}

.plaque-submenu[hidden] {
  display: none;
}

.plaque-submenu {
  margin: 1px 0 5px 10px;
  padding-left: 9px;
  border-left: 1px solid rgba(214, 180, 95, 0.14);
}

.plaque-submenu-item {
  display: block;
  width: 100%;
  min-height: 30px;
  padding: 5px 8px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.032);
  color: var(--if-text-muted);
  background: transparent;
  font-size: 1.003rem;
  line-height: 1.3;
  text-align: left;
  appearance: none;
  cursor: pointer;
}

.plaque-submenu-item:last-child {
  border-bottom: 0;
}

.plaque-submenu-item:hover,
.plaque-submenu-item:focus-visible {
  color: var(--if-text-soft);
  background: rgba(214, 180, 95, 0.045);
  outline: 1px solid rgba(214, 180, 95, 0.12);
}

/* 下方模块继续沿用原有黑金金属质感。 */
.system-card,
.wechat-card {
  position: relative;
  border: 1px solid rgba(214, 180, 95, 0.28);
  background:
    linear-gradient(100deg, transparent 0 10px, rgba(255,255,255,0.025) 10px 11px, transparent 11px 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.024) 0 1px, transparent 1px 8px),
    linear-gradient(145deg, #1d1d1b, #0b0c0b 42%, #151410);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), inset 0 -10px 20px rgba(0,0,0,0.32), 0 12px 26px rgba(0,0,0,0.24);
}

.screw {
  position: absolute;
  z-index: 1;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  background: radial-gradient(circle, #d4d0c8 0 16%, #373635 18% 46%, #050505 48% 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.85);
}

.screw::after {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 4px;
  height: 1px;
  content: "";
  background: rgba(0,0,0,0.8);
  transform: rotate(35deg);
}

.screw-tl { top: 7px; left: 7px; }
.screw-tr { top: 7px; right: 7px; }
.screw-bl { bottom: 7px; left: 7px; }
.screw-br { bottom: 7px; right: 7px; }

main { padding: 0 7px; }

.if-static-trail {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 3px 10px;
  color: rgba(154, 146, 133, 0.72);
  font-size: 0.948rem;
  font-weight: 560;
  line-height: 1.28;
}

.breadcrumb-link {
  color: rgba(214, 180, 95, 0.74);
  text-decoration: none;
}

.video-library-link {
  position: relative;
  display: inline-block;
  padding-bottom: 0.16em;
}

.video-library-link::after {
  position: absolute;
  left: 0;
  right: -4px;
  bottom: -0.22em;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(214,180,95,0), rgba(255,236,172,0.98), rgba(214,180,95,0));
  box-shadow: 0 0 7px rgba(243, 223, 154, 0.34);
  opacity: 0.92;
  animation: breadcrumb-line-breath 4.8s ease-in-out infinite;
}

.breadcrumb-link:hover { color: rgba(243, 223, 154, 0.88); }

.video-category-link {
  color: rgba(214, 180, 95, 0.62);
}

.breadcrumb-arrow {
  color: rgba(214, 180, 95, 0.42);
  font-size: 1.08em;
  font-weight: 520;
  line-height: 1;
}

@keyframes breadcrumb-line-breath {
  0%, 100% { opacity: 0.74; }
  50% { opacity: 1; }
}

.video-intro { padding: 0 3px 8px; }

.video-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--if-gold-metal);
  font-size: 1.032rem;
  font-weight: 680;
  line-height: 1.35;
}

.video-meta span:nth-child(2) {
  color: rgba(214, 180, 95, 0.38);
  font-weight: 520;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  margin-bottom: 9px;
  color: #e6dcc8;
  font-size: 1.536rem;
  line-height: 1.16;
  font-weight: 900;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.summary {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  color: #c4bcaf;
  font-size: 1.092rem;
  line-height: 1.52;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 播放器接入真实视频，16:9 尺寸保留；外框去掉，让视频成为主舞台。 */
.video-block {
  margin-left: -7px;
  margin-right: -7px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0;
  background: #050505;
  box-shadow: none;
}

.video-player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050505;
}

.video-player::-webkit-media-controls-panel {
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.72));
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(12, 12, 12, 0.56);
  box-shadow: 0 5px 18px rgba(0,0,0,0.32), inset 0 0 10px rgba(255,255,255,0.05);
  transition: opacity 160ms ease, transform 160ms ease;
}

.play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid currentColor;
}

.video-frame.is-playing .play-button {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.94);
}

/* 视频下方第一强转化区，主按钮必须明显强于返回入口。 */
.conversion-primary {
  padding: 14px 0 18px;
  border-bottom: 1px solid rgba(214, 180, 95, 0.14);
}

.chat-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 11px;
  color: var(--if-text-muted);
  font-size: 1.104rem;
}

.chat-hint svg { color: var(--if-gold-metal); }

.button-grid {
  display: grid;
  grid-template-columns: 136px 112px;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.button-grid.action-row {
  width: 100%;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.16fr) minmax(0, 0.92fr);
  gap: 7px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 28px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  color: #070706;
  background: linear-gradient(180deg, #fff2bd 0%, var(--if-gold-metal) 42%, #9b7631 74%, var(--if-gold-metal-hi) 100%);
  border-color: rgba(255,255,255,0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 12px 24px rgba(118, 80, 24, 0.18);
}

.btn-secondary {
  color: var(--if-gold-metal-hi);
  background: rgba(5,5,5,0.42);
  border-color: rgba(214, 180, 95, 0.42);
}

.btn-return {
  color: rgba(214, 180, 95, 0.62);
  background: rgba(4, 4, 4, 0.12);
  border-color: rgba(214, 180, 95, 0.18);
  box-shadow: none;
}

.button-grid.action-row .btn {
  height: 32px;
  min-height: 32px;
  padding: 0 6px;
  border-radius: 9px;
}

.button-grid.action-row .btn-primary {
  background: linear-gradient(180deg, #fff4c6 0%, var(--if-gold-metal-hi) 16%, var(--if-gold-metal) 48%, #9b7631 78%, var(--if-gold-metal-hi) 100%);
  border-color: rgba(255,255,255,0.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.42), 0 10px 22px rgba(118, 80, 24, 0.18);
}

.button-grid.action-row .btn-secondary,
.button-grid.action-row .btn-return {
  color: rgba(214, 180, 95, 0.64);
  background: rgba(4, 4, 4, 0.11);
  border-color: rgba(214, 180, 95, 0.18);
  box-shadow: none;
}

.btn svg { width: 1.18rem; height: 1.18rem; stroke-width: 2; }

.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 9px;
  border: 1px solid rgba(214, 180, 95, 0.2);
  border-radius: 8px;
  color: rgba(214, 180, 95, 0.62);
  background: rgba(4, 4, 4, 0.12);
  font-size: 1.008rem;
  font-weight: 650;
  text-decoration: none;
}

.button-grid .back-link {
  height: 28px;
  min-height: 28px;
  margin-top: 0;
  padding: 0 8px;
  border-radius: 6px;
  color: rgba(214, 180, 95, 0.72);
  background: rgba(4, 4, 4, 0.18);
  border-color: rgba(214, 180, 95, 0.24);
  font-size: inherit;
  font-weight: 720;
}

/* 旧本地预览页兼容样式；根母版 index.html 已不再使用本视频看点模块。 */
.video-insight-card {
  margin-top: 12px;
  padding: 12px 13px;
  border: 1px solid rgba(214, 180, 95, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%),
    rgba(0, 0, 0, 0.2);
}

.video-insight-card h2 {
  margin-bottom: 7px;
  color: var(--if-gold-metal);
  font-size: 1.056rem;
  line-height: 1.36;
  font-weight: 760;
}

.video-insight-card p {
  margin-bottom: 0;
  color: var(--if-text-soft);
  font-size: 1.032rem;
  line-height: 1.58;
}

.system-card {
  margin-top: 17px;
  padding: 17px 13px 12px;
  border-radius: 8px;
}

.system-card h2 {
  margin-bottom: 5px;
  color: var(--if-text-main);
  font-size: 0.984rem;
  line-height: 1.48;
  font-weight: 650;
}

.system-subtitle {
  margin-bottom: 9px;
  background: linear-gradient(180deg, #fff2bd 0%, var(--if-gold-metal) 38%, #9b7631 72%, var(--if-gold-metal-hi) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 0.984rem;
  line-height: 1.48;
  font-weight: 720;
  text-shadow:
    0 1px 0 rgba(255,255,255,.14),
    0 2px 8px rgba(0,0,0,.45);
}

.system-list {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  background: rgba(0,0,0,0.18);
}

.system-line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  align-items: start;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.065);
}

.system-line:last-child { border-bottom: 0; }

.system-line strong {
  color: var(--if-gold-metal);
  font-size: 0.984rem;
  line-height: 1.35;
  white-space: nowrap;
}

.system-line span {
  color: #c4bcaf;
  font-size: 0.96rem;
  line-height: 1.35;
}

.system-line a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(214, 180, 95, .38);
  transition: color 160ms ease, border-color 160ms ease;
}

.system-line a:hover {
  color: var(--if-gold-metal-hi);
  border-bottom-color: rgba(243, 223, 154, .7);
}

.system-line em {
  display: block;
  margin-top: 1px;
  color: var(--if-text-dim);
  font-size: 0.864rem;
  font-style: normal;
}

.wechat-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
}

.qr-image,
.group-assist img,
.qr-entry img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  background: #fff;
}

.wechat-copy h2 {
  margin-bottom: 8px;
  color: var(--if-gold-metal);
  font-size: 1.26rem;
  line-height: 1.24;
}

.remark {
  margin-bottom: 9px;
  padding: 2px 0 3px;
  border: 0;
  border-radius: 0;
  color: var(--if-text-muted);
  background: transparent;
  font-size: 0.96rem;
  line-height: 1.35;
}

.remark strong,
.remark span { display: block; }
.remark strong { color: #e3d7c4; font-size: 1.032rem; }
.remark span { margin-top: 2px; color: #9f968a; }

.qr-hold-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(214, 180, 95, 0.18);
  border-radius: 8px;
  color: var(--if-gold-metal);
  background: rgba(0,0,0,0.14);
  font-size: 1.008rem;
  font-weight: 720;
  cursor: pointer;
}

.qr-hold-tip svg { width: 1rem; height: 1rem; }

.wide { width: 100%; min-height: 42px; }

.group-assist {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(214, 180, 95, 0.17);
  border-radius: 8px;
  color: #c4bcaf;
  background: rgba(0,0,0,0.18);
}

.group-assist strong {
  display: block;
  margin-bottom: 3px;
  color: var(--if-gold-metal);
  font-size: 1.032rem;
}

.group-assist span {
  display: block;
  color: var(--if-text-dim);
  font-size: 0.912rem;
  line-height: 1.35;
}

.email-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  margin-top: 12px;
  padding: 0 13px;
  border: 1px solid rgba(214, 180, 95, 0.34);
  border-radius: 8px;
  color: var(--if-gold-metal);
  background: rgba(16, 15, 12, 0.7);
  text-decoration: none;
}

.email-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-weight: 760;
  font-size: 1.08rem;
}

.email-address {
  flex: 0 0 auto;
  color: var(--if-gold-metal);
  font-size: 1.08rem;
  font-weight: 740;
}

.if-static-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 8px 0;
  color: var(--if-text-dim);
  font-size: 0.864rem;
}

.if-static-footer strong {
  display: block;
  color: var(--if-gold-metal);
  font-size: 1.032rem;
}

.if-static-footer span { display: block; margin-top: 2px; }
.if-static-footer p { grid-column: 1 / -1; margin: 0; text-align: center; color: #77716a; }

/* 微信弹窗默认隐藏，由 js/main.js 控制打开与关闭。 */
.modal[hidden],
.qr-lightbox[hidden] { display: none; }

.modal,
.qr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-backdrop,
.qr-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.76);
  backdrop-filter: blur(4px);
}

.modal-panel,
.qr-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 366px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 17px 13px 14px;
  border: 1px solid rgba(214, 180, 95, 0.42);
  border-radius: 8px;
  text-align: center;
  background: linear-gradient(145deg, #1b1a17, #080808 70%);
  box-shadow: 0 20px 50px rgba(0,0,0,0.62);
}

.modal-panel h2,
.qr-lightbox-panel h2 {
  margin-bottom: 12px;
  color: var(--if-gold-metal);
  font-size: 1.296rem;
}

.qr-lightbox-panel {
  width: min(calc(100vw - 32px), 390px);
  text-align: center;
  padding: 15px 12px 14px;
}

.qr-lightbox-panel img {
  display: block;
  width: min(100%, 330px, calc(100vw - 64px));
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: min(58vh, 330px);
  margin: 0 auto 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: #fff;
  object-fit: contain;
}

.qr-lightbox-panel h2 {
  margin-bottom: 7px;
  color: var(--if-text-main);
  font-size: 1.08rem;
  line-height: 1.5;
}

.qr-modal-description {
  margin-bottom: 12px;
  color: var(--if-text-muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.qr-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(214, 180, 95, 0.42);
  color: #080705;
  background: linear-gradient(180deg, #fff2bd 0%, var(--if-gold-metal) 48%, var(--if-gold-metal-mid) 100%);
  font-size: 1.08rem;
  font-weight: 780;
  text-decoration: none;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.qr-entry {
  padding: 9px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(0,0,0,0.22);
}

.qr-entry img { margin-bottom: 8px; }

.qr-entry h3 {
  margin-bottom: 5px;
  color: var(--if-gold-metal);
  font-size: 1.02rem;
  line-height: 1.3;
}

.qr-entry p {
  margin-bottom: 0;
  color: #d2c8b8;
  font-size: 0.864rem;
  line-height: 1.4;
}

.modal-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #e4d8c2;
  background: rgba(0,0,0,0.45);
  font-size: 1.5rem;
  line-height: 1;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 40;
  max-width: calc(100% - 40px);
  padding: 10px 14px;
  border: 1px solid rgba(214, 180, 95, 0.42);
  border-radius: 999px;
  color: #0b0905;
  background: linear-gradient(180deg, var(--if-gold-metal-hi), var(--if-gold-metal-mid));
  font-size: 1.056rem;
  font-weight: 760;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 560px) {
  body { padding: 22px 0; }
  .page-shell {
    width: min(100%, 430px);
    min-height: auto;
    margin: 0 auto;
    padding: var(--if-plaque-gap) 12px 14px;
    border-radius: 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 42px rgba(0, 0, 0, 0.65);
  }
}

@media (max-width: 374px) {
  h1 { font-size: 1.896rem; }
  .button-grid { grid-template-columns: 132px 108px; gap: 7px; }
  .button-grid.action-row { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 6px; }
  .wechat-card { grid-template-columns: 98px 1fr; gap: 9px; }
  .modal-grid { grid-template-columns: 1fr; }
  .qr-entry img { max-width: 180px; margin-left: auto; margin-right: auto; }
  .email-card { align-items: flex-start; flex-direction: column; justify-content: center; padding: 10px 13px; }
}

/* IF V2 scoped QR modal and organization-list refinement. */
.qr-image[data-open-qr-modal],
.group-assist img[data-open-qr-modal] {
  cursor: pointer;
}

.qr-image[data-open-qr-modal]:focus-visible,
.group-assist img[data-open-qr-modal]:focus-visible {
  outline: 1px solid rgba(214, 180, 95, 0.72);
  outline-offset: 3px;
}

.qr-lightbox-panel img {
  max-width: calc(100vw - 64px);
  max-height: min(58vh, 330px);
}

.org-list {
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
}

.org-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  padding: 6px 0;
  border: 0;
}

.org-label {
  flex: 0 0 auto;
  color: var(--if-gold-metal);
  font-size: 0.984rem;
  font-weight: 760;
  line-height: 1.35;
  white-space: nowrap;
}

.org-name {
  flex: 1 1 180px;
  min-width: 0;
  color: #c4bcaf;
  font-size: 0.96rem;
  line-height: 1.45;
}

.org-name a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(214, 181, 95, 0.58);
  border-bottom: 0;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.org-name a:hover,
.org-name a:focus-visible {
  color: var(--if-gold-metal-hi);
  text-decoration-color: rgba(214, 181, 95, 0.82);
}

/* IF V2 hamburger menu focus layer: dim page background while keeping the metal drawer clear. */
body.if-plaque-menu-open .page-shell::before {
  position: fixed;
  inset: 0;
  z-index: 24;
  content: "";
  background: rgba(0, 0, 0, 0.72);
  pointer-events: auto;
}

/* IF V2 official contact lightweight CTA. */
.official-contact-block {
  display: block;
  margin: 18px 0 20px;
  padding: 0 2px 6px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  background: transparent;
}

.official-mail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.official-mail-label,
.official-mail-address {
  color: var(--if-gold-metal);
  font-size: 1.08rem;
  font-weight: 740;
  line-height: 1.25;
}

.official-mail-address {
  flex: 0 0 auto;
  white-space: nowrap;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(214,181,95,.72);
}

.official-mail-address:hover,
.official-mail-address:focus-visible {
  color: var(--if-gold-metal-hi);
  text-decoration-color: rgba(214,181,95,.9);
}

.official-wechat-line {
  margin-top: 10px;
  color: var(--if-text-muted);
  font-size: .96rem;
  line-height: 1.35;
  text-align: right;
}

.official-wechat-line span {
  color: var(--if-text-soft);
}

.official-mail-underline,
.official-mail-arrow {
  display: none !important;
}

/* IF V2 organization card finishing: cleaner interior, linked institutions remain visibly clickable. */
.system-card {
  background-image: linear-gradient(145deg, rgba(18, 18, 16, 0.96), rgba(7, 8, 8, 0.98));
  background-color: rgba(9, 9, 8, 0.94);
}

.system-card::before,
.system-card::after {
  background: none !important;
}

.system-card .org-list,
.system-card .org-row {
  background-image: none !important;
}

.project-menu-row {
  gap: 10px;
}

.project-menu-link {
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.project-menu-link:focus-visible {
  color: var(--if-gold-metal-hi);
  outline: 0;
}

.project-menu-toggle-button {
  display: inline-grid;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: -2px -4px -2px 6px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  appearance: none;
  cursor: pointer;
}

.project-menu-toggle-button:focus-visible {
  outline: 1px solid rgba(243, 223, 154, 0.2);
  outline-offset: 2px;
}

