* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: #2c3e50;
    font-size: 24px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-link {
    background-color: transparent;
    color: #3498db;
    text-decoration: underline;
}

/* 项目列表 */
.projects-list {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    transition: box-shadow 0.3s;
}

.project-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.project-header h2 {
    font-size: 18px;
    color: #2c3e50;
}

.project-actions {
    display: flex;
    gap: 5px;
}

.project-info {
    margin-bottom: 10px;
}

.project-info p {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
}

.project-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 配置编辑器 */
.config-editor {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.editor-toolbar {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.config-textarea {
    width: 100%;
    min-height: 500px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
}

.config-info {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.config-info h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.config-info p {
    margin: 10px 0;
}

.config-info code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* 表单样式 */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

/* 消息提示 */
.error-message {
    background-color: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    border-left: 4px solid #c33;
}

.success-message {
    background-color: #efe;
    color: #3c3;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    border-left: 4px solid #3c3;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.modal-content select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin: 10px 0;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 配置文件列表面板 */
.config-files-panel {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.files-header h3 {
    margin: 0;
    color: #2c3e50;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.file-item:hover {
    background-color: #f5f5f5;
    border-color: #3498db;
}

.file-item.active {
    background-color: #e3f2fd;
    border-color: #3498db;
    font-weight: 500;
}

.file-name {
    flex: 1;
    font-family: 'Courier New', monospace;
    color: #2c3e50;
}

.file-actions {
    display: flex;
    gap: 5px;
}

.btn-icon {
    background: transparent;
    border: none;
    color: #e74c3c;
    font-size: 20px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    border-radius: 3px;
}

.btn-icon:hover {
    background-color: #fee;
}

.empty-files {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.editor-header h3 {
    margin: 0;
    color: #2c3e50;
}

.editor-header h3 span {
    font-family: 'Courier New', monospace;
    color: #3498db;
}

/* 审核版本面板 */
.review-mode-panel {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.review-mode-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-mode-label {
    font-weight: 500;
    color: #2c3e50;
}

.review-mode-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background-color: #2ecc71;
    color: white;
}

.review-mode-badge.inactive {
    background-color: #95a5a6;
}

.review-mode-info {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.review-mode-info p {
    margin-bottom: 10px;
    color: #666;
}

.version-switch {
    display: flex;
    gap: 10px;
}

/* 开关样式 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #3498db;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 1px #3498db;
}

