/* 图片闪码GIF生成器 */
.gm-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.gm-tab { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--bg); color: var(--muted); font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .15s ease; }
.gm-tab i { color: var(--accent); }
.gm-tab:hover { border-color: var(--accent); color: var(--ink); }
.gm-tab.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.gm-tab.active i { color: var(--accent); }

.gm-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
.gm-panel { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 20px; }
.gm-tabpanel { display: none; }
.gm-tabpanel.active { display: block; animation: gm-fade .2s ease; }
@keyframes gm-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.gm-section { margin-bottom: 20px; }
.gm-section:last-child { margin-bottom: 0; }
.gm-section h3 { display: flex; align-items: center; gap: 6px; font-size: .95rem; margin: 0 0 12px; }
.gm-section h3 i { color: var(--accent); }
.gm-hint { font-size: .78rem; color: var(--muted); margin: 8px 0; }

.gm-form-group { margin-bottom: 14px; }
.gm-form-group > label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.gm-form-group input[type="text"], .gm-form-group input[type="number"], .gm-form-group select { width: 100%; padding: 9px 12px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font-size: .9rem; box-sizing: border-box; }
.gm-form-group input:focus, .gm-form-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.gm-form-group input[type="range"] { width: 100%; accent-color: var(--accent); }
.gm-color-group { display: flex; align-items: center; gap: 10px; }
.gm-color-group input[type="color"] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; flex-shrink: 0; }
.gm-color-text { font-size: .85rem; color: var(--muted); font-family: var(--font); }

.gm-upload-btn { width: 100%; justify-content: center; }

.gm-thumbnails { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.gm-thumb { position: relative; width: 56px; height: 56px; border: 2px solid var(--rule); border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: var(--bg2); }
.gm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gm-thumb-num { position: absolute; top: 2px; left: 2px; background: rgba(0,0,0,.55); color: #fff; font-size: .68rem; padding: 0 4px; border-radius: 4px; }
.gm-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

.gm-order-btns { display: flex; gap: 8px; }
.gm-order-btns .btn { flex: 1; justify-content: center; }

.gm-file-info { margin-top: 12px; display: grid; gap: 6px; }
.gm-file-info > div { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.gm-file-info b { color: var(--ink); font-weight: 600; }

.gm-actions { display: flex; gap: 10px; }
.gm-actions .btn { flex: 1; justify-content: center; }

.gm-preview-box { min-height: 420px; display: flex; align-items: center; justify-content: center; background: var(--bg2); border: 1px dashed var(--rule); border-radius: var(--radius-sm); padding: 16px; overflow: auto; }
.gm-preview-box img { max-width: 100%; max-height: 380px; border-radius: 8px; }
.gm-placeholder { text-align: center; color: var(--muted); }
.gm-placeholder i { font-size: 3rem; color: var(--accent); display: block; margin-bottom: 12px; opacity: .7; }
.gm-ascii-box { max-width: 100%; max-height: 380px; overflow: auto; border-radius: 8px; }
.gm-ascii-pre { margin: 0; font-size: 11px; line-height: 1.1; font-family: Consolas, Monaco, "Courier New", monospace; }

.gm-tip { margin-top: 16px; display: flex; gap: 8px; padding: 10px 14px; background: var(--accent-soft); border-radius: var(--radius-sm); font-size: .82rem; color: var(--muted); align-items: flex-start; }
.gm-tip i { color: var(--accent); margin-top: 2px; flex-shrink: 0; }

.gm-progress { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.gm-progress-bar { flex: 1; height: 6px; background: var(--bg2); border-radius: 4px; overflow: hidden; }
.gm-progress-fill { height: 100%; width: 0; background: var(--accent); transition: width .1s linear; }
.gm-progress-text { font-size: .8rem; color: var(--muted); min-width: 44px; text-align: right; }

@media (max-width: 900px) {
  .gm-grid { grid-template-columns: 1fr; }
}