/* 电子同意书只对自身容器设定样式，保留 iPhone / iPad 页面滚动。 */
.consent-module{max-width:960px;margin:0 auto;padding:clamp(16px,3vw,30px);font-size:16px;line-height:1.85;color:#20324a;background:#fff;border:1px solid #e0e7ee;border-radius:16px}.consent-module *{box-sizing:border-box}.consent-module [hidden]{display:none!important}.consent-module-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:12px;border-bottom:1px solid #e3e9f0}.consent-module-heading h2{font-size:22px;margin:0}.consent-module-heading strong{font-size:15px;overflow-wrap:anywhere}.consent-storage-hint,.consent-form-caption{color:#596a80;font-size:14px;line-height:1.7}.consent-module .consent-document{margin:28px 0 24px}.consent-document h2{text-align:center;font-size:24px;line-height:1.5;margin:22px 0 8px}.consent-document .consent-study-title{text-align:center;font-weight:600}.consent-document-meta{text-align:center;color:#56677c;font-size:15px}.consent-document p{margin:12px 0}.consent-section h3{font-size:18px;margin:22px 0 8px}.consent-section p{text-align:justify;overflow-wrap:anywhere}.consent-module button,.consent-module input,.consent-module select{font:inherit}.consent-module button{min-height:44px;padding:10px 16px;cursor:pointer;line-height:1.5;border:1px solid #cbd6e2;background:#fff;border-radius:9px;color:#243b56}.consent-module button:hover{background:#f1f5fa}.consent-module button.primary{background:#245bc2;color:#fff;border-color:#245bc2}.consent-module button.primary:hover{background:#1c4da6}.consent-module button:disabled{opacity:.55;cursor:wait}.consent-module input:not([type=checkbox]),.consent-module select{width:100%;min-height:46px;border:1px solid #bdcad9;border-radius:8px;padding:10px 12px;background:#fff;color:#20324a;font-size:16px;line-height:1.5}.consent-module input:focus-visible,.consent-module select:focus-visible,.consent-module button:focus-visible,.consent-module summary:focus-visible{outline:3px solid #91b7fa;outline-offset:2px}.consent-acknowledgement,.consent-translator-toggle{display:flex;align-items:flex-start;gap:12px;cursor:pointer;padding:16px;border:1px solid #c7d6eb;border-radius:10px;background:#f4f8ff}.consent-acknowledgement input,.consent-translator-toggle input{flex:0 0 auto;width:24px;height:24px;margin:3px 0 0;accent-color:#245bc2;cursor:pointer}.consent-translator-toggle{margin-top:22px;background:#f8fafc;border-color:#e0e6ee}.consent-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:22px 0}.consent-field{display:flex;flex-direction:column;gap:6px;min-width:0}.consent-field>span{font-size:15px;font-weight:600}.consent-relationship{min-width:0}.consent-pad-block{margin:22px 0}.consent-pad-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.consent-pad-heading strong{font-size:16px}.consent-pad-heading strong span{color:#b42335}.consent-pad-heading button{font-size:14px;padding:8px 12px}.consent-signature-pad{display:block;width:100%;height:220px;touch-action:none;user-select:none;-webkit-user-select:none;background:linear-gradient(transparent calc(75% - 1px),#edf1f6 75%,transparent calc(75% + 1px)),#fcfdff;border:1.5px solid #aabdd6;border-radius:10px;cursor:crosshair}.consent-pad-block small{display:block;color:#65758b;font-size:13px;margin-top:5px}.consent-translator{padding:18px 0 0}.consent-translator>.consent-field{max-width:450px}.consent-actions,.consent-secondary-actions{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 8px}.consent-secondary-actions{border-top:1px solid #e1e7ee;padding-top:18px}.consent-notice{padding:14px 16px;border-radius:9px;background:#fff8e8;border:1px solid #ebd9a7;color:#6a4e14;font-size:15px;line-height:1.7}.consent-success{background:#eff9f4;border-color:#b9ddcc;color:#216342}.consent-errors{white-space:pre-line;padding:14px 16px;border:1px solid #edbac0;background:#fff2f3;color:#a32030;border-radius:9px;line-height:1.7}.consent-save-status{min-height:24px;font-size:13px;color:#436e5a;margin:8px 0}.consent-save-status.is-error{color:#a32030}.consent-archive-heading{display:flex;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid #d6e0e9}.consent-archive-heading>span{color:#216342;font-size:14px}.consent-signed-details{margin-top:26px;padding-top:18px;border-top:1px solid #d8e2ec}.consent-signed-details h3{font-size:18px}.consent-signed-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.consent-signature-copy{min-width:0;break-inside:avoid}.consent-signature-copy h3{font-size:16px}.consent-signed-image{display:block;width:100%;max-height:200px;border-bottom:1px solid #b9c8d8}.consent-archive-hash{font-size:12px;color:#617187;overflow-wrap:anywhere;line-height:1.6;margin-top:22px}.consent-history{margin-top:22px;border-top:1px solid #dde5ee;padding-top:14px}.consent-history summary{cursor:pointer;min-height:44px;padding:8px 0;font-size:15px}.consent-history-list>div{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:10px 0;border-top:1px solid #edf1f5}.consent-history-list span{font-size:14px}.consent-history-list button{white-space:nowrap;font-size:14px}.consent-loading{padding:24px;font-size:16px}.consent-print-frame{position:fixed;left:-10000px;top:0;width:900px;height:1000px;border:0;visibility:hidden}
@media(max-width:700px){.consent-module{padding:16px 12px;border-radius:10px}.consent-module-heading{align-items:flex-start;flex-direction:column;gap:6px}.consent-document h2{font-size:21px}.consent-input-grid,.consent-signed-grid{grid-template-columns:1fr}.consent-signature-pad{height:200px}.consent-actions button,.consent-secondary-actions button{width:100%}.consent-pad-heading{align-items:flex-start}.consent-pad-heading strong{line-height:1.6}.consent-archive-heading{flex-direction:column;gap:4px}.consent-history-list>div{flex-wrap:wrap}.consent-history-list>div>span{flex:1 1 180px}.consent-acknowledgement{padding:13px}.consent-module{font-size:16px}}
@media print{.consent-module{max-width:none;border:0;padding:0;border-radius:0}.consent-module-heading,.consent-storage-hint,.consent-errors,.consent-save-status,.consent-actions,.consent-secondary-actions,.consent-history,.consent-notice{display:none!important}.consent-signature-copy{break-inside:avoid}.consent-section h3{break-after:avoid}}

.consent-feishu-sync{margin:24px 0;padding:18px;border:1px solid #c8d9ee;border-radius:10px;background:#f7faff}.consent-feishu-sync h3{font-size:18px;margin:0 0 8px}.consent-feishu-sync>p{font-size:14px;line-height:1.75}.consent-sync-status{overflow-wrap:anywhere;font-size:14px;line-height:1.75;margin:14px 0 0}.consent-sync-status.consent-success{padding:12px;border:1px solid #b9ddcc;border-radius:8px}@media(max-width:700px){.consent-feishu-sync{padding:15px 12px}.consent-feishu-sync>button{width:100%}}@media print{.consent-feishu-sync{display:none!important}}
