/* ===== 全局基础样式 ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #0a0a0a;
  color: #e8e8e8;
  overflow: hidden;
  height: 100vh;
  user-select: none;
  /* 页面切换淡入 */
  animation: page-fade-in 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ===== macOS 壁纸（共享 - macOS Sequoia 风格） ===== */
.macos-wallpaper {
  background:
    /* 柔和波纹 */
    radial-gradient(ellipse 60% 50% at 25% 80%, rgba(255,120,180,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 75% 20%, rgba(100,160,255,0.22) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(130,100,200,0.15) 0%, transparent 65%),
    /* 多彩曲线底 */
    linear-gradient(135deg, #1a1a3e 0%, #2d1b4e 15%, #1e3a5f 30%, #1a4a4a 45%, #2e4a6e 60%, #3a3a5e 75%, #2a2a4e 100%);
}

/* ===== 锁屏页（macOS Sonoma 风格） ===== */
.lockscreen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lockscreen::before {
  content: '';
  position: absolute;
  inset: 0;
  /* macOS Sequoia 风格壁纸 */
  background:
    /* 柔和光斑 */
    radial-gradient(ellipse 55% 45% at 20% 75%, rgba(255,120,180,0.15) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 25%, rgba(100,160,255,0.18) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(130,100,200,0.12) 0%, transparent 60%),
    /* 多彩底色 */
    linear-gradient(135deg, #1a1a3e 0%, #2d1b4e 15%, #1e3a5f 30%, #1a4a4a 45%, #2e4a6e 60%, #3a3a5e 75%, #2a2a4e 100%);
}
.lockscreen::after {
  content: '';
  position: absolute;
  inset: 0;
  /* 麻布纹理 + 细网格 */
  background:
    /* 细网格 */
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px),
    /* 噪点 */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.7;
}
/* 磨砂顶栏 */
.lockscreen .menubar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.lockscreen .menubar .right-icons {
  display: flex;
  gap: 14px;
  align-items: center;
  opacity: 0.75;
}
.lockscreen .time {
  font-size: 110px;
  font-weight: 100;
  color: #fff;
  letter-spacing: 6px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
  z-index: 1;
  font-variant-numeric: tabular-nums;
  margin-top: -40px;
}
.lockscreen .date {
  font-size: 20px;
  color: rgba(255,255,255,0.85);
  margin-top: 6px;
  letter-spacing: 1.5px;
  z-index: 1;
}
.lockscreen .avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 12px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 2px solid rgba(255,255,255,0.25);
  z-index: 1;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.lockscreen .avatar svg { width: 56px; height: 56px; opacity: 0.85; }
.lockscreen .name {
  color: #fff;
  font-size: 19px;
  margin-bottom: 24px;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 1;
  font-weight: 400;
}
/* 胶囊密码框 */
.lockscreen .pwd-wrap {
  display: flex;
  align-items: center;
  width: 380px;
  max-width: 90vw;
  height: 52px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
  padding: 0 6px 0 14px;
  z-index: 1;
}
.lockscreen .pwd-wrap .lock-icon {
  width: 22px;
  height: 22px;
  opacity: 0.8;
  margin-right: 12px;
  flex-shrink: 0;
}
.lockscreen .pwd-wrap .pwd-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  letter-spacing: 4px;
  padding: 0 8px;
  height: 100%;
}
.lockscreen .pwd-wrap .pwd-input::placeholder {
  color: rgba(255,255,255,0.55);
  letter-spacing: 1px;
}
.lockscreen .pwd-wrap .unlock-btn {
  height: 40px;
  padding: 0 22px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(90deg, #4f9dff, #3a82e0);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  flex-shrink: 0;
  letter-spacing: 2px;
  box-shadow: 0 4px 16px rgba(63,139,240,0.4);
}
.lockscreen .pwd-wrap .unlock-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 20px rgba(63,139,240,0.55);
}
.lockscreen .pwd-wrap .unlock-btn:active {
  transform: scale(0.97);
}
.lockscreen .hint {
  margin-top: 18px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1px;
  z-index: 1;
}
.lockscreen .err {
  color: #ff8a80;
  font-size: 13px;
  margin-top: 12px;
  height: 16px;
  z-index: 1;
}

/* ===== 桌面 ===== */
.desktop {
  position: fixed;
  inset: 0;
  background:
    /* macOS Sequoia 风格多彩壁纸 */
    radial-gradient(ellipse 55% 45% at 20% 75%, rgba(255,120,180,0.15) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 25%, rgba(100,160,255,0.18) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(130,100,200,0.12) 0%, transparent 60%),
    linear-gradient(135deg, #1a1a3e 0%, #2d1b4e 15%, #1e3a5f 30%, #1a4a4a 45%, #2e4a6e 60%, #3a3a5e 75%, #2a2a4e 100%);
}
.desktop::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* 顶部菜单栏 */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  z-index: 10;
  gap: 14px;
}
.topbar .apple {
  width: 14px; height: 16px;
  opacity: 0.9;
  display: inline-block;
  filter: brightness(0) invert(1);
}
.topbar .menu-item {
  font-weight: 600;
  font-size: 13px;
  cursor: default;
}
.topbar .menu-item.normal {
  font-weight: 400;
}
.topbar .right-icons {
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}
.topbar .right-icons .icon-link {
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  text-decoration: none;
  color: inherit;
}
.topbar .right-icons .icon-link:hover {
  opacity: 1;
}
.topbar .clock {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* 桌面图标网格（macOS 风格，左侧竖排） */
.desktop-icons {
  position: absolute;
  top: 40px;
  left: 16px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 4px;
  height: calc(100vh - 140px);
  max-width: 360px;
}
.desktop-icons .icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 88px;
  position: relative;
}
.desktop-icons .icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity 0.2s;
}
.desktop-icons .icon:hover::before {
  opacity: 1;
}
.desktop-icons .icon:hover {
  filter: brightness(1.15);
  transform: scale(1.08);
}
.desktop-icons .icon:active {
  transform: scale(0.95);
  transition: transform 0.1s;
}
.desktop-icons .icon .img {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.4));
  position: relative;
  z-index: 1;
}
.desktop-icons .icon .img img {
  width: 100%;
  height: 100%;
}
.desktop-icons .icon .label {
  color: #fff;
  font-size: 11px;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.6);
  font-weight: 400;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 底部 Dock 栏（macOS 风格） */
.dock {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  z-index: 20;
  max-width: 95vw;
  overflow: visible;
}
.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  position: relative;
}
.dock-item:hover {
  transform: translateY(-8px) scale(1.15);
  filter: brightness(1.2) drop-shadow(0 12px 24px rgba(0,0,0,0.5));
}
.dock-item:active {
  transform: translateY(-4px) scale(1.05);
  transition: all 0.1s;
}
.dock-item .dock-img {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.4));
}
.dock-item .dock-img img {
  width: 100%;
  height: 100%;
}
.dock-item .dock-label {
  position: absolute;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(40,40,40,0.92);
  color: #fff;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1000;
}
.dock-item .dock-label::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(40,40,40,0.92);
}
.dock-item:hover .dock-label {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dock-separator {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  margin: 0 4px;
  flex-shrink: 0;
}

/* ===== 窗口通用样式 ===== */
.window {
  position: fixed;
  inset: 0;
  background: rgba(250,250,252,0.98);
  color: #1a1a1a;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(40px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2), 0 40px 100px rgba(0,0,0,0.4);
  /* 窗口打开动画 */
  animation: window-open 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes window-open {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.window-bar {
  height: 38px;
  background: linear-gradient(180deg, #f5f5f7 0%, #e8e8ed 100%);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 13px;
  color: #333;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
}
.window-bar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: rgba(0,0,0,0.05);
}
/* macOS 交通灯按钮 */
.window-bar .traffic-lights {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
  margin-right: 4px;
}
.window-bar .traffic-lights .tl {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: filter 0.15s;
  position: relative;
}
.window-bar .traffic-lights .tl.close { background: #ff5f57; }
.window-bar .traffic-lights .tl.minimize { background: #ffbd2e; }
.window-bar .traffic-lights .tl.maximize { background: #28c840; }
.window-bar .traffic-lights .tl:hover { filter: brightness(0.85); }
.window-bar .traffic-lights .tl:active { transform: scale(0.9); }
/* 不显示交通灯时占位 */
.window-bar .traffic-lights.empty {
  visibility: hidden;
}
.window-bar .back {
  color: #007aff;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.window-bar .back:hover {
  background: rgba(0,122,255,0.1);
}
.window-bar .title { 
  font-weight: 500; 
  flex: 1; 
  text-align: center;
  color: #333;
}
.window-body {
  flex: 1;
  overflow-y: auto;
  background: #fafafa;
  -webkit-overflow-scrolling: touch;
}

/* ===== 备忘录 ===== */
.notes-list { padding: 8px 0; }
.note-item {
  padding: 16px 24px;
  border-bottom: 1px solid #ececec;
  cursor: pointer;
  transition: background 0.15s;
}
.note-item:hover { background: #f0f0f0; }
.note-item .note-title { font-size: 15px; font-weight: 500; color: #1a1a1a; }
.note-item .note-preview {
  font-size: 12px; color: #999; margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.note-item .note-date { font-size: 11px; color: #bbb; margin-top: 4px; }
.note-item.deleted {
  opacity: 0.5;
  cursor: default;
}
.note-item.deleted:hover { background: transparent; }

.note-detail { padding: 28px 24px; }
.note-detail h2 { font-size: 22px; margin-bottom: 8px; color: #1a1a1a; }
.note-detail .meta { font-size: 12px; color: #999; margin-bottom: 24px; }
.note-detail .content { font-size: 15px; line-height: 1.9; color: #333; white-space: pre-wrap; }
.note-detail .content .hint-text { 
  color: #d9707e; 
  font-weight: 500;
  background: #fff5f7;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  margin: 2px 0;
}
.note-detail .deleted-notice {
  background: #f5f5f5;
  color: #999;
  padding: 24px;
  text-align: center;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.8;
}
.note-detail .deleted-notice .icon { font-size: 36px; margin-bottom: 12px; }

/* ===== 微信 ===== */
.wechat-list { padding: 0; }
.wechat-header {
  background: #ededed;
  padding: 16px 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid #dcdcdc;
}
.chat-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  gap: 14px;
  transition: background 0.15s;
}
.chat-item:hover { background: #f5f5f5; }
.chat-item .avatar {
  width: 48px; height: 48px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.chat-item .info { flex: 1; min-width: 0; }
.chat-item .name { font-size: 15px; color: #1a1a1a; font-weight: 500; }
.chat-item .last { font-size: 12px; color: #999; margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chat-window { display: flex; flex-direction: column; height: 100%; }
.chat-window .chat-header {
  background: #ededed; padding: 14px 16px;
  text-align: center; font-size: 15px; font-weight: 500;
  border-bottom: 1px solid #dcdcdc; flex-shrink: 0;
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  background: #f5f5f5; display: flex; flex-direction: column; gap: 14px;
}
.msg {
  max-width: 72%; padding: 12px 16px; border-radius: 12px;
  font-size: 14px; line-height: 1.55; word-break: break-word;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  animation: msg-in 0.3s ease;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg.from-them {
  align-self: flex-start; background: #fff; color: #1a1a1a;
  border-bottom-left-radius: 4px;
}
.msg.from-me {
  align-self: flex-end; background: #95ec69; color: #1a1a1a;
  border-bottom-right-radius: 4px;
}
.msg .sender { font-size: 11px; color: #999; margin-bottom: 4px; }
.msg .key-info { color: #c62828; font-weight: 600; }
.msg .link {
  color: #576b95; text-decoration: underline; cursor: pointer;
}

/* ===== 登录页 ===== */
.login-page {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%;
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px;
}
.login-page .login-logo {
  width: 80px; height: 80px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: #fff; margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.login-page .login-title {
  font-size: 20px; color: #1a1a1a; margin-bottom: 6px;
  font-weight: 600;
}
.login-page .login-sub {
  font-size: 13px; color: #888; margin-bottom: 32px; text-align: center;
  line-height: 1.6;
}
.login-page .login-form { width: 100%; max-width: 320px; }
.login-page .login-input {
  width: 100%; padding: 14px 18px; border: 1.5px solid #ddd;
  border-radius: 10px; font-size: 16px; margin-bottom: 14px;
  outline: none; transition: all 0.2s;
  background: #fff;
}
.login-page .login-input:focus { 
  border-color: #007aff; 
  box-shadow: 0 0 0 3px rgba(0,122,255,0.1);
}
.login-page .login-btn {
  width: 100%; padding: 14px; background: #07c160;
  color: #fff; border: none; border-radius: 10px;
  font-size: 15px; font-weight: 500;
  transition: all 0.2s;
}
.login-page .login-btn:hover { background: #06ae56; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(7,193,96,0.3); }
.login-page .login-btn:disabled { background: #a0e8b8; cursor: not-allowed; }
.login-page .login-err { color: #fa5151; font-size: 12px; text-align: center; margin-top: 10px; min-height: 18px; }
.login-page .login-tip { margin-top: 28px; font-size: 12px; color: #999; text-align: center; line-height: 1.6; }

/* ===== 进度条 ===== */
.progress-footer {
  position: fixed; bottom: 0; left: 0;
  background: rgba(0,0,0,0.4); color: rgba(255,255,255,0.6);
  font-size: 10px; padding: 4px 12px;
  display: flex; align-items: center; gap: 8px;
  z-index: 50; backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0 6px 0 0;
  border: 1px solid rgba(255,255,255,0.05);
  border-bottom: none; border-left: none;
}
.progress-footer a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.progress-footer a:hover { color: rgba(255,255,255,0.8); }
.progress-bar {
  width: 80px; height: 3px;
  background: rgba(255,255,255,0.1); border-radius: 2px;
  overflow: hidden;
}
.progress-bar .fill {
  height: 100%;
  background: rgba(255,255,255,0.5);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 提示页 ===== */
.hints-page { padding: 28px 24px 80px; max-width: 720px; margin: 0 auto; }
.hints-page h1 { font-size: 24px; margin-bottom: 10px; color: #1a1a1a; }
.hints-page .intro { font-size: 13px; color: #777; margin-bottom: 28px; line-height: 1.7; }
.hint-card {
  background: #f9f9fb; border-left: 4px solid #ffd60a;
  padding: 16px 18px; margin-bottom: 12px; border-radius: 8px;
  transition: all 0.2s;
}
.hint-card:hover { background: #fff8e1; }
.hint-card .hint-level {
  font-size: 11px; color: #b8860b; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.hint-card .hint-content { font-size: 14px; color: #444; line-height: 1.7; }
.hint-card.lv2 { border-left-color: #ff9500; background: #fff8f0; }
.hint-card.lv2 .hint-level { color: #cc6600; }
.hint-card.lv3 { border-left-color: #fa5151; background: #fff5f5; }
.hint-card.lv3 .hint-level { color: #c0392b; }
.hint-card .spoiler {
  display: inline-block; background: #2a2a2a; color: transparent;
  padding: 3px 10px; border-radius: 4px; cursor: pointer;
  transition: all 0.3s;
  user-select: none;
}
.hint-card .spoiler:hover { color: transparent; background: #444; }
.hint-card .spoiler.revealed { background: #ff6b6b; color: #fff; font-weight: 600; }

/* ===== 结局 ===== */
.ending {
  position: fixed; inset: 0; background: #050505;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 40px 24px; overflow-y: auto;
  animation: ending-fade-in 1.5s ease;
}
@keyframes ending-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ending .sending {
  font-size: 15px; color: #ff8c42; margin-bottom: 28px;
  letter-spacing: 3px;
  font-weight: 300;
}
.ending .sending .dot {
  animation: blink 1.2s infinite;
  display: inline-block;
}
.ending .sending .dot:nth-child(2) { animation-delay: 0.2s; }
.ending .sending .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 50% { opacity: 0.2; } }
.ending .letter {
  max-width: 600px; background: linear-gradient(180deg, #fefcf5 0%, #fdf9ee 100%);
  color: #2c2416;
  padding: 48px 40px; border-radius: 12px;
  font-family: "Georgia", "Songti SC", serif;
  line-height: 2; font-size: 15px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
}
.ending .letter::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #ff8c42, #ff6b6b, #b39ddb);
  border-radius: 12px 12px 0 0;
}
.ending .letter h2 {
  font-size: 22px; margin-bottom: 20px; text-align: center;
  color: #8b4513; font-weight: 500;
}
.ending .letter p { margin-bottom: 16px; }
.ending .letter .sign {
  text-align: right; margin-top: 28px;
  font-style: italic; color: #8b4513;
}
.ending .restart {
  margin-top: 36px; padding: 10px 32px;
  background: transparent; border: 1px solid #555;
  color: #aaa; border-radius: 6px; font-size: 13px;
  transition: all 0.2s;
}
.ending .restart:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.05); }

/* 坏结局 */
.ending.bad-ending { background: #0a0000; }
.ending.bad-ending .letter { background: linear-gradient(180deg, #1a1a1a 0%, #111 100%); color: #ccc; }
.ending.bad-ending .letter::before { background: linear-gradient(90deg, #666, #333, #111); }
.ending.bad-ending .letter h2 { color: #888; }
.ending.bad-ending .letter .sign { color: #888; }
.ending.bad-ending .sending { color: #666; }

/* 坏结局后日谈：letter 显示后由 JS 切换 display，逐句淡入（延迟从"显示时刻"起算） */
.ending .postscript {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px dashed rgba(255,255,255,0.1);
  animation: ps-fade-in 1.2s ease forwards;  /* 显示即开始淡入，不再叠加 6s 延迟 */
}
@keyframes ps-fade-in { to { opacity: 1; } }
.ending .postscript .ps-label {
  font-size: 12px;
  letter-spacing: 3px;
  color: rgba(180,180,180,0.5);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.ending .postscript p {
  margin-bottom: 12px;
  font-size: 13px;
  color: rgba(204,204,204,0.7);
  line-height: 1.8;
  opacity: 0;
  animation: ps-line-in 1.2s ease forwards;
}
.ending .postscript p:nth-of-type(2) { animation-delay: 1.2s; }
.ending .postscript p:nth-of-type(3) { animation-delay: 2.6s; }
.ending .postscript p:nth-of-type(4) { animation-delay: 4s; }
.ending .postscript p:nth-of-type(5) { animation-delay: 5.4s; }
.ending .postscript .ps-final {
  margin-top: 28px;
  font-size: 16px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.92);
  font-weight: 300;
  animation-delay: 7s;
}
@keyframes ps-line-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 无事发生结局 */
.ending.neutral-ending { background: #0a0a12; }
.ending.neutral-ending .letter { background: linear-gradient(180deg, #f0f0f5 0%, #e8e8ed 100%); color: #555; }
.ending.neutral-ending .letter::before { background: linear-gradient(90deg, #aaa, #999, #bbb); }
.ending.neutral-ending .letter h2 { color: #777; }
.ending.neutral-ending .letter .sign { color: #999; }
.ending.neutral-ending .sending { color: #999; }

/* ===== 通用 toast ===== */
.toast {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.92); color: #fff;
  padding: 14px 28px; border-radius: 12px;
  font-size: 14px; z-index: 9999;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  animation: toast-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, -40%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* ===== "我"的内心独白（左下角半透明卡片） ===== */
.monologue {
  position: fixed; bottom: 28px; left: 28px;
  max-width: 320px;
  background: rgba(20,20,30,0.78);
  color: rgba(255,255,255,0.85);
  padding: 14px 18px 14px 22px;
  border-radius: 10px;
  border-left: 2px solid rgba(180,180,200,0.45);
  font-size: 13px; line-height: 1.7;
  z-index: 9998;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  letter-spacing: 0.3px;
  animation: mono-in 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
  user-select: none;
  font-style: italic;
}
.monologue .mono-quote {
  color: rgba(180,180,200,0.55);
  font-size: 16px;
  font-style: normal;
}
@keyframes mono-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 滚动条美化 ===== */
.window-body::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar {
  width: 6px;
}
.window-body::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}
.window-body::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}
.window-body::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.4);
}

/* ===== 密码错误动画 ===== */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}
.shake {
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* ===== 开场白 ===== */
.intro-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(79, 195, 247, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 80%, rgba(255, 112, 67, 0.04) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, #0d1020 0%, #060810 50%, #020308 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  z-index: 9999;
}
.intro-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}
.intro-content {
  max-width: 560px;
  width: 90%;
  max-height: 75vh;
  overflow-y: auto;
  padding: 20px 0;
  z-index: 1;
  scrollbar-width: none;
}
.intro-content::-webkit-scrollbar { display: none; }
.intro-line {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 2.2;
  letter-spacing: 1px;
  font-family: "Georgia", "Songti SC", "Noto Serif SC", serif;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  animation: line-fade-in 0.4s ease;
}
@keyframes line-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.intro-skip {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
  animation: blink 2s infinite;
  z-index: 2;
}
.intro-continue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  letter-spacing: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  cursor: pointer;
}
.intro-continue.show {
  animation: btn-pulse 2s ease-in-out infinite;
}
.intro-continue:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1); }
  50% { box-shadow: 0 0 20px 4px rgba(255, 255, 255, 0.08); }
}

/* 音乐控制按钮 */
.intro-music-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}
.intro-music-btn:hover {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
}
.intro-music-btn.muted {
  opacity: 0.4;
}

/* ===== 论坛页 ===== */
.forum-page {
  padding: 0;
  background: #f5f5f5;
  min-height: 100%;
}
.forum-search-bar {
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.forum-search-bar .search-wrap {
  display: flex;
  align-items: center;
  background: #f0f0f0;
  border-radius: 20px;
  padding: 0 16px;
  height: 40px;
  transition: all 0.2s;
}
.forum-search-bar .search-wrap:focus-within {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0,122,255,0.2);
}
.forum-search-bar .search-icon {
  color: #999;
  margin-right: 8px;
  flex-shrink: 0;
}
.forum-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: #333;
}
.forum-search-bar input::placeholder {
  color: #bbb;
}
.forum-search-bar .search-clear {
  color: #bbb;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  display: none;
}
.forum-search-bar .search-clear.visible { display: block; }
.forum-search-hint {
  padding: 8px 20px;
  font-size: 11px;
  color: #aaa;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}
.forum-search-hint span {
  color: #d9707e;
  cursor: pointer;
  border-bottom: 1px dashed #d9707e;
}
.forum-section {
  margin: 16px 20px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.forum-section .section-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.forum-post {
  padding: 14px 16px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.forum-post:last-child { border-bottom: none; }
.forum-post:hover { background: #fafafa; }
.forum-post .post-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; flex-shrink: 0;
}
.forum-post .post-body { flex: 1; min-width: 0; }
.forum-post .post-title {
  font-size: 14px; color: #1a1a1a; font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.4;
}
.forum-post .post-title .tag {
  display: inline-block;
  font-size: 10px; padding: 1px 6px; border-radius: 3px;
  margin-right: 6px; font-weight: 500;
  vertical-align: middle;
}
.forum-post .post-title .tag.hot { background: #ff4757; color: #fff; }
.forum-post .post-title .tag.new { background: #07c160; color: #fff; }
.forum-post .post-title .tag.top { background: #007aff; color: #fff; }
.forum-post .post-meta {
  font-size: 11px; color: #aaa;
  display: flex; gap: 12px;
}
.forum-post .post-preview {
  font-size: 12px; color: #888; margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.forum-post.hidden-post {
  display: none;
}
.forum-post.hidden-post.visible {
  display: flex;
  animation: post-reveal 0.5s ease;
}
@keyframes post-reveal {
  from { opacity: 0; max-height: 0; transform: translateY(-8px); }
  to { opacity: 1; max-height: 200px; transform: translateY(0); }
}
.forum-empty {
  text-align: center;
  padding: 40px 20px;
  color: #bbb;
  font-size: 14px;
}
.forum-empty .icon { font-size: 40px; margin-bottom: 12px; }
.forum-no-results {
  display: none;
  text-align: center;
  padding: 40px 20px;
  color: #bbb;
  font-size: 14px;
}
.forum-no-results.visible { display: block; }

/* 论坛帖子详情弹窗 */
.forum-detail-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  animation: overlay-in 0.2s ease;
}
@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.forum-detail-overlay.visible { display: flex; }
.forum-detail-card {
  background: #fff;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: card-in 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.forum-detail-card .detail-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.forum-detail-card .detail-header h2 {
  font-size: 18px;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.5;
}
.forum-detail-card .detail-header .detail-meta {
  font-size: 12px;
  color: #999;
  display: flex; gap: 16px;
}
.forum-detail-card .detail-body {
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.9;
  color: #444;
}
.forum-detail-card .detail-body .highlight {
  background: #fff8e1;
  padding: 2px 6px;
  border-radius: 3px;
  color: #d9707e;
  font-weight: 500;
}
.forum-detail-card .detail-replies {
  padding: 0 24px 20px;
  border-top: 1px solid #f5f5f5;
}
.forum-detail-card .detail-replies .reply {
  padding: 14px 0;
  border-bottom: 1px solid #f8f8f8;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}
.forum-detail-card .detail-replies .reply .reply-user {
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}
.forum-detail-card .detail-replies .reply .reply-time {
  font-size: 11px;
  color: #bbb;
  float: right;
}
.forum-detail-card .detail-close {
  display: block;
  width: 100%;
  padding: 14px;
  background: #f5f5f5;
  border: none;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 0 0 12px 12px;
}
.forum-detail-card .detail-close:hover { background: #eee; }

/* ===== 浏览器搜索框 ===== */
.browser-search-bar {
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.browser-search-bar input {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  background: #f8f8f8;
}
.browser-search-bar input:focus {
  border-color: #007aff;
  background: #fff;
}
.browser-search-bar .search-btn {
  padding: 10px 20px;
  background: #007aff;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.browser-search-bar .search-btn:hover { background: #0056cc; }
.browser-search-result {
  display: none;
  padding: 16px 20px;
  background: #fff8e1;
  border-bottom: 1px solid #ffd60a;
  font-size: 13px;
  color: #8a6d3b;
  line-height: 1.7;
  animation: result-in 0.3s ease;
}
@keyframes result-in {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 200px; }
}
.browser-search-result.visible { display: block; }
.browser-search-result .highlight {
  color: #d9707e;
  font-weight: 600;
}

/* ===== 文件弹窗替换 ===== */
.file-error-toast {
  display: none;
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  z-index: 300;
  max-width: 360px;
  animation: toast-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.file-error-toast.visible { display: block; }
.file-error-toast .icon { font-size: 40px; margin-bottom: 12px; }
.file-error-toast .msg { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 16px; }
.file-error-toast .ok-btn {
  padding: 8px 28px;
  background: #007aff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.file-error-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 299;
}
.file-error-overlay.visible { display: block; }

/* ===== 最终触发页 - 频谱图改进 ===== */
.spectro-enhanced {
  margin-top: 14px;
  background: #0a0a0a;
  border-radius: 4px;
  height: 140px;
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spectro-enhanced .letter-group {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 100px;
  padding: 0 10px;
}
.spectro-enhanced .letter-block {
  display: flex;
  gap: 1px;
  align-items: flex-end;
}
.spectro-enhanced .bar {
  width: 3px;
  background: #95ec69;
  border-radius: 1px 1px 0 0;
  animation: bar-pulse 2s ease-in-out infinite;
}
.spectro-enhanced .bar:nth-child(odd) { animation-delay: 0.1s; }
.spectro-enhanced .bar:nth-child(2n) { animation-delay: 0.3s; }

/* 隐藏彩蛋暗示：正确输入 SENDTHELIGHT 后字母 L 闪烁 */
.spectro-enhanced .letter-block.hint-glow {
  position: relative;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(149,236,105,0.0), 0 0 12px rgba(149,236,105,0.0);
  animation: hint-glow 2.4s ease-in-out 1.2s 3;
}
@keyframes hint-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(149,236,105,0), 0 0 0 rgba(149,236,105,0); }
  50% { box-shadow: 0 0 0 1px rgba(149,236,105,0.7), 0 0 16px rgba(149,236,105,0.5); }
}
.spectro-enhanced .letter-block.hint-glow::after {
  content: '·';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(149,236,105,0.7);
  font-size: 20px;
  line-height: 1;
  animation: hint-dot 2.4s ease-in-out 1.2s 3;
}
@keyframes hint-dot {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
@keyframes bar-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.spectro-enhanced .space-block {
  width: 12px;
}

/* 抉择按钮 */
.ending-choices {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.ending-choices .choice-btn {
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1.5px solid #ddd;
  background: #fff;
  color: #555;
}
.ending-choices .choice-btn:hover {
  border-color: #999;
  color: #333;
}
.ending-choices .choice-btn.send {
  background: #fa5151;
  color: #fff;
  border-color: #fa5151;
}
.ending-choices .choice-btn.send:hover {
  background: #d93030;
}
.ending-choices .choice-btn.close-btn-choice {
  background: #f5f5f5;
  color: #888;
  border-color: #ddd;
}
.ending-choices .choice-btn.close-btn-choice:hover {
  background: #e0e0e0;
  color: #666;
}

/* 隐藏内容 */
.hidden-draft {
  display: none;
  margin-top: 16px;
  padding: 16px;
  background: #fffef5;
  border: 1px dashed #e0d5a0;
  border-radius: 8px;
  font-size: 13px;
  color: #8a7d5a;
  line-height: 1.8;
  font-family: "Georgia", "Songti SC", serif;
  animation: draft-in 0.6s ease;
}
@keyframes draft-in {
  from { opacity: 0; max-height: 0; padding: 0 16px; }
  to { opacity: 1; max-height: 500px; padding: 16px; }
}
.hidden-draft.visible { display: block; }
.hidden-draft .draft-title {
  font-size: 14px;
  font-weight: 600;
  color: #6b5b3a;
  margin-bottom: 8px;
}
.hidden-draft .draft-date {
  font-size: 11px;
  color: #bbb;
  margin-bottom: 12px;
}