* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    color: #2c3e50;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.content-container {
    display: flex;
    gap: 20px;
}

.sidebar,
.translate-sidebar {
    width: 280px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    height: fit-content;
    position: sticky;
    top: 80px;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.sidebar-section {
    margin-bottom: 32px;
    position: relative;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-list {
    list-style: none;
}

.tool-link {
    display: block;
    padding: 12px 16px;
    color: #5a6c7d;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 4px;
    position: relative;
}

.tool-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tool-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 侧边栏图标 - 统一尺寸，确保清晰度 */
.tool-icon,
.sidebar .tool-icon,
.tool-link .tool-icon,
.tool-link img.tool-icon {
    display: none !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    margin-right: 10px !important;
    vertical-align: middle !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
}

.ai-badge {
    background: #9b59b6;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 4px;
    font-weight: 500;
}

.conversion-area {
    flex: 1;
    background: #fff;
    text-align: center;
    position: relative;
    z-index: 100;
    overflow: visible;
    isolation: auto;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
    justify-content: flex-start;
}

.breadcrumb i {
    font-size: 12px;
}

.conversion-box {
    border: 2px dashed #a0a0a0;
    border-radius: 12px;
    padding: 30px 40px;
    background: #fff;
    margin: 0 auto;
    max-width: 800px;
}

.conversion-icon {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 48px;
    color: #dc3545;
}

.conversion-arrow {
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

.conversion-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.upload-button-area {
    text-align: center;
    margin-top: 30px;
}

.upload-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.upload-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.upload-info {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-top: 10px;
}

.upload-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: #667eea;
    text-align: center;
    margin: 0;
}

.file-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
    margin-top: 20px;
    text-align: left;
}

.file-list h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

#fileItems {
    list-style: none;
    padding: 0;
    margin: 0;
}

#fileItems li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #333;
}

#fileItems li:last-child {
    border-bottom: none;
}

.conversion-options {
    margin: 30px auto;
    padding: 0;
    background: transparent;
    border: none;
    max-width: 520px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.option-label {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-label i {
    color: #667eea;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.quality-select,
.quality-slider {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    color: #333;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.quality-select:hover,
.quality-slider:hover,
.quality-select:focus,
.quality-slider:focus {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.option-tip {
    font-size: 13px;
    color: #6c757d;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.6;
}

.option-tip i {
    color: #95a5a6;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.option-checkbox {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: #333;
    align-items: center;
}

.client-drop-zone {
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.client-drop-zone.dragover {
    border-color: #667eea;
    background: #f5f7ff;
}

.client-drop-tip {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 16px;
}

.client-file-input {
    display: none;
}

.client-section {
    margin-top: 30px;
}

.client-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 30px 0;
    align-items: flex-end;
}

.control-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-label {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.control-select {
    padding: 12px 14px;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    color: #2c3e50;
}

.control-select:disabled {
    background: #f5f5f5;
    color: #999;
}

.control-tip {
    font-size: 12px;
    color: #95a5a6;
}

.slider-container input[type="range"] {
    width: 100%;
}

.primary-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn:disabled {
    background: #cfd9df;
    cursor: not-allowed;
    box-shadow: none;
}

.primary-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.35);
}

.client-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.client-preview-box {
    text-align: center;
}

.preview-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.client-message {
    text-align: center;
    font-size: 14px;
    margin-top: 16px;
    color: #e74c3c;
}

.download-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

.conversion-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    margin-bottom: 20px;
    padding: 15px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 140px;
    padding: 8px;
    background: transparent;
    border-radius: 6px;
    transition: none;
    position: relative;
    cursor: default;
}

.step-item:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
}

.step-item:hover .step-icon {
    transform: none;
    box-shadow: none;
}

.step-icon {
    width: 32px;
    height: 32px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: none;
    position: relative;
    box-shadow: none;
}

.step-icon::before {
    display: none;
}

.step-icon i {
    font-size: 14px;
    color: #6c757d;
    text-shadow: none;
}

.step-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
}

.step-number {
    font-size: 10px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.step-text {
    font-size: 13px;
    color: #495057;
    font-weight: 400;
    line-height: 1.3;
    max-width: 120px;
}

.step-arrow {
    width: 20px;
    height: 20px;
    background: #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: none;
    box-shadow: none;
}

.step-arrow:hover {
    transform: none;
    box-shadow: none;
}

.step-arrow i {
    font-size: 10px;
    color: #6c757d;
    text-shadow: none;
}

.features-section {
    margin: 40px auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(160deg, #6a89cc, #82ccdd);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    margin: 0 auto 14px;
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.feature-desc {
    font-size: 14px;
    color: #5a6c7d;
    line-height: 1.6;
}

.pricing-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    margin: 40px auto 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pricing-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.pricing-table {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
}

.pricing-row {
    display: flex;
    gap: 0;
}

.pricing-column {
    flex: 1;
    padding: 20px;
    border-right: 1px solid #f0f0f0;
}

.pricing-column:last-child {
    border-right: none;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    color: #333;
}

.pricing-item:last-child {
    border-bottom: none;
}

.size-range {
    font-weight: 600;
}

.quota {
    color: #667eea;
    font-weight: 600;
}

.pricing-footer {
    margin-top: 20px;
    text-align: center;
}

.pricing-note {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 12px;
}

.activate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 10px 26px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.activate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.floating-sidebar {
    position: fixed;
    right: 24px;
    bottom: 120px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.floating-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.floating-item:hover {
    transform: translateY(-3px);
}

.floating-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.customer-service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.customer-service-modal.show {
    opacity: 1;
}

.customer-service-content {
    background: #ffffff;
    border-radius: 20px;
    width: 320px;
    padding: 24px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.customer-service-modal.show .customer-service-content {
    transform: translateY(0);
}

.customer-service-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.qr-code-wrapper {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    padding: 12px;
    border-radius: 16px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-tip,
.service-time {
    font-size: 13px;
    color: #6c757d;
    text-align: center;
}

@media (max-width: 1024px) {
    .content-container {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        width: 100%;
    }
    
    .tool-icon {
        width: 36px !important;
        height: 36px !important;
    }
}

@media (max-width: 768px) {
    .conversion-area,
    .conversion-box,
    .conversion-options {
        max-width: 100%;
    }

    .conversion-steps {
        flex-direction: column;
        gap: 12px;
        padding: 12px 10px;
        margin-top: 20px;
        margin-bottom: 15px;
    }
    
    .step-item {
        min-width: auto;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 6px;
        gap: 10px;
    }
    
    .step-content {
        align-items: flex-start;
        text-align: left;
    }
    
    .step-text {
        max-width: none;
        font-size: 12px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        width: 16px;
        height: 16px;
    }
    
    .step-arrow i {
        font-size: 8px;
    }
    
    .step-icon {
        width: 28px;
        height: 28px;
    }
    
    .step-icon i {
        font-size: 12px;
    }

    .pricing-row {
        flex-direction: column;
    }

    .floating-sidebar {
        right: 16px;
    }
    
    .tool-icon {
        width: 36px !important;
        height: 36px !important;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-card {
        padding: 15px;
    }
}

