html, body {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    overscroll-behavior: none;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fafafa;
    color: #333333;
}

.gradient-bg {
    background: linear-gradient(135deg, 
        rgba(224, 82, 16, 0.08) 0%, 
        rgba(255, 165, 0, 0.08) 25%, 
        rgba(255, 200, 87, 0.08) 50%, 
        rgba(255, 235, 205, 0.08) 75%, 
        rgba(255, 248, 240, 0.08) 100%
    ),
    linear-gradient(45deg, #ffffff 0%, #f8f9fa 100%);
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.faq-item {
    border-bottom: 1px solid rgba(224, 82, 16, 0.1);
    transition: all 0.3s ease;
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
}

.faq-item:hover {
    background-color: rgba(224, 82, 16, 0.05);
    border-color: #E05210;
}

.faq-header:hover .faq-icon {
    color: #E05210;
}

.faq-header:hover h3 {
    color: #E05210;
}

@keyframes breathe-orange {
    0%, 100% {
        box-shadow: 0 0 25px rgba(224, 82, 16, 0.3), 0 0 50px rgba(224, 82, 16, 0.15);
    }
    50% {
        box-shadow: 0 0 35px rgba(224, 82, 16, 0.5), 0 0 70px rgba(224, 82, 16, 0.25);
    }
}

.breathing-button {
    animation: breathe-orange 2s ease-in-out infinite;
}

.breathing-button:hover {
    animation: breathe-orange 1.5s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(224, 82, 16, 0.6), 0 0 80px rgba(224, 82, 16, 0.3) !important;
}

@keyframes breathe-gold {
    0%, 100% {
        box-shadow: 0 0 25px rgba(255, 165, 0, 0.3), 0 0 50px rgba(255, 165, 0, 0.15);
    }
    50% {
        box-shadow: 0 0 35px rgba(255, 165, 0, 0.5), 0 0 70px rgba(255, 165, 0, 0.25);
    }
}

.breathing-button-gold {
    animation: breathe-gold 2s ease-in-out infinite;
}

.breathing-button-gold:hover {
    animation: breathe-gold 1.5s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(255, 165, 0, 0.6), 0 0 80px rgba(255, 165, 0, 0.3) !important;
}

.mobile-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 0 0 0;
    color: #6b7280;
}

.faq-answer.expanded {
    max-height: 500px;
    padding: 1rem 0 0 0;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotated {
    transform: rotate(45deg);
}

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(224, 82, 16, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.upload-area {
    border: 2px dashed #d1d5db;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.upload-area:hover {
    border-color: #E05210;
    background-color: rgba(224, 82, 16, 0.05);
}

.upload-area.dragover {
    border-color: #ff6b35;
    background-color: rgba(255, 107, 53, 0.1);
}

.generate-container {
    min-height: 500px;
}

#image-compare-demo {
    border-radius: 0.5rem;
}

.icv__label {
    background: rgba(224, 82, 16, 0.9) !important;
    color: white !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 20px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

.image-compare-gallery {
    position: relative;
    aspect-ratio: 4/5;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.image-compare-gallery .icv__label {
    font-size: 0.75rem !important;
    padding: 0.125rem 0.375rem !important;
    background: rgba(255, 165, 0, 0.9) !important;
    border-radius: 16px !important;
}

.image-compare-gallery .icv__control-line {
    width: 1px !important;
    background: #E05210 !important;
}

.icv__control svg {
    width: 10px !important;
    height: 10px !important;
    fill: #E05210 !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
}

.image-compare-gallery .icv__control svg {
    width: 8px !important;
    height: 8px !important;
    fill: #E05210 !important;
}

#image-compare-demo .icv__control svg {
    width: 12px !important;
    height: 12px !important;
    fill: #E05210 !important;
}

#image-compare-demo img {
    height: 100%;
    position: absolute;
    z-index: 2;
    left: auto;
    right: 0px;
    width: auto;
}

.sexy-gradient {
    background: linear-gradient(135deg, #E05210, #ff6b35);
}

.sexy-gradient-reverse {
    background: linear-gradient(135deg, #ff6b35, #E05210);
}

.text-sexy-gradient {
    background: linear-gradient(135deg, #E05210, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Auto Compare (simple before/after with autoplay, no drag) */
.auto-compare {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    background: #f8f9fa;
    user-select: none;
    border-radius: 8px;
}

/* After 图片（底层，全覆盖） */
.auto-compare__after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Before 图片容器（上层，宽度可变） */
.auto-compare__before-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.auto-compare__before {
    position: absolute;
    top: 0;
    left: 0;
    /* 图片宽度将通过JS动态设置为完整容器的宽度 */
    height: 100%;
    object-fit: cover;
    max-width: none;
}

/* 分割线 */
.auto-compare__handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #E05210;
    box-shadow: 0 0 0 1px rgba(224, 82, 16, 0.3);
    z-index: 3;
    /* 不使用 transform，直接通过 left 定位 */
}

/* 标签 */
.auto-compare__label {
    position: absolute;
    top: 12px;
    padding: 6px 12px;
    font-size: 12px;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    backdrop-filter: blur(4px);
    z-index: 4;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.auto-compare__label--left { left: 12px; }
.auto-compare__label--right { right: 12px; }

/* 浅色主题的通用样式补充 */
.bg-light-theme {
    background-color: #ffffff;
    color: #333333;
}

.text-light-primary {
    color: #E05210;
}

.border-light-primary {
    border-color: #E05210;
}

.hover-light-primary:hover {
    background-color: rgba(224, 82, 16, 0.05);
    border-color: #E05210;
}

/* 卡片样式 */
.card-light {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-light:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border-color: rgba(224, 82, 16, 0.2);
}

/* 输入框样式 */
.input-light {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #333333;
}

.input-light:focus {
    border-color: #E05210;
    box-shadow: 0 0 0 3px rgba(224, 82, 16, 0.1);
}

/* 按钮样式 */
.btn-primary-light {
    background: linear-gradient(135deg, #E05210, #ff6b35);
    color: white;
    border: none;
}

.btn-primary-light:hover {
    background: linear-gradient(135deg, #c44a0e, #e55a2b);
}

.btn-secondary-light {
    background-color: #ffffff;
    color: #E05210;
    border: 1px solid #E05210;
}

.btn-secondary-light:hover {
    background-color: rgba(224, 82, 16, 0.05);
}