/* ============================================================================
   [MAIL] 盛宴之邀 · 深壳浅信（3B 撞色高定样式，完全隔离命名空间）
   ============================================================================ */
.icon-btn[data-action="open-mail"] {
  font-size: 0;
  color: var(--primary);
  position: relative;
  overflow: visible;
}
.icon-btn[data-action="open-mail"]::before {
  content: "";
  width: 16px;
  height: 16px;
  display: block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpolyline points='3 7 12 13 21 7'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpolyline points='3 7 12 13 21 7'/%3E%3C/svg%3E") center/contain no-repeat;
}
.icon-btn[data-action="open-mail"].is-active {
  border-color: var(--line-gold);
  color: var(--gold);
  background: rgba(217, 203, 184, 0.14);
}
.top-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #B84264;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 顶部身份与返回胶囊 */
.sy-head-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.sy-head-sub {
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold);
}
.sy-id-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: linear-gradient(155deg, rgba(18, 34, 66, 0.82), rgba(7, 14, 31, 0.94));
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 11px 14px;
  margin-bottom: 12px;
  box-shadow: 0 14px 32px -12px rgba(2, 5, 14, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.sy-id-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sy-medallion {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--velvet-grad);
  color: #FFFFFF;
  font-family: var(--font-latin);
  font-size: 17px; font-weight: 700;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.65), 0 0 0 3px rgba(136,162,212,0.35);
}
.sy-addr {
  font-family: var(--font-latin);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.04em;
  word-break: break-all;
}

/* 邮箱名输入框 */
.sy-handle-wrap {
  display: flex;
  align-items: center;
  background: rgba(4, 10, 24, 0.78);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.sy-handle-wrap:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(188, 210, 248, 0.14);
}
.sy-handle-wrap input {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  flex: 1;
  min-width: 0;
}
.sy-handle-suffix {
  flex: none;
  padding: 0 12px 0 6px;
  font-family: var(--font-latin);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold);
  user-select: none;
}

/* 列表栏与卡片（深色午夜蓝绒外壳） */
.sy-mbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.sy-mbar b { color: #FFFFFF; }
.sy-folio-list { display: flex; flex-direction: column; gap: 9px; }
.sy-folio {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 13px 13px 15px;
  border-radius: 14px;
  background: rgba(8, 17, 38, 0.72);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .16s ease, border-color .18s ease, background .18s ease;
}
.sy-folio:hover {
  border-color: var(--line-strong);
  background: rgba(16, 32, 66, 0.82);
}
.sy-folio.un {
  background: linear-gradient(135deg, rgba(22, 44, 88, 0.82), rgba(10, 21, 46, 0.92));
  border-color: rgba(158, 192, 242, 0.44);
}
.sy-folio.un::before {
  content: "";
  position: absolute;
  left: 0; top: 10px; bottom: 10px; width: 3.5px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #9EC0F2, #3E6EB8);
}
.sy-folio.req {
  border-color: var(--line-gold);
  background: linear-gradient(135deg, rgba(46, 38, 28, 0.45), rgba(12, 24, 52, 0.90));
}
.sy-folio.req::before {
  content: "";
  position: absolute;
  left: 0; top: 10px; bottom: 10px; width: 3.5px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #F3E5D0, #B8965E);
}
.sy-folio.sel {
  border-color: #FFFFFF;
  background: rgba(34, 68, 130, 0.56);
}
.sy-dot {
  flex: none; width: 9px; height: 9px;
  transform: rotate(45deg);
  border: 1.5px solid var(--dim);
  border-radius: 2px;
}
.sy-folio.un .sy-dot {
  border-color: #DCE9FF;
  background: linear-gradient(135deg, #9EC0F2, #234F9C);
  box-shadow: 0 0 10px rgba(158, 192, 242, 0.7);
}
.sy-folio.req .sy-dot {
  border-color: #F6E6CA;
  background: linear-gradient(135deg, #F3DFB8, #B28848);
  box-shadow: 0 0 10px rgba(217, 203, 184, 0.75);
}
.sy-chk {
  flex: none; width: 20px; height: 20px; border-radius: 6px;
  border: 1.5px solid var(--muted); background: rgba(4,10,24,0.7);
  display: grid; place-items: center; color: transparent; font-size: 12px; font-weight: 700;
}
.sy-chk.on {
  background: linear-gradient(135deg, #FFFFFF, #B7C9E8);
  border-color: #FFFFFF; color: #050B1C;
}
.sy-chk.dis { opacity: 0.25; border-style: dashed; }

.sy-av {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 15px;
  background: rgba(20, 38, 76, 0.85);
  color: var(--primary);
  border: 1px solid var(--line-strong);
}
.sy-folio.req .sy-av {
  background: rgba(217, 203, 184, 0.16);
  color: var(--gold);
  border-color: var(--line-gold);
}
.sy-mx { min-width: 0; flex: 1; }
.sy-ft {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  color: var(--text); font-size: 14.5px; font-weight: 500; line-height: 1.35;
}
.sy-folio.un .sy-ft, .sy-folio.req .sy-ft { font-weight: 700; color: #FFFFFF; }
.sy-fs { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sy-fp {
  font-family: var(--font-serif);
  font-size: 13px; color: var(--silver); opacity: 0.84;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px;
}

/* 封缄呈邀发信按钮 + 蓝钻徽章盖章动效 */
.sy-dispatch-btn {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 10px 20px; width: 100%;
  border: 1.5px solid transparent;
  background: var(--velvet-grad) padding-box, var(--chrome-edge) border-box;
  color: #FFFFFF;
  box-shadow: 0 14px 28px -10px rgba(4, 12, 32, 0.9), inset 0 1px 0 rgba(255,255,255,0.34);
}
.sy-d-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.18; }
.sy-d-cn { font-family: var(--font-serif); font-size: 16px; font-weight: 700; letter-spacing: 0.22em; color: #FFFFFF; }
.sy-d-en { font-family: var(--font-latin); font-size: 10px; font-weight: 600; letter-spacing: 0.26em; color: rgba(218,232,255,0.82); }
.sy-crest { width: 48px; height: 48px; flex: none; filter: drop-shadow(0 6px 12px rgba(4,12,32,0.55)); }
.sy-crest.lg { width: 78px; height: 78px; margin-left: auto; }
@keyframes syCrystalStamp {
  0% { transform: scale(1.85) rotate(-18deg); opacity: 0; }
  55% { transform: scale(0.9) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ============================================================================
   3B 象牙白冰晶请柬弹窗（z-index: 40，低于 #feast-modal 的 50，不冲突！）
   ============================================================================ */
.sy-ov {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: radial-gradient(ellipse at 50% 0%, rgba(18, 47, 99, 0.56), rgba(4, 10, 26, 0.78) 72%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: auto;
  padding: calc(20px + env(safe-area-inset-top)) 14px calc(28px + env(safe-area-inset-bottom));
  animation: syFadeIn .2s ease;
}
@keyframes syFadeIn { from { opacity: 0; } }

.sy-sheet {
  /* 局部覆写主站深色变量 -> 墨蓝浅底，保证内嵌业务组件(如欲望之声卡片)零白字白底 */
  color-scheme: light;
  --text: #0b1a36;
  --ink: #0b1a36;
  --ink-2: #344a6e;
  --muted: #5a7094;
  --dim: #7b90b2;
  --line: rgba(130, 156, 198, 0.34);
  --line-gold: rgba(168, 128, 62, 0.48);
  --line-strong: rgba(30, 72, 143, 0.45);
  --card: rgba(255, 255, 255, 0.88);
  --bg-2: #edf3fb;
  --primary: #0f2757;
  --gold: #8c6223;
  --gold-soft: rgba(168, 128, 62, 0.12);
  --silver: #344a6e;
  --silver-soft: rgba(130, 156, 198, 0.16);
  --ok: #156d57;
  --danger: #9c2748;
  --warn: #9a6518;

  position: relative;
  max-width: 580px;
  margin: 18px auto;
  color: var(--ink);
  background: linear-gradient(170deg, #ffffff 0%, #f5f8fe 58%, #e8f0fb 100%);
  border-radius: 22px;
  padding: 24px 22px 20px;
  box-shadow: 0 32px 72px -16px rgba(4, 12, 30, 0.65), 0 0 0 1.4px rgba(206, 220, 244, 0.9);
  animation: syPop .3s cubic-bezier(.2,.8,.3,1);
}
@keyframes syPop { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
.sy-sheet::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(130, 156, 198, 0.32);
  border-radius: 15px;
  pointer-events: none;
}
.sy-sheet > * { position: relative; z-index: 1; }

.sy-eyebrow {
  text-align: center;
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: #1e488f;
  padding-bottom: 13px;
  margin-bottom: 14px;
  position: relative;
}
.sy-eyebrow::after {
  content: "";
  position: absolute; left: 8%; right: 8%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #9db2d3 20%, #2a4a86 50%, #9db2d3 80%, transparent);
}
.sy-sheet h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: #050f24;
  line-height: 1.38;
}
.sy-sheet-meta {
  font-family: var(--font-latin), var(--font-serif);
  font-size: 13.5px;
  color: #5a7094;
}
.sy-letter-body {
  font-family: "LXGW WenKai", var(--font-serif);
  font-size: 16px;
  line-height: 1.92;
  color: #0b1a36;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 16px 0 10px;
  padding-top: 15px;
  border-top: 1px solid rgba(130, 156, 198, 0.32);
}
.sy-gem-div {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 16px 0;
}
.sy-gem-div::before, .sy-gem-div::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, #a9bbd7 55%, #3a5a94);
}
.sy-gem-div::after { transform: scaleX(-1); }
.sy-gem {
  width: 11px; height: 11px; border-radius: 3px; transform: rotate(45deg);
  background: linear-gradient(135deg, #ffffff 0%, #b4c6e2 28%, #17356c 62%, #081a3f 100%);
  box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #9db2d3;
}
.sy-sheet-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

/* 浅色纸面内嵌表单、卡片、按钮精细适配 */
.sy-sheet input, .sy-sheet select, .sy-sheet textarea {
  background: #ffffff !important;
  color: #0b1a36 !important;
  border: 1px solid rgba(104, 132, 179, 0.45) !important;
  box-shadow: inset 0 1px 2px rgba(10, 28, 64, 0.06) !important;
}
.sy-sheet select option { background: #ffffff; color: #0b1a36; }
.sy-sheet .card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(130, 156, 198, 0.38);
  box-shadow: 0 8px 20px -10px rgba(10, 28, 64, 0.14);
}
.sy-sheet .card::after { display: none; }
.sy-sheet .ticket-quote {
  background: rgba(220, 232, 250, 0.36);
  color: #1c3157;
  border-left-color: #1e488f;
}
.sy-sheet .btn-secondary, .sy-sheet .btn-ghost {
  background: rgba(255, 255, 255, 0.92);
  color: #122f63;
  border: 1px solid rgba(104, 132, 179, 0.46);
  box-shadow: none;
}
.sy-sheet .btn-primary {
  background: var(--velvet-grad);
  color: #FFFFFF;
  box-shadow: 0 10px 20px -8px rgba(10, 28, 64, 0.55);
}
.sy-sheet .btn-ok {
  background: rgba(21, 109, 87, 0.10);
  color: #156d57;
  border-color: rgba(21, 109, 87, 0.38);
}
.sy-sheet .btn-danger {
  background: rgba(156, 39, 72, 0.09);
  color: #9c2748;
  border-color: rgba(156, 39, 72, 0.38);
}
.sy-sheet .btn-gold {
  background: var(--velvet-grad);
  color: #FFFFFF;
}

@media (max-width: 480px) {
  .sy-sheet { padding: 20px 15px 16px; }
}