前言
由于经常使用Gemini和Claude回答知识性问题,感觉到它们两个各有缺陷... 阅读更多
由于经常使用Gemini和Claude回答知识性问题,感觉到它们两个各有缺陷... 阅读更多
/* 0323Mac风格磨砂玻璃主题 */
@font-face {
font-family: 'LXGWWenKaiGB';
src: url('file:///D:/Fonts/LXGWWenKaiGB-Medium.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-display: swap;
unicode-range: U+4E00-9FFF;
}
:root {
--duration-quick: 0.15s;
--duration-normal: 0.3s;
--duration-long: 0.5s;
--easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
--easing-decelerate: cubic-bezier(0, 0, 0.2, 1);
--easing-standard: cubic-bezier(0.4, 0.0, 0.2, 1);
--easing-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
--radius-dynamic: 12px;
--radius-large: 12px;
--color-brand-primary: oklch(65% 0.05 250);
--color-brand-hover: color-mix(in oklch, var(--color-brand-primary) 90%, black);
--theme-lightness: 1;
--shadow-intensity: 0.1;
--highlight-intensity: 0.05;
--file-line-width: 65rem;
--font-default: 'LXGWWenKaiGB', sans-serif;
--background-blur: 12px;
--hover-scale: 1.01;
--active-scale: 0.98;
--card-translate-y: 6px;
--chat-text-user: var(--color-text-1);
--metal-gradient-light: linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.15) 25%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0.15) 75%, rgba(255, 255, 255, 0.07) 100%);
--metal-gradient-dark: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.08) 75%, rgba(255, 255, 255, 0.03) 100%);
--border-glow: 0 0 5px rgba(255, 255, 255, 0.2);
}
/* 深色模式 */
body[theme-mode="dark"] {
--background-image-url: url('https://cdnb.artstation.com/p/assets/images/images/049/289/173/large/flogging-moll-5yue1ri-6-1.jpg?1652152063');
--background-overlay-opacity: 0.5;
--color-background: linear-gradient(145deg, rgba(28, 28, 30, 0.6) 0%, rgba(44, 44, 46, 0.6) 100%);
--color-background-soft: linear-gradient(145deg, rgba(44, 44, 46, 0.5) 0%, rgba(58, 58, 60, 0.5) 100%);
--color-background-mute: linear-gradient(145deg, rgba(72, 72, 74, 0.4) 0%, rgba(99, 99, 102, 0.4) 100%);
--navbar-background: linear-gradient(to right, rgba(28, 28, 30, 0.6) 0%, rgba(44, 44, 46, 0.6) 100%);
--chat-background: linear-gradient(to bottom, rgba(44, 44, 46, 0.5) 0%, rgba(58, 58, 60, 0.5) 100%);
--chat-background-user: linear-gradient(to right, rgba(30, 144, 255, 0.4) 0%, rgba(65, 172, 255, 0.4) 100%);
--user-text-color-dark: rgba(255, 255, 255, 0.95);
--chat-background-assistant: linear-gradient(to right, rgba(72, 72, 74, 0.4) 0%, rgba(85, 85, 87, 0.4) 100%);
--ctp-text: rgba(255, 255, 255, 0.85);
--shadow-color: rgba(0, 0, 0, 0.25);
--highlight-color: rgba(255, 255, 255, 0.08);
--deep-thinking-color: rgba(180, 180, 200, 0.9);
--code-bg-dark: rgba(30, 30, 32, 0.7);
--footnote-bg-dark: rgba(44, 44, 46, 0.4);
--theme-lightness: -1;
--shadow-intensity: 0.25;
--border-color: rgba(255, 255, 255, 0.05);
--border-hover-color: rgba(255, 255, 255, 0.1);
--metal-gradient: var(--metal-gradient-dark);
}
/* 浅色模式 */
body[theme-mode="light"] {
--background-image-url: url('https://cdna.artstation.com/p/assets/images/images/035/911/176/large/-.jpg?1616230728');
--background-overlay-opacity: 0.25;
--color-background: linear-gradient(145deg, rgba(255, 255, 255, 0.3) 0%, rgba(250, 250, 255, 0.3) 100%);
--color-background-soft: linear-gradient(145deg, rgba(245, 245, 250, 0.25) 0%, rgba(240, 240, 245, 0.25) 100%);
--color-background-mute: linear-gradient(145deg, rgba(235, 235, 240, 0.2) 0%, rgba(230, 230, 235, 0.2) 100%);
--navbar-background: linear-gradient(to right, rgba(255, 255, 255, 0.4) 0%, rgba(250, 250, 255, 0.4) 100%);
--chat-background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, rgba(250, 250, 255, 0.3) 100%);
--chat-background-user: linear-gradient(to right, rgba(135, 206, 250, 0.5) 0%, rgba(165, 215, 255, 0.5) 100%);
--chat-background-assistant: linear-gradient(to right, rgba(240, 240, 245, 0.4) 0%, rgba(235, 235, 240, 0.4) 100%);
--color-white: rgba(255, 255, 255, 0.9);
--ctp-text: rgba(30, 30, 30, 0.9);
--shadow-color: rgba(0, 0, 0, 0.06);
--highlight-color: rgba(255, 255, 255, 0.3);
--deep-thinking-color: rgba(80, 80, 100, 0.9);
--code-bg-light: rgba(240, 240, 245, 0.4);
--footnote-bg-light: rgba(245, 245, 250, 0.3);
--theme-lightness: 1;
--border-color: rgba(255, 255, 255, 0.15);
--border-hover-color: rgba(255, 255, 255, 0.25);
--metal-gradient: var(--metal-gradient-light);
}
* {
font-family: var(--font-default);
line-height: 1.5;
letter-spacing: -0.01em;
}
body {
position: relative;
background-image: var(--background-image-url);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
}
body::after {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--color-background);
opacity: var(--background-overlay-opacity);
backdrop-filter: blur(var(--background-blur));
-webkit-backdrop-filter: blur(var(--background-blur));
z-index: -1;
}
.message-content-container {
will-change: transform;
contain: layout paint style;
background: color-mix(in srgb, var(--color-background-soft), transparent 10%) !important;
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
transform: translateZ(0);
-webkit-transform: translateZ(0);
border: none;
border-radius: var(--radius-dynamic);
position: relative;
z-index: 1;
outline: none;
transition:
background-color var(--duration-normal) var(--easing-standard),
box-shadow var(--duration-normal) var(--easing-standard);
margin-block: 8px;
padding-inline: 12px;
padding-block: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.message-content-container::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: var(--radius-dynamic);
background: var(--metal-gradient);
opacity: 0.4;
pointer-events: none;
z-index: -1;
border: 0.3px solid var(--border-color);
transition: opacity var(--duration-normal) var(--easing-standard);
}
.message-content-container:hover::before {
opacity: 0.7;
border-color: var(--border-hover-color);
}
@keyframes cardAppear {
from {
opacity: 0;
transform: translateY(var(--card-translate-y));
}
to {
opacity: 1;
transform: translateY(0);
}
}
.chat-item {
animation: cardAppear var(--duration-normal) var(--easing-decelerate) forwards;
}
#inputbar {
background: color-mix(in srgb, var(--color-background), transparent 20%) !important;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: none;
position: relative;
border-radius: var(--radius-large);
margin: -15px 20px 15px 20px;
transition: box-shadow var(--duration-normal) var(--easing-standard);
outline: none;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
#inputbar::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: var(--radius-large);
background: var(--metal-gradient);
opacity: 0.4;
pointer-events: none;
z-index: -1;
border: 0.3px solid var(--border-color);
}
#inputbar:focus-within::before {
opacity: 0.8;
border-color: var(--color-brand-primary);
box-shadow: var(--border-glow);
}
.navbar {
background: color-mix(in srgb, var(--navbar-background), transparent 20%) !important;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: none;
position: relative;
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
animation: navbarAppear var(--duration-long) var(--easing-standard) forwards;
}
.navbar::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 0.3px;
background: var(--metal-gradient);
opacity: 0.5;
}
@keyframes navbarAppear {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.chat-container {
background: transparent !important;
}
.chat-item.user .message-content-container {
background: color-mix(in srgb, rgba(135, 206, 250, 0.4), transparent 20%) !important;
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border-left: 3px solid rgba(30, 144, 255, 0.6);
transform: translateZ(0);
-webkit-transform: translateZ(0);
}
.chat-item.assistant .message-content-container {
background: color-mix(in srgb, rgba(255, 182, 193, 0.4), transparent 20%) !important;
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border-left: 3px solid rgba(255, 182, 193, 0.6);
transform: translateZ(0);
-webkit-transform: translateZ(0);
}
@media (prefers-contrast: more) {
.message-content-container::before {
opacity: 0.8;
border-width: 1px;
}
#inputbar::before {
opacity: 0.8;
border-width: 1px;
}
}
body[theme-mode="dark"] .chat-item.user .nickname,
body[theme-mode="dark"] .chat-item.user .message {
color: var(--user-text-color-dark);
}
.chat-item .nickname,
.chat-item .message {
color: var(--ctp-text);
}
.ant-collapse-content-box .markdown {
color: var(--deep-thinking-color);
background: color-mix(in srgb, var(--color-background-soft), transparent 30%) !important;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border-radius: 8px;
padding: 10px 14px;
margin-top: 8px;
border-left: 2px solid rgba(180, 180, 200, 0.3);
}
body[theme-mode="dark"] .ant-collapse-content-box .markdown {
background: color-mix(in srgb, var(--color-background-soft), transparent 50%) !important;
border-left: 2px solid rgba(180, 180, 200, 0.2);
}
/* 浅色模式代码背景 - Mac OS风格 */
.shiki.one-light {
background-color: var(--code-bg-light) !important;
border-radius: 8px;
position: relative;
overflow: hidden;
transition: box-shadow var(--duration-normal) var(--easing-standard);
}
.shiki.one-light::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: 8px;
background: var(--metal-gradient);
opacity: 0.3;
pointer-events: none;
z-index: -1;
border: 0.3px solid rgba(0, 0, 0, 0.05);
}
/* 深色模式代码背景 - Mac OS风格 */
.shiki.material-theme-darker {
background-color: var(--code-bg-dark) !important;
border-radius: 8px;
position: relative;
overflow: hidden;
transition: box-shadow var(--duration-normal) var(--easing-standard);
}
.shiki.material-theme-darker::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: 8px;
background: var(--metal-gradient);
opacity: 0.2;
pointer-events: none;
z-index: -1;
border: 0.3px solid rgba(255, 255, 255, 0.05);
}
/* 代码块悬停效果 - 光泽变化 */
pre:hover .shiki::before {
opacity: 0.5;
}
/* 引用来源背景透明 - Mac OS风格 */
.footnotes {
background-color: var(--footnote-bg-light);
border-radius: 8px;
position: relative;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
transition: box-shadow var(--duration-normal) var(--easing-standard);
}
.footnotes::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: 8px;
background: var(--metal-gradient);
opacity: 0.3;
pointer-events: none;
z-index: -1;
border: 0.3px solid rgba(0, 0, 0, 0.05);
}
body[theme-mode="dark"] .footnotes {
background-color: var(--footnote-bg-dark);
}
body[theme-mode="dark"] .footnotes::before {
border-color: rgba(255, 255, 255, 0.05);
opacity: 0.2;
}
/* 保留原有样式 - 输入框高度 */
#inputbar textarea.ant-input {
height: 120px !important;
padding: 10px;
}
/* 按钮 - Mac OS风格(移除动效) */
button,
.ant-btn {
border-radius: 6px;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
transition: background-color var(--duration-quick) var(--easing-standard);
position: relative;
overflow: hidden;
}
/* 按钮金属质感 */
button::before,
.ant-btn::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--metal-gradient);
opacity: 0.2;
pointer-events: none;
z-index: -1;
}
button:hover::before,
.ant-btn:hover::before {
opacity: 0.4;
}
/* 滚动条 - Mac OS风格 */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.2);
border-radius: 4px;
transition: background var(--duration-quick) var(--easing-standard);
background-image: var(--metal-gradient-light);
background-size: 100px 100%;
}
body[theme-mode="dark"] ::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.15);
background-image: var(--metal-gradient-dark);
}
::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.25);
}
body[theme-mode="dark"] ::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.2);
}
/* 加载时的页面过渡效果 */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
body {
animation: fadeIn 0.8s var(--easing-decelerate) forwards;
}
/* 卡片的内容渐入动画 */
.message-content-container .markdown {
opacity: 0;
animation: fadeIn 0.4s var(--easing-decelerate) 0.1s forwards;
}
/* 链接颜色 - Mac OS风格 */
a {
color: var(--color-brand-primary);
transition: color var(--duration-quick) var(--easing-standard);
}
a:hover {
color: var(--color-brand-hover);
}
/* 选中文本背景色 - Mac OS风格 */
::selection {
background-color: color-mix(in srgb, var(--color-brand-primary), transparent 70%);
}
/* 夜间/日间模式切换按钮(移除动效) */
.theme-toggle-button {
transition: opacity var(--duration-normal) var(--easing-emphasized);
}
.theme-toggle-button:hover {
opacity: 0.8;
}
/* 深色模式下的气泡颜色 */
body[theme-mode="dark"] .chat-item.user .message-content-container {
background: color-mix(in srgb, rgba(30, 144, 255, 0.3), transparent 20%) !important;
border-left: 3px solid rgba(30, 144, 255, 0.4);
}
body[theme-mode="dark"] .chat-item.assistant .message-content-container {
background: color-mix(in srgb, rgba(255, 182, 193, 0.3), transparent 20%) !important;
border-left: 3px solid rgba(255, 182, 193, 0.4);
}
/* 修复注释悬停弹出窗口样式 */
/* 适用于VS Code和类似编辑器的注释悬停提示 */
.hover-contents,
.monaco-hover,
.monaco-hover-content,
.hover-row,
.markdown-hover,
.hover-tooltip,
.tooltip-content,
[role="tooltip"],
div[class*="hover"],
div[class*="tooltip"] {
background-color: rgba(255, 255, 255, 0.95) !important;
color: rgba(0, 0, 0, 0.9) !important;
border: 0.5px solid rgba(0, 0, 0, 0.1) !important;
border-radius: 6px !important;
backdrop-filter: blur(16px) !important;
-webkit-backdrop-filter: blur(16px) !important;
box-shadow: 0 2px 14px rgba(0, 0, 0, 0.15) !important;
}
/* 确保深色模式下的悬停提示内容可读 */
body[theme-mode="dark"] .hover-contents,
body[theme-mode="dark"] .monaco-hover,
body[theme-mode="dark"] .monaco-hover-content,
body[theme-mode="dark"] .hover-row,
body[theme-mode="dark"] .markdown-hover,
body[theme-mode="dark"] .hover-tooltip,
body[theme-mode="dark"] .tooltip-content,
body[theme-mode="dark"] [role="tooltip"],
body[theme-mode="dark"] div[class*="hover"],
body[theme-mode="dark"] div[class*="tooltip"] {
background-color: rgba(50, 50, 55, 0.95) !important;
color: rgba(255, 255, 255, 0.9) !important;
border: 0.5px solid rgba(255, 255, 255, 0.15) !important;
}
/* 悬停提示内部链接样式 */
.hover-contents a,
.monaco-hover a,
.hover-tooltip a,
.tooltip-content a,
[role="tooltip"] a,
div[class*="hover"] a,
div[class*="tooltip"] a {
color: var(--color-brand-primary) !important;
}
/* 悬停提示内部代码块样式 */
.hover-contents code,
.monaco-hover code,
.hover-tooltip code,
.tooltip-content code,
[role="tooltip"] code,
div[class*="hover"] code,
div[class*="tooltip"] code {
background-color: rgba(0, 0, 0, 0.05) !important;
color: inherit !important;
padding: 0.1em 0.3em !important;
border-radius: 3px !important;
}
body[theme-mode="dark"] .hover-contents code,
body[theme-mode="dark"] .monaco-hover code,
body[theme-mode="dark"] .hover-tooltip code,
body[theme-mode="dark"] .tooltip-content code,
body[theme-mode="dark"] [role="tooltip"] code,
body[theme-mode="dark"] div[class*="hover"] code,
body[theme-mode="dark"] div[class*="tooltip"] code {
background-color: rgba(255, 255, 255, 0.1) !important;
}
/* 草莓甜心MacOS (含动态特效)*/
:root {
--duration-quick: 0.15s;
--duration-normal: 0.3s;
--duration-long: 0.5s;
--easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
--easing-decelerate: cubic-bezier(0, 0, 0.2, 1);
--easing-standard: cubic-bezier(0.4, 0.0, 0.2, 1);
--easing-bounce: cubic-bezier(0.34, 1.56, 0.64, 1); /* 弹性动效 */
--radius-dynamic: 12px;
--radius-large: 12px;
/* Mac OS色调 */
--color-brand-primary: oklch(65% 0.05 250);
--color-brand-hover: color-mix(in oklch, var(--color-brand-primary) 90%, black);
/* 动态主题参数 */
--theme-lightness: 1;
--shadow-intensity: 0.1;
--highlight-intensity: 0.05;
--file-line-width: 65rem;
--font-default: "SF Pro Text", "Helvetica Neue", "Source Han Sans CN", sans-serif;
/* 背景图片设置 - 共享参数 */
--background-blur: 12px;
/* 动效参数 */
--hover-scale: 1.01;
--active-scale: 0.98;
--card-translate-y: 6px;
/* 修复对话气泡 */
--chat-text-user: var(--color-text-1);
}
/* 深色模式 - Mac OS风格 */
body[theme-mode="dark"] {
/* 深色模式专用背景图 */
--background-image-url: url('https://i.pinimg.com/1200x/77/9e/e6/779ee6457911761ef8aaa40cf04b2f8a.jpg');
--background-overlay-opacity: 0.5;
/* 护眼配色 - 深色模式更温和的色调 */
--color-background: linear-gradient(145deg, rgba(28, 28, 30, 0.6) 0%, rgba(44, 44, 46, 0.6) 100%);
--color-background-soft: linear-gradient(145deg, rgba(44, 44, 46, 0.5) 0%, rgba(58, 58, 60, 0.5) 100%);
--color-background-mute: linear-gradient(145deg, rgba(72, 72, 74, 0.4) 0%, rgba(99, 99, 102, 0.4) 100%);
--navbar-background: linear-gradient(to right, rgba(28, 28, 30, 0.6) 0%, rgba(44, 44, 46, 0.6) 100%);
--chat-background: linear-gradient(to bottom, rgba(44, 44, 46, 0.5) 0%, rgba(58, 58, 60, 0.5) 100%);
--chat-background-user: linear-gradient(to right, rgba(0, 88, 208, 0.15) 0%, rgba(10, 132, 255, 0.15) 100%);
--user-text-color-dark: rgba(255, 255, 255, 0.9);
--chat-background-assistant: linear-gradient(to right, rgba(44, 44, 46, 0.4) 0%, rgba(58, 58, 60, 0.4) 100%);
--ctp-text: rgba(255, 255, 255, 0.85);
--shadow-color: rgba(0, 0, 0, 0.25);
--highlight-color: rgba(255, 255, 255, 0.08);
--deep-thinking-color: rgba(10, 132, 255, 0.9);
--code-bg-dark: rgba(30, 30, 32, 0.7);
--footnote-bg-dark: rgba(44, 44, 46, 0.4);
/* 动态主题参数 */
--theme-lightness: -1;
--shadow-intensity: 0.25;
}
/* 浅色模式 - Mac OS风格 (优化版) */
body[theme-mode="light"] {
/* 浅色模式专用背景图 */
--background-image-url: url('https://www.sanrio.com.tw/wp-content/uploads/2019/04/MIX-Desktop-01.jpg');
--background-overlay-opacity: 0.25;
/* 更清晰的浅色调 - 去除护眼蒙版效果 */
--color-background: linear-gradient(145deg, rgba(255, 255, 255, 0.3) 0%, rgba(250, 250, 255, 0.3) 100%);
--color-background-soft: linear-gradient(145deg, rgba(245, 245, 250, 0.25) 0%, rgba(240, 240, 245, 0.25) 100%);
--color-background-mute: linear-gradient(145deg, rgba(235, 235, 240, 0.2) 0%, rgba(230, 230, 235, 0.2) 100%);
--navbar-background: linear-gradient(to right, rgba(255, 255, 255, 0.4) 0%, rgba(250, 250, 255, 0.4) 100%);
--chat-background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, rgba(250, 250, 255, 0.3) 100%);
--chat-background-user: linear-gradient(to right, rgba(210, 230, 255, 0.4) 0%, rgba(220, 235, 255, 0.4) 100%);
--chat-background-assistant: linear-gradient(to right, rgba(250, 250, 255, 0.3) 0%, rgba(245, 245, 250, 0.3) 100%);
--color-white: rgba(255, 255, 255, 0.9);
--ctp-text: rgba(30, 30, 30, 0.9);
--shadow-color: rgba(0, 0, 0, 0.06);
--highlight-color: rgba(255, 255, 255, 0.3);
--deep-thinking-color: rgba(0, 88, 208, 0.85);
--code-bg-light: rgba(240, 240, 245, 0.4);
--footnote-bg-light: rgba(245, 245, 250, 0.3);
/* 动态主题参数 */
--theme-lightness: 1;
}
/* 基础架构 */
* {
font-family: var(--font-default);
line-height: 1.5;
letter-spacing: -0.01em;
}
/* 背景图片设置 - 分主题设置 */
body {
position: relative;
background-image: var(--background-image-url);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
}
/* 背景叠加层 */
body::after {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--color-background);
opacity: var(--background-overlay-opacity);
backdrop-filter: blur(var(--background-blur));
-webkit-backdrop-filter: blur(var(--background-blur));
z-index: -1;
}
/* 消息容器 - Mac OS磨砂玻璃风格(增强动效) */
.message-content-container {
/* 物理渲染层 */
transform: translateZ(0);
will-change: transform, box-shadow, opacity;
contain: layout paint style;
/* 动态样式 - Mac OS磨砂玻璃效果 */
background: color-mix(in srgb, var(--color-background-soft), transparent 50%) !important;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 0.5px solid rgba(255, 255, 255, 0.2);
border-radius: var(--radius-dynamic);
/* 简化边缘 */
outline: none;
/* 增强动效过渡 */
transition:
transform var(--duration-normal) var(--easing-emphasized),
box-shadow var(--duration-normal) var(--easing-decelerate),
background-color var(--duration-normal) var(--easing-standard),
border-color var(--duration-quick) var(--easing-standard);
/* 逻辑属性 */
margin-block: 8px;
padding-inline: 12px;
padding-block: 10px;
/* Mac OS风格阴影 - 更加柔和 */
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
&:hover {
transform: scale(var(--hover-scale)) translateY(-2px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
border-color: rgba(255, 255, 255, 0.3);
backdrop-filter: none; /* 移除悬停时的模糊 */
-webkit-backdrop-filter: none; /* 移除悬停时的模糊 */
}
&:active {
transform: scale(var(--active-scale));
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
transition-duration: 0.1s;
}
}
/* 消息出现动画 */
@keyframes cardAppear {
from {
opacity: 0;
transform: translateY(var(--card-translate-y));
}
to {
opacity: 1;
transform: translateY(0);
}
}
.chat-item {
animation: cardAppear var(--duration-normal) var(--easing-decelerate) forwards;
}
/* 输入栏优化 - Mac OS磨砂玻璃风格(增强动效) */
#inputbar {
background: color-mix(in srgb, var(--color-background), transparent 40%) !important;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 0.5px solid rgba(255, 255, 255, 0.3);
border-radius: var(--radius-large);
margin: -15px 20px 15px 20px;
transition: all var(--duration-normal) var(--easing-standard);
/* 简化边缘 */
outline: none;
/* Mac OS风格阴影 */
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
&:focus-within {
transform: translateY(-2px) scale(1.005);
border-color: var(--color-brand-primary);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
}
/* 导航栏半透明效果 - Mac OS风格 */
.navbar {
background: color-mix(in srgb, var(--navbar-background), transparent 40%) !important;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border-bottom: 0.5px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
animation: navbarAppear var(--duration-long) var(--easing-standard) forwards;
}
@keyframes navbarAppear {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* 聊天容器半透明效果 */
.chat-container {
background: transparent !important;
}
/* 用户消息半透明效果 - Mac OS风格(增强动效) */
.chat-item.user .message-content-container {
background: color-mix(in srgb, var(--chat-background-user), transparent 50%) !important;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 0.5px solid rgba(255, 255, 255, 0.25);
transition: all var(--duration-normal) var(--easing-standard);
}
/* 助手消息半透明效果 - Mac OS风格(增强动效) */
.chat-item.assistant .message-content-container {
background: color-mix(in srgb, var(--chat-background-assistant), transparent 50%) !important;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 0.5px solid rgba(255, 255, 255, 0.15);
transition: all var(--duration-normal) var(--easing-standard);
}
/* 深色模式适配 - Mac OS风格 */
body[theme-mode='dark'] {
.message-content-container {
border-color: rgba(255, 255, 255, 0.1);
&:hover {
border-color: rgba(255, 255, 255, 0.2);
}
}
#inputbar {
border-color: rgba(255, 255, 255, 0.1);
&:focus-within {
border-color: color-mix(in oklch, var(--color-brand-primary), transparent 30%);
}
}
.navbar {
border-bottom-color: rgba(255, 255, 255, 0.1);
}
}
/* 高对比度模式 */
@media (prefers-contrast: more) {
.message-content-container {
border-width: 1.5px;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
}
/* 深色模式下用户名和消息的字体颜色 */
/* 使用更具体的选择器,提高优先级 */
body[theme-mode="dark"] .chat-item.user .nickname,
body[theme-mode="dark"] .chat-item.user .message {
color: var(--user-text-color-dark);
}
/* 其他用户名和消息的字体颜色保持不变 */
.chat-item .nickname,
.chat-item .message {
color: var(--ctp-text);
}
/* 深度思考展开字体颜色 - Mac OS风格 */
.ant-collapse-content-box .markdown {
color: var(--deep-thinking-color);
}
/* 浅色模式代码背景 - Mac OS风格 */
.shiki.one-light {
background-color: var(--code-bg-light) !important;
border-radius: 8px;
border: 0.5px solid rgba(0, 0, 0, 0.1);
transition: all var(--duration-normal) var(--easing-standard);
}
/* 深色模式代码背景 - Mac OS风格 */
.shiki.material-theme-darker {
background-color: var(--code-bg-dark) !important;
border-radius: 8px;
border: 0.5px solid rgba(255, 255, 255, 0.1);
transition: all var(--duration-normal) var(--easing-standard);
}
/* 代码块悬停效果 */
pre:hover .shiki {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* 引用来源背景透明 - Mac OS风格 */
.footnotes {
background-color: var(--footnote-bg-light);
border-radius: 8px;
border: 0.5px solid rgba(0, 0, 0, 0.1);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
transition: all var(--duration-normal) var(--easing-standard);
}
body[theme-mode="dark"] .footnotes {
background-color: var(--footnote-bg-dark);
border: 0.5px solid rgba(255, 255, 255, 0.1);
}
/* 保留原有样式 - 输入框高度 */
#inputbar textarea.ant-input {
height: 120px !important;
padding: 10px;
}
/* 按钮 - Mac OS风格(增强动效) */
button,
.ant-btn {
border-radius: 6px;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
transition: all var(--duration-quick) var(--easing-standard);
&:hover {
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
&:active {
transform: scale(0.97);
transition-duration: 0.1s;
}
}
/* 滚动条 - Mac OS风格 */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.2);
border-radius: 4px;
transition: background var(--duration-quick) var(--easing-standard);
}
body[theme-mode="dark"] ::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.2);
}
::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.3);
}
body[theme-mode="dark"] ::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.3);
}
/* 加载时的页面过渡效果 */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
body {
animation: fadeIn 0.8s var(--easing-decelerate) forwards;
}
/* 卡片的内容渐入动画 */
.message-content-container .markdown {
opacity: 0;
animation: fadeIn 0.4s var(--easing-decelerate) 0.1s forwards;
}
/* 链接颜色 - Mac OS风格 */
a {
color: var(--color-brand-primary);
transition: color var(--duration-quick) var(--easing-standard);
}
a:hover {
color: var(--color-brand-hover);
}
/* 选中文本背景色 - Mac OS风格 */
::selection {
background-color: color-mix(in srgb, var(--color-brand-primary), transparent 70%);
}
/* 夜间/日间模式切换按钮动效 */
.theme-toggle-button {
transition: all var(--duration-normal) var(--easing-emphasized);
}
.theme-toggle-button:hover {
transform: rotate(30deg) scale(1.1);
}
... 阅读更多
chatgpt-on-wechat(简称CoW)项目是基于大模型的智能对话机器人,支持微信公众号、企业微信应用、飞书、钉钉接入,可选择GPT3.5/GPT4.0/GPT4o/Claude/Gemini/ChatGLM/月之暗面/文心一言/讯飞星火/通义千问/LinkAI,能处理文本、语音和图片,通过插件访问操作系统和互联网等外部资源,支持基于自有知识库定制企业AI应用。... 阅读更多
设计一个专门针对WordPress插件开发的代码检查prompt。这需要考虑:... 阅读更多
需要设计一个全面的代码检查prompt,... 阅读更多
ou are an expert in Python development, including its core libraries, popular frameworks like Django, Flask and FastAPI, data science libraries such as NumPy and Pandas, and testing frameworks like pytest. You excel at selecting the best tools for each task, always striving to minimize unnecessary complexity and code duplication.
When making suggestions, you break them down into discrete steps, recommending small tests after each stage to ensure progress is on the right track.
You provide code examples when illustrating concepts or when specifically asked. However, if you can answer without code, that is preferred. You're open to elaborating if requested.
Before writing or suggesting code, you conduct a thorough review of the existing codebase, describing its functionality between <CODE_REVIEW> tags. After the review, you create a detailed plan for the proposed changes, enclosing it in <PLANNING> tags. You pay close attention to variable names and string literals, ensuring they remain consistent unless changes are necessary or requested. When naming something by convention, you surround it with double colons and use ::UPPERCASE::.
Your outputs strike a balance between solving the immediate problem and maintaining flexibility for future use.
You always seek clarification if anything is unclear or ambiguous. You pause to discuss trade-offs and implementation options when choices arise.
It's crucial that you adhere to this approach, teaching your conversation partner about making effective decisions in Python development. You avoid unnecessary apologies and learn from previous interactions to prevent repeating mistakes.
You are highly conscious of security concerns, ensuring that every step avoids compromising data or introducing vulnerabilities. Whenever there's a potential security risk (e.g., input handling, authentication management), you perform an additional review, presenting your reasoning between <SECURITY_REVIEW> tags.
Lastly, you consider the operational aspects of your solutions. You think about how to deploy, manage, monitor, and maintain Python applications. You highlight relevant operational concerns at each step of the development process.
... 阅读更多 I’ve been using Sonnet 3.5 to make some really tricky changes to a few bits of code recently, and have settled on this System Prompt which seems to be working very very well. I’ve used some of the ideas from the Anthropic Meta-Prompt as well as covering a few items that have given me headaches in the past. Any further suggestions welcome!... 阅读更多
You are an expert WordPress and WooCommerce plugin developer with comprehensive knowledge of web development, including PHP, CSS, JavaScript, React, and the WordPress ecosystem. You excel at selecting appropriate tools and approaches while maintaining simplicity and avoiding unnecessary complexity.
You break down changes into discrete, testable steps and provide specific test cases for each development stage. You prioritize clear explanations over code examples unless specifically requested. You maintain consistent naming conventions, follow WordPress coding standards, and consider backwards compatibility.
When examining existing code, you provide analysis between <CODE_REVIEW> tags, examining:
WordPress hook usage and integration points
Database interactions and wpdb usage
Plugin architecture and file structure
Integration with WordPress core functions
WooCommerce hook implementation
Third-party plugin interactions
Before implementing changes, you outline the approach between <PLANNING> tags, addressing:
WordPress action and filter hook placement
Database schema modifications
Admin interface integration
Frontend display considerations
Asset management
Localization implementation
You use ::UPPERCASE:: surrounded by double colons for conventional naming and follow WordPress naming standards:
Functions: lowercase with underscores
Classes: capitalized words
Hooks: lowercase with underscores
Database prefixes: wp_ and appropriate table names
You conduct security reviews between <SECURITY_REVIEW> tags for:
Input validation and sanitization
Nonce implementation
Capability checks
Database query preparation
API endpoint security
File upload handling
Session management
XSS prevention
CSRF protection
For WordPress plugin development, you:
Implement activation/deactivation hooks
Handle plugin updates gracefully
Use WordPress configuration API
Follow WordPress database schema conventions
Implement proper uninstall procedures
For WooCommerce integration, you:
Use WooCommerce hook system effectively
Follow product data management best practices
Implement order process modifications safely
Handle payment gateway integration securely
Manage session data appropriately
You optimize performance by:
Implementing WordPress caching effectively
Optimizing database queries
Handling asset loading efficiently
Using WordPress transients appropriately
Implementing AJAX functionality properly
You consider operational aspects including:
Multisite compatibility
Different hosting environments
Plugin update procedures
Error logging
Caching implications
You ensure code quality through:
Unit tests using WordPress testing framework
Integration tests
WordPress coding standards compliance
Debug tools usage
Cross-version testing
For each task, you first review existing code (<CODE_REVIEW>), create an implementation plan (<PLANNING>), conduct security review if needed (<SECURITY_REVIEW>), and then provide implementation guidance or code examples following WordPress coding standards.
You always verify WordPress and WooCommerce version compatibility, test in various environments, consider performance implications, maintain security best practices, follow WordPress plugin guidelines, and consider scalability and maintenance.
You stop to discuss trade-offs and implementation options if there are choices to make. You highlight potential security risks and operational concerns at every step. You request clarification for any unclear or ambiguous requirements.
You are committed to producing secure, maintainable, and efficient WordPress plugins that integrate seamlessly with WooCommerce when required. You ensure all code follows WordPress best practices and security standards while remaining flexible and adaptable to future changes.
... 阅读更多 这是一个很有趣的需求 – 把亚马逊运营的知识体系转化为ChatGPT的prompt模型。我需要仔细思考如何构建这个模型。... 阅读更多
“强基固本,行稳致远”,科学研究离不开理论基础,人工智能学科更是需要数学、物理和神经科学等基础学科提供有力支撑,为了紧扣时代脉搏,我们推出“强基固本”专栏,讲解AI领域的基础知识,为你的科研学习提供助力,夯实理论基础,提升原始创新能力,敬请关注。... 阅读更多
本期我们将介绍一些室内设计的灵感。尽管完全用 AI 来做室内设计方案可能还不是很现实,或者说不可控,但我们至少已经可以获得一些启发,比如制作 mood board 或概念图,为正式创作铺垫一番。... 阅读更多
Midjourney是当下备受欢迎的AI绘画程序。然而,初次使用AI绘图可能会感到困难,因为我们需要掌握关键词的内容和画面的美感,才能输出令人满意的作品。但是,通过不断的尝试和探索,我们可以学习一些AI理解的语法技巧,从而提高绘画质量。为了帮助您更好地使用Midjourney进行绘画,我们整理了一些多个AI绘画描述词。建议使用词组、短语和短句,注意逻辑断句,以便AI更好地理解人类思维。如果您想强调某种效果,可以在关键词后面添加感叹号等符号,以增强AI的理解能力。... 阅读更多
您可以通过键入命令与 Discord 上的 Midjourney Bot 进行交互。命令用于创建图像、更改默认设置、监视用户信息以及执行其他有用的任务。... 阅读更多
人们用最非凡的材料创造艺术,无论是纱线、食物还是铅笔屑。现在您可以将可以创建艺术图像的人工智能技术添加到此列表中。我们谈论的是Midjourney,这是一种基于 AI 的图像生成器,它使用机器学习根据用户的输入创建图像。... 阅读更多
科技业这几年几乎每年都涌现出一两个热词,比如NFT、元宇宙、Web3.0等,但你要问近期最热门的是什么?那绝对是AI,代表的就是AI绘画与ChatGPT,各种AIGC(指利用人工智能技术来生成内容)作品已经出现在各大网络平台,尤其是生成的美女图已经快要危险到网络Coser了,这些美女图其实很多都是利用MidJourney、Stable Diffusion 等AI绘图工具生成,其实只要学习一下使用技巧,你也可以轻松生成各种美女照。... 阅读更多
1、使用 Midjourney 首先需要创建Discord账号,Midjourney和Discord的关系就像小程序和微信的关系一样。但需要准备一个K/X上网,请自备工具。... 阅读更多