/* ===================== 公共样式 ===================== */

/* 信息提示框样式 - 用于操作说明、使用指南等提示区域 */
.info {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #b0b0b0;
}

/* 信息提示框内强调文字样式 - 用于突出显示重要提示 */
.info strong {
    color: #00d4ff;
}

/* 信息提示框内列表样式 - 用于步骤说明列表 */
.info ul {
    margin: 0;
    padding-left: 20px;
}

/* 信息提示框内列表项样式 */
.info li {
    margin-bottom: 8px;
}

/* 按钮基础样式 - 所有按钮的通用样式 */
.btn {
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 主要按钮样式 - 用于主要操作按钮（如生成、确认等） */
.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: white;
    padding: 10px 20px;
    font-size: 16px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

/* 清除按钮样式 - 用于重置、清除操作按钮 */
.btn-clear {
    background: rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    font-size: 14px;
}

.btn-clear:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* 小型按钮样式 - 用于辅助操作按钮（如确认账号、批量操作等） */
.btn-small {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 6px;
}

.btn-small:hover {
    opacity: 0.9;
}

/* 历史记录容器样式 - 用于显示上传历史列表 */
.history-container {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 10px;
}

/* 历史记录项样式 - 单个历史记录的显示样式 */
.history-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.history-item:hover {
    background: rgba(255,255,255,0.1);
}

/* 历史记录项内图片样式 */
.history-item img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    margin-right: 15px;
    object-fit: cover;
}

/* 历史记录项内文件名样式 */
.history-item .filename {
    flex: 1;
    font-size: 14px;
    color: #b0b0b0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 历史记录项内删除按钮样式 */
.history-item .delete-btn {
    background: #e94560;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}

.history-item .delete-btn:hover {
    background: #c73e54;
}

/* 历史记录复选框样式 - 用于批量选择历史记录 */
.history-checkbox {
    margin-right: 10px;
    cursor: pointer;
}

/* ===================== 模态框样式 ===================== */

/* 自定义弹窗遮罩层样式 - 用于弹窗背景遮罩 */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

/* 弹窗内容容器样式 - 弹窗主体内容区域 */
.modal-content {
    background: #16213e;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* 弹窗标题样式 */
.modal-content h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 20px;
}

/* 弹窗正文样式 */
.modal-content p {
    color: #ccc;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* 弹窗按钮容器样式 */
.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* 弹窗按钮基础样式 */
.modal-btn {
    padding: 10px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

/* 提示弹窗按钮样式 */
.modal-btn.alert {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: white;
}

.modal-btn.alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

/* 确认弹窗确定按钮样式 */
.modal-btn.confirm {
    background: #e94560;
    color: white;
}

.modal-btn.confirm:hover {
    background: #c73e54;
}

/* 弹窗取消按钮样式 */
.modal-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
}

.modal-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===================== 加载状态样式 ===================== */

/* 加载遮罩层样式 - 用于后台操作时显示加载状态 */
#loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* 旋转加载图标样式 */
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 旋转动画关键帧 */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 加载提示文字样式 */
.loading-text {
    margin-top: 20px;
    color: #fff;
    font-size: 16px;
}