<?php

return [
    // ISBN查询API
    'isbn_api_url' => env('ISBN_API_URL', 'https://api.isbn.cn'),
    'isbn_api_key' => env('ISBN_API_KEY', ''),

    // 借阅规则默认值
    'default_borrow_rules' => [
        'undergraduate' => [
            'max_borrow_count' => 5,
            'borrow_days' => 30,
            'max_renew_count' => 2,
            'renew_days' => 15,
            'fine_per_day' => 0.10,
            'fine_max' => 30.00,
        ],
        'postgraduate' => [
            'max_borrow_count' => 8,
            'borrow_days' => 45,
            'max_renew_count' => 2,
            'renew_days' => 15,
            'fine_per_day' => 0.10,
            'fine_max' => 30.00,
        ],
        'teacher' => [
            'max_borrow_count' => 10,
            'borrow_days' => 60,
            'max_renew_count' => 3,
            'renew_days' => 30,
            'fine_per_day' => 0.05,
            'fine_max' => 20.00,
        ],
        'social' => [
            'max_borrow_count' => 3,
            'borrow_days' => 21,
            'max_renew_count' => 1,
            'renew_days' => 7,
            'fine_per_day' => 0.20,
            'fine_max' => 50.00,
        ],
    ],

    // 座位预约配置
    'seat' => [
        'advance_days' => 1,           // 提前预约天数
        'daily_limit' => 1,            // 每人每日限约次数
        'check_in_timeout' => 30,      // 签到超时（分钟）
        'away_timeout' => 30,          // 暂离超时（分钟）
        'violation_threshold' => 3,    // 违规冻结阈值
        'freeze_days' => 7,            // 违规冻结天数
    ],

    // 逾期提醒
    'overdue' => [
        'reminder_days_before' => 3,   // 到期前几天提醒
    ],

    // 敏感数据加密
    'encryption' => [
        'enabled' => true,
        'cipher' => 'aes-256-cbc',
    ],

    // MARC数据配置
    'marc' => [
        'supported_formats' => ['cnmarc', 'marc21'],
        'import_batch_size' => 1000,
    ],
];
