
        /* 基础样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
            color: #5d4037;
            line-height: 1.6;
            min-height: 100vh;
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: flex-start;
        }
        
        .container {
            width: 100%;
            max-width: 1500px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(140, 96, 65, 0.15);
            overflow: hidden;
            border: 1px solid rgba(255, 245, 235, 0.8);
            margin: 0 auto;
        }
        
        /* 顶部标题 */
        .header {
            background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
            color: #5d4037;
            padding: 40px 30px 30px;
            text-align: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        }
        
        .header h1 {
            font-size: 2.5rem;
            margin-bottom: 15px;
            font-weight: 600;
            text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
        }
        
        .header p {
            font-size: 1.1rem;
            opacity: 0.9;
            max-width: 800px;
            margin: 0 auto 25px;
        }
        
        /* 语言切换按钮和分享按钮 */
        .language-switcher {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 10px;
        }
        
        .lang-btn {
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid #ffccbc;
            border-radius: 25px;
            padding: 10px 25px;
            color: #5d4037;
            cursor: pointer;
            font-size: 16px;
            font-weight: 500;
            transition: all 0.3s;
            backdrop-filter: blur(5px);
            min-width: 120px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .lang-btn:hover {
            background: white;
            border-color: #ff7043;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 112, 67, 0.2);
        }
        
        .lang-btn.active {
            background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
            border-color: #ff7043;
            color: #5d4037;
            font-weight: 600;
            box-shadow: 0 3px 10px rgba(255, 112, 67, 0.2);
        }
        
        /* 分享按钮样式 */
        .share-btn {
            background: linear-gradient(135deg, #8aceca 0%, #09b38e 100%);
            color: white;
            border-color: #4facfe;
        }
        
        .share-btn:hover {
            background: linear-gradient(135deg, #3a8df4 0%, #00c9fe 100%);
            border-color: #3a8df4;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(58, 141, 244, 0.3);
        }
        
        .share-icon {
            display: inline-block;
            transition: transform 0.3s ease;
        }
        
        /* 标签页样式 */
        .tabs-container {
            background: #fff9f5;
            border-bottom: 2px solid #ffe8d6;
        }
        
        .tabs {
            display: flex;
            justify-content: center;
            padding: 0;
            margin: 0;
            flex-wrap: wrap;
        }
        
        .tab {
            padding: 18px 25px;
            background: #fff9f5;
            color: #8d6e63;
            cursor: pointer;
            border: none;
            font-size: 17px;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
            border-right: 1px solid #ffe8d6;
            flex: 1;
            min-width: 220px;
            text-align: center;
        }
        
        .tab:last-child {
            border-right: none;
        }
        
        .tab:hover {
            background: #fff1e6;
            color: #5d4037;
        }
        
        .tab.active {
            background: white;
            color: #ff7043;
            border-bottom: 3px solid #ff7043;
        }
        
        .tab.active::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 3px;
            background: #ff7043;
            border-radius: 2px;
        }
        
        /* 内容区域 */
        .content {
            padding: 30px;
            min-height: 600px;
        }
        
        .tab-content {
            display: none;
            animation: fadeIn 0.4s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .tab-content.active {
            display: block;
        }
        
        /* 工具卡片通用样式 */
        .tool-card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 10px 25px rgba(255, 152, 0, 0.1);
            overflow: hidden;
            margin-bottom: 25px;
            border: 1px solid #ffe8d6;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .tool-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(255, 152, 0, 0.15);
        }
        
        .card-header {
            background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
            color: #5d4037;
            padding: 25px 30px;
            text-align: center;
            border-bottom: 1px solid #ffe8d6;
        }
        
        .card-header h2 {
            font-size: 1.8rem;
            margin-bottom: 10px;
            font-weight: 600;
            color: #ff7043;
        }
        
        .card-header p {
            opacity: 0.9;
            font-size: 1.05rem;
            color: #8d6e63;
        }
        
        .card-body {
            padding: 30px;
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
            justify-content: center;
        }
        
        /* 左右布局 */
        .left-panel, .right-panel {
            flex: 1;
            min-width: 500px;
            max-width: 600px;
        }
        
        /* 上传区域样式 */
        .upload-area {
            background: #fff9f5;
            border-radius: 12px;
            padding: 25px;
            border: 2px dashed #ffccbc;
            transition: all 0.3s ease;
        }
        
        .upload-area:hover {
            border-color: #ff8a65;
            background: #fff3e0;
        }
        
        .upload-box {
            border: 2px dashed #ff8a65;
            border-radius: 12px;
            padding: 40px 25px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: rgba(255, 138, 101, 0.05);
        }
        
        .upload-box:hover {
            border-color: #ff7043;
            background: rgba(255, 138, 101, 0.1);
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(255, 138, 101, 0.15);
        }
        
        .upload-icon {
            font-size: 60px;
            color: #ff7043;
            margin-bottom: 20px;
            filter: drop-shadow(0 3px 5px rgba(255, 112, 67, 0.3));
        }
        
        .upload-text {
            font-size: 1.3rem;
            margin-bottom: 15px;
            color: #5d4037;
            font-weight: 500;
        }
        
        /* 按钮样式 */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
            color: #5d4037;
            padding: 13px 25px;
            border-radius: 10px;
            cursor: pointer;
            border: none;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.3s ease;
            margin: 5px;
            text-decoration: none;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255, 154, 158, 0.3);
            min-height: 48px;
        }
        
        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 154, 158, 0.3);
        }
        
        .btn-success {
            background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
            color: #5d4037;
        }
        
        .btn-success:hover {
            box-shadow: 0 5px 15px rgba(168, 237, 234, 0.3);
        }
        
        .btn-warning {
            background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
            color: #5d4037;
        }
        
        .btn-warning:hover {
            box-shadow: 0 5px 15px rgba(252, 182, 159, 0.3);
        }
        
        .btn-danger {
            background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
            color: #5d4037;
        }
        
        .btn-danger:hover {
            box-shadow: 0 5px 15px rgba(255, 154, 158, 0.3);
        }
        
        .btn:disabled {
            background: #d7ccc8;
            color: #a1887f;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
            border-color: #d7ccc8;
        }
        
        /* 预览区域 */
        .preview-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
        }
        
        .image-preview {
            width: 280px;
            height: 280px;
            border: 2px solid #ffccbc;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            margin-bottom: 25px;
            background: #fff9f5;
            box-shadow: 0 5px 15px rgba(255, 204, 188, 0.2);
            transition: border-color 0.3s ease;
        }
        
        .image-preview:hover {
            border-color: #ff8a65;
        }
        
        .image-preview img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 8px;
        }
        
        .preview-placeholder {
            color: #a1887f;
            font-size: 1.1rem;
        }
        
        /* 选项容器 */
        .options-container {
            width: 100%;
            background: #fff9f5;
            padding: 25px;
            border-radius: 12px;
            border: 1px solid #ffe8d6;
            max-width: 600px;
        }
        
        .option-group {
            margin-bottom: 25px;
        }
        
        .option-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 15px;
            color: #5d4037;
            padding-bottom: 10px;
            border-bottom: 2px solid #ffe8d6;
        }
        
        /* 按钮组样式 */
        .button-group {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
        }
        
        .format-btn, .size-btn, .bg-btn {
            padding: 10px 15px;
            background: white;
            color: #8d6e63;
            border: 1px solid #ffccbc;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            flex: 1;
            min-width: 70px;
            max-width: 120px;
            text-align: center;
            font-size: 14px;
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .format-btn:hover, .size-btn:hover, .bg-btn:hover {
            background: #fff3e0;
            border-color: #ff8a65;
            color: #5d4037;
            transform: translateY(-1px);
        }
        
        .format-btn.active, .size-btn.active, .bg-btn.active {
            background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
            color: #5d4037;
            border-color: #ff8a65;
            box-shadow: 0 3px 10px rgba(255, 138, 101, 0.2);
        }
        
        /* 颜色预览 */
        .color-preview {
            width: 20px;
            height: 20px;
            border-radius: 4px;
            border: 1px solid #ffccbc;
            margin-right: 8px;
        }
        
        .bg-btn {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* 滑块样式 */
        .quality-slider {
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: #ffccbc;
            outline: none;
            -webkit-appearance: none;
        }
        
        .quality-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #ff7043;
            cursor: pointer;
            border: 3px solid white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        
        .quality-value {
            text-align: center;
            margin-top: 10px;
            font-size: 1.1rem;
            color: #5d4037;
            font-weight: 500;
        }
        
        /* 尺寸调整 */
        .resize-options {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
        }
        
        .resize-input {
            width: 120px;
            padding: 12px;
            background: white;
            color: #5d4037;
            border: 1px solid #ffccbc;
            border-radius: 8px;
            text-align: center;
            font-size: 16px;
            transition: all 0.3s;
        }
        
        .resize-input:focus {
            outline: none;
            border-color: #ff7043;
            box-shadow: 0 0 0 2px rgba(255, 112, 67, 0.1);
        }
        
        .resize-separator {
            color: #a1887f;
            font-size: 1.5rem;
            font-weight: bold;
        }
        
        .aspect-ratio-checkbox {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-top: 15px;
            flex-wrap: wrap;
            color: #8d6e63;
        }
        
        .aspect-ratio-checkbox input {
            width: 18px;
            height: 18px;
            accent-color: #ff7043;
        }
        
        /* Base64样式 */
        .base64-container {
            display: flex;
            flex-direction: column;
            gap: 30px;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .base64-tabs {
            display: flex;
            background: #fff9f5;
            border-radius: 10px 10px 0 0;
            overflow: hidden;
            border: 1px solid #ffe8d6;
        }
        
        .base64-tab {
            padding: 15px 25px;
            background: #fff9f5;
            color: #8d6e63;
            cursor: pointer;
            border: none;
            transition: all 0.3s;
            flex: 1;
            text-align: center;
            font-weight: 500;
            border-right: 1px solid #ffe8d6;
            min-width: 150px;
        }
        
        .base64-tab:last-child {
            border-right: none;
        }
        
        .base64-tab:hover {
            background: #fff3e0;
            color: #5d4037;
        }
        
        .base64-tab.active {
            background: white;
            color: #ff7043;
            border-bottom: 3px solid #ff7043;
        }
        
        .base64-tab-content {
            display: none;
            padding: 25px;
            background: white;
            border: 1px solid #ffe8d6;
            border-top: none;
            border-radius: 0 0 10px 10px;
        }
        
        .base64-tab-content.active {
            display: block;
        }
        
        .base64-area {
            margin-bottom: 25px;
        }
        
        .base64-area h3 {
            font-size: 1.2rem;
            margin-bottom: 15px;
            color: #5d4037;
            text-align: center;
        }
        
        .base64-area textarea {
            width: 100%;
            height: 180px;
            padding: 20px;
            background: white;
            color: #5d4037;
            border: 1px solid #ffccbc;
            border-radius: 8px;
            font-family: 'Consolas', 'Monaco', monospace;
            font-size: 14px;
            resize: vertical;
            line-height: 1.5;
            transition: all 0.3s;
        }
        
        .base64-area textarea:focus {
            outline: none;
            border-color: #ff7043;
            box-shadow: 0 0 0 2px rgba(255, 112, 67, 0.1);
        }
        
        /* Base64内容布局 */
        .base64-content {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }
        
        .base64-row {
            display: flex;
            gap: 30px;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .base64-col {
            flex: 1;
            min-width: 300px;
            max-width: 500px;
        }
        
        .base64-buttons {
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-top: 20px;
        }
        
        /* 颜色选择器样式 */
        .color-picker-container {
            display: flex;
            gap: 40px;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .color-controls {
            flex: 1;
            min-width: 400px;
            max-width: 500px;
        }
        
        .color-preview-large {
            width: 200px;
            height: 200px;
            border-radius: 12px;
            border: 2px solid #ffccbc;
            margin: 20px auto 30px;
            box-shadow: 0 5px 15px rgba(255, 204, 188, 0.2);
            transition: all 0.3s ease;
        }
        
        .color-input-group {
            display: flex;
            gap: 15px;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .color-input-group input[type="color"] {
            width: 60px;
            height: 60px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            border: 2px solid #ffccbc;
            background: transparent;
        }
        
        .color-values {
            background: #fff9f5;
            padding: 25px;
            border-radius: 12px;
            border: 1px solid #ffe8d6;
            font-family: 'Consolas', 'Monaco', monospace;
            font-size: 15px;
            line-height: 2;
            color: #5d4037;
        }
        
        .color-values div {
            padding: 8px 0;
            border-bottom: 1px solid #ffe8d6;
        }
        
        .color-values div:last-child {
            border-bottom: none;
        }
        
        .color-values strong {
            color: #ff7043;
            margin-right: 10px;
        }
        
        /* 文件信息样式 */
        .file-info {
            margin-top: 20px;
            padding: 20px;
            background: #fff9f5;
            border-radius: 10px;
            border: 1px solid #ffe8d6;
            font-size: 14px;
            line-height: 1.8;
            color: #8d6e63;
        }
        
        .file-info p {
            margin: 5px 0;
        }
        
        .file-info strong {
            color: #5d4037;
        }
        
        /* 隐藏元素 */
        .hidden {
            display: none;
        }
        
        /* 响应式设计 */
        @media (max-width: 1200px) {
            .container {
                max-width: 100%;
            }
            
            .left-panel, .right-panel {
                min-width: 400px;
            }
            
            .color-controls {
                min-width: 350px;
            }
        }
        
        @media (max-width: 992px) {
            .card-body {
                flex-direction: column;
                align-items: center;
            }
            
            .left-panel, .right-panel {
                width: 100%;
                min-width: unset;
                max-width: 600px;
            }
            
            .color-picker-container {
                flex-direction: column;
                align-items: center;
            }
            
            .color-controls {
                width: 100%;
                min-width: unset;
                max-width: 600px;
            }
        }
        
        @media (max-width: 768px) {
            body {
                padding: 10px;
            }
            
            .container {
                border-radius: 16px;
            }
            
            .header {
                padding: 30px 20px 25px;
            }
            
            .header h1 {
                font-size: 2rem;
                margin-bottom: 10px;
            }
            
            .header p {
                font-size: 1rem;
                margin-bottom: 20px;
            }
            
            .language-switcher {
                gap: 10px;
            }
            
            .lang-btn {
                padding: 8px 20px;
                font-size: 15px;
                min-width: 100px;
            }
            
            .share-btn {
                min-width: 90px;
            }
            
            .tab {
                padding: 15px 20px;
                border-right: none;
                border-bottom: 1px solid #ffe8d6;
                min-width: unset;
                font-size: 16px;
                min-height: 56px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            .content {
                padding: 20px;
            }
            
            .card-body {
                padding: 20px;
                gap: 25px;
            }
            
            .upload-box {
                padding: 30px 20px;
            }
            
            .image-preview {
                width: 250px;
                height: 250px;
            }
            
            .color-preview-large {
                width: 180px;
                height: 180px;
            }
            
            .base64-col {
                min-width: unset;
                width: 100%;
            }
            
            .color-input-group {
                flex-direction: column;
                align-items: center;
            }
            
            .base64-tabs {
                flex-direction: column;
            }
            
            .base64-tab {
                border-right: none;
                border-bottom: 1px solid #ffe8d6;
                min-height: 50px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            .resize-options {
                flex-direction: column;
                align-items: center;
            }
            
            /* 移动端按钮文字保护 */
            .btn {
                min-height: 44px;
                font-size: 14px;
                padding: 12px 20px;
            }
            
            /* 移动端ICO尺寸按钮调整 */
            .size-btn {
                min-width: 60px;
                max-width: 100px;
                padding: 8px 12px;
                font-size: 13px;
                min-height: 40px;
            }
        }
        
        @media (max-width: 480px) {
            .tab {
                padding: 12px 15px;
                font-size: 15px;
                min-height: 52px;
            }
            
            .card-header {
                padding: 20px;
            }
            
            .card-header h2 {
                font-size: 1.5rem;
            }
            
            .options-container {
                padding: 20px;
            }
            
            .base64-area textarea {
                height: 150px;
            }
            
            .image-preview {
                width: 220px;
                height: 220px;
            }
            
            .upload-text {
                font-size: 1.2rem;
            }
            
            /* 小屏语言切换按钮调整 */
            .language-switcher {
                flex-direction: column;
                align-items: center;
                gap: 8px;
            }
            
            .lang-btn {
                width: 120px;
                padding: 8px 15px;
                font-size: 14px;
            }
            
            .share-btn {
                width: 90px;
                padding: 8px 12px;
                font-size: 14px;
            }
            
            /* 小屏ICO尺寸按钮进一步调整 */
            .size-btn {
                min-width: 50px;
                max-width: 80px;
                padding: 6px 10px;
                font-size: 12px;
                min-height: 36px;
            }
            
            /* 确保小屏按钮文字不被遮挡 */
            .format-btn, .size-btn, .bg-btn {
                min-height: 40px;
                line-height: 1.2;
            }
        }

                /* 页脚样式 */
        .footer {
            background: #fff9f5;
            border-top: 1px solid #ffe8d6;
            padding: 20px 30px;
            text-align: center;
            color: #8d6e63;
            font-size: 14px;
            margin-top: 20px;
        }
        
        .footer a {
            color: #ff7043;
            text-decoration: none;
            margin: 0 5px;
        }
        
        .footer a:hover {
            text-decoration: underline;
            color: #ff5722;
        }
        
        .footer-content {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .footer-separator {
            color: #bcaaa4;
        }