/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 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: 100;
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 18px;
}

.logo i {
    color: #8b5cf6;
    font-size: 24px;
}

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

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #8b5cf6;
}

.nav-link.active {
    color: #8b5cf6;
}

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

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

.converter-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.converter-header .subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

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

.badge {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.from-badge {
    background: #8b5cf6;
    color: white;
}

.to-badge {
    background: #10b981;
    color: white;
}

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

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

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

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

.upload-header i {
    color: #8b5cf6;
    font-size: 24px;
}

.upload-header h3 {
    font-size: 22px;
    color: #333;
}

/* 上传区域 */
.upload-area {
    border: 3px dashed #e2e8f0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area.dragover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
}

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

.upload-icon {
    font-size: 64px;
    color: #cbd5e1;
    transition: color 0.3s;
}

.upload-text {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.upload-hint {
    font-size: 14px;
    color: #94a3b8;
}

.upload-btn {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-btn:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

/* 上传进度条 */
.upload-progress {
    width: 100%;
    padding: 20px;
}

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

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    transition: width 0.3s;
    border-radius: 4px;
}

/* 文件信息 */
.file-info {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.info-row {
    display: flex;
    margin-bottom: 12px;
    font-size: 14px;
}

.info-label {
    color: #64748b;
    width: 80px;
    flex-shrink: 0;
}

.info-value {
    color: #334155;
    font-weight: 500;
    flex: 1;
}

/* HEIC文件标记 */
.heic-file-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

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

.preview-header h3 {
    font-size: 22px;
    color: #333;
}

.preview-header i {
    color: #8b5cf6;
    font-size: 24px;
}

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

.preview-original, .preview-converted {
    text-align: center;
}

.preview-original h4, .preview-converted h4 {
    margin-bottom: 15px;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.image-container {
    position: relative;
    width: 100%;
    min-height: 200px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #94a3b8;
    padding: 30px;
}

.placeholder i {
    font-size: 48px;
}

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

.empty-preview i {
    font-size: 64px;
    margin-bottom: 20px;
}

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

.preview-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-arrow i {
    font-size: 32px;
    color: #8b5cf6;
}

/* 下载覆盖层 */
.download-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.download-overlay i {
    font-size: 32px;
}

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

.btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-convert {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.btn-convert:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

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

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

.btn-reset:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-enabled {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

/* 转换选项 */
.options-card h4, .formats-card h4, .tips-card h4, .supported-formats-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.option-item label {
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

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

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

.option-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
}

.option-control span {
    min-width: 40px;
    text-align: right;
    color: #475569;
    font-weight: 500;
}

select {
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #334155;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

select:focus {
    border-color: #8b5cf6;
}

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

.custom-inputs input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.custom-inputs input:focus {
    border-color: #8b5cf6;
}

.custom-x {
    color: #94a3b8;
    font-weight: 500;
}

.color-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-input input[type="color"] {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

.color-input span {
    color: #475569;
    font-size: 14px;
}

/* 格式支持卡片 */
.format-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.format-chip {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* 格式按钮 */
.format-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.format-btn {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.format-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.more-link {
    text-align: center;
}

.more-link a {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.more-link a:hover {
    text-decoration: underline;
}

/* 提示列表 */
.tips-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #475569;
    font-size: 14px;
}

.tips-list i {
    color: #10b981;
    margin-top: 2px;
}

/* 进度容器 */
.progress-container {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

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

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

.detail-item {
    display: flex;
    justify-content: space-between;
}

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

.detail-value {
    color: #334155;
    font-weight: 500;
}

/* 首页样式 */
.home-page {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* 搜索框 */
.search-box {
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-input {
    display: flex;
    background: white;
    border: 3px solid #8b5cf6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
}

.search-input i {
    padding: 0 20px;
    color: #8b5cf6;
    display: flex;
    align-items: center;
    font-size: 20px;
}

.search-input input {
    flex: 1;
    padding: 18px 10px;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-input button {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 0 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-input button:hover {
    background: #7c3aed;
}

/* 快速转换 */
.quick-convert {
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px;
}

.quick-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    justify-content: center;
}

.quick-header i {
    color: #f59e0b;
    font-size: 24px;
}

.quick-header h3 {
    font-size: 24px;
    color: #333;
}

.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: #333;
    transition: all 0.3s;
    position: relative;
    border: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-card:hover {
    transform: translateY(-5px);
    border-color: #8b5cf6;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.quick-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #8b5cf6;
    font-size: 24px;
}

.quick-icon .arrow {
    font-size: 16px;
    color: #94a3b8;
}

.quick-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    text-align: center;
}

.quick-info p {
    color: #666;
    font-size: 14px;
    text-align: center;
}

.quick-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* 所有格式区域 */
.all-formats-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.section-header h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-subtitle {
    color: #666;
    font-size: 16px;
}

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

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

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.category-header h3 {
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.format-count {
    background: #e2e8f0;
    color: #475569;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

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

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

.format-link:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
    transform: translateX(5px);
}

.format-label {
    font-weight: 500;
}

/* 格式统计 */
.format-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-item {
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #8b5cf6;
    margin-bottom: 8px;
}

.stat-label {
    color: #64748b;
    font-size: 14px;
}

/* 使用指南 */
.guide-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    counter-reset: step;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.step-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

/* 支持格式区域 */
.supported-formats-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.format-group {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
}

.format-group h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.format-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.format-tag {
    background: white;
    color: #475569;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

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

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
}

.footer-logo i {
    color: #8b5cf6;
}

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

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

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

.footer-copyright {
    border-top: 1px solid #334155;
    padding-top: 30px;
    color: #94a3b8;
    text-align: center;
}

.footer-note {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.8;
}

/* 提示框 */
.alert {
    position: fixed;
    top: 100px;
    right: 30px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 400px;
    border-left: 4px solid #8b5cf6;
}

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

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

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

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

.alert-content i {
    font-size: 20px;
    color: #8b5cf6;
}

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

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

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

.alert-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* HEIC转换对话框样式 */
.conversion-dialog {
    animation: dialogFadeIn 0.3s ease-out;
}

.conversion-dialog .option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.conversion-dialog button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes dialogFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .converter-header {
        padding: 30px 20px;
    }
    
    .converter-header h1 {
        font-size: 24px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .format-buttons {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-images {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .preview-arrow {
        transform: rotate(90deg);
        padding: 20px 0;
    }
}

/* 在原有样式基础上添加以下内容 */

/* PDF文件标记 */
.pdf-file-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

/* PDF预览样式 */
#pdfPreview {
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    text-align: center;
}

#pdfPages canvas {
    max-width: 100%;
    max-height: 150px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #pdfPreview {
        max-height: 150px;
    }
    
    .pdf-file-badge {
        margin-left: 4px;
        font-size: 10px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .converter-body {
        gap: 20px;
    }
    
    .upload-card, .preview-card, .options-card, .formats-card, .tips-card, .supported-formats-card {
        padding: 20px;
    }
    
    .control-buttons {
        flex-direction: column;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .quick-grid {
        grid-template-columns: 1fr;
    }
}