/* ============================================
   陈以安 · 青梅竹马 · 光斑绿意主题
   ============================================ */

/* ===== 全局背景铺满聊天区 ===== */
.MuiContainer-root,
main,
[class*="chatContainer"],
[class*="ChatContainer"] {
  background-image: 
    linear-gradient(180deg, rgba(250, 255, 240, 0.25) 0%, rgba(220, 240, 210, 0.4) 100%),
    url('【背景图URL】');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* ===== 隐藏思维链 ===== */
think { display: none !important; }

/* ============================================
   一、顶部状态栏
   ============================================ */
topbar {
  display: block;
  margin: 6px auto 14px auto;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(228, 245, 215, 0.55));
  border: 1px solid rgba(156, 188, 122, 0.45);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 
    0 4px 18px rgba(120, 160, 90, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 0 30px rgba(255, 255, 255, 0.25);
  color: #3d5a2e;
  font-size: 13px;
  line-height: 1.9;
  text-align: center;
  letter-spacing: 0.6px;
  position: relative;
  overflow: hidden;
}
topbar::before {
  content: '';
  position: absolute;
  top: -20px; left: -20px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(255,255,255,0.85) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
}
topbar::after {
  content: '';
  position: absolute;
  bottom: -25px; right: -15px;
  width: 90px; height: 90px;
  background: radial-gradient(circle, rgba(255,255,255,0.75) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
}

/* ============================================
   二、正文容器
   ============================================ */
text {
  display: block;
  margin: 14px 0;
  padding: 24px 28px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.78) 0%, rgba(240, 250, 232, 0.62) 100%);
  border: 1px solid rgba(156, 188, 122, 0.38);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 
    0 8px 28px rgba(120, 160, 90, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: #2d3f1e;
  font-size: 15px;
  line-height: 2;
  position: relative;
  overflow: hidden;
}
/* 光斑装饰:左上一颗大光斑,右下一颗小光斑 */
text::before {
  content: '';
  position: absolute;
  top: -30px; left: 30px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.3) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.55;
  filter: blur(2px);
}
text::after {
  content: '';
  position: absolute;
  bottom: -15px; right: 45px;
  width: 70px; height: 70px;
  background: radial-gradient(circle, rgba(255,255,255,0.85) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.4;
  filter: blur(1px);
}
text p {
  margin: 0 0 14px 0;
  text-indent: 2em;
  position: relative;
  z-index: 1;
}
text p:last-child { margin-bottom: 0; }

/* ============================================
   三、状态栏 & 折叠面板
   ============================================ */
statusbar {
  display: block;
  margin-top: 18px;
  padding: 2px;
}

statusbar details {
  margin: 10px 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(232, 245, 220, 0.55));
  border: 1px solid rgba(156, 188, 122, 0.42);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 3px 14px rgba(120, 160, 90, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  overflow: hidden;
  transition: all 0.3s ease;
}
statusbar details:hover {
  border-color: rgba(120, 160, 90, 0.65);
  box-shadow: 0 5px 20px rgba(120, 160, 90, 0.22);
  transform: translateY(-1px);
}
statusbar details[open] {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(222, 242, 208, 0.65));
}

statusbar summary {
  padding: 12px 18px 12px 38px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #3d5a2e;
  list-style: none;
  position: relative;
  user-select: none;
  transition: color 0.25s ease;
  letter-spacing: 0.4px;
}
statusbar summary::-webkit-details-marker { display: none; }
statusbar summary::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid #7ba05b;
  border-bottom: 2px solid #7ba05b;
  transform: translateY(-70%) rotate(-45deg);
  transition: transform 0.3s ease;
}
statusbar details[open] summary::before {
  transform: translateY(-30%) rotate(45deg);
}
statusbar summary:hover { color: #5c8a3a; }

statusbar details p {
  margin: 6px 0;
  padding: 5px 20px;
  color: #3d4f2e;
  font-size: 13.5px;
  line-height: 1.8;
}
statusbar details > p:first-of-type { padding-top: 10px; }
statusbar details > p:last-of-type { padding-bottom: 14px; }

/* ============================================
   四、输入框
   ============================================ */
#ai-chat-input {
  background: rgba(255, 255, 255, 0.55);
  color: #2d3f1e;
  border: none;
  font-size: 14px;
}
#ai-chat-input::placeholder {
  color: #9cbc7a;
}

#ai-chat-input-container,
div:has(> #ai-chat-input) {
  background: rgba(240, 252, 232, 0.55) !important;
  border: 1.5px solid #9cbc7a !important;
  border-radius: 14px !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
div:has(> #ai-chat-input):focus-within {
  border-color: #5c8a3a !important;
  box-shadow: 0 0 12px rgba(120, 160, 90, 0.45);
}

/* ============================================
   五、发送按钮
   ============================================ */
#ai-send-button {
  background: linear-gradient(135deg, #9cbc7a, #5c8a3a) !important;
  border-radius: 10px !important;
  transition: all 0.3s ease;
}
#ai-send-button:hover {
  background: linear-gradient(135deg, #b0cc8a, #6ea043) !important;
  box-shadow: 0 0 14px rgba(120, 160, 90, 0.55);
  transform: scale(1.05);
}
#ai-send-button svg {
  color: #fff !important;
  fill: #fff !important;
}

/* ============================================
   六、第一排工具栏(复制/刷新/编辑)
   ============================================ */
.MuiButton-textPrimary {
  color: #5c8a3a !important;
  transition: all 0.25s ease;
}
.MuiButton-textPrimary:hover {
  background: rgba(156, 188, 122, 0.2) !important;
  color: #3d5a2e !important;
}

/* ============================================
   七、第二排工具栏(Mod/记忆增强/调试)
   ============================================ */
.MuiButton-outlinedPrimary {
  border-color: #9cbc7a !important;
  color: #5c8a3a !important;
  background: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}
.MuiButton-outlinedPrimary:hover {
  background: rgba(156, 188, 122, 0.22) !important;
  border-color: #5c8a3a !important;
  color: #3d5a2e !important;
  box-shadow: 0 0 10px rgba(120, 160, 90, 0.3);
}

/* ============================================
   八、翻页
   ============================================ */
.MuiPaginationItem-root {
  color: #5c8a3a !important;
}
.MuiPaginationItem-root:hover {
  background: rgba(156, 188, 122, 0.15) !important;
}
.MuiPaginationItem-root.Mui-selected {
  background: rgba(156, 188, 122, 0.32) !important;
  color: #3d5a2e !important;
  font-weight: 600;
}

/* ============================================
   九、评论区 & 模组区(通用卡片美化)
   ============================================ */
.MuiPaper-root,
.MuiCard-root {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(232, 245, 220, 0.55)) !important;
  border: 1px solid rgba(156, 188, 122, 0.35) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 3px 14px rgba(120, 160, 90, 0.1) !important;
  color: #2d3f1e !important;
}

.MuiDialog-paper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(232, 245, 220, 0.75)) !important;
  border: 1px solid rgba(156, 188, 122, 0.5) !important;
  border-radius: 18px !important;
  backdrop-filter: blur(16px);
}

/* 评论/模组内的文字色统一 */
.MuiTypography-root {
  color: #2d3f1e;
}

/* 通用图标按钮 */
.MuiIconButton-root {
  color: #5c8a3a !important;
  transition: all 0.25s ease;
}
.MuiIconButton-root:hover {
  background: rgba(156, 188, 122, 0.2) !important;
  color: #3d5a2e !important;
}

/* Chip 标签(评论区/模组区常见) */
.MuiChip-root {
  background: rgba(156, 188, 122, 0.22) !important;
  color: #3d5a2e !important;
  border: 1px solid rgba(156, 188, 122, 0.4) !important;
}