/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* 主布局容器 - 左右结构 */
.main-wrapper {
    display: flex;
    min-height: 100vh;
}

/* 左侧侧边栏 - 深色风格 */
.sidebar {
    width: 240px;
    background: #2c3e50;
    border-right: none;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

/* Logo区域 */
.sidebar-logo {
    padding: 20px 30px;
    text-align: left;
    background: transparent;
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.sidebar-logo:hover {
    opacity: 0.8;
}

.sidebar-logo img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    object-fit: contain;
}

.sidebar-logo h1 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* 菜单区域 */
.sidebar-menu {
    flex: 1;
    padding: 0 0 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-menu-item {
    display: block;
    padding: 14px 35px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
    position: relative;
    letter-spacing: 0.2px;
}

.sidebar-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-left-color: #057aef;
    padding-left: 38px;
}

.sidebar-menu-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 500;
    border-left-color: #057aef;
}

/* 侧边栏底部按钮区域 */
.sidebar-footer {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
}

.sidebar-btn {
    width: 100%;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.25s ease;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

.sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* 右侧主内容区域 */
.main-content {
    flex: 1;
    margin-left: 240px;
    min-height: 100vh;
    background: #f5f5f5;
    padding: 0;
}

.container {
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
}

/* 内容区域 */
.content {
    flex: 1;
    padding: 40px;
    background: #ffffff;
}

/* 3栏布局样式 */
.content-columns {
    display: flex;
    gap: 20px;
    width: 100%;
    min-height: calc(100vh - 80px);
    padding: 0;
}

.content-column {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px 20px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    max-height: calc(100vh - 80px);
}

.content-column-left {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    /* border: 1px solid #e0e0e0; */
    border-radius: 4px;
    padding: 30px 0 30px;
    display: flex;
    flex-direction: column;
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); */
    overflow-y: auto;
    max-height: calc(100vh - 80px);
}

.content-column h3 {
    margin: 0 0 1px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1776d4;
    padding-bottom: 8px;
    /* border-bottom: 2px solid #f0f0f0; */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-column-left h3 {
    color: #2c3e50;
}

/* 提示词列表列 */
.prompt-list-column {
    flex: 0 0 320px;
    min-width: 320px;
}

/* 提示词列表容器 */
.prompt-list-container {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 8px;
}

/* 分类容器 */
.prompt-category-container {
    margin-bottom: 10px;
}

.category-prompts-container {
    transition: all 0.3s ease;
}

.category-toggle-btn {
    transition: color 0.2s;
}

.category-toggle-btn:hover {
    opacity: 1;
    color: rgba(255, 255, 255, 1);
}

/* 提示词项 */
.prompt-item {
    padding: 12px 15px;
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
}

.prompt-item:hover {
    border-color: #1387C0;
    /* background: #f0f8ff; */
}

.prompt-item.active {
    border-color: #1387c000;
    background: #d0e6fb;
    /* border-left: 3px solid #2c3e50; */
}

.prompt-item-name {
    font-weight: 600;
    color: #1776d4;
    font-size: 14px;
    margin-bottom: 4px;
}

.prompt-item-preview {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 标签筛选区域 */
.tags-filter-container {
    padding: 12px 0 0;
    /* background: #f9f9f9; */
    /* border-radius: 6px; */
    /* border: 1px solid #e0e0e0; */
}

.tags-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.filter-tag.active {
    background: #1387C0 !important;
    color: white !important;
}

.filter-tag.active:hover {
    background: #0f6fa0 !important;
}

/* 提示词标签 */
.prompt-item-tags {
    margin-top: 8px;
}

/* 提示词详情区域 */
.prompt-detail-section {
    margin-bottom: 20px;
    /* padding-bottom: 20px; */
    /* border-bottom: 1px solid #e0e0e0; */
}

.prompt-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.prompt-detail-header-left {
    flex: 1;
}

.prompt-detail-header-right {
    flex-shrink: 0;
}

.prompt-detail-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.prompt-detail-description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.prompt-detail-content {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    min-height: 100px;
    max-height: 128px;
    overflow-y: auto;
    font-size: 11px;
    line-height: 1.6;
    color: #555;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 提示词内容遮罩层 */
.prompt-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    /* backdrop-filter: blur(2px); */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.prompt-detail-overlay:hover {
    background: rgba(255, 255, 255, 0.5);
}

.prompt-detail-overlay-btn {
    background: #2c3e506b;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    pointer-events: auto;
}

.prompt-detail-overlay-btn:hover {
    background: #34495eb0;
}

.prompt-detail-overlay-btn:active {
    background: #1a252f;
}

.empty-state {
    color: #999;
    text-align: center;
    /* padding: 40px 20px; */
    font-size: 14px;
}

/* 输入配置区域 */
.input-config-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* 内容输入说明样式 */
.content-input-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
    animation: slideDown 0.3s ease;
}

.content-input-hint .hint-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.content-input-hint .hint-text {
    flex: 1;
    color: #856404;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    padding: 6px 0;
}

.content-input-hint .load-example-btn {
    flex-shrink: 0;
    color: #856404;
    background: rgba(255, 255, 255, 0.6);
    padding: 5px 10px;
    margin-top: 3px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    /* border: 1px solid rgba(133, 100, 4, 0.3); */
    white-space: nowrap;
}

.content-input-hint .load-example-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #856404;
    color: #654d03;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 15px;
}

.label-actions {
    display: flex;
    gap: 10px;
}

.form-select,
.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    transition: all 0.25s ease;
    background: #fff;
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.1);
}

.form-textarea {
    resize: vertical;
    line-height: 1.5;
    min-height: 150px;
}

.form-hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.form-row-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-row-group .form-group {
    flex: 1;
    min-width: 150px;
}

.form-actions {
    display: flex;
    gap: 10px;
    /* margin-top: auto; */
    padding-top: 20px;
}

/* AI平台快捷链接样式 */
.ai-platform-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 15px;
    /* padding-top: 20px; */
    /* border-top: 1px solid #e0e0e0; */
    flex-wrap: wrap;
}

.ai-platform-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.ai-platform-link:hover {
    background-color: #e7f3ff;
}

.ai-platform-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ai-platform-link:hover .ai-platform-icon {
    border-color: #1387C0;
    box-shadow: 0 2px 4px rgba(19, 135, 192, 0.2);
}

.ai-platform-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
}

.ai-platform-name {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    transition: color 0.2s;
}

.ai-platform-link:hover .ai-platform-name {
    color: #1387C0;
}

/* 按钮样式 */
.submit-btn {
    flex: 1;
    padding: 6px 24px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

.submit-btn:hover:not(:disabled) {
    background: #34495e;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.2);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.submit-btn-secondary {
    padding: 6px 24px;
    background: #e0e0e0;
    color: #666;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn-secondary:hover {
    background: #d0d0d0;
    color: #333;
}

.text-action-btn {
    color: #1387C0;
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.2s;
}

.text-action-btn:hover {
    background-color: #f0f0f0;
    color: #0f6fa0;
}

.title-actions {
    display: flex;
    gap: 10px;
}

/* 结果区域 */
.result-column {
    position: relative;
}

.result-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.result-textarea {
    flex: 1;
    min-height: 400px;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    resize: vertical;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
}

.result-textarea:focus {
    outline: none;
    border-color: #1387C0;
    box-shadow: 0 0 0 2px rgba(19, 135, 192, 0.1);
}

.waiting-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.waiting-text {
    font-size: 16px;
}

/* 加载指示器 */
.loading {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 15px 30px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #666;
    font-size: 14px;
}

/* 设置模态框 */
.settings-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.settings-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-modal-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
}

.settings-modal-header {
    padding: 15px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2c3e50;
    color: white;
    border-radius: 10px 10px 0 0;
}

.settings-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.settings-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.settings-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.settings-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.settings-modal-footer {
    padding: 15px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
    background-color: #fff;
    border-radius: 0 0 12px 12px;
}

.settings-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #1387C0;
    border-bottom-color: #1387C0;
    font-weight: 500;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.settings-form-group {
    margin-bottom: 20px;
}

.settings-form-group > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    flex: 1;
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 18px;
    color: #666;
    transition: color 0.2s ease;
    padding: 5px;
}

.password-toggle:hover {
    color: #333;
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-save {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-save:hover {
    background: #34495e;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 自定义滚动条 - 细且浅色（参考旧项目） */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.15);
}

/* Firefox 滚动条样式 */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.content-column::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.content-column::-webkit-scrollbar-track {
    background: transparent;
}

.content-column::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.content-column::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.15);
}

/* Firefox 滚动条样式 */
.content-column {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

/* 自定义提示词样式 */
.prompt-item-custom {
    /* border-left: 3px solid #1387C0; */
    /* background-color: #fffcf9; */
}

.custom-prompts-list {
    max-height: 400px;
    overflow-y: auto;
}

.custom-prompt-item {
    transition: all 0.2s;
}

.custom-prompt-item:hover {
    background: #f0f8ff !important;
    border-color: #1387C0 !important;
}

.custom-prompt-item button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .content-columns {
        flex-direction: column;
    }
    
    .content-column {
        min-height: auto;
        max-height: none;
    }
    
    .prompt-list-column {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: 200px;
    }

    .content {
        padding: 20px;
    }

    .form-row-group {
        flex-direction: column;
    }
}

/* 关于对话框样式 */
.about-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.about-modal.show {
    display: flex;
}

.about-dialog {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    padding: 0;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.about-dialog-header {
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-dialog-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.about-dialog-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.about-dialog-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.about-dialog-content {
    padding: 30px;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.about-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-align: center;
}

.about-info {
    width: 100%;
}

.about-info-item {
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    text-align: left;
}

.about-info-item strong {
    color: #333;
    font-weight: 600;
    display: inline-block;
    min-width: 60px;
}

.about-info-item a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.25s ease;
}

.about-info-item a:hover {
    color: #34495e;
    text-decoration: underline;
}

.about-qrcode {
    margin-top: 10px;
    text-align: center;
    width: 100%;
}

.about-qrcode img {
    max-width: 150px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-dialog-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
}

.about-dialog-footer button {
    padding: 10px 40px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.about-dialog-footer button:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

/* 提示词详情模态框样式 */
.prompt-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.prompt-detail-modal.show {
    display: flex;
}

.prompt-detail-dialog {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    padding: 0;
    position: relative;
    animation: modalFadeIn 0.3s;
    display: flex;
    flex-direction: column;
}

.prompt-detail-dialog-header {
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.prompt-detail-dialog-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.prompt-detail-dialog-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.prompt-detail-dialog-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.prompt-detail-dialog-content {
    padding: 10px 30px 0px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.prompt-detail-info {
    width: 100%;
}

.prompt-detail-item {
    /* margin-bottom: 20px; */
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.prompt-detail-item:last-child {
    margin-bottom: 0;
}

.prompt-detail-item strong {
    color: #333;
    font-weight: 600;
    display: inline-block;
    min-width: 60px;
    /* margin-bottom: 8px; */
    margin-top: 8px;
}

.prompt-detail-item > span {
    color: #555;
}

.prompt-detail-item > div {
    color: #555;
    /* margin-top: 8px; */
    margin-bottom: 10px;
}

.prompt-detail-content-wrapper {
    margin-top: 8px;
}

.prompt-detail-content-textarea {
    width: 100%;
    min-height: 400px;
    max-height: 400px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-family: "Microsoft YaHei", Arial, sans-serif, 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.6;
    resize: vertical;
    background: #f9f9f9;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    box-sizing: border-box;
}

.prompt-detail-content-textarea:focus {
    outline: none;
    border-color: #1387C0;
    box-shadow: 0 0 0 3px rgba(19, 135, 192, 0.1);
    background: #fff;
}

.prompt-detail-dialog-footer {
    padding: 8px 30px 20px;
    /* border-top: 1px solid #e0e0e0; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    background-color: #fff;
    border-radius: 0 0 10px 10px;
}

.prompt-detail-footer-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.prompt-detail-footer-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.prompt-detail-dialog-footer .btn-default {
    background: white;
    color: #666;
    border: 1px solid #ddd;
    padding: 6px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.prompt-detail-dialog-footer .btn-default:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

.prompt-detail-dialog-footer .btn-success {
    background: #fd6d2e99;
    color: white;
    border: none;
    padding: 6px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    font-weight: 500;
}

.prompt-detail-dialog-footer .btn-success:hover {
    background: #fd7d3ecc;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(253, 109, 46, 0.3);
}

/* 灰色按钮样式（用于左侧按钮） */
.prompt-detail-dialog-footer .btn-gray {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 6px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.prompt-detail-dialog-footer .btn-gray:hover {
    background: #e8e8e8;
    border-color: #ccc;
    color: #333;
}

/* 保存提示词按钮样式（在结果标题后） */
.btn-save-result {
    padding: 6px 16px;
    background: #1387C0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-save-result:hover {
    background: #0f6fa0;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(19, 135, 192, 0.3);
}
