
/* anwen-online-tool-style.css */

/** anwen-online-image-compression-tool.php  css begin */

    /* 简单的样式定义，您可以根据需要修改 */
    .compress-tool-wrapper {
        max-width: 1400px;
        margin: 40px auto;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        color: #333;
    }
    .tool-header {
        text-align: center;
        margin-bottom: 30px;
    }
    .format-info {
        background-color: #f0f0f1;
        display: inline-block;
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 0.9em;
        color: #666;
        margin-top: 10px;
    }
    
    /* 上传区域样式 */
    .upload-area {
        border: 3px dashed #c3c4c7;
        border-radius: 10px;
        padding: 60px 20px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        background: #fafafa;
        position: relative;
    }
    .upload-area:hover, .upload-area.dragover {
        border-color: #2271b1;
        background: #f0f6fc;
    }
    .upload-icon {
        font-size: 48px;
        color: #a7aaad;
        margin-bottom: 10px;
    }
    .upload-text {
        font-size: 1.2em;
        font-weight: 500;
    }
    #fileInput {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        opacity: 0;
        cursor: pointer;
    }

    /* 结果控制区域 */
    .result-container {
        display: none; /* 默认隐藏 */
        margin-top: 30px;
        border: 1px solid #dcdcde;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }
    .control-panel {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
    }
    .quality-control {
        flex: 1;
        min-width: 250px;
        margin-right: 20px;
    }
    .size-comparison {
        display: flex;
        gap: 20px;
        background: #f6f7f7;
        padding: 10px 20px;
        border-radius: 8px;
    }
    .size-box strong { display: block; font-size: 0.8em; color: #666; }
    .size-box span { font-size: 1.2em; color: #2271b1; font-weight: bold; }
    .size-box.saved { color: #00a32a; }

    /* 预览与按钮 */
    .preview-flex {
        display: flex;
        gap: 30px;
        align-items: flex-start;
    }
    .img-preview-box {
        flex: 1;
        background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0iI2VlZSI+PHJlY3Qgd2lkdGg9IjEwIiBoZWlnaHQ9IjEwIiAvPjxyZWN0IHg9IjEwIiB5PSIxMCIgd2lkdGg9IjEwIiBoZWlnaHQ9IjEwIiAvPjwvc3ZnPg=='); /* 透明背景格 */
        padding: 10px;
        border-radius: 5px;
        text-align: center;
        max-height: 500px;
        overflow: hidden;
    }
    #previewImg {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        min-width: 200px;
    }

    /* 按钮样式 */
    .btn {
        display: block;
        width: 100%;
        padding: 12px;
        text-align: center;
        border-radius: 5px;
        text-decoration: none;
        font-weight: 600;
        cursor: pointer;
        border: none;
        transition: background 0.2s;
    }
    .btn-download { background-color: #2271b1; color: white; }
    .btn-download:hover { background-color: #135e96; }
    .btn-remove { background-color: #d63638; color: white; }
    .btn-remove:hover { background-color: #b32d2e; }
    
    input[type=range] { width: 100%; cursor: pointer; }

    /* 移动端适配 */
    @media (max-width: 600px) {
        .preview-flex { flex-direction: column; }
        .action-buttons { width: 100%; }
        .size-comparison { flex-direction: column; gap: 10px; }
    }




/** anwen-online-image-compression-tool.php  css end */
