/* 样品申请弹窗 */
.sample-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}
.sample-overlay.active {
    display: flex;
}

.sample-modal {
    background: #1a1d2e;
    border-radius: 14px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: sampleSlideIn 0.25s ease-out;
}
@keyframes sampleSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.sample-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sample-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
    font-weight: 600;
}
.sample-modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    padding: 0; line-height: 1;
    transition: color 0.2s;
}
.sample-modal-close:hover { color: #fff; }

.sample-modal-body {
    padding: 20px 24px 24px;
}

.sample-form-group {
    margin-bottom: 16px;
}
.sample-form-group label {
    display: block;
    font-size: 13px;
    color: #d1d5db;
    margin-bottom: 6px;
    font-weight: 500;
}
.sample-form-group label .required { color: #ef4444; margin-right: 2px; }
.sample-form-group input,
.sample-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: #11131e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.sample-form-group input:focus,
.sample-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}
.sample-form-group input[readonly] {
    background: #0d0f18;
    color: #9ca3af;
    cursor: default;
}
.sample-form-group textarea { resize: vertical; min-height: 70px; }

.sample-form-row {
    display: flex;
    gap: 16px;
}
.sample-form-row .sample-form-group { flex: 1; }

.sample-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.sample-btn-cancel {
    padding: 10px 24px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    background: transparent;
    color: #d1d5db;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.sample-btn-cancel:hover { border-color: rgba(255,255,255,0.3); color: #fff; }
.sample-btn-submit {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.sample-btn-submit:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    transform: translateY(-1px);
}
.sample-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Toast 提示 */
.sample-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    z-index: 999999;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.sample-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.sample-toast-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}
.sample-toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

@media (max-width: 640px) {
    .sample-modal { max-width: 100%; border-radius: 12px; }
    .sample-modal-header { padding: 14px 16px; }
    .sample-modal-body { padding: 16px; }
    .sample-form-row { flex-direction: column; gap: 0; }
}
