/* 官方严正声明：全站顶部通栏、首页飘动浮标与独立声明页 */

.xs-notice--statement {
  background: #141110;
  border-bottom: 1px solid rgba(196, 56, 56, 0.45);
  overflow: hidden;
  max-width: 100vw;
}

.xs-notice__statement-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}

.xs-notice__statement-link:hover {
  color: #ffd7d7;
}

.xs-notice__tag {
  flex: 0 0 auto;
  display: inline-block;
  padding: 1px 6px;
  border-radius: 2px;
  background: #b51f1f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.xs-notice__text {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xs-notice__cta {
  flex: 0 0 auto;
  color: #f3c87d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 首页飘动官方声明浮标（小巧精致、带 × 关闭按钮） */
.xs-float-statement {
  position: fixed;
  z-index: 995;
  right: 20px;
  top: 140px;
  width: 196px;
  background: rgba(18, 16, 15, 0.92);
  color: #fff;
  border: 1px solid rgba(243, 200, 125, 0.5);
  border-top: 2px solid #b51f1f;
  border-radius: 5px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.xs-float-statement__close {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  line-height: 17px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.18s ease;
}

.xs-float-statement__close:hover {
  background: #b51f1f;
}

.xs-float-statement__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 24px 9px 11px;
  color: #fff !important;
  text-decoration: none !important;
}

.xs-float-statement__badge {
  align-self: flex-start;
  display: inline-block;
  padding: 1px 6px;
  border-radius: 2px;
  background: #b51f1f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.35;
}

.xs-float-statement__title {
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.xs-float-statement__cta {
  font-size: 11px;
  color: #f3c87d;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.xs-float-statement:hover {
  border-color: #f3c87d;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

/* 独立官方声明页 */
.xs-statement-page {
  background: #faf9f7;
  padding: 44px 20px 72px;
}

.xs-statement-shell {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e6e2dc;
  padding: 52px 56px 56px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  overflow-wrap: break-word;
  word-break: break-word;
}

.xs-statement-hero {
  text-align: center;
  padding-bottom: 28px;
  border-bottom: 3px solid #b51f1f;
}

.xs-statement-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #b51f1f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 2px;
  margin-bottom: 16px;
}

.xs-statement-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.42;
  font-weight: 700;
  color: #111;
}

.xs-statement-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  font-size: 13px;
  color: #5d636b;
}

.xs-statement-body {
  margin-top: 32px;
}

.xs-statement-body h2,
.xs-statement-scan h2 {
  margin: 28px 0 14px;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 700;
  color: #111;
  border-left: 4px solid #b51f1f;
  padding-left: 12px;
}

.xs-statement-body p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.9;
  color: #24292f;
  text-align: justify;
}

.xs-statement-body a {
  color: #b51f1f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.xs-statement-body code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.92em;
  background: #f4f5f7;
  padding: 1px 6px;
  border-radius: 3px;
}

.xs-statement-signoff {
  margin-top: 26px !important;
  text-align: right !important;
  font-size: 17px !important;
  line-height: 2 !important;
  color: #111 !important;
}

.xs-statement-scan {
  margin-top: 40px;
}

.xs-statement-figure {
  margin: 16px 0 0;
  padding: 16px;
  background: #f6f5f3;
  border: 1px solid #e2ded8;
  text-align: center;
}

.xs-statement-figure img {
  display: block;
  width: 100%;
  max-width: 780px;
  height: auto;
  margin: 0 auto;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.xs-statement-actions {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid #ece8e2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.xs-statement-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid #222;
  color: #111;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}

.xs-statement-btn--primary {
  background: #111;
  color: #fff !important;
}

.xs-statement-btn:hover {
  background: #b51f1f;
  border-color: #b51f1f;
  color: #fff !important;
}

@media (max-width: 768px) {
  .xs-float-statement {
    top: auto;
    right: 12px;
    left: 12px;
    bottom: 66px;
    width: auto;
  }
  .xs-float-statement__link {
    padding: 11px 36px 11px 14px;
    gap: 4px;
  }
  .xs-float-statement__title {
    font-size: 14px;
  }
  .xs-statement-page {
    padding: 20px 12px 48px;
  }
  .xs-statement-shell {
    padding: 28px 18px 34px;
  }
  .xs-statement-body p {
    font-size: 15px;
    line-height: 1.85;
  }
  .xs-statement-actions {
    flex-direction: column;
  }
  .xs-statement-btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .xs-notice__cta {
    display: none;
  }
}
