/* ===== 通用草稿纸（web 端）：答题页 / 文化天梯共用 =====
   z-index 13000：必须高于文化天梯答题弹层（12000），低于强制暂停遮罩（99999） */
.pad-overlay {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 13000;
    background: #fffdf8;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.22);
    display: flex; flex-direction: column;
    height: 50vh; /* 默认半屏，JS 把手拖动调整 */
}
.pad-handle {
    display: flex; flex-direction: column; align-items: center;
    padding: 8px 0 6px; cursor: grab; user-select: none;
    background: #fff; border-radius: 16px 16px 0 0;
    border-bottom: 1px solid #f0f0f0; touch-action: none;
}
.pad-handle:active { cursor: grabbing; }
.pad-grabber { width: 44px; height: 5px; border-radius: 3px; background: #d5d5d5; }
.pad-handle-tip { font-size: 11px; color: #bbb; margin-top: 4px; }
.pad-toolbar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 10px 12px; background: #fff;
    border-bottom: 1px solid var(--border);
}
.pad-btn {
    border: none; border-radius: 10px; padding: 8px 14px;
    font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
    background: #f0f2f7; color: var(--text, #333); transition: all .15s;
}
.pad-btn:active { transform: scale(0.95); }
.pad-btn.pad-tool.active { background: var(--accent); color: #fff; }
.pad-btn.pad-close { background: var(--wrong-bg); color: var(--wrong); }
.pad-btn.pad-clear { background: #fff4e5; color: #e67e22; }
.pad-colors { display: flex; align-items: center; gap: 8px; margin: 0 4px; }
.pad-color-dot {
    width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
    border: 3px solid #fff; box-shadow: 0 0 0 1px var(--border), 0 1px 4px rgba(0,0,0,0.15);
    transition: transform .15s;
}
.pad-color-dot.active { transform: scale(1.25); box-shadow: 0 0 0 2px var(--accent); }
.pad-btn.pad-glass-btn.active { background: var(--accent); color: #fff; }
/* 画布固定最大高度+底部锚定，外层裁剪：拖动抽屉只改可见窗口，不重建画布、笔迹不丢 */
.pad-canvas-wrap { position: relative; overflow: hidden; flex: 1; }
.pad-canvas {
    position: absolute; left: 0; bottom: 0; width: 100%; display: block;
    touch-action: none; background: #fffdf8; cursor: crosshair;
}
/* 透明模式：磨砂玻璃底色（淡蓝灰30%不透明），题目透过画布可见且有明确"这是画布"的边界感；
   纯10%米白叠在白色题目页上等于隐形，故用有色差玻璃色 */
.pad-overlay.pad-glass { background: rgba(226,232,244,0.3); }
.pad-overlay.pad-glass .pad-canvas { background: transparent; }
