/* 图片编辑器样式 */

/* 编辑器区域 */
.editor-section {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 调节控制头部区域 */
.adjustment-header {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.adjustment-header .adjustment-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.adjustment-header .control-item {
    display: flex;
    align-items: center;
    padding: 0.375rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.adjustment-header .control-item label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    min-width: 60px;
    text-align: left;
}

.adjustment-header .slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.adjustment-header .slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.15s ease;
}

.adjustment-header .slider::-webkit-slider-thumb:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.adjustment-header .slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.adjustment-header .slider-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3b82f6;
    min-width: 30px;
    text-align: center;
}

/* 工具栏样式 */
.editor-toolbar {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.toolbar-group {
    margin-bottom: 1.5rem;
}

.toolbar-group:last-child {
    margin-bottom: 0;
}

.toolbar-group h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.tool-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tool-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tool-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.tool-btn svg {
    flex-shrink: 0;
}

/* 特殊按钮样式 */
.tool-btn.reset-btn {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
}

.tool-btn.reset-btn:hover {
    background: #d97706;
    border-color: #d97706;
}

.tool-btn.download-btn {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
    font-weight: 600;
}

.tool-btn.download-btn:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* 编辑器画布 */
.editor-canvas {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 500px;
    border: 2px dashed #cbd5e1;
    transition: all 0.3s ease;
}

.image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
    width: 100%;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Cropper.js 画布样式修复 */
cropper-canvas {
    width: 100% !important;
    height: 600px !important;
    min-height: 600px !important;
    max-height: none !important;
    display: block !important;
    border-radius: 8px;
    overflow: hidden;
}

cropper-canvas[style*="display: none"] {
    display: none !important;
}

/* 确保cropper-image完整显示 */
cropper-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 上传区域样式 */
.upload-area {
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.upload-content {
    text-align: center;
    padding: 2rem;
    max-width: 400px;
}

.upload-icon {
    margin: 0 auto 1.5rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.upload-area:hover .upload-icon {
    background: #3b82f6;
    color: #fff;
    transform: scale(1.1);
}

.upload-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.upload-content p {
    margin: 0 0 1.5rem 0;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

.upload-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: #fff;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.upload-area:hover .upload-button {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* SEO内容区域样式 */
.seo-content {
    margin-top: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.seo-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

.seo-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.seo-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4b5563;
    margin: 1.5rem 0 0.5rem 0;
    text-align: center;
}

.seo-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #6b7280;
    text-align: center;
    margin: 1rem 0 2rem 0;
}

/* 功能特点网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.feature-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.feature-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

/* 使用教程样式 */
.tutorial-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.step-content p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

/* 常见问题样式 */
.faq-section {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.faq-item {
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
}

.faq-item p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .editor-section {
        padding: 1rem;
    }

    .adjustment-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .adjustment-header .adjustment-controls {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .adjustment-header .control-item {
        display: flex;
        align-items: center;
        padding: 0.375rem;
    }

    .adjustment-header .control-item label {
        min-width: 50px;
        text-align: left;
        font-size: 0.8rem;
    }

    .adjustment-header .slider-value {
        font-size: 0.8rem;
        text-align: center;
        min-width: 25px;
    }

    .editor-toolbar {
        padding: 1rem;
    }

    .tool-buttons {
        flex-direction: column;
    }

    .tool-btn {
        justify-content: center;
        width: 100%;
    }

    .editor-canvas {
        padding: 1rem;
        min-height: 300px;
    }

    .image-container {
        min-height: 250px;
    }

    .image-container img {
        max-height: 50vh;
    }

    .seo-content {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .seo-content h1 {
        font-size: 1.5rem;
    }

    .seo-content h2 {
        font-size: 1.25rem;
    }

    .feature-grid,
    .tutorial-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .step-item {
        padding: 1rem;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .toolbar-group h4 {
        font-size: 0.75rem;
    }

    .tool-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .tool-btn svg {
        width: 14px;
        height: 14px;
    }

    .slider-value {
        font-size: 0.75rem;
        min-width: 25px;
    }

    .control-item {
        padding: 0.5rem;
    }

    .editor-canvas {
        padding: 0.75rem;
        min-height: 250px;
        width: 100%;
        margin: 0;
        border-radius: 12px;
    }

    .image-container {
        min-height: 200px;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .image-container img {
        max-height: 40vh;
    }

    /* 480px断点下的cropper-canvas样式 */
    cropper-canvas {
        height: 300px !important;
        min-height: 300px !important;
        width: 100% !important;
        border-radius: 12px;
    }

    .upload-area {
        min-height: 300px;
        width: 100%;
        margin: 0;
        border-radius: 12px;
    }
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 提示信息 */
.editor-tip {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #1e40af;
    font-size: 0.875rem;
    line-height: 1.5;
}

.editor-tip strong {
    font-weight: 600;
}

/* 隐藏滚动条但保持滚动功能 */
.editor-toolbar::-webkit-scrollbar {
    display: none;
}

/* 移除所有自定义的 Cropper.js 2.0 样式，使用官方默认样式 */

/* 编辑器主体布局 */
.editor-main {
    display: flex;
    gap: 24px;
    min-height: 600px;
    align-items: flex-start;
}

/* 左侧工具栏 */
.left-toolbar {
    flex: 0 0 200px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

/* 中间编辑区域 */
.editor-canvas {
    flex: 1;
    min-height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 右侧工具栏 */
.right-toolbar {
    flex: 0 0 200px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

/* 工具栏组 */
.toolbar-group {
    margin-bottom: 24px;
}

.toolbar-group:last-child {
    margin-bottom: 0;
}

.toolbar-group h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-align: center;
}

/* 垂直按钮布局 */
.tool-buttons.vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-buttons.vertical .tool-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tool-buttons.vertical .tool-btn:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

.tool-buttons.vertical .tool-btn.active {
    background: #3b82f6;
    color: white;
}

.tool-buttons.vertical .tool-btn svg {
    margin-right: 8px;
    flex-shrink: 0;
}

/* 调节控件 */
.adjustment-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.control-item {
    display: flex;
    align-items: center;
}

.control-item label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    min-width: 60px;
    text-align: left;
}

.control-item .slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.control-item .slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.control-item .slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.control-item .slider-value {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    min-width: 30px;
    text-align: center;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .editor-main {
        flex-direction: column;
        gap: 16px;
    }
    
    .left-toolbar,
    .right-toolbar {
        flex: none;
        position: static;
        width: 100%;
        margin: 0;
        border-radius: 12px;
    }
    
    .tool-buttons.vertical {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .tool-buttons.vertical .tool-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .adjustment-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .control-item {
        display: flex;
        align-items: center;
    }
    
    .control-item label {
        min-width: 50px;
        text-align: left;
        font-size: 11px;
    }
    
    .control-item .slider-value {
        min-width: 25px;
        text-align: center;
        font-size: 11px;
    }
    
    .upload-area {
        min-height: 400px;
        margin: 0;
        width: 100%;
        border-radius: 12px;
    }
    
    .upload-content {
        padding: 1.5rem;
    }
    
    .upload-content h3 {
        font-size: 1.125rem;
    }
    
    .upload-content p {
        font-size: 0.8rem;
    }
    
    /* 移动端cropper-canvas高度调整 */
    cropper-canvas {
        height: 400px !important;
        min-height: 400px !important;
        width: 100% !important;
        border-radius: 12px;
    }
    
    .editor-canvas {
        padding: 1rem;
        min-height: 400px;
        width: 100%;
        margin: 0;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .image-container {
        min-height: 350px;
        width: 100%;
        margin: 0;
        padding: 0;
    }
}

/* 裁剪比例选择框 */
.aspect-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.aspect-select:hover {
    border-color: #9ca3af;
    background-color: #f9fafb;
}

.aspect-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 实时预览区域样式 */
.preview-area {
    width: 100%;
    height: 200px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
}

.preview-empty svg {
    opacity: 0.6;
}

.preview-empty span {
    font-size: 12px;
    font-weight: 500;
}

.preview-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.preview-area.has-image {
    background: white;
    border-color: #d1d5db;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .aspect-select {
        font-size: 12px;
        padding: 10px 14px;
        padding-right: 36px;
        background-size: 14px;
        background-position: right 10px center;
    }
    
    .preview-area {
        height: 150px;
    }
    
    .preview-empty span {
        font-size: 11px;
    }
}

/* 尺寸信息显示 */
.size-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    width: 100%;
}

.size-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.size-item:last-child {
    border-bottom: none;
}

.size-item label {
    font-weight: 500;
    color: #64748b;
    font-size: 0.75rem;
}

.size-item span {
    font-weight: 600;
    color: #334155;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.75rem;
}

/* 实时预览工具栏组内的尺寸信息 */
.toolbar-group .size-info {
    margin-top: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .size-info {
        font-size: 0.75rem;
        padding: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .size-item label,
    .size-item span {
        font-size: 0.7rem;
    }
}

/* 手动输入裁剪框尺寸样式 */
.manual-size-controls {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.manual-size-controls h5 {
    margin: 0 0 0.75rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
}

.size-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.size-input-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.size-input-item label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #64748b;
}

.size-input-item input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: #fff;
    transition: all 0.2s ease;
}

.size-input-item input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.size-input-item input:invalid {
    border-color: #ef4444;
}

.size-control-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.size-btn {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    color: #fff;
}

.size-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.size-btn:active {
    transform: translateY(0);
}

.size-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* 手动输入框移动端适配 */
@media (max-width: 768px) {
    .manual-size-controls {
        padding: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .manual-size-controls h5 {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    
    .size-input-group {
        flex-direction: row;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .size-input-item {
        flex: 1;
    }
    
    .size-input-item label {
        font-size: 0.65rem;
    }
    
    .size-input-item input {
        padding: 0.4rem;
        font-size: 0.7rem;
    }
    
    .size-control-buttons {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .size-btn {
        padding: 0.5rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .manual-size-controls {
        padding: 0.4rem;
    }
    
    .size-input-group {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .size-input-item {
        flex: none;
    }
    
    .size-input-item input {
        padding: 0.35rem;
        font-size: 0.65rem;
    }
    
    .size-control-buttons {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .size-btn {
        flex: none;
        padding: 0.45rem;
        font-size: 0.65rem;
    }
} 