/* style.css - 完整修复版（包含统计卡片和步骤间距修复） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* 顶部导航 */
.top-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #4f46e5;
    font-size: 1.2rem;
    font-weight: 600;
}

.logo i {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: #4f46e5;
    background: #f1f5f9;
}

.nav-link.active {
    color: white;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

/* 主容器 */
.main-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* 转换器页面 */
.converter-header {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.header-content h1 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.format-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.2rem;
}

.badge {
    padding: 10px 25px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.3rem;
}

.from-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.to-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

/* 转换器主体 */
.converter-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 1024px) {
    .converter-body {
        grid-template-columns: 1fr;
    }
}

/* 上传卡片 */
.upload-card, .preview-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.upload-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.upload-header h3 {
    font-size: 1.5rem;
    color: #1e293b;
}

.upload-area {
    border: 3px dashed #cbd5e1;
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.upload-area.dragover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.upload-content {
    z-index: 2;
    position: relative;
}

.upload-icon {
    font-size: 60px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 10px;
    font-weight: 500;
}

.upload-hint {
    color: #64748b;
    margin-bottom: 25px;
}

.upload-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* 进度条 */
.upload-progress, .progress-container {
    margin-top: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 0.9rem;
}

.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* 文件信息 */
.file-info {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e2e8f0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #64748b;
    font-weight: 500;
}

.info-value {
    color: #1e293b;
    font-weight: 600;
}

/* HEIC提示 */
.heic-notice {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

/* 选项卡片 */
.options-card, .tips-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.options-card h4, .tips-card h4 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-item {
    margin-bottom: 20px;
}

.option-item label {
    display: block;
    margin-bottom: 8px;
    color: #475569;
    font-weight: 500;
}

.option-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.option-control input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
}

.option-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: #1e293b;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

select:focus {
    outline: none;
    border-color: #3b82f6;
}

.custom-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-inputs input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: #1e293b;
}

.custom-inputs input:focus {
    outline: none;
    border-color: #3b82f6;
}

.custom-x {https://next.api.aliyun.com/product/imagerecog?tab=apis
    color: #64748b;
    font-weight: 500;
}

/* 支持的格式卡片（转换器页面） */
.supported-formats-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}
/* 修复支持的输入格式间距 */
.supported-formats-card h4 {
    margin-bottom: 25px;
}

.supported-formats-card .format-chips {
    margin-top: 15px;
}

.supported-formats-card .format-chip {
    margin-bottom: 5px;
}
.format-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.format-chip {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
    border: 1px solid #cbd5e1;
    white-space: nowrap;
}

/* 预览区域 */
.preview-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.preview-header h3 {
    font-size: 1.5rem;
    color: #1e293b;
}

.preview-images {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 768px) {
    .preview-images {
        grid-template-columns: 1fr;
    }
}

.preview-original h4, .preview-converted h4 {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-container {
    position: relative;
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    border: 2px solid #e2e8f0;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder {
    text-align: center;
    color: #94a3b8;
}

.placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.placeholder p {
    font-size: 1rem;
    color: #64748b;
}

.preview-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #94a3b8;
}

#originalPreview, #convertedPreview {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
}

.download-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 185, 129, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-overlay:hover {
    opacity: 1;
}

.download-overlay i {
    font-size: 40px;
    margin-bottom: 10px;
}

.empty-preview {
    text-align: center;
    padding: 60px 30px;
    color: #94a3b8;
}

.empty-preview i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.empty-preview h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #64748b;
}

/* 控制按钮 */
.control-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn {
    flex: 1;
    padding: 16px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-convert {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-convert:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.btn-convert:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-reset {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.btn-reset:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* 转换详情 */
.conversion-details {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    border: 1px solid #e2e8f0;
}

.conversion-details h4 {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.detail-label {
    color: #64748b;
}

.detail-value {
    color: #1e293b;
    font-weight: 600;
}

/* 提示列表 */
.tips-list {
    list-style: none;
}

.tips-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
}

.tips-list i {
    color: #10b981;
}

/* ==================== 修复部分1：搜索框 ==================== */
/* 首页搜索框 */
.search-box {
    max-width: 600px;
    margin: 0 auto 40px;
    width: 100%;
}

.search-input {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.search-input:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.search-input i {
    color: #64748b;
    font-size: 1.2rem;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.search-input input {
    flex: 1;
    border: none;
    padding: 16px 0;
    font-size: 1.1rem;
    color: #1e293b;
    background: transparent;
    outline: none;
    min-width: 0;
}

.search-input input::placeholder {
    color: #94a3b8;
}

.search-input button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 0 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-input button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

@media (max-width: 768px) {
    .search-box {
        padding: 0 10px;
    }
    
    .search-input {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .search-input i {
        padding: 15px 20px;
        justify-content: center;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .search-input input {
        padding: 15px 20px;
        width: 100%;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .search-input button {
        padding: 15px 20px;
        width: 100%;
        border-radius: 0 0 14px 14px;
    }
}

/* ==================== 首页样式 ==================== */
.hero-section {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.hero-content h1 {
    font-size: 3rem;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.quick-convert {
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
}

.quick-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quick-header h3 {
    font-size: 1.5rem;
    color: #1e293b;
}

.quick-header i {
    color: #f59e0b;
    font-size: 1.5rem;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.quick-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid #e2e8f0;
}

.quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.quick-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #3b82f6;
}

.quick-icon .arrow {
    color: #94a3b8;
    font-size: 1.2rem;
}

.quick-info h4 {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 8px;
}

.quick-info p {
    color: #64748b;
    font-size: 0.95rem;
}

.quick-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ==================== 修复部分2：支持的图片格式区域（首页） ==================== */
/* 支持的格式区域（首页） */
.supported-formats-section {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    overflow: hidden;
}

.section-title {
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 40px;
    text-align: center;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
}

.format-group {
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    min-height: 180px;
    transition: transform 0.3s ease;
}

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

.format-group h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.format-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.format-tag {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
    border: 1px solid #cbd5e1;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.format-tag:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

/* 确保格式标签不会混乱排列 */
.format-tag:nth-child(n+4) {
    margin-top: 8px;
}

@media (max-width: 768px) {
    .formats-grid {
        grid-template-columns: 1fr;
    }
    
    .format-group {
        min-height: auto;
        padding: 25px;
    }
    
    .format-tag {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* ==================== 修复部分3：格式统计区域 ==================== */
/* 格式统计区域 - 新增部分 */
.format-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 20px;
    color: white;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .format-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 30px 20px;
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .format-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ==================== 所有格式区域（首页） ==================== */
.all-formats-section {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-subtitle {
    color: #64748b;
    font-size: 1.1rem;
}

.formats-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.format-category-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid #e2e8f0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.category-header h3 {
    font-size: 1.3rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.format-count {
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.format-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.format-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.format-link:hover {
    background: #3b82f6;
    color: white;
    transform: translateX(5px);
    border-color: #3b82f6;
}

.format-label {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.format-link i {
    margin-left: 10px;
    flex-shrink: 0;
}

/* ==================== 修复部分4：简单三步完成转换区域 ==================== */
/* 使用指南区域 - 修复间距 */
.guide-section {
    background: white;
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
    position: relative;
}

.guide-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    border-radius: 2px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 60px auto 0;
}

@media (max-width: 768px) {
    .steps {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .guide-section {
        padding: 60px 30px;
    }
}

.step {
    position: relative;
    padding: 0 20px;
}

/* 添加步骤之间的连接线（桌面版） */
@media (min-width: 769px) {
    .step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 30px;
        right: -20px;
        width: 40px;
        height: 2px;
        background: #e2e8f0;
    }
    
    .step:last-child::before {
        display: none;
    }
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 2;
}

.step-content {
    padding: 0 10px;
}

.step-content h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 15px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content p {
    color: #64748b;
    line-height: 1.7;
    font-size: 1.05rem;
    max-width: 300px;
    margin: 0 auto;
}

/* ==================== 修复部分5：其他格式转换区域（转换器页面） ==================== */
/* 转换器页面的格式卡片 */
.formats-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    width: 100%;
}

.formats-card h4 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.format-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: 15px;
}

.format-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.format-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.more-link {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.more-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.more-link a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .format-buttons {
        grid-template-columns: 1fr;
    }
    
    .format-btn {
        padding: 12px 15px;
        font-size: 1rem;
    }
}

/* ==================== 页脚 ==================== */
.footer {
    background: #1e293b;
    color: white;
    padding: 50px 0 30px;
    margin-top: 60px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: white;
}

.footer-logo i {
    color: #10b981;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #64748b;
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav-links {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .header-content h1 {
        font-size: 2rem;
        flex-direction: column;
    }
    
    .converter-header {
        padding: 25px 20px;
    }
    
    .upload-card, .preview-card {
        padding: 20px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        flex-direction: column;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .supported-formats-section,
    .all-formats-section,
    .guide-section {
        padding: 40px 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .quick-convert {
        padding: 25px 20px;
    }
    
    .quick-grid {
        grid-template-columns: 1fr;
    }
}

/* 加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

/* 警告框样式 */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 300px;
    max-width: 400px;
    border-left: 4px solid;
    animation: slideInRight 0.4s forwards;
}

@keyframes slideInRight {
    to {
        transform: translateX(0);
    }
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.alert i {
    font-size: 1.2rem;
}

.alert-success {
    border-left-color: #10b981;
}

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

.alert-error {
    border-left-color: #ef4444;
}

.alert-error i {
    color: #ef4444;
}

.alert-warning {
    border-left-color: #f59e0b;
}

.alert-warning i {
    color: #f59e0b;
}

.alert-info {
    border-left-color: #3b82f6;
}

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

.alert-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.alert-close:hover {
    background: #f1f5f9;
    color: #64748b;
}

/* 修复通用间距 */
.section-title,
.section-header h2 {
    margin-bottom: 40px !important;
}

.format-group h3,
.category-header {
    margin-bottom: 20px !important;
}