/* 字体简化工具 - 专用样式 (复用主项目的基础样式) */

/* === 全页面拖拽覆盖层 === */
.drag-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(122, 162, 247, 0.95) 0%, rgba(247, 125, 170, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.drag-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.drag-overlay-content {
    text-align: center;
    color: white;
    max-width: 500px;
    padding: 3rem;
}

.drag-overlay-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    animation: dragIconBounce 2s ease-in-out infinite;
}

.drag-overlay-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: white;
}

.drag-overlay-text p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.drag-overlay-animation {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.bounce-dot {
    width: 0.8rem;
    height: 0.8rem;
    background: white;
    border-radius: 50%;
    animation: bounceDots 1.4s ease-in-out infinite both;
}

.bounce-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.bounce-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.bounce-dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes dragIconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes bounceDots {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* 拖拽覆盖层响应式设计 */
@media (max-width: 768px) {
    .drag-overlay-content {
        padding: 2rem 1rem;
        max-width: 90%;
    }
    
    .drag-overlay-icon {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }
    
    .drag-overlay-text h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .drag-overlay-text p {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .drag-overlay-animation {
        margin-top: 1.5rem;
        gap: 0.4rem;
    }
    
    .bounce-dot {
        width: 0.6rem;
        height: 0.6rem;
    }
}

@media (max-width: 480px) {
    .drag-overlay-content {
        padding: 1.5rem 0.8rem;
    }
    
    .drag-overlay-icon {
        font-size: 2.8rem;
        margin-bottom: 0.8rem;
    }
    
    .drag-overlay-text h2 {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }
    
    .drag-overlay-text p {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
        line-height: 1.4;
    }
}

/* 工具标题区域 */
.tool-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.tool-header h1 {
    font-size: 2.8rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.tool-header p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 警告区域样式 */
.warning-section {
    margin-bottom: 2rem;
}

.warning-card {
    background: linear-gradient(135deg, var(--surface-color) 0%, rgba(122, 162, 247, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.warning-card:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-2px);
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.warning-header i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.warning-content p {
    margin: 0.75rem 0;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
}

.warning-content p:last-child {
    margin-bottom: 0;
}

.warning-content strong {
    color: var(--heading-color);
    font-weight: 600;
}

/* 主内容区 */
.main-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 通用卡片样式 */
section {
    background: var(--surface-color);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}



section:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-3px);
}

section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}



section h2 i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* 上传区域样式 */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-base);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--surface-color) 0%, rgba(122, 162, 247, 0.02) 100%);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(122, 162, 247, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--surface-color) 0%, rgba(122, 162, 247, 0.05) 100%);
    transform: translateY(-2px);
    box-shadow: var(--button-hover-shadow);
}

.upload-area:hover::before {
    opacity: 1;
}

.upload-area.drag-over {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(247, 125, 170, 0.1) 0%, rgba(122, 162, 247, 0.1) 100%);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(122, 162, 247, 0.25);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 8px;
}

.upload-subtitle {
    color: #64748b;
    font-size: 0.9rem;
}

.folder-hint {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 6px;
    color: #2e7d32;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.folder-hint i {
    color: #4caf50;
    font-size: 0.9rem;
}

/* ZIP生成进度条样式 */
.zip-progress-container {
    margin: 20px 0 16px 0;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}



.zip-progress-header {
    display: none;
}

.zip-progress-bar {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

.zip-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.zip-progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

.zip-progress-details {
    display: none;
}

/* 文件列表样式 */
.file-list {
    margin-top: 20px;
    background: linear-gradient(135deg, var(--surface-color) 0%, rgba(122, 162, 247, 0.03) 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-large);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}



.file-list:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.file-list-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.file-list-header h3 {
    margin: 0;
    color: var(--heading-color);
    font-size: 1.2rem;
    font-weight: 600;
}

/* 扫描信息样式 */
.scan-info {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9ff 100%);
    border: 1px solid #d1fae5;
    border-radius: 8px;
    color: #065f46;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}



.scan-info i {
    color: #059669;
    font-size: 1rem;
    flex-shrink: 0;
}

.scan-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.15);
}

/* 文件列表滚动进度条 */
.file-scroll-progress {
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    margin: 1rem 0 0.5rem 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.file-scroll-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    width: 0%;
    transition: width 0.15s ease;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.file-scroll-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

.file-items {
    margin: 16px 0;
    max-height: 400px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 8px;
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #2c3e50;
}

.file-size {
    font-size: 0.85rem;
    color: #64748b;
}

.file-remove {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.file-remove:hover {
    background: #fed7d7;
}

/* 字符输入区域 */
.character-input-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 2rem;
}

/* 字体处理引擎加载状态 - 二次元风格 */
.engine-loading-container {
    background: linear-gradient(135deg, var(--surface-color) 0%, rgba(122, 162, 247, 0.08) 50%, rgba(247, 125, 170, 0.05) 100%);
    border: 2px solid rgba(122, 162, 247, 0.4);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(122, 162, 247, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.engine-loading-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(247, 125, 170, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(0%) translateY(0%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.engine-loading-container.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.engine-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.processing-loading-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gear-container {
    position: relative;
    width: 80px;
    height: 80px;
    z-index: 2;
}

.gear-large {
    position: absolute;
    font-size: 3rem;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rotateClockwise 6s linear infinite, glow 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(122, 162, 247, 0.3));
    transform-origin: center;
}

.gear-small {
    position: absolute;
    font-size: 2rem;
    top: 20px;
    right: 0px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rotateCounterClockwise 4s linear infinite, glowSmall 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 6px rgba(247, 125, 170, 0.3));
    transform-origin: center;
    z-index: 3;
}

@keyframes rotateClockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateCounterClockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 2px 8px rgba(122, 162, 247, 0.3));
    }
    50% {
        filter: drop-shadow(0 4px 15px rgba(247, 125, 170, 0.6));
    }
}

@keyframes glowSmall {
    0%, 100% {
        filter: drop-shadow(0 2px 6px rgba(247, 125, 170, 0.3));
    }
    50% {
        filter: drop-shadow(0 3px 12px rgba(122, 162, 247, 0.5));
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.loading-dots {
    position: absolute;
    display: flex;
    gap: 0.5rem;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: loadingDots 1.5s ease-in-out infinite;
}

.loading-dots span:nth-child(1) {
    background: var(--primary-color);
    animation-delay: 0s;
    box-shadow: 0 0 10px rgba(122, 162, 247, 0.5);
}

.loading-dots span:nth-child(2) {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    animation-delay: 0.5s;
    box-shadow: 0 0 10px rgba(184, 144, 248, 0.5);
}

.loading-dots span:nth-child(3) {
    background: var(--accent-color);
    animation-delay: 1s;
    box-shadow: 0 0 10px rgba(247, 125, 170, 0.5);
}

@keyframes loadingDots {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    30% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.engine-loading-text h3 {
    margin: 0;
    color: var(--heading-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.engine-loading-text p {
    margin: 0;
    color: var(--text-color);
    font-size: 1rem;
    opacity: 0.8;
}

/* 引擎未就绪提示 - 二次元风格 */
.engine-not-ready-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(122, 162, 247, 0.08), rgba(247, 125, 170, 0.05));
    border: 1px solid rgba(122, 162, 247, 0.3);
    border-radius: var(--border-radius-base);
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(122, 162, 247, 0.1);
}

.engine-not-ready-hint.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.engine-not-ready-hint i {
    color: var(--accent-color);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* 处理控制区域 */
.process-control-area {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    width: 100%;
}

/* 严格清理模式说明 */
.strict-mode-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: #065f46;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    margin-bottom: 0.5rem;
}

.strict-mode-notice i {
    color: #10b981;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.strict-mode-notice:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.15);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.08) 100%);
}

.process-control-area .btn-large {
    align-self: center;
    max-width: 400px;
}

#charactersInput {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Consolas', 'Monaco', monospace;
    resize: vertical;
    transition: border-color 0.2s;
}

#charactersInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 快捷按钮 */
.quick-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-base);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: var(--font-family);
    letter-spacing: -0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--button-hover-shadow);
    animation: jelly 0.6s ease;
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    box-shadow: var(--button-shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #8892b0);
    color: white;
    box-shadow: var(--button-shadow);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #8892b0, var(--secondary-color));
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: var(--button-shadow);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.btn-success:disabled {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    width: 100%;
    justify-content: center;
    font-weight: 700;
}

/* 进度条样式 */
.progress-container {
    margin-top: 20px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.progress-text {
    text-align: center;
    margin-top: 8px;
    font-weight: 600;
    color: #2c3e50;
}

/* 计时显示样式 */
.timing-text {
    text-align: center;
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.timing-text i {
    color: #667eea;
    font-size: 1rem;
    animation: clockTick 2s ease-in-out infinite;
}

.timing-text.timing-completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-weight: 600;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.timing-text.timing-completed i {
    color: #10b981;
    animation: completedPulse 1s ease-in-out;
}

/* 计时动画 */
@keyframes clockTick {
    0%, 50%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(15deg);
    }
    75% {
        transform: rotate(-15deg);
    }
}

@keyframes completedPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* 响应式样式 */
@media (max-width: 768px) {
    .timing-text {
        font-size: 0.85rem;
        padding: 6px 12px;
        gap: 6px;
    }
    
    .timing-text i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .timing-text {
        font-size: 0.8rem;
        padding: 5px 10px;
        gap: 5px;
        margin-top: 10px;
    }
    
    .timing-text i {
        font-size: 0.85rem;
    }
}



/* 下载标题行 */
.download-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.download-header h2 {
    margin: 0;
    flex: 1;
    min-width: 0;
}

/* 下载控制区域 */
.download-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

/* 紧凑按钮样式 */
.btn-compact {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: var(--border-radius-base);
    transition: all 0.3s ease;
}

.btn-compact i {
    margin-right: 0.4rem;
    font-size: 0.8rem;
}

/* 下载区域 */
.download-items {
    display: grid;
    gap: 12px;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f0fff4;
    border-radius: 6px;
    border-left: 4px solid #10b981;
}

.download-info {
    flex: 1;
}

.download-name {
    font-weight: 600;
    color: #2c3e50;
}

.download-size {
    font-size: 0.85rem;
    color: #64748b;
}

.download-warning {
    font-size: 0.75rem;
    color: #10b981;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 下载操作区域 */
.download-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* 下载项删除按钮 */
.download-remove {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
}

.download-remove:hover {
    background: #fed7d7;
    color: #c53030;
    transform: scale(1.1);
}

.download-remove:active {
    transform: scale(0.95);
}



/* 危险按钮样式 */
.btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    box-shadow: var(--button-shadow);
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
}

.btn-danger i {
    margin-right: 6px;
}

/* 临时消息提示样式 */
.temporary-message {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #1f2937;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    border-left: 4px solid #10b981;
    min-width: 300px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.temporary-message.show {
    top: 20px;
}

.temporary-message.success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
}

.temporary-message.success i {
    color: #10b981;
}

.temporary-message.info {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
}

.temporary-message.info i {
    color: #3b82f6;
}

.temporary-message.warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
}

.temporary-message.warning i {
    color: #f59e0b;
}

.temporary-message.error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
}

.temporary-message.error i {
    color: #ef4444;
}

/* 响应式样式调整 */
@media (max-width: 768px) {
    .download-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .download-controls {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .btn-compact {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .download-actions {
        flex-direction: column;
        gap: 6px;
        align-items: stretch;
    }
    
    .download-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .download-remove {
        align-self: center;
        width: auto;
    }
    
    .temporary-message {
        min-width: 90%;
        max-width: 90%;
        left: 5%;
        transform: none;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .temporary-message.show {
        top: 10px;
    }
}

@media (max-width: 480px) {
    .download-header {
        gap: 0.5rem;
    }
    
    .download-controls {
        gap: 0.4rem;
    }
    
    .btn-compact {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .btn-compact i {
        margin-right: 0.3rem;
        font-size: 0.75rem;
    }
    
    .download-actions {
        gap: 4px;
    }
    
    .download-remove {
        min-width: 24px;
        height: 24px;
        font-size: 0.8rem;
        padding: 4px;
    }
    
    .temporary-message {
        padding: 8px 12px;
        font-size: 0.85rem;
        gap: 8px;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 10px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .tool-header h1 {
        font-size: 2.2rem;
    }
    
    .tool-header p {
        font-size: 1rem;
    }
    
    section {
        padding: 1.5rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .quick-buttons {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .logo-img {
        height: 2rem !important;
    }
    
    /* 响应式扫描信息 */
    .scan-info {
        padding: 10px 12px;
        font-size: 0.85rem;
        gap: 6px;
    }
    
    .scan-info i {
        font-size: 0.9rem;
    }
    
    .file-list-header {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .file-list-header h3 {
        font-size: 1.1rem;
    }
    
    /* 合并区域的响应式样式 */
    .character-input-area {
        margin-bottom: 1.5rem;
    }
    
    .process-control-area {
        padding-top: 1.5rem;
    }
    
    .progress-container {
        max-width: 100%;
    }
    
    /* 严格模式说明中屏幕响应式 */
    .strict-mode-notice {
        font-size: 0.88rem;
        padding: 0.9rem 1.1rem;
        gap: 0.65rem;
    }
    
    .strict-mode-notice i {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .tool-header h1 {
        font-size: 1.8rem;
    }
    
    .nav-links {
        gap: 0.75rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .upload-area {
        padding: 1.5rem 1rem;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-large {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    section h2 {
        font-size: 1.3rem;
    }
    
    /* 小屏幕扫描信息 */
    .scan-info {
        padding: 8px 10px;
        font-size: 0.8rem;
        gap: 5px;
        border-radius: 6px;
    }
    
    .scan-info i {
        font-size: 0.85rem;
    }
    
    .file-list-header h3 {
        font-size: 1rem;
    }
    
    .file-list-header {
        gap: 8px;
        margin-bottom: 10px;
    }
    
    /* 小屏幕合并区域的响应式样式 */
    .character-input-area {
        margin-bottom: 1.2rem;
    }
    
    .process-control-area {
        padding-top: 1.2rem;
    }
    
    .process-control-area .btn-large {
        max-width: 100%;
    }
    
    .progress-container {
        max-width: 100%;
        margin-top: 16px;
    }
    
    /* 严格模式说明响应式 */
    .strict-mode-notice {
        font-size: 0.85rem;
        padding: 0.8rem 1rem;
        gap: 0.6rem;
        margin-bottom: 0.4rem;
    }
    
    .strict-mode-notice i {
        font-size: 1rem;
    }
}

/* 本地处理说明样式 */
.local-processing-notice {
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
}

.local-processing-notice p {
    margin: 0;
    font-size: 1rem;
    color: var(--heading-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.local-processing-notice i {
    color: #10b981;
    font-size: 1.1rem;
}

.local-processing-notice:hover p {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    background: rgba(16, 185, 129, 0.15);
}

/* 响应式样式 */
@media (max-width: 768px) {
    .local-processing-notice p {
        font-size: 0.9rem;
        gap: 0.5rem;
        padding: 0.6rem 0.8rem;
    }
    
    .local-processing-notice i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .local-processing-notice p {
        font-size: 0.85rem;
        gap: 0.4rem;
        padding: 0.5rem 0.6rem;
        flex-direction: column;
        text-align: center;
    }
    
    .local-processing-notice i {
        font-size: 0.9rem;
    }
    
    /* 这个规则被移到上面的响应式样式中了 */
}

/* 英文版本的专用样式 - 优化小屏幕换行 */
.local-processing-notice p.english-notice {
    white-space: nowrap;
    min-width: fit-content;
}

/* 在小屏幕上允许英文文本换行 */
@media (max-width: 768px) {
    .local-processing-notice p.english-notice {
        white-space: normal;
        line-height: 1.4;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .local-processing-notice p.english-notice {
        font-size: 0.8rem;
        line-height: 1.5;
        gap: 0.3rem;
    }
}

/* 英文版本的文件夹提示样式 */
.folder-hint.english-folder-hint {
    white-space: nowrap;
    max-width: none;
    min-width: fit-content;
}

/* 在小屏幕上为英文文件夹提示允许换行 */
@media (max-width: 768px) {
    .folder-hint.english-folder-hint {
        white-space: normal;
        line-height: 1.4;
        max-width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .folder-hint.english-folder-hint {
        font-size: 0.75rem;
        line-height: 1.5;
        padding: 6px 10px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 文件列表高亮动画 */
@keyframes highlightFileList {
    0% {
        box-shadow: var(--card-shadow);
        border-color: var(--primary-color);
    }
    50% {
        box-shadow: 0 8px 30px rgba(122, 162, 247, 0.4);
        border-color: var(--accent-color);
        transform: translateY(-3px) scale(1.02);
    }
    100% {
        box-shadow: var(--card-shadow);
        border-color: var(--primary-color);
        transform: translateY(0) scale(1);
    }
}

section {
    animation: fadeInUp 0.6s ease forwards;
}

/* 滚动条样式 */
.file-items::-webkit-scrollbar {
    width: 6px;
}

.file-items::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.file-items::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.file-items::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
