.site-notice-open { overflow: hidden; }

.notice-button { position: relative; }
.site-notice-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #0b1020;
  border-radius: 999px;
  background: #fb5c72;
  color: #fff;
  font: 700 10px/14px Inter, "PingFang SC", sans-serif;
}

.site-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(2, 6, 23, .62);
  opacity: 0;
  transition: opacity .2s ease;
}
.site-notice-overlay.is-open { opacity: 1; }

.site-notice-drawer {
  position: fixed;
  z-index: 1100;
  top: 0;
  right: 0;
  width: min(440px, 94vw);
  height: 100dvh;
  padding: 26px 24px 20px;
  overflow: hidden;
  border-left: 1px solid #293452;
  background:
    radial-gradient(circle at 100% 0, rgba(244, 114, 182, .12), transparent 32%),
    #0e1528;
  box-shadow: -24px 0 64px rgba(0, 0, 0, .36);
  color: #eef2ff;
  transform: translateX(102%);
  transition: transform .22s ease;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.site-notice-drawer.is-open { transform: translateX(0); }
.site-notice-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.site-notice-eyebrow { color: #fb923c; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.site-notice-head h2 { margin: 5px 0 2px; font-size: 26px; line-height: 1.25; }
.site-notice-head p { margin: 0; color: #8996b6; font-size: 13px; }
.site-notice-close {
  width: 38px;
  height: 38px;
  border: 1px solid #33415f;
  border-radius: 12px;
  background: #151e34;
  color: #cbd5e1;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.site-notice-close:hover { border-color: #fb923c; color: #fff; }
.site-notice-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 14px; }
.site-notice-filters { display: flex; padding: 3px; border: 1px solid #2c3855; border-radius: 11px; background: #111a2e; }
.site-notice-filters button,
.site-notice-read-all {
  border: 0;
  background: transparent;
  color: #8491af;
  font: 600 12px/1 Inter, "PingFang SC", sans-serif;
  cursor: pointer;
}
.site-notice-filters button { padding: 8px 12px; border-radius: 8px; }
.site-notice-filters button.is-active { background: #26375f; color: #e8efff; }
.site-notice-read-all { padding: 8px 0; color: #7db5ff; }
.site-notice-list { height: calc(100dvh - 145px); padding: 2px 4px 34px 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #34405e transparent; }
.site-notice-card { position: relative; margin-bottom: 12px; border: 1px solid #283552; border-radius: 15px; background: rgba(20, 29, 51, .92); overflow: hidden; }
.site-notice-card.is-unread { border-color: #4b63a0; box-shadow: inset 3px 0 #fb923c; }
.site-notice-card summary { position: relative; padding: 16px 40px 16px 17px; list-style: none; cursor: pointer; }
.site-notice-card summary::-webkit-details-marker { display: none; }
.site-notice-card summary::after { content: "+"; position: absolute; top: 16px; right: 16px; color: #7180a2; font-size: 20px; line-height: 1; }
.site-notice-card[open] summary::after { content: "−"; color: #fb923c; }
.site-notice-card-topline { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.site-notice-card-topline time { margin-left: auto; color: #7180a2; font-size: 11px; }
.site-notice-category,
.site-notice-pinned { padding: 4px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.site-notice-category { color: #9ec9ff; background: rgba(59, 130, 246, .14); }
.site-notice-category.is-important { color: #ffc47b; background: rgba(249, 115, 22, .16); }
.site-notice-category.is-feature { color: #d0b6ff; background: rgba(139, 92, 246, .18); }
.site-notice-pinned { color: #ff8fa4; background: rgba(244, 63, 94, .13); }
.site-notice-card summary strong { display: block; margin-bottom: 6px; color: #f5f7ff; font-size: 15px; line-height: 1.45; }
.site-notice-summary { display: block; color: #9aa7c4; font-size: 13px; line-height: 1.7; }
.site-notice-body { padding: 0 17px 18px; border-top: 1px solid #283552; color: #b5bfd6; font-size: 13px; line-height: 1.85; }
.site-notice-body p { margin: 13px 0 0; }
.site-notice-action { display: inline-flex; gap: 6px; align-items: center; margin-top: 15px; color: #88bfff; font-weight: 700; text-decoration: none; }
.site-notice-action:hover { color: #b9d8ff; }
.site-notice-empty { display: grid; place-items: center; min-height: 260px; color: #7885a3; text-align: center; }
.site-notice-empty span { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #33415f; border-radius: 16px; color: #61d9ad; font-size: 24px; }
.site-notice-empty strong { margin-top: 14px; color: #cbd5e1; }
.site-notice-empty p { margin: 6px 0 0; font-size: 13px; }

.site-customer-service {
  position: fixed;
  z-index: 960;
  right: 20px;
  bottom: 110px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.site-customer-trigger {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 52px;
  height: 52px;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid rgba(104, 241, 188, .45);
  border-radius: 18px;
  background: linear-gradient(145deg, #16b77e, #0b8f64);
  box-shadow: 0 12px 30px rgba(1, 78, 55, .32);
  color: #fff;
  cursor: pointer;
  transition: width .2s ease, transform .18s ease, box-shadow .18s ease;
}
.site-customer-trigger svg { width: 24px; height: 24px; flex: 0 0 24px; }
.site-customer-trigger > span { margin-left: 9px; overflow: hidden; font-size: 13px; font-weight: 800; white-space: nowrap; opacity: 0; transition: opacity .12s ease .04s; }
.site-customer-trigger:hover,
.site-customer-trigger:focus-visible,
.site-customer-trigger[aria-expanded="true"] { width: 112px; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(1, 78, 55, .4); }
.site-customer-trigger:hover > span,
.site-customer-trigger:focus-visible > span,
.site-customer-trigger[aria-expanded="true"] > span { opacity: 1; }
.site-customer-trigger.is-first-visit { animation: site-customer-pulse 1.1s ease-in-out 2; }
@keyframes site-customer-pulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(1, 78, 55, .32); }
  50% { box-shadow: 0 12px 30px rgba(1, 78, 55, .32), 0 0 0 8px rgba(52, 211, 153, .12); }
}
.site-customer-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 330px;
  padding: 18px;
  border: 1px solid #31405e;
  border-radius: 20px;
  background:
    radial-gradient(circle at 15% 0, rgba(52, 211, 153, .10), transparent 34%),
    #11192c;
  box-shadow: 0 22px 58px rgba(0, 0, 0, .42);
  color: #eef2ff;
  opacity: 0;
  transform: translateY(10px) scale(.98);
  transform-origin: right bottom;
  transition: opacity .18s ease, transform .18s ease;
}
.site-customer-panel.is-open { opacity: 1; transform: translateY(0) scale(1); }
.site-customer-head { display: grid; grid-template-columns: 40px 1fr 34px; gap: 11px; align-items: center; }
.site-customer-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: rgba(16, 185, 129, .16); color: #5ee1ae; font-size: 16px; font-weight: 900; }
.site-customer-head h2 { margin: 0; color: #f4f7ff; font-size: 17px; }
.site-customer-head p { margin: 4px 0 0; color: #8390ad; font-size: 12px; }
.site-customer-close { width: 34px; height: 34px; padding: 0; border: 1px solid #34415e; border-radius: 10px; background: #151e34; color: #a7b2ca; font-size: 22px; line-height: 1; cursor: pointer; }
.site-customer-close:hover { border-color: #4ed8a3; color: #fff; }
.site-customer-qr-card { display: grid; place-items: center; width: 220px; min-height: 220px; margin: 18px auto 12px; padding: 16px; border-radius: 18px; background: #fff; }
.site-customer-qr { display: grid; place-items: center; width: 188px; height: 188px; }
.site-customer-qr :is(canvas, img, svg) { display: block; width: 188px !important; height: 188px !important; }
.site-customer-qr-fallback { margin: 0; color: #475569; font-size: 12px; line-height: 1.6; text-align: center; }
.site-customer-scan-title { display: block; color: #e8eefb; font-size: 14px; text-align: center; }
.site-customer-scope { margin: 6px 0 14px; color: #8390ad; font-size: 12px; line-height: 1.6; text-align: center; }
.site-customer-open-link,
.site-customer-copy { display: flex; align-items: center; justify-content: center; width: 100%; height: 42px; border-radius: 12px; font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer; }
.site-customer-open-link { border: 1px solid rgba(92, 229, 176, .4); background: linear-gradient(135deg, #13aa76, #0b8f64); color: #fff; }
.site-customer-open-link:hover { filter: brightness(1.08); }
.site-customer-open-link span { margin-left: 6px; }
.site-customer-copy { margin-top: 8px; border: 1px solid #33415f; background: #151e34; color: #9eb0cf; }
.site-customer-copy:hover { border-color: #526584; color: #e5ebf8; }
.site-customer-footnote { margin: 10px 0 0; color: #66748f; font-size: 11px; text-align: center; }
body.modal-open .site-customer-service,
body.dtip-modal-open .site-customer-service { opacity: 0; pointer-events: none; }

@media (max-width: 640px) {
  .site-notice-drawer { top: auto; bottom: 0; width: 100%; height: min(82dvh, 720px); padding: 22px 18px 12px; border-top: 1px solid #34415f; border-left: 0; border-radius: 22px 22px 0 0; transform: translateY(102%); }
  .site-notice-drawer.is-open { transform: translateY(0); }
  .site-notice-head h2 { font-size: 22px; }
  .site-notice-tools { align-items: flex-end; }
  .site-notice-filters button { padding: 8px 10px; }
  .site-notice-read-all { font-size: 11px; }
  .site-notice-list { height: calc(min(82dvh, 720px) - 134px); }
  .site-customer-service { right: max(16px, env(safe-area-inset-right)); bottom: max(78px, calc(env(safe-area-inset-bottom) + 62px)); }
  .site-customer-trigger,
  .site-customer-trigger:hover,
  .site-customer-trigger:focus-visible,
  .site-customer-trigger[aria-expanded="true"] { width: 48px; height: 48px; padding: 0 12px; border-radius: 16px; transform: none; }
  .site-customer-trigger > span { display: none; }
  .site-customer-panel { right: 0; bottom: 58px; width: min(330px, calc(100vw - 32px)); max-height: min(690px, calc(100dvh - 92px)); overflow: auto; padding: 17px; }
  .site-customer-qr-card { width: 168px; min-height: 168px; padding: 13px; }
  .site-customer-qr,
  .site-customer-qr :is(canvas, img, svg) { width: 142px !important; height: 142px !important; }
  .site-customer-open-link { height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-customer-trigger.is-first-visit { animation: none; }
  .site-customer-trigger,
  .site-customer-panel { transition: none; }
}
