:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --light-color: #f9f9f9;
    --border-color: #eaeaea;
    --text-color: #333;
    --text-light: #7f8c8d;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.field-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 3px;
}

/* 表单复选框和单选框样式 */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.form-check-input {
    margin-right: 8px;
}

.form-check-label {
    font-size: 0.9rem;
    cursor: pointer;
}

/* 文章选择区域样式 */
#article-selection-area {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.mb-2 {
    margin-bottom: 8px;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* 滚动条样式 */
#article-selection-area::-webkit-scrollbar {
    width: 6px;
}

#article-selection-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#article-selection-area::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#article-selection-area::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        width: 95%;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-check {
        margin-bottom: 6px;
    }

    #article-selection-area {
        max-height: 150px;
    }

    .form-check-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 15px;
    }

    .modal-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .modal-title {
        font-size: 1rem;
    }

    .form-input {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .modal-footer {
        flex-direction: column;
        gap: 8px;
    }

    .modal-footer .btn {
        width: 100%;
    }

    .form-check-label {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}