@import "tailwindcss"; :root { --background: #161823; /* theme background */ --foreground: #ededed; --font-geist-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; --font-geist-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; } @theme inline { --color-background: var(--background); --color-foreground: var(--foreground); --font-sans: var(--font-geist-sans); --font-mono: var(--font-geist-mono); } @media (prefers-color-scheme: dark) { :root { --background: #161823; --foreground: #ededed; } } body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-geist-sans); } /* 滚动条隐藏 */ .no-scrollbar::-webkit-scrollbar { display: none; } /* 搜索结果高亮标记样式 */ mark { background-color: rgb(234 179 8 / 0.3); /* yellow-500/30 */ color: rgb(253 224 71); /* yellow-300 */ padding: 0.125rem 0.25rem; border-radius: 0.25rem; font-weight: 500; } .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; } .h-screen { height: 100dvh; } .min-h-screen { min-height: 100dvh; } /* 评论面板自定义滚动条样式 */ .comment-scroll::-webkit-scrollbar { width: 6px; } .comment-scroll::-webkit-scrollbar-track { background: transparent; } .comment-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 3px; transition: background 0.2s; } .comment-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); } .comment-scroll { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent; }