/* ================= 统一通知中心 · 右下角金黄浮层 =================
   四类来源（新邮件 / 便签@ / 提到你 / 待审批）共用一套外观，靠图标与标签区分。
   立体感来源：三层投影 + 顶部内高光 + 金渐变图标块 + 实体感主按钮。
   入场：从右下 3D 侧倒着转正 + 一道高光斜扫；关闭：右滑缩出并把下方卡片顶上来。 */

#zyNt {
  position: fixed;
  right: 24px;
  bottom: 88px;                 /* 让开右下角「写邮件」圆形按钮 */
  z-index: 12050;
  width: 348px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  perspective: 1100px;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

#zyNt .nt-card {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(130% 90% at 100% 0%, rgba(255, 209, 110, .22), rgba(255, 209, 110, 0) 58%),
    linear-gradient(168deg, #FFFCF1 0%, #FFFFFF 44%);
  border: 1px solid rgba(206, 152, 26, .34);
  border-radius: 16px;
  padding: 11px 13px 11px 18px;
  transform-origin: 100% 100%;
  box-shadow:
    0 1px 1px rgba(120, 85, 10, .07),
    0 4px 9px -2px rgba(120, 85, 10, .12),
    0 16px 34px -10px rgba(120, 85, 10, .3),
    0 36px 68px -22px rgba(120, 85, 10, .26),
    inset 0 1px 0 rgba(255, 255, 255, .98),
    inset 0 0 0 1px rgba(255, 255, 255, .55);
  animation: ntIn .66s cubic-bezier(.16, 1.02, .3, 1) both;
  transition: transform .22s cubic-bezier(.2, .8, .3, 1), box-shadow .22s;
}
#zyNt .nt-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 3px rgba(120, 85, 10, .08),
    0 8px 16px -3px rgba(120, 85, 10, .16),
    0 24px 46px -10px rgba(120, 85, 10, .34),
    0 52px 84px -24px rgba(120, 85, 10, .24),
    inset 0 1px 0 #fff,
    inset 0 0 0 1px rgba(255, 255, 255, .7);
}

/* 顶部金线：一条极细的金属边，撑住立体感 */
#zyNt .nt-card::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 215, 94, 0) 0%, #FFE08A 10%, #E8B23C 42%, #B8870F 78%, rgba(184, 135, 15, 0) 100%);
}

/* 入场高光：只扫一次，不循环，避免常驻闪扰 */
#zyNt .nt-card::after {
  content: '';
  position: absolute;
  top: -60%; bottom: -60%; left: -40%;
  width: 34%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .9), rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
  pointer-events: none;
  animation: ntSheen 1s ease-out .34s both;
}

/* 左侧呼吸色条：用单独元素而不是 border-left，才能只让透明度变化 */
#zyNt .nt-bar {
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #FFDF83, #E0A82C 50%, #B8870F);
  box-shadow: 0 0 10px rgba(217, 164, 38, .55);
  animation: ntBar 2.6s ease-in-out infinite;
}

#zyNt .nt-hd {
  display: flex;
  align-items: center;
  gap: 8px;
}

#zyNt .nt-ico {
  width: 32px; height: 32px;
  flex: 0 0 auto;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8A6410;
  background: linear-gradient(150deg, #FFEFC2 0%, #F8D273 56%, #EFC04A 100%);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow:
    0 3px 8px rgba(180, 130, 10, .32),
    0 1px 2px rgba(180, 130, 10, .2),
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -2px 3px rgba(160, 110, 0, .2);
  position: relative;
}
#zyNt .nt-ico::after {
  content: '';
  position: absolute;
  left: 5px; top: 4px;
  width: 8px; height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .75);
  filter: blur(1px);
  pointer-events: none;
}

#zyNt .nt-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #8A6410;
  letter-spacing: .2px;
}

#zyNt .nt-time {
  margin-left: auto;
  font-size: 11px;
  color: #A8967A;
  font-variant-numeric: tabular-nums;
}

#zyNt .nt-x {
  width: 20px; height: 20px;
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  color: #B3A48D;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: .16s;
}
#zyNt .nt-x:hover { background: rgba(217, 164, 38, .16); color: #8A6410; }

#zyNt .nt-t {
  margin-top: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #1D1A12;
  line-height: 1.45;
  letter-spacing: .1px;
}

#zyNt .nt-s {
  margin-top: 3px;
  font-size: 11.5px;
  color: #7C7264;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#zyNt .nt-ft {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
}

/* 主按钮做「实体键」质感：上亮下暗 + 内高光 + 落地阴影 + 按下回弹 */
#zyNt .nt-go {
  border: 0;
  cursor: pointer;
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(180deg, #E3AF31 0%, #C08D14 100%);
  box-shadow:
    0 2px 5px rgba(180, 130, 10, .34),
    inset 0 1px 0 rgba(255, 255, 255, .42);
  transition: .16s;
}
#zyNt .nt-go:hover {
  background: linear-gradient(180deg, #EDBC42 0%, #CE9A1B 100%);
  box-shadow:
    0 3px 10px rgba(180, 130, 10, .42),
    inset 0 1px 0 rgba(255, 255, 255, .5);
}
#zyNt .nt-go:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(180, 130, 10, .3), inset 0 1px 0 rgba(255, 255, 255, .3);
}

#zyNt .nt-ig {
  border: 1px solid rgba(140, 120, 90, .22);
  background: #fff;
  color: #8A8272;
  font-size: 11.5px;
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: .16s;
}
#zyNt .nt-ig:hover { border-color: rgba(140, 120, 90, .42); color: #5F594C; background: #FCFAF4; }

#zyNt .nt-more {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(217, 164, 38, .1);
  border: 1px solid rgba(217, 164, 38, .22);
  font-size: 11.5px;
  color: #8A6410;
  transition: .16s;
}
#zyNt .nt-more:hover { background: rgba(217, 164, 38, .17); }
#zyNt .nt-more .nt-caret { font-size: 12px; line-height: 1; opacity: .7; }

/* 最新一条：金色光晕环，主次一眼可分 */
#zyNt .nt-card.fresh {
  border-color: rgba(217, 164, 38, .58);
  box-shadow:
    0 0 0 1px rgba(217, 164, 38, .42),
    0 0 0 5px rgba(217, 164, 38, .09),
    0 1px 1px rgba(120, 85, 10, .08),
    0 6px 14px -2px rgba(120, 85, 10, .18),
    0 22px 44px -12px rgba(120, 85, 10, .34),
    inset 0 1px 0 rgba(255, 255, 255, .98);
}

#zyNt .nt-card.hid { display: none; }

#zyNt .nt-card.out { animation: ntOut .3s ease forwards; }

#zyNt .nt-card.bump { animation: ntBump .55s cubic-bezier(.2, .9, .3, 1) both; }

@keyframes ntIn {
  0%   { opacity: 0; transform: translateY(28px) rotateX(-13deg) scale(.9); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes ntSheen {
  0%   { left: -40%; }
  100% { left: 132%; }
}
@keyframes ntBar {
  0%, 100% { opacity: 1; }
  50%      { opacity: .28; }
}
@keyframes ntBump {
  0%   { transform: none; }
  28%  { transform: translateY(-5px) scale(1.014); }
  62%  { transform: translateY(0) scale(1); }
  100% { transform: none; }
}
@keyframes ntOut {
  0%   { opacity: 1; transform: none; max-height: 260px; }
  100% { opacity: 0; transform: translateX(26px) scale(.96); max-height: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
}

@media (max-width: 760px) {
  #zyNt { right: 12px; left: 12px; width: auto; bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  #zyNt .nt-card,
  #zyNt .nt-card::after,
  #zyNt .nt-bar { animation: none; }
}
