/* ===== FubiIP 跨站通用公告组件 v3.6（商城 / 静态代理 / 短信接码 / 邮箱收信 / 总控 零改动复用）=====
 * 深浅双主题：跟随 html[data-theme]，默认深色；色调 data-tone = info | success | warning | danger
 */
.fubi-ann {
  --fa-card: linear-gradient(170deg, rgba(26, 33, 48, .95) 0%, rgba(17, 22, 34, .98) 100%);
  --fa-border: rgba(255, 255, 255, .09);
  --fa-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 14px 36px -16px rgba(0, 0, 0, .6);
  --fa-text: #EEF0F4;
  --fa-text-2: #B9BFCB;
  --fa-muted: #8B93A4;
  --fa-sub: rgba(12, 16, 25, .6);
  --fa-line: rgba(255, 255, 255, .1);
  --fa-crown: linear-gradient(90deg, transparent 4%, rgba(226, 139, 78, .55) 28%, #F4C797 50%, rgba(226, 139, 78, .55) 72%, transparent 96%);
  --fa-cta: linear-gradient(135deg, #DF8142 0%, #B85A24 100%);
  --fa-mask: rgba(5, 7, 11, .62);
  width: 100%;
  max-width: 1140px;
  margin: 14px auto 0;
  padding: 0 24px;
  box-sizing: border-box;
  font-family: inherit;
}
html[data-theme="light"] .fubi-ann {
  --fa-card: linear-gradient(180deg, #FFFFFF 0%, #FDFBF7 100%);
  --fa-border: rgba(168, 138, 108, .22);
  --fa-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(68, 46, 26, .04), 0 14px 32px -16px rgba(68, 46, 26, .12);
  --fa-text: #1C1917;
  --fa-text-2: #4A433D;
  --fa-muted: #7A7067;
  --fa-sub: #F6F2EC;
  --fa-line: rgba(168, 138, 108, .22);
  --fa-crown: linear-gradient(90deg, transparent 4%, rgba(212, 118, 59, .42) 28%, #E6A46C 50%, rgba(212, 118, 59, .42) 72%, transparent 96%);
  --fa-cta: linear-gradient(135deg, #D4763B 0%, #B85A24 100%);
  --fa-mask: rgba(40, 30, 20, .34);
}
.fubi-ann[hidden], .fubi-ann:empty { display: none !important; }
.fubi-ann *, .fa-pop-mask * { box-sizing: border-box; }

.fa-card {
  --fa-c: #E28B4E;
  --fa-soft: rgba(226, 139, 78, .14);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 13px 14px 13px 16px;
  border-radius: 18px;
  background: var(--fa-card);
  border: 1px solid var(--fa-border);
  box-shadow: var(--fa-shadow);
  color: var(--fa-text);
  overflow: hidden;
  animation: fa-in .5s cubic-bezier(.2, .9, .3, 1.1);
}
.fa-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--fa-crown);
  pointer-events: none;
}
.fa-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 120px at 0% 0%, var(--fa-soft), transparent 70%);
  pointer-events: none;
}
.fa-card[data-tone="success"] { --fa-c: #34D399; --fa-soft: rgba(52, 211, 153, .12); }
.fa-card[data-tone="warning"] { --fa-c: #F5B547; --fa-soft: rgba(245, 181, 71, .13); }
.fa-card[data-tone="danger"]  { --fa-c: #F47174; --fa-soft: rgba(244, 113, 116, .13); }
html[data-theme="light"] .fa-card { --fa-c: #C2672F; --fa-soft: rgba(212, 118, 59, .09); }
html[data-theme="light"] .fa-card[data-tone="success"] { --fa-c: #0F8F64; --fa-soft: rgba(16, 150, 104, .08); }
html[data-theme="light"] .fa-card[data-tone="warning"] { --fa-c: #B7791F; --fa-soft: rgba(214, 150, 40, .1); }
html[data-theme="light"] .fa-card[data-tone="danger"]  { --fa-c: #C8434A; --fa-soft: rgba(200, 67, 74, .08); }

.fa-ic {
  position: relative; z-index: 1;
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex: none;
  color: var(--fa-c);
  background: var(--fa-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fa-c) 28%, transparent);
}
.fa-ic svg, .fa-tools svg, .fa-pop-ic svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.fa-body { position: relative; z-index: 1; flex: 1; min-width: 0; }
.fa-t { display: block; font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--fa-text); }
.fa-c { display: block; margin-top: 2px; font-size: 13px; line-height: 1.6; color: var(--fa-text-2); word-break: break-word; }
.fa-tools { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; flex: none; }
.fa-act {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 16px;
  border-radius: 9999px;
  background: var(--fa-cta);
  color: #fff !important;
  font-size: 13px; font-weight: 650;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 6px 16px -6px rgba(184, 90, 36, .5);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.2), filter .2s;
}
.fa-act:hover { transform: translateY(-1px); filter: brightness(1.06); }
.fa-nav { display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 3px; border-radius: 9999px; background: var(--fa-sub); border: 1px solid var(--fa-line); }
.fa-nav span { min-width: 34px; text-align: center; font-size: 12px; font-weight: 600; color: var(--fa-muted); font-variant-numeric: tabular-nums; }
.fa-btn {
  width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--fa-muted);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.fa-btn:hover { background: var(--fa-sub); color: var(--fa-text); }
.fa-btn svg { width: 15px; height: 15px; }
.fa-x { width: 32px; height: 32px; }
.fa-dots { display: none; }

@keyframes fa-in { from { opacity: 0; transform: translateY(-4px); } }
.fa-card.fa-swap { animation: fa-swap .45s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes fa-swap { from { opacity: .2; transform: translateX(8px); } }

/* 首次进站弹窗 */
.fa-pop-mask {
  position: fixed; inset: 0; z-index: 2147483000;
  display: grid; place-items: center;
  padding: 20px;
  background: var(--fa-mask, rgba(5, 7, 11, .62));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fa-fade .25s ease;
}
.fa-pop {
  position: relative;
  width: 100%; max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 30px 26px 24px;
  border-radius: 22px;
  text-align: center;
  animation: fa-pop .4s cubic-bezier(.2, .9, .3, 1.2);
  display: block; min-height: 0;
}
.fa-pop.fa-card::after { background: radial-gradient(360px 160px at 50% 0%, var(--fa-soft), transparent 72%); }
.fa-pop > * { position: relative; z-index: 1; }
.fa-pop-ic { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; color: var(--fa-c); background: var(--fa-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fa-c) 28%, transparent); }
.fa-pop-ic svg { width: 26px; height: 26px; }
.fa-pop h3 { margin: 0 0 8px; font-size: 18px; font-weight: 750; color: var(--fa-text); }
.fa-pop p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--fa-text-2); text-align: left; white-space: normal; word-break: break-word; }
.fa-pop-f { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.fa-pop-f .fa-act { height: 42px; padding: 0 22px; font-size: 14px; }
.fa-ok {
  height: 42px; padding: 0 22px;
  border-radius: 9999px;
  border: 1px solid var(--fa-line);
  background: var(--fa-sub);
  color: var(--fa-text);
  font: inherit; font-size: 14px; font-weight: 650;
  cursor: pointer;
}
.fa-pop-f .fa-ok:only-child { background: var(--fa-cta); color: #fff; border-color: transparent; min-width: 160px; }
@keyframes fa-fade { from { opacity: 0; } }
@keyframes fa-pop { from { opacity: 0; transform: translateY(12px) scale(.96); } }

@media (max-width: 640px) {
  .fubi-ann { padding: 0 14px; margin-top: 10px; }
  .fa-card { flex-wrap: wrap; align-items: flex-start; gap: 10px 12px; padding: 13px 12px 12px 14px; border-radius: 16px; }
  .fa-ic { width: 34px; height: 34px; border-radius: 11px; }
  .fa-body { flex-basis: calc(100% - 46px); }
  .fa-tools { width: 100%; justify-content: flex-end; }
  .fa-tools .fa-act { margin-right: auto; }
  .fa-pop { padding: 26px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .fa-card, .fa-pop, .fa-pop-mask, .fa-card.fa-swap { animation: none; }
}
