/* ===== 更新公告弹窗 V1 ===== */

/* 遮罩层 */
.update-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(30, 64, 32, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 公告卡片 */
.update-notice-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid rgba(216, 237, 216, 0.4);
  border-radius: 24px;
  box-shadow: 0 12px 48px rgba(60, 120, 45, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
  max-width: 420px;
  width: 100%;
  overflow: hidden;
  animation: cardSlideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

@keyframes cardSlideUp {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 信纸纹理装饰 */
.update-notice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 31px,
      rgba(90, 154, 70, 0.03) 31px,
      rgba(90, 154, 70, 0.03) 32px
    );
  pointer-events: none;
  z-index: 1;
}

/* 头部 */
.update-notice-header {
  padding: 28px 24px 20px;
  text-align: center;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(90, 154, 70, 0.12);
}

.update-notice-title {
  font-size: 22px;
  font-weight: 700;
  color: #1e4020;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.update-notice-date {
  font-size: 12px;
  color: rgba(40, 90, 30, 0.5);
  letter-spacing: 1px;
  font-family: 'Cormorant Garamond', serif;
}

/* 内容区 */
.update-notice-body {
  padding: 24px;
  position: relative;
  z-index: 2;
  max-height: 60vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.update-notice-section {
  margin-bottom: 20px;
}

.update-notice-section:last-child {
  margin-bottom: 0;
}

.update-notice-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #2d6028;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.update-notice-section-title::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #5a9a46;
}

.update-notice-content {
  font-size: 13.5px;
  line-height: 1.7;
  color: #3a5a3c;
  margin-bottom: 8px;
}

.update-notice-content:last-child {
  margin-bottom: 0;
}

.update-notice-note {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(60, 120, 45, 0.65);
  padding: 10px 12px;
  background: rgba(90, 160, 70, 0.06);
  border-left: 2px solid rgba(90, 160, 70, 0.25);
  border-radius: 6px;
  margin-top: 8px;
}

/* 按钮区 */
.update-notice-footer {
  padding: 16px 24px 24px;
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.update-notice-btn {
  flex: 1;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
  letter-spacing: 0.3px;
}

.update-notice-btn:active {
  transform: scale(0.96);
}

/* 次要按钮 - 不再提醒 */
.update-notice-btn-secondary {
  background: rgba(90, 160, 70, 0.08);
  color: #5a9a46;
  border: 1.5px solid rgba(90, 160, 70, 0.2);
}

.update-notice-btn-secondary:hover {
  background: rgba(90, 160, 70, 0.12);
}

/* 主要按钮 - 知道了 */
.update-notice-btn-primary {
  background: linear-gradient(135deg, #5a9a46, #7dba5a);
  color: white;
  border: none;
  box-shadow: 0 4px 14px rgba(90, 154, 70, 0.25);
}

.update-notice-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(90, 154, 70, 0.35);
}


/* ===== Go Chat Update Notice V7 Visual Polish ===== */

/* 压缩顶部空间 */
.update-notice-header {
  padding: 22px 24px 14px;
}

/* 标题更接近奶油玫瑰棕风格 */
.update-notice-title {
  color: #5b4035;
  font-size: 24px;
  letter-spacing: 1px;
}

.update-notice-date {
  margin-top: 6px;
  color: #8b6255;
  font-size: 12px;
}

/* 内容区域更像信纸卡片 */
.update-notice-section {
  background: rgba(255, 248, 238, 0.42);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.update-notice-section:last-child {
  margin-bottom: 0;
}

.update-notice-section-title {
  color: #8b6255;
}

.update-notice-content {
  color: #49372f;
}

/* 提示块 */
.update-notice-note {
  background: rgba(164, 123, 107, 0.1);
  color: #7d5b4d;
}

/* 按钮更柔和 */
.update-notice-btn-secondary {
  background: rgba(255, 248, 238, 0.7);
  color: #8b6255;
}

.update-notice-btn-primary {
  background: #a47b6b;
}


/* ===== Go Chat Update Notice Final Letter Layer ===== */

/* 信纸底图：使用项目已有路径 */
.update-notice-card {
  background-image: url("images/update-notice/update-notice-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 去除玻璃感 */
.update-notice-card::before {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 31px,
      rgba(120,80,60,.03) 31px,
      rgba(120,80,60,.03) 32px
    );
}

/* 标题贴在信纸上 */
.update-notice-header {
  background: transparent;
  text-align: left;
  min-height: 130px;
  padding: 28px 28px 10px;
}

.update-notice-brand {
  color: #9b7566;
  letter-spacing: 3px;
}

.update-notice-title {
  color: #5b4035;
  font-size: 32px;
  font-weight: 500;
}

.update-notice-date {
  color: #8b6255;
}

/* 内容直接融入信纸 */
.update-notice-body {
  background: rgba(255,248,238,.35);
  margin: 0 18px;
  border-radius: 20px;
  padding: 18px 24px;
}

.update-notice-section {
  background: rgba(255,248,238,.18);
  margin-bottom: 12px;
  padding: 8px 4px;
}

.update-notice-section-title::before {
  display: none;
}

.update-notice-section-title {
  color: #8b6255;
}

/* 猫猫右上装饰 */
.dev-cat {
  position: absolute;
  width: 180px;
  right: 10px;
  top: 10px;
  z-index: 5;
}

/* 公告文字 footer（在按钮区之前显示） */
.update-notice-text-footer {
  font-size: 12px;
  line-height: 1.7;
  color: #8b6255;
  text-align: center;
  padding: 0 24px 4px;
  position: relative;
  z-index: 2;
}
