﻿/* request.css - 最终优化版 */

/* 主容器 */
.request-container {
    padding: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* 文献信息卡片 - 更紧凑 */
.document-card {
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
}

.document-card-header {
    background-color: #f8f9fa;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-weight: 600;
    color: #1e88e5;
    border-radius: 0.5rem 0.5rem 0 0;
    font-size: 0.9rem;
}

.document-card-body {
    padding: 0.8rem 1rem;
}

.document-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a237e;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.document-meta {
    color: #616161;
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
}

/* 紧凑的版权声明 - 移到文献信息下方 */
.copyright-notice {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 0.8rem;
    line-height: 1.4;
}

.notice-title {
    font-weight: 600;
    color: #d32f2f;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.notice-content p {
    margin-bottom: 0.4rem;
}

.notice-libraries {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(0,0,0,0.1);
}

.libraries-title {
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #1e88e5;
    font-size: 0.85rem;
}

.libraries-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.library-badge {
    background-color: #e3f2fd;
    color: #1565c0;
    padding: 0.2rem 0.4rem;
    border-radius: 0.2rem;
    font-size: 0.75rem;
}

/* 更紧凑的表单布局 */
.request-form {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
}

.form-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e88e5;
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.form-group {
    flex: 1;
    min-width: 120px;
}

.form-label {
    display: block;
    margin-bottom: 0.2rem;
    font-weight: 500;
    color: #424242;
    font-size: 0.85rem;
}

.form-control {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    height: 2rem;
}

/* 回复方式与复选框同一行 */
.reply-method-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.reply-method-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #424242;
    white-space: nowrap;
}

.checkbox-row {
    display: flex;
    gap: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 0.4rem;
    width: 1em;
    height: 1em;
}

.form-check-label {
    font-size: 0.85rem;
    user-select: none;
}

/* 突出的提交按钮 */
.submit-section {
    position: sticky;
    bottom: 0.5rem;
    background: white;
    padding: 0.6rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
    margin-top: 0.8rem;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 0.6rem;
    background-color: #1e88e5;
    color: white;
    border: none;
    border-radius: 0.4rem;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .submit-btn:hover {
        background-color: #1565c0;
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    .submit-btn:disabled {
        background-color: #b0bec5;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* 移动端优化 */
@media (max-width: 576px) {
    .request-container {
        padding: 0.8rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0.6rem;
    }

    .form-group {
        min-width: 100%;
    }

    .reply-method-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .submit-section {
        position: static;
        margin-top: 1rem;
    }
}
