/* 由 scripts/slim-index-html.py 从 index.html 抽出，勿手工编辑原处 */
        * { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
        body { background-color: #f2f3f7; }
        .hero-section { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); position: relative; overflow: hidden; }
        .hero-section::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: rgba(255,255,255,0.05); border-radius: 50%; }
        .group-card { background: #ffffff; border-radius: 20px; padding: 28px 24px 20px; margin-bottom: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); transition: all 0.3s ease; }
        .group-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
        .group-title { font-size: 20px; font-weight: 700; color: #1a1a1a; margin-bottom: 20px; padding-left: 4px; }
        .tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
        @media (min-width: 768px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
        @media (min-width: 1024px) { .tool-grid { grid-template-columns: repeat(4, 1fr); } }
        @media (min-width: 1280px) { .tool-grid { grid-template-columns: repeat(5, 1fr); } }
        .tool-item { display: flex; align-items: center; padding: 14px 12px; border-radius: 12px; cursor: pointer; transition: all 0.2s ease; }
        .tool-item:hover { background: #f8f9fa; transform: translateX(4px); }
        .tool-item:active { opacity: 0.7; }
        .tool-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-right: 14px; font-size: 20px; color: white; font-weight: 700; }
        .tool-name { font-size: 15px; color: #1a1a1a; font-weight: 500; line-height: 1.3; }
        .tool-desc { font-size: 12px; color: #999; margin-top: 2px; }
        .seo-keywords { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
        .seo-keywords span { font-size: 13px; color: #5b8def; background: #eef4ff; border-radius: 999px; padding: 6px 14px; font-weight: 500; }
        .security-banner { background: white; border-radius: 20px; padding: 20px 24px; display: flex; align-items: center; gap: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); margin-bottom: 16px; cursor: pointer; transition: all 0.2s ease; }
        .security-banner:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
        .security-icon-wrap { width: 48px; height: 48px; background: #e8f4fd; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .security-title { font-size: 16px; font-weight: 600; color: #1a1a1a; display: block; margin-bottom: 2px; }
        .security-desc { font-size: 13px; color: #999; display: block; }
        .security-arrow { font-size: 24px; color: #ccc; font-weight: 300; }
        .page-section { display: none; }
        .page-section.active { display: block; }
        .nav-link { transition: all 0.2s; }
        .nav-link:hover { color: #667eea; }

        /* ===== 图片处理工具页面样式（1:1还原小程序） ===== */
        .img-tool-page { background: #f2f3f7; min-height: 100vh; padding-bottom: 40px; }
        .info-card { background: linear-gradient(135deg, #3b8cff 0%, #5b8def 100%); border-radius: 16px; padding: 24px; color: white; margin-bottom: 16px; }
        .info-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; display: block; }
        .info-desc { font-size: 14px; line-height: 1.8; opacity: 0.9; }
        .info-line { display: block; }
        .panel { background: white; border-radius: 16px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
        .panel-title { font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 16px; }
        .upload-box { border: 2px dashed #e0e0e0; border-radius: 12px; padding: 40px 20px; text-align: center; transition: all 0.3s ease; cursor: pointer; }
        .upload-box:hover { border-color: #3b8cff; background: #f8fbff; }
        .upload-box.dragover { border-color: #3b8cff; background: #f0f7ff; }
        .upload-steps { font-size: 13px; color: #999; display: block; margin-bottom: 4px; }
        .upload-cloud { font-size: 48px; color: #3b8cff; margin: 16px 0; }
        .upload-btn-blue { background: #3b8cff; color: white; border: none; border-radius: 24px; padding: 10px 28px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
        .upload-btn-blue:hover { background: #2a7aee; transform: translateY(-1px); }
        .upload-hint { font-size: 12px; color: #bbb; margin-top: 12px; display: block; }
        .file-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
        .img-card { position: relative; width: 120px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: #f5f5f5; }
        .img-card-thumb { width: 120px; height: 120px; object-fit: cover; cursor: pointer; }
        .img-card-remove { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; background: rgba(0,0,0,0.5); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; transition: all 0.2s; }
        .img-card-remove:hover { background: rgba(255,0,0,0.7); }
        .img-card-bar { padding: 6px 8px; font-size: 11px; color: #666; background: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .img-card-processing, .img-card-error { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
        .img-card-processing { background: rgba(59,140,255,0.8); color: white; }
        .img-card-error { background: rgba(255,0,0,0.7); color: white; }
        .img-add { width: 120px; height: 120px; flex-shrink: 0; border: 2px dashed #ddd; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
        .img-add:hover { border-color: #3b8cff; background: #f8fbff; }
        .img-add-icon { font-size: 28px; color: #3b8cff; font-weight: 300; }
        .img-add-text { font-size: 12px; color: #999; margin-top: 4px; }
        .mode-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
        .mode-pill { padding: 8px 18px; border-radius: 20px; background: #f5f5f5; color: #666; font-size: 14px; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; user-select: none; }
        .mode-pill:hover { background: #eef4ff; color: #3b8cff; }
        .mode-pill.active { background: #eef4ff; color: #3b8cff; border-color: #3b8cff; font-weight: 600; }
        .input-error { border-color: #e74c3c !important; box-shadow: 0 0 0 2px rgba(231,76,60,0.15); }
        .sub-panel { background: #f8f9fa; border-radius: 12px; padding: 16px; margin-bottom: 12px; }
        .sub-label { font-size: 14px; font-weight: 500; color: #333; margin-bottom: 10px; display: block; }
        .sub-slider { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; background: #e0e0e0; border-radius: 3px; outline: none; }
        .sub-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; background: #3b8cff; border-radius: 50%; cursor: pointer; box-shadow: 0 2px 6px rgba(59,140,255,0.4); }
        .sub-input-wrap { display: flex; align-items: center; gap: 8px; }
        .sub-input { flex: 1; padding: 10px 14px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; outline: none; transition: all 0.2s; }
        .sub-input:focus { border-color: #3b8cff; box-shadow: 0 0 0 3px rgba(59,140,255,0.1); }
        .sub-unit { font-size: 14px; color: #999; white-space: nowrap; }
        .sub-hint { font-size: 12px; color: #bbb; margin-top: 6px; display: block; }
        .slider-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
        .slider-name { font-size: 14px; color: #333; }
        .slider-val { font-size: 14px; color: #3b8cff; font-weight: 600; }
        .color-row { display: flex; gap: 10px; flex-wrap: wrap; }
        .color-dot { width: 32px; height: 32px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: all 0.2s; }
        .color-dot:hover { transform: scale(1.1); }
        .color-dot.active { border-color: #3b8cff; box-shadow: 0 0 0 2px white, 0 0 0 4px #3b8cff; }
        .color-preview { width: 40px; height: 36px; border-radius: 6px; border: 1px solid #e0e0e0; flex-shrink: 0; }
        .size-row { display: flex; gap: 12px; }
        .size-item { flex: 1; }
        .size-label { font-size: 12px; color: #999; margin-bottom: 6px; display: block; }
        .size-input-box { width: 100%; padding: 10px 14px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; outline: none; }
        .size-input-box:focus { border-color: #3b8cff; box-shadow: 0 0 0 3px rgba(59,140,255,0.1); }
        .ratio-sep { font-size: 18px; color: #999; align-self: flex-end; padding-bottom: 10px; }
        .coord-row { display: flex; gap: 12px; margin-bottom: 10px; }
        .coord-item { flex: 1; }
        .coord-label { font-size: 12px; color: #999; margin-bottom: 6px; display: block; }
        .coord-input { width: 100%; padding: 10px 14px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; outline: none; }
        .coord-input:focus { border-color: #3b8cff; box-shadow: 0 0 0 3px rgba(59,140,255,0.1); }
        .btn-wrap { margin-top: 16px; }
        .btn-primary { background: #3b8cff; color: white; border: none; border-radius: 24px; padding: 12px 32px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; width: 100%; }
        .btn-primary:hover { background: #2a7aee; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,140,255,0.3); }
        .btn-primary:disabled { background: #a0c4ff; cursor: not-allowed; transform: none; box-shadow: none; }
        .btn-primary.processing { background: #a0c4ff; }
        .btn-outline { background: white; color: #666; border: 1px solid #e0e0e0; border-radius: 24px; padding: 12px 32px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
        .btn-outline:hover { border-color: #3b8cff; color: #3b8cff; }
        .btn-small-blue { background: #3b8cff; color: white; border-radius: 16px; padding: 6px 16px; font-size: 13px; cursor: pointer; transition: all 0.2s; display: inline-block; }
        .btn-small-blue:hover { background: #2a7aee; }
        .btn-small-outline { background: white; color: #666; border: 1px solid #e0e0e0; border-radius: 16px; padding: 6px 16px; font-size: 13px; cursor: pointer; transition: all 0.2s; display: inline-block; }
        .btn-small-outline:hover { border-color: #3b8cff; color: #3b8cff; }
        .progress-wrap { margin-top: 16px; }
        .progress-track { height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
        .progress-fill { height: 100%; background: linear-gradient(90deg, #3b8cff, #5b8def); border-radius: 3px; transition: width 0.3s ease; }
        .progress-text { font-size: 12px; color: #999; margin-top: 8px; display: block; text-align: center; }
        .result-list { display: flex; flex-direction: column; gap: 12px; }
        .result-row { display: flex; gap: 12px; padding: 12px; background: #f8f9fa; border-radius: 10px; }
        .result-thumb { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; flex-shrink: 0; cursor: pointer; }
        .result-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
        .result-name { font-size: 14px; font-weight: 500; color: #333; margin-bottom: 4px; word-break: break-all; }
        .result-meta { font-size: 12px; color: #999; margin-bottom: 8px; }
        .result-btns { display: flex; gap: 8px; }
        .panel-footer { display: flex; gap: 12px; margin-top: 16px; }
        .panel-footer .btn-outline, .panel-footer .btn-primary { flex: 1; }
        .wm-upload { border: 2px dashed #e0e0e0; border-radius: 12px; padding: 30px; text-align: center; cursor: pointer; transition: all 0.2s; }
        .wm-upload:hover { border-color: #3b8cff; background: #f8fbff; }
        .wm-upload-icon { font-size: 36px; color: #3b8cff; display: block; }
        .wm-upload-text { font-size: 14px; color: #999; margin-top: 8px; display: block; }
        .wm-preview-row { display: flex; align-items: center; gap: 12px; }
        .wm-preview-img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; }
        .wm-change { color: #3b8cff; font-size: 14px; cursor: pointer; }
        .wm-change:hover { text-decoration: underline; }
        .card-hover { transition: all 0.3s ease; }
        .card-hover:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
        .feature-icon { width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; transition: transform 0.3s ease; }
        .tool-card:hover .feature-icon { transform: scale(1.1); }
