/* ===================================
   图片转ASCII字符画工具 - 专用样式
   依赖: tools-common.css
   =================================== */

/* 上传区域 */
.upload-area {
    border: 3px dashed #ddd;
    border-radius: 12px;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    cursor: pointer;
    text-align: center;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #E91E63;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

.upload-icon {
    font-size: 56px;
    color: #E91E63;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.upload-area h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 15px 0;
    font-weight: 600;
}

.upload-area p {
    color: #666;
    font-size: 0.95rem;
}

/* 图片预览区 */
.preview-area {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.preview-area h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preview-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* 模式选择区域 */
.mode-section {
    margin: 30px 0;
}

.mode-section h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mode-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.mode-card {
    padding: 25px 20px;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.mode-card:hover {
    border-color: #E91E63;
    background: #fce4ec;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(233, 30, 99, 0.2);
}

.mode-card.selected {
    border-color: #E91E63;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.mode-icon {
    font-size: 48px;
    color: #E91E63;
    margin-bottom: 15px;
}

.mode-card h4 {
    font-size: 1.2rem;
    color: #333;
    margin: 10px 0 8px;
    font-weight: 600;
}

.mode-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 12px;
}

.mode-sample {
    font-size: 1rem;
    color: #E91E63;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    margin-top: 8px;
    padding: 8px;
    background: rgba(233, 30, 99, 0.1);
    border-radius: 4px;
}

/* 控制面板 */
.options-panel {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid #e0e0e0;
}

.options-panel h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.option-group label span {
    color: #E91E63;
    font-weight: 700;
    margin-left: 5px;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #f8bbd0, #E91E63);
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E91E63;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(233, 30, 99, 0.4);
    transition: all 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 10px rgba(233, 30, 99, 0.6);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E91E63;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(233, 30, 99, 0.4);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #E91E63;
}

.checkbox-group label {
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    user-select: none;
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #C2185B 0%, #AD1457 100%);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
}

/* 输出区域 */
.output-area {
    margin: 30px 0;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.output-area h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.output-container {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 25px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    line-height: 1.2;
    white-space: pre;
    max-height: 600px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}

.output-container::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.output-container::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 4px;
}

.output-container::-webkit-scrollbar-thumb {
    background: #E91E63;
    border-radius: 4px;
}

.output-container::-webkit-scrollbar-thumb:hover {
    background: #C2185B;
}

.output-info {
    margin-top: 15px;
    padding: 12px 15px;
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    border-radius: 4px;
}

.output-info small {
    color: #e65100;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .mode-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .upload-area {
        padding: 40px 15px;
    }

    .upload-icon {
        font-size: 42px;
    }

    .upload-area h3 {
        font-size: 1.2rem;
    }

    .mode-selector {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mode-card {
        padding: 20px 15px;
    }

    .mode-icon {
        font-size: 36px;
    }

    .options-panel {
        padding: 20px 15px;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .output-container {
        font-size: 8px;
        padding: 15px;
        max-height: 400px;
    }

    .preview-container {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .upload-area h3 {
        font-size: 1rem;
    }

    .upload-area p {
        font-size: 0.85rem;
    }

    .mode-card h4 {
        font-size: 1rem;
    }

    .mode-sample {
        font-size: 0.85rem;
    }

    .output-container {
        font-size: 6px;
    }
}
