/* grid-splitter.css — 宫格切图工具样式 */
:root {
    --bg-page: #F7F8FA;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FAFBFC;
    --bg-subtle: #F0F1F3;
    --bg-input: #F7F8FA;
    --text-primary: #1D1D1F;
    --text-secondary: #6E6E73;
    --text-tertiary: #AEAEB2;
    --text-on-primary: #FFFFFF;
    --border-default: #E5E5EA;
    --border-light: #F0F1F3;
    --border-focus: #8B2020;
    --primary: #8B2020;
    --primary-hover: #7A1C1C;
    --primary-active: #6A1818;
    --primary-subtle: rgba(139, 32, 32, 0.08);
    --accent-red: #8B2020;
    --accent-red-subtle: rgba(139, 32, 32, 0.06);
    --success: #34C759;
    --success-bg: #E8F9ED;
    --error: #FF3B30;
    --error-bg: #FFECEA;
    --warning: #FF9500;
    --warning-bg: #FFF6E5;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px -1px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 8px -2px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 32px -8px rgba(0,0,0,0.08), 0 4px 8px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 48px -12px rgba(0,0,0,0.10);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fs-display: 28px;
    --fs-title: 20px;
    --fs-body: 15px;
    --fs-caption: 13px;
    --fs-small: 12px;
    --lh-tight: 1.2;
    --lh-normal: 1.5;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body {
    font-family: var(--font-family);
    font-size: var(--fs-body);
    line-height: var(--lh-normal);
    color: var(--text-primary);
    background: var(--bg-page);
    min-height: 100vh;
    overflow-x: hidden;
}
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(44, 111, 206, 0.03), transparent),
                radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139, 32, 32, 0.02), transparent);
    pointer-events: none;
    z-index: 0;
}
.accent-bar {
    position: fixed; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 5%, var(--accent-red) 30%, var(--accent-red) 70%, transparent 95%);
    z-index: 1000;
}
/* 返回主站按钮 */
.back-home {
    position: fixed;
    top: 14px;
    left: 20px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    font-family: var(--font-family);
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: var(--text-secondary);
    text-decoration: none;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
}
.back-home:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}
.back-home svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
/* 联系客服 */
.contact-service {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100;
}
.contact-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: var(--fs-caption);
    font-family: var(--font-family);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    box-shadow: var(--shadow-sm);
}
.contact-btn:hover {
    color: var(--primary);
    box-shadow: var(--shadow-md);
}
.contact-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 160px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all var(--duration-fast) var(--ease-out);
    pointer-events: none;
}
.contact-service:hover .contact-dropdown,
.contact-service.open .contact-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.contact-dropdown img {
    width: 100%;
    border-radius: var(--radius-md);
    display: block;
}
.qr-hint {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-tertiary);
    line-height: 1.3;
}
.qr-sub {
    margin-top: 4px;
    font-size: 10px;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
}
.toast-container {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    z-index: 9999; display: flex; flex-direction: column; align-items: center; gap: var(--space-sm);
    pointer-events: none; width: max-content; max-width: 90%;
}
.toast {
    pointer-events: auto; padding: 12px 20px; border-radius: var(--radius-full);
    font-size: var(--fs-caption); font-weight: var(--fw-medium); box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-12px) scale(0.96);
    animation: toastIn var(--duration-normal) var(--ease-out) forwards;
    white-space: nowrap; max-width: 90vw; text-align: center;
}
.toast.removing { animation: toastOut var(--duration-fast) ease-in forwards; }
.toast--error { background: var(--error); color: #fff; }
.toast--success { background: var(--success); color: #fff; }
.toast--warning { background: var(--warning); color: #fff; }
.toast--info { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-default); }
@keyframes toastIn { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px) scale(0.96); } }
.container {
    position: relative; z-index: 1; width: 100%; max-width: 1080px;
    margin: 0 auto; padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
    display: flex; flex-direction: column; align-items: center; gap: var(--space-lg);
}
.header { text-align: center; animation: fadeUp 0.6s var(--ease-out) both; }
.header h1 {
    font-size: var(--fs-display); font-weight: var(--fw-bold);
    letter-spacing: -0.02em; line-height: var(--lh-tight);
    color: var(--text-primary); margin-bottom: var(--space-sm);
}
.header h1::after {
    content: ''; display: block; width: 32px; height: 2px;
    background: var(--accent-red); margin: var(--space-md) auto 0; border-radius: 1px;
}
.header p {
    font-size: var(--fs-caption); color: var(--text-secondary);
    margin-top: var(--space-md); letter-spacing: 0.01em; max-width: 620px;
}
/* 上传区 */
.upload-zone {
    width: 100%; padding: var(--space-2xl) var(--space-lg);
    border: 2px dashed var(--border-default); border-radius: var(--radius-xl);
    background: var(--bg-card); text-align: center; cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    animation: fadeUp 0.6s var(--ease-out) 0.1s both; position: relative;
}
.upload-zone:hover {
    border-color: var(--primary); background: var(--primary-subtle); box-shadow: var(--shadow-sm);
}
.upload-zone.drag-over {
    border-color: var(--accent-red); background: var(--accent-red-subtle);
    transform: scale(1.005); box-shadow: var(--shadow-md);
}
.upload-zone.has-file { padding: 0; border-style: dashed; }
/* 上传后收起的窄条 */
.upload-compact {
    display: flex; flex-direction: row; align-items: center; gap: var(--space-md);
    padding: var(--space-md) var(--space-lg); color: var(--text-secondary);
    cursor: pointer; width: 100%;
}
.upload-compact-icon {
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    background: var(--bg-subtle); border: 1px solid var(--border-default);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    color: var(--text-tertiary); transition: color var(--duration-fast), background var(--duration-fast), border-color var(--duration-fast);
}
.upload-compact-text {
    font-size: var(--fs-body); font-weight: var(--fw-medium);
    color: var(--text-secondary); transition: color var(--duration-fast);
    margin-left: auto;
}
.upload-zone.has-file:hover .upload-compact-icon {
    color: var(--primary); background: var(--primary-subtle); border-color: var(--primary);
}
.upload-zone.has-file:hover .upload-compact-text { color: var(--primary); }
.upload-icon {
    width: 48px; height: 48px; margin: 0 auto var(--space-md);
    color: var(--text-tertiary); transition: color var(--duration-normal), transform var(--duration-normal);
}
.upload-zone:hover .upload-icon { color: var(--primary); transform: translateY(-2px); }
.upload-zone.drag-over .upload-icon { color: var(--accent-red); transform: translateY(-4px) scale(1.05); }
.upload-text { font-size: var(--fs-body); color: var(--text-primary); margin-bottom: var(--space-sm); }
.browse-btn {
    display: inline-block; padding: 8px 20px; font-family: var(--font-family);
    font-size: var(--fs-caption); font-weight: var(--fw-semibold);
    color: var(--primary); background: var(--primary-subtle);
    border: none; border-radius: var(--radius-full); cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}
.browse-btn:hover { background: rgba(139, 32, 32, 0.14); }
.upload-hint { font-size: var(--fs-small); color: var(--text-tertiary); margin-top: var(--space-md); }
/* 文件列表 */
.file-list {
    width: 100%; background: var(--bg-card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); overflow: hidden;
    animation: fadeScale var(--duration-normal) var(--ease-spring);
}
.file-list-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--border-light);
}
.file-list-title { font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--text-secondary); }
.file-list-count { font-size: var(--fs-small); color: var(--text-tertiary); }
.file-list-count strong { color: var(--primary); font-weight: var(--fw-semibold); }
.file-list-body { max-height: 280px; overflow-y: auto; }
.file-item {
    display: flex; align-items: center; gap: var(--space-md);
    padding: var(--space-sm) var(--space-lg); border-bottom: 1px solid var(--border-light);
    animation: fadeUp 0.3s var(--ease-out) both;
}
.file-item:last-child { border-bottom: none; }
.file-thumb {
    width: 42px; height: 42px; border-radius: var(--radius-sm);
    background: var(--bg-subtle); object-fit: cover; flex-shrink: 0;
    border: 1px solid var(--border-light);
}
.file-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.file-name {
    font-size: var(--fs-body); font-weight: var(--fw-medium); color: var(--text-primary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-meta { font-size: var(--fs-small); color: var(--text-tertiary); }
.file-status {
    font-size: var(--fs-small); font-weight: var(--fw-semibold); flex-shrink: 0;
}
.file-status.pending { color: var(--text-tertiary); }
.file-status.done { color: var(--success); }
.file-status.error { color: var(--error); }
.file-remove {
    width: 28px; height: 28px; border: none; background: var(--bg-subtle);
    border-radius: var(--radius-full); color: var(--text-secondary); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--duration-fast); flex-shrink: 0;
}
.file-remove:hover { background: var(--error-bg); color: var(--error); }
.clear-all-btn {
    padding: 4px 12px; font-size: var(--fs-small); font-weight: var(--fw-medium);
    color: var(--text-secondary); background: var(--bg-subtle); border: none;
    border-radius: var(--radius-full); cursor: pointer; transition: all var(--duration-fast);
}
.clear-all-btn:hover { color: var(--error); background: var(--error-bg); }
/* 设置面板 */
.settings-panel {
    width: 100%; padding: var(--space-lg); background: var(--bg-card);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: var(--space-lg);
    animation: fadeUp 0.6s var(--ease-out) 0.15s both;
}
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; }
.setting-label { font-size: var(--fs-caption); font-weight: var(--fw-medium); color: var(--text-secondary); flex-shrink: 0; }
.pill-group {
    display: flex; background: var(--bg-subtle); border-radius: var(--radius-full);
    padding: 3px; gap: 2px; border: 1px solid var(--border-light);
}
.pill {
    padding: 7px 18px; font-family: var(--font-family); font-size: var(--fs-caption);
    font-weight: var(--fw-medium); color: var(--text-secondary); background: transparent;
    border: none; border-radius: var(--radius-full); cursor: pointer;
    transition: all var(--duration-normal) var(--ease-spring);
    white-space: nowrap; user-select: none; -webkit-user-select: none;
}
.pill:hover:not(.active) { color: var(--text-primary); background: rgba(0,0,0,0.03); }
.pill:active:not(.active) { transform: scale(0.96); }
.pill.active {
    background: var(--bg-card); color: var(--primary); font-weight: var(--fw-semibold);
    box-shadow: var(--shadow-sm), 0 0 0 1px rgba(139, 32, 32, 0.08); transform: scale(1.02);
}
.quality-control { display: flex; align-items: center; gap: var(--space-md); }
.quality-slider {
    -webkit-appearance: none; appearance: none; width: 180px; height: 4px;
    border-radius: 2px; background: var(--bg-subtle); outline: none; cursor: pointer;
}
.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 18px; height: 18px;
    border-radius: 50%; background: var(--primary); border: 3px solid var(--bg-card);
    box-shadow: var(--shadow-sm); cursor: pointer;
}
.quality-slider::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%; background: var(--primary);
    border: 3px solid var(--bg-card); box-shadow: var(--shadow-sm); cursor: pointer;
}
.quality-value {
    font-size: var(--fs-caption); font-weight: var(--fw-semibold);
    color: var(--primary); min-width: 36px; text-align: center;
}
.page-input {
    width: 100px; padding: 8px 14px; font-family: var(--font-family);
    font-size: var(--fs-caption); color: var(--text-primary); background: var(--bg-input);
    border: 1px solid var(--border-default); border-radius: var(--radius-sm);
    text-align: center; outline: none; transition: border-color var(--duration-fast);
}
.page-input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(139, 32, 32, 0.1); }
.size-input-wrap { display: flex; align-items: center; gap: var(--space-sm); }
.size-separator { font-size: var(--fs-caption); color: var(--text-tertiary); font-weight: var(--fw-medium); }
.trim-control {
    display: flex; align-items: center; gap: var(--space-md);
    flex-wrap: wrap; justify-content: flex-end;
}
.trim-control .size-input-wrap { animation: fadeScale var(--duration-normal) var(--ease-spring); }
.grid-control {
    display: flex; align-items: center; gap: var(--space-md);
    flex-wrap: wrap; justify-content: flex-end;
}
.grid-control .size-input-wrap { animation: fadeScale var(--duration-normal) var(--ease-spring); }
.pill-group--wrap { flex-wrap: wrap; }
/* 预览区 */
.preview-section {
    width: 100%; padding: var(--space-lg); background: var(--bg-card);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    animation: fadeUp 0.6s var(--ease-out) 0.2s both;
}
.preview-title {
    font-size: var(--fs-caption); font-weight: var(--fw-semibold);
    color: var(--text-secondary); margin-bottom: var(--space-md);
}
.preview-canvas-wrap {
    position: relative; width: 100%; max-width: 480px; margin: 0 auto;
    border: 1px solid var(--border-light); border-radius: var(--radius-md);
    overflow: hidden; background: var(--bg-subtle);
}
#previewCanvas { display: block; width: 100%; height: auto; }
.preview-empty {
    padding: var(--space-2xl) var(--space-md); text-align: center;
    font-size: var(--fs-small); color: var(--text-tertiary);
}
/* 转换按钮 */
.convert-btn {
    width: 100%; max-width: 400px; padding: 14px 32px; font-family: var(--font-family);
    font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--text-on-primary);
    background: var(--primary); border: none; border-radius: var(--radius-full);
    cursor: pointer; transition: all var(--duration-normal) var(--ease-out);
    box-shadow: 0 2px 8px rgba(139, 32, 32, 0.20); position: relative; overflow: hidden;
    animation: fadeUp 0.6s var(--ease-out) 0.25s both;
}
.convert-btn:hover:not(:disabled) {
    background: var(--primary-hover); box-shadow: 0 4px 16px rgba(139, 32, 32, 0.25);
    transform: translateY(-1px);
}
.convert-btn:active:not(:disabled) {
    background: var(--primary-active); transform: translateY(0); box-shadow: 0 1px 4px rgba(139, 32, 32, 0.15);
}
.convert-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn-content { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); }
.btn-spinner {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity var(--duration-fast);
}
.convert-btn.loading .btn-content { opacity: 0; }
.convert-btn.loading .btn-spinner { opacity: 1; }
.spinner {
    width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.privacy-note {
    text-align: center; font-size: var(--fs-small); color: var(--text-tertiary); margin-top: var(--space-sm);
}
.privacy-note span { color: var(--primary); font-weight: var(--fw-semibold); }
/* 进度条 */
.progress-section { width: 100%; animation: fadeScale var(--duration-normal) var(--ease-spring); }
.progress-track {
    width: 100%; height: 4px; background: var(--bg-subtle);
    border-radius: 2px; overflow: hidden; position: relative;
}
.progress-fill {
    height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-red), #A52A2A);
    border-radius: 2px; transition: width 0.3s var(--ease-out); position: relative;
}
.progress-fill::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.progress-footer { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 6px; }
.progress-text { font-size: var(--fs-small); color: var(--text-secondary); }
.progress-percent {
    font-size: var(--fs-caption); font-weight: var(--fw-semibold);
    color: var(--primary); font-variant-numeric: tabular-nums; min-width: 32px; line-height: 1;
}
/* 结果区 */
.results-section { width: 100%; animation: fadeUp 0.5s var(--ease-out); }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-md); }
.results-title { font-size: var(--fs-title); font-weight: var(--fw-semibold); letter-spacing: -0.01em; }
.results-count { font-size: var(--fs-caption); color: var(--text-tertiary); }
.results-count strong { color: var(--primary); font-weight: var(--fw-semibold); }
.results-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-md); margin-bottom: var(--space-lg);
}
.result-card {
    background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: all var(--duration-normal) var(--ease-out);
    animation: fadeScale var(--duration-normal) var(--ease-spring) both; cursor: pointer; position: relative;
}
.result-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.result-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--bg-subtle); }
.result-card-label {
    padding: var(--space-sm) var(--space-md); font-size: var(--fs-small);
    color: var(--text-secondary); font-weight: var(--fw-medium);
    display: flex; align-items: center; justify-content: space-between;
}
.result-card-label .dl-icon { opacity: 0; transition: opacity var(--duration-fast); color: var(--primary); }
.result-card:hover .dl-icon { opacity: 1; }
.download-actions { display: flex; justify-content: center; gap: var(--space-md); flex-wrap: wrap; }
.btn-download {
    display: inline-flex; align-items: center; gap: var(--space-sm);
    padding: 12px 24px; font-family: var(--font-family); font-size: var(--fs-body);
    font-weight: var(--fw-semibold); color: var(--text-on-primary); background: var(--primary);
    border: none; border-radius: var(--radius-full); cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out); box-shadow: 0 2px 8px rgba(139, 32, 32, 0.20);
}
.btn-download:hover { background: var(--primary-hover); box-shadow: 0 4px 16px rgba(139, 32, 32, 0.25); transform: translateY(-1px); }
.btn-download.outline {
    background: var(--bg-card); color: var(--primary); border: 1px solid var(--primary); box-shadow: none;
}
.btn-download.outline:hover { background: var(--primary-subtle); box-shadow: var(--shadow-sm); }
.btn-download svg { width: 18px; height: 18px; }
.seo-keywords {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    margin: -1px;
    padding: 0;
    border: 0;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeScale { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 640px) {
    .container { padding: var(--space-2xl) var(--space-md) var(--space-xl); gap: var(--space-md); }
    .header h1 { font-size: 24px; }
    .upload-zone { padding: var(--space-xl) var(--space-md); }
    .upload-compact { padding: var(--space-md); }
    .setting-row { flex-direction: column; align-items: center; gap: var(--space-sm); text-align: center; }
    .grid-control, .trim-control { justify-content: center; }
    .convert-btn { max-width: none; }

    /* 手机端顶部按钮缩小到两端 */
    .back-home {
        top: 8px; left: 8px; padding: 4px 8px; font-size: 11px; gap: 3px;
    }
    .back-home svg { width: 12px; height: 12px; }
    .contact-service { top: 8px; right: 8px; }
    .contact-btn { padding: 4px 8px; font-size: 11px; gap: 3px; }
    .contact-btn svg { width: 12px; height: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
