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

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --text-color: #334155;
    --bg-color: #f1f5f9;
    --card-bg: white;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f1f5f9;
    padding: 0;
    margin: 0;
}

header {
    text-align: center;
    margin-bottom: 0;
    padding: 18px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background-color: white;
    border-bottom: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

header::after {
    display: none;
}

.logo-container {
    margin-bottom: 8px;
}

.logo {
    width: 60px;
    height: auto;
    transition: transform 0.3s ease;
}

h1 {
    text-align: center;
    margin-bottom: 5px;
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: none;
    position: relative;
}

h1::after {
    display: none;
}

.tagline {
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.container {
    max-width: 1000px;
    margin: 25px auto;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.container::before {
    display: none;
}

section {
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

section h2 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 10px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    border-bottom: 1px solid #e2e8f0;
}

section h2::after {
    display: none;
}

section h2 i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* 突出显示的上传部分 */
.upload-section.prominent {
    margin: 0 auto 25px;
    text-align: center;
    padding: 25px;
    background-color: #f8fafc;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(66, 153, 225, 0.2);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(66, 153, 225, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(66, 153, 225, 0);
    }
}

.upload-button-container {
    margin-bottom: 15px;
}

.upload-label.prominent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    padding: 16px 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.upload-label.prominent::after {
    display: none;
}

.upload-label.prominent:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.upload-label.prominent i {
    margin-right: 12px;
    font-size: 1.4rem;
}

.upload-label.prominent:active {
    transform: translateY(0);
}

.upload-hint {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 10px;
}

.upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.hero-section {
    text-align: center;
    margin-bottom: 30px;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upload-label i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.upload-label:hover {
    background-color: var(--primary-dark);
}

input[type="file"] {
    display: none;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.quality-control, .format-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
}

select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: white;
    font-size: 16px; /* 防止iOS缩放 */
}

.status-section {
    margin-bottom: 25px;
}

/* 进度条样式 */
.status-section.prominent {
    margin: 25px auto;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.progress-container {
    width: 100%;
    height: 12px;
    background-color: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    border-radius: 6px;
    transition: width 0.3s ease;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }
    100% {
        background-position: 0 0;
    }
}

.status-text {
    font-size: 1rem;
    color: #4a5568;
    margin: 5px 0 0;
}

.result-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.page-container {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.page-container img {
    width: 100%;
    display: block;
}

.page-number {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.download-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, background-color 0.3s;
    font-size: 16px;
}

/* 移动端显示下载按钮 */
@media (max-width: 768px) {
    .download-btn {
        opacity: 1;
        font-size: 18px;
        padding: 10px 14px;
    }
}

.page-container:hover .download-btn {
    opacity: 1;
}

.download-btn:hover {
    background-color: var(--primary-dark);
}

.download-all-container {
    text-align: center;
    margin: 20px 0 30px;
}

#download-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    background-color: #e2e8f0;
    color: #9ca3af;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#download-all:disabled {
    background-color: #e2e8f0;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#download-all:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: pulse-btn 2s infinite;
}

#download-all:not(:disabled):hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@keyframes pulse-btn {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* 工作原理部分 */
.how-it-works {
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    margin-bottom: 40px;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    flex: 1;
    min-width: 250px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: #ebf8ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.step-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.step h3 {
    margin-bottom: 10px;
    color: #2d3748;
}

.step p {
    margin-bottom: 15px;
    color: #4a5568;
}

.step-img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    border-radius: 4px;
}

/* 功能特点部分 */
.features {
    background-color: #f8fafc;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.features::before {
    display: none;
}

.features li {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary-color);
}

.features li:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
}

.features li i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

/* 对比部分 */
.comparison {
    margin-top: 40px;
    margin-bottom: 40px;
}

.comparison-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.comparison-item {
    flex: 1;
    min-width: 250px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    text-align: center;
}

.comparison-item:hover {
    transform: translateY(-5px);
}

.comparison-item h3 {
    margin-bottom: 15px;
    color: #2d3748;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.comparison-img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.comparison-item ul {
    list-style-type: none;
    text-align: left;
}

.comparison-item li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

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

/* FAQ部分 */
.faq {
    max-width: 800px;
    margin: 0 auto 40px;
}

details {
    margin-bottom: 15px;
    background-color: #f8fafc;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-left: 3px solid #e2e8f0;
    transition: all 0.3s ease;
}

details:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
}

summary {
    padding: 15px;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    display: flex;
    align-items: center;
    color: #1e293b;
    outline: none;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '\f0da';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(90deg);
}

details p {
    padding: 15px;
    margin: 0;
    color: #4a5568;
}

.faq-img {
    width: 100px;
    height: auto;
    margin-right: 15px;
    border-radius: 4px;
    float: left;
}

/* 页脚部分 */
footer {
    background-color: white;
    padding: 25px 15px;
    border-top: 1px solid #e2e8f0;
    margin-top: 30px;
    box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.03);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.footer-logo-img {
    width: 40px;
    height: auto;
    margin-right: 10px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s;
}

.social-icon:hover {
    transform: translateY(-5px);
    background-color: var(--primary-dark);
}

.social-icon i {
    font-size: 1.2rem;
}

/* 媒体查询 - 移动端优化 */
@media (min-width: 768px) {
    header {
        flex-direction: row;
        justify-content: center;
        text-align: left;
        padding: 12px 20px;
    }
    
    .logo-container {
        margin-bottom: 0;
        margin-right: 15px;
    }
    
    .header-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    h1 {
        margin-bottom: 3px;
        text-align: left;
    }
    
    .tagline {
        text-align: left;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
        margin-bottom: 3px;
    }
    
    .logo {
        width: 50px;
    }
    
    .tagline {
        font-size: 0.85rem;
    }
}

/* Safari滚动修复 */
@supports (-webkit-overflow-scrolling: touch) {
    input, select, textarea {
        font-size: 16px;
    }
    
    .upload-label.prominent {
        -webkit-tap-highlight-color: transparent;
    }
}

/* 隐藏元素 */
.hidden {
    display: none !important;
}

.selected-file {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #f7fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    display: none;
    transition: all 0.3s ease;
}

.selected-file.show {
    display: block;
}

.selected-file p {
    margin: 0;
    color: #2d3748;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 预览区域样式 */
.preview-section {
    margin: 30px 0;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    min-height: 200px;
    margin-bottom: 20px;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 200px;
}

.preview-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 10px;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    backdrop-filter: blur(2px);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.preview-item:hover .file-info {
    opacity: 1;
}

.file-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.75rem;
    color: #e2e8f0;
}

.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e53e3e;
    opacity: 0.6;
    transition: all 0.3s ease;
    z-index: 10;
}

.preview-item:hover .delete-btn {
    opacity: 1;
    background: white;
}

/* 下载按钮样式 */
.download-section {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background-color: #e2e8f0;
    color: #334155;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.action-button:hover:not(:disabled) {
    background-color: #cbd5e1;
    transform: translateY(-1px);
}

.action-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.action-button i {
    margin-right: 8px;
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
}

.primary-button:hover:not(:disabled) {
    background-color: var(--primary-dark);
}

#download-pdf, #download-word, #download-all, #merge-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background-color: #e2e8f0;
    color: #334155;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 压缩设置样式 */
.compression-settings {
    background-color: var(--bg-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.settings-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.setting-item {
    flex: 1;
    min-width: 250px;
}

.setting-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.setting-item select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: white;
    font-size: 16px;
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.setting-item select:hover {
    border-color: var(--primary-color);
}

.setting-item select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
}

@media (max-width: 768px) {
    .settings-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .setting-item {
        min-width: 100%;
    }
}

/* 操作按钮区域 */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .action-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
}

.action-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
}

.action-buttons button i {
    margin-right: 8px;
}

.action-buttons button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.action-buttons .primary-button {
    background-color: #4299e1;
    color: white;
}

.action-buttons .primary-button:hover:not(:disabled) {
    background-color: #3182ce;
}

.action-buttons .secondary-button {
    background-color: #48bb78;
    color: white;
}

.action-buttons .secondary-button:hover:not(:disabled) {
    background-color: #38a169;
}

/* 文件列表样式美化 */
.files-section {
    margin: 30px 0;
}

.files-container {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.sortable-files {
    min-height: 50px;
}

.sortable-files:empty::before {
    content: "选择文件后将显示在这里";
    display: block;
    text-align: center;
    color: #a0aec0;
    padding: 15px;
    font-style: italic;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    border: 2px dashed #e2e8f0;
}

.file-item {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: grab;
    border-left: 3px solid var(--primary-color);
}

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

.file-item:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.file-item i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 1.2rem;
}

.file-item span {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item .file-size {
    flex-grow: 0;
    flex-shrink: 0;
    color: #718096;
    font-size: 0.9rem;
    margin: 0 15px;
}

.file-item .remove-file {
    background-color: transparent;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.file-item .remove-file:hover {
    color: #e53e3e;
    background-color: #fff5f5;
}

.file-item.dragging {
    opacity: 0.5;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    background-color: #ebf8ff;
    border-left: 4px solid #3182ce;
    z-index: 10;
    position: relative;
}

.file-item.drag-hint {
    transition: transform 0.2s ease, margin 0.2s ease;
    transform: translateY(2px);
    border-top: 2px dashed transparent;
    border-bottom: 2px dashed var(--primary-color);
    margin: 5px 0;
}

.file-item.drag-hint:hover {
    transform: translateY(2px);
}

.file-item .drag-handle {
    cursor: grab;
    color: #a0aec0;
    margin-right: 10px;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.file-item:hover .drag-handle {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .file-item {
        flex-wrap: wrap;
    }
    
    .file-item span {
        max-width: 150px;
    }
    
    .file-item .file-size {
        margin-left: auto;
    }
}

.file-item.drop-target {
    border-top: 2px dashed var(--primary-color);
    margin-top: 5px;
    position: relative;
}

.file-item.drop-target::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
    opacity: 0.2;
}

.file-item.drop-target-after {
    border-bottom: 2px dashed var(--primary-color);
    margin-bottom: 5px;
}

.file-item.drop-target-after::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
    opacity: 0.2;
}

.logo:hover {
    transform: scale(1.1);
}

/* 媒体查询 - 移动端优化 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px 15px;
        margin: 15px auto;
        border-radius: 10px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .quality-control, .format-control {
        width: 100%;
        justify-content: space-between;
    }
    
    .result-section {
        grid-template-columns: 1fr;
    }
    
    .features ul {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .comparison-container {
        flex-direction: column;
    }
    
    .upload-label.prominent {
        padding: 15px 20px;
        font-size: 1.1rem;
        width: 100%;
    }
    
    .upload-section.prominent {
        padding: 15px;
    }
    
    .step {
        min-width: auto;
        margin-bottom: 15px;
    }
    
    details p {
        flex-direction: column;
    }
    
    .faq-img {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    #download-all {
        width: 100%;
        justify-content: center;
    }
    
    section {
        margin-bottom: 30px;
    }
    
    section h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    
    .status-section.prominent {
        margin: 1rem auto;
        padding: 1rem;
    }
    
    .progress-container {
        height: 10px;
    }
    
    .status-text {
        font-size: 1rem;
    }
}

/* 超小屏幕设备优化 */
@media (max-width: 480px) {
    .upload-label.prominent {
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    .upload-label.prominent i {
        font-size: 1.2rem;
    }
    
    section h2 {
        font-size: 1.2rem;
    }
    
    .step-icon {
        height: 50px;
    }
    
    .step-icon i {
        font-size: 20px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    .comparison-item, .step {
        padding: 15px;
    }
    
    details {
        padding: 10px;
    }
    
    summary {
        font-size: 0.9rem;
    }
}

.header-text {
    z-index: 1;
}

.features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

/* 下载按钮脉动动画 */
.pulse-animation {
    animation: pulse-download 2s infinite;
}

@keyframes pulse-download {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
        transform: scale(1);
    }
}

/* 确保在下载按钮可用时样式更醒目 */
.download-section button:not(:disabled) {
    cursor: pointer;
}

/* 覆盖下载按钮默认样式，确保可点击状态明显 */
#download-pdf:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(0);
    transition: all 0.3s ease;
}