/* =========================================
   全局自定义样式
   ========================================= */

/* 隐藏默认滚动条但保留功能 (用于整体页面) */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* 自定义细滚动条 (用于历史记录区域) */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #e5e7eb;
    border-radius: 20px;
}
.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #3f3f46;
}

/* 进度环动画 */
.progress-ring__circle {
    transition: stroke-dashoffset 0.5s ease-in-out;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* =========================================
   留言板强制美化
   (针对 JS 动态生成的 HTML 元素)
   ========================================= */

#messages-list > div, 
#messages-list > li,
#messages-list .message-item {
    background-color: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    line-height: 1.6;
}

/* 暗色模式适配 */
.dark #messages-list > div, 
.dark #messages-list > li,
.dark #messages-list .message-item {
    background-color: #27272a;
    border-color: #3f3f46;
    color: #e4e4e7;
}

/* 留言文字 */
#messages-list p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: #374151;
}
.dark #messages-list p {
    color: #d4d4d8;
}

/* 元数据 (时间、IP等) */
#messages-list span, 
#messages-list small,
#messages-list .meta {
    color: #9ca3af;
    font-size: 0.75rem;
}

/* 管理员回复框 */
.admin-reply {
    background-color: rgba(59, 130, 246, 0.02) !important;
    border-left: 3px solid #3b82f6 !important;
    margin-top: 0.75rem;
    margin-left: 0;
    border-radius: 0.5rem !important;
}