    .leave-system-container {
        max-width: 700px; margin: 0 auto; padding: 25px;
        background: #fff; border-radius: 10px;
        box-shadow: 0 3px 15px rgba(0,0,0,0.1);
        font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    }
    .leave-class-banner {
        background: linear-gradient(135deg, #2196F3, #1565C0);
        color: #fff; padding: 14px 20px; border-radius: 8px 8px 0 0;
        text-align: center; font-size: 20px; font-weight: 600;
        margin: -25px -25px 25px -25px; letter-spacing: 2px;
    }
    .form-title {
        color: #333; margin-bottom: 20px; padding-bottom: 10px;
        border-bottom: 2px solid #f0f0f0; display: flex; align-items: center;
    }
    .form-title .dashicons { margin-right: 10px; color: #2196F3; }
    .form-group { margin-bottom: 16px; }
    .form-group > label {
        display: flex; align-items: center; margin-bottom: 8px;
        font-weight: 600; color: #555;
    }
    .form-group > label .dashicons { margin-right: 8px; color: #607d8b; }
    .form-input, .form-textarea {
        width: 100%; padding: 12px 15px; border: 1px solid #ddd;
        border-radius: 5px; font-size: 15px; box-sizing: border-box;
        transition: border 0.3s; background: #fff;
    }
    .form-input:focus, .form-textarea:focus {
        border-color: #2196F3; outline: none;
        box-shadow: 0 0 0 2px rgba(33,150,243,0.2);
    }
    .form-textarea { min-height: 56px; resize: vertical; }
    .hint-text { font-size: 13px; margin-top: 5px; min-height: 0; }

    /* 选项药丸（类型/时段） */
    .pill-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
    .pill { position: relative; cursor: pointer; }
    .pill input { position: absolute; opacity: 0; }
    .pill span {
        display: inline-block; padding: 10px 22px; border-radius: 50px;
        border: 1.5px solid #ddd; background: #f9f9f9; font-size: 15px;
        transition: all 0.2s; user-select: none;
    }
    .pill input:checked + span {
        background: #e3f2fd; border-color: #2196F3; color: #1565C0; font-weight: 600;
    }

    /* 日期行 */
    .date-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
    .date-input { flex: 1; min-width: 150px; }
    .quick-dates { display: flex; gap: 6px; }
    .quick-date {
        padding: 10px 14px; border: 1px solid #ddd; background: #f5f5f5;
        border-radius: 5px; cursor: pointer; font-size: 14px; transition: all 0.2s;
    }
    .quick-date:hover { background: #e3f2fd; border-color: #2196F3; }
    #leave-period-group { margin-top: 8px; }

    /* 原因模板 */
    .reason-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
    .reason-chip {
        padding: 8px 16px; border: 1px dashed #90caf9; background: #f5faff;
        color: #1565C0; border-radius: 50px; cursor: pointer; font-size: 14px;
        transition: all 0.2s;
    }
    .reason-chip:hover { background: #e3f2fd; }
    .reason-chip.chip-dup { background: #fff3e0; border-color: #ff9800; color: #e65100; }

    /* 语音可选折叠 */
    .audio-toggle-btn {
        width: 100%; padding: 12px; background: #f9f9f9; border: 1px dashed #ccc;
        border-radius: 8px; cursor: pointer; font-size: 14px; color: #666;
        display: flex; align-items: center; gap: 6px; justify-content: center;
    }
    .audio-toggle-btn:hover { background: #f0f7ff; border-color: #2196F3; }
    .audio-optional-panel { margin-top: 12px; }

    /* 录音 tabs */
    .recording-tabs { display: flex; margin-bottom: 15px; border-bottom: 2px solid #e0e0e0; }
    .tab-btn {
        flex: 1; padding: 10px; background: #f5f5f5; border: none;
        border-bottom: 2px solid transparent; cursor: pointer; font-size: 14px;
        transition: all 0.3s; display: flex; align-items: center;
        justify-content: center; gap: 5px;
    }
    .tab-btn.active { background: #fff; border-bottom-color: #2196F3; color: #2196F3; font-weight: 600; }
    .tab-panel { display: none; }
    .tab-panel.active { display: block; }

    /* 录音控制 */
    .recorder-container {
        background: #f9f9f9; border-radius: 8px; padding: 20px;
        text-align: center; border: 2px dashed #ddd;
    }
    .recorder-status { color: #666; margin-bottom: 15px; font-size: 14px; }
    .record-btn {
        display: inline-flex; align-items: center; gap: 8px;
        padding: 12px 24px; border: none; border-radius: 50px;
        font-size: 16px; cursor: pointer; transition: all 0.3s;
    }
    .record-btn.start { background: #f44336; color: #fff; }
    .record-btn.stop { background: #607d8b; color: #fff; }
    .record-btn:disabled { opacity: 0.6; cursor: not-allowed; }
    .recording-indicator {
        margin-top: 15px; display: flex; align-items: center;
        justify-content: center; gap: 8px;
    }
    .recording-dot {
        width: 10px; height: 10px; background: #f44336;
        border-radius: 50%; animation: leaveblink 1s infinite;
    }
    @keyframes leaveblink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
    .recording-time { font-family: monospace; font-size: 18px; color: #f44336; font-weight: bold; }
    .recording-hint { color: #666; font-size: 13px; }
    .audio-preview { margin-top: 15px; padding: 15px; background: #fff; border-radius: 8px; }
    .audio-preview audio { width: 100%; margin-bottom: 10px; }
    .preview-actions { display: flex; gap: 10px; justify-content: center; }
    .preview-btn {
        padding: 8px 16px; border: 1px solid #ddd; background: #fff;
        border-radius: 4px; cursor: pointer; transition: all 0.3s;
        display: inline-flex; align-items: center; gap: 5px;
    }
    .use-record-btn { background: #4CAF50; color: #fff; border-color: #4CAF50; }
    .preview-btn:disabled { opacity: 0.6; cursor: not-allowed; }

    /* 文件上传 */
    .file-upload-wrapper { position: relative; margin-bottom: 10px; }
    .file-upload-input { position: absolute; left: -9999px; }
    .file-upload-label { display: flex; cursor: pointer; }
    .file-upload-button {
        padding: 10px 15px; background: #2196F3; color: #fff;
        border-radius: 5px 0 0 5px; transition: all 0.3s;
    }
    .file-upload-text {
        flex-grow: 1; padding: 10px; border: 1px solid #ddd; border-left: none;
        border-radius: 0 5px 5px 0; background: #f9f9f9;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .upload-hints { margin-top: 8px; font-size: 13px; color: #666; }
    .upload-hints p { margin: 5px 0; display: flex; align-items: center; }
    .upload-hints .dashicons { margin-right: 5px; font-size: 16px; color: #ff9800; }

    /* 进度条 */
    .upload-progress-container { margin-top: 15px; }
    .progress-bar-background {
        width: 100%; height: 20px; background: #f1f1f1;
        border-radius: 10px; overflow: hidden;
    }
    .progress-bar-fill {
        height: 100%; width: 0%; background: #4CAF50; border-radius: 10px;
        text-align: center; color: #fff; font-size: 12px; line-height: 20px;
        transition: width 0.3s;
    }
    .upload-status-text { margin-top: 5px; font-size: 12px; color: #666; text-align: center; }

    /* 消息 */
    .form-messages-container { margin-bottom: 20px; scroll-margin-top: 20px; }
    .leave-message {
        padding: 12px 15px; margin-bottom: 15px; border-radius: 5px;
        display: flex; align-items: center;
    }
    .leave-message.success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4CAF50; }
    .leave-message.error { background: #ffebee; color: #c62828; border-left: 4px solid #f44336; }
    .leave-message .dashicons { margin-right: 10px; font-size: 20px; }

    /* 提交 */
    .form-submit-group { margin-top: 25px; text-align: center; }
    .submit-btn {
        display: inline-block; padding: 13px 30px; background: #2196F3;
        color: #fff; border: none; border-radius: 6px; font-size: 17px;
        font-weight: 600; cursor: pointer; transition: all 0.3s;
    }
    .submit-btn:hover { background: #0b7dda; }
    .submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }
    .submit-btn .dashicons { margin-right: 8px; font-size: 18px; }

    /* v5.1.0 学生搜索下拉 */
    .student-search-wrap { position: relative; }
    .student-dropdown {
        position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
        max-height: 260px; overflow-y: auto; background: #fff;
        border: 1px solid #2196F3; border-top: none; border-radius: 0 0 8px 8px;
        box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    }
    .sd-item { padding: 11px 14px; cursor: pointer; font-size: 15px; border-bottom: 1px solid #f0f0f0; }
    .sd-item:hover, .sd-item:active { background: #e3f2fd; }
    .sd-seat { color: #2196F3; font-weight: 600; margin-right: 8px; }
    .sd-empty { padding: 12px 14px; color: #999; font-size: 14px; }

    /* v5.1.0 语音必选 */
    .required-mark {
        display: inline-block; background: #f44336; color: #fff; font-size: 12px;
        border-radius: 4px; padding: 1px 8px; margin-left: 6px; vertical-align: middle;
    }
    .voice-required-box {
        border: 1px solid #ffcdd2; background: #fff8f7; border-radius: 8px; padding: 12px;
    }
    .voice-hint { margin: 0 0 10px 0; color: #c62828; font-size: 13px; line-height: 1.5; }

    /* v5.1.0 回执凭证 */
    .leave-receipt { margin-top: 4px; }
    .receipt-card {
        background: #fff; border: 2px solid #4CAF50; border-radius: 12px;
        padding: 20px; box-shadow: 0 4px 20px rgba(76,175,80,0.15);
    }
    .receipt-head { font-size: 20px; font-weight: 700; color: #2e7d32; text-align: center; margin-bottom: 12px; }
    .receipt-no-line {
        text-align: center; font-size: 16px; margin-bottom: 14px; padding: 10px;
        background: #f1f8e9; border-radius: 8px;
    }
    .receipt-no-line strong { color: #2e7d32; font-size: 19px; letter-spacing: 1px; }
    .receipt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
    .receipt-table th, .receipt-table td { padding: 9px 10px; border-bottom: 1px solid #eee; text-align: left; }
    .receipt-table th { color: #888; width: 80px; font-weight: 500; white-space: nowrap; }
    .receipt-tip { text-align: center; color: #e65100; font-size: 15px; margin: 14px 0 6px; }
    .receipt-query-tip { text-align: center; color: #999; font-size: 12px; margin: 0 0 14px; }
    .receipt-new-btn {
        width: 100%; padding: 12px; background: #fff; color: #2196F3;
        border: 1px solid #2196F3; border-radius: 8px; font-size: 15px; cursor: pointer;
    }
    .receipt-new-btn:hover { background: #e3f2fd; }

    /* v5.1.0 状态查询 */
    .leave-query-box {
        margin-top: 24px; padding: 16px; background: #f7f9fc;
        border: 1px dashed #b0bec5; border-radius: 10px;
    }
    .query-title { font-weight: 600; color: #455a64; margin-bottom: 10px; font-size: 15px; }
    #leave-query-form { display: flex; gap: 8px; flex-wrap: wrap; }
    #leave-query-form .form-input { flex: 1; min-width: 140px; margin: 0; }
    .query-btn {
        padding: 10px 20px; background: #607d8b; color: #fff; border: none;
        border-radius: 6px; font-size: 14px; cursor: pointer;
    }
    .query-btn:hover { background: #546e7a; }
    .query-loading { color: #999; font-size: 13px; margin-top: 8px; }
    .query-error { color: #c62828; font-size: 13px; margin-top: 8px; }
    .query-card { margin-top: 10px; background: #fff; border-radius: 8px; padding: 12px 14px; border: 1px solid #e0e0e0; }
    .query-status { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
    .query-line { font-size: 13px; color: #555; line-height: 1.7; }
    .query-list-title { font-size: 13px; font-weight: 600; color: #455a64; margin-bottom: 8px; }
    .query-list-row {
        display: flex; align-items: center; gap: 8px; font-size: 13px;
        padding: 8px 2px; border-bottom: 1px dashed #eee; flex-wrap: wrap;
    }
    .query-list-row:last-of-type { border-bottom: none; }
    .ql-time { flex: 1; min-width: 110px; color: #333; }
    .ql-name { color: #1565C0; font-weight: 600; }
    .ql-type { color: #888; }
    .ql-status { margin-left: auto; }
    .query-list-note { margin-top: 8px; font-size: 11px; color: #aaa; }
    .query-card.qrc { text-align: left; }
    .qrc-head {
        display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
        padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; flex-wrap: wrap;
    }
    .qrc-parent { font-size: 15px; font-weight: 700; color: #1565C0; }
    .qrc-class {
        background: #e3f2fd; color: #1565C0; font-size: 11px;
        border-radius: 4px; padding: 1px 8px;
    }
    .qrc-status { margin-left: auto; font-size: 14px; font-weight: 600; }

    @media (max-width: 600px) {
        .leave-system-container { padding: 15px; }
        .leave-class-banner { font-size: 16px; margin: -15px -15px 20px -15px; padding: 10px 15px; }
        .form-title { font-size: 18px; }
        .submit-btn { width: 100%; }
        .pill span { padding: 9px 16px; }
        .preview-actions { flex-direction: column; }
        #leave-query-form { flex-direction: column; }
        .query-btn { width: 100%; }
    }