/* 全局样式 */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff; /* 首页背景改为纯白，更干净 */
}

/* 导航栏样式 */
.navbar {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.nav-link {
    transition: color 0.3s ease;
    font-size: 0.95rem;
    color: #555;
}

.nav-link:hover {
    color: #dc3545 !important;
}

.nav-link.active {
    color: #dc3545 !important;
    font-weight: 600;
}

/* 主要内容区域 */
main {
    min-height: calc(100vh - 200px);
}

/* 首页工具列表样式 - 仿图二风格 */
.tool-item {
    text-align: center;
    padding: 0.5rem;
    transition: transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border-radius: 8px;
}

.tool-item:hover {
    transform: translateY(-5px);
    background-color: #f8f9fa; /* 悬停时添加极淡的背景 */
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

/* 颜色变体 */
/* 蓝色 - Word, 图片, TXT */
.icon-wrapper.blue {
    background-color: #e6f2ff;
    color: #2d8cf0;
}

/* 红色 - PDF相关, 拆分合并, 加密 */
.icon-wrapper.red {
    background-color: #ffe6e6;
    color: #ff4d4f;
}

/* 橙色 - PPT */
.icon-wrapper.orange {
    background-color: #fff0e6;
    color: #fa8c16;
}

/* 绿色 - Excel */
.icon-wrapper.green {
    background-color: #e6ffeb;
    color: #20c950;
}

.tool-title {
    font-size: 0.85rem;
    color: #333;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

@media (max-width: 576px) {
    .tool-title {
        font-size: 0.7rem;
    }
    .icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }
    .tool-item {
        padding: 0.3rem;
    }
}

/* 其他页面通用样式 */
/* 页面内容容器 */
.page-content {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 表单样式 */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

/* 文件上传区域 */
.drop-area {
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-area:hover {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.05);
}

.drop-area.dragover {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

/* 文件列表项 */
.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #667eea;
}

/* 按钮样式 */
.btn {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

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

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
}

/* 进度条 */
.progress {
    height: 8px;
    border-radius: 4px;
    margin: 10px 0;
}

/* 页脚样式 */
footer {
    margin-top: 3rem;
    border-top: 1px solid #eee;
    background-color: #fff !important;
}

.social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #667eea !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .jumbotron {
        padding: 3rem 1rem;
    }
    
    .jumbotron h1 {
        font-size: 2.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
    }
}

/* 操作步骤 */
.steps {
    margin: 2rem 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.step-content p {
    color: #666;
    margin: 0;
}

/* 提示信息 */
.alert {
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

/* 结果展示区域 */
.result-area {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* 模态框样式 */
.modal-header.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.card-img-top img {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top img {
    transform: scale(1.05);
}

.btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.btn-close-white:hover {
    opacity: 1;
}

/* 虚线边框 */
.border-dashed {
    border-style: dashed !important;
}

/* 鼠标指针样式 */
.cursor-pointer {
    cursor: pointer;
}

/* 渐变按钮 */
.btn-gradient-primary {
    border: none;
    transition: all 0.3s ease;
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background-color: white;
    border-radius: 0.5rem;
    border-left: 4px solid #28a745;
}

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

/* 配置选项 */
.options-group {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.options-group h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

/* 下载按钮 */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* 统计信息 */
.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-width: 150px;
}

.stat-item .stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    display: block;
}

.stat-item .stat-label {
    color: #666;
    font-size: 0.9rem;
}
/* 统一设计系统 - 现代化渐变风格 */

/* 统一的上传区域样式 */
.unified-upload-area {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    border: none;
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.unified-upload-area:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.unified-upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.unified-upload-area > * {
    position: relative;
    z-index: 2;
}

.unified-upload-icon {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.unified-upload-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.unified-upload-subtitle {
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
}

.unified-btn-primary {
    background: white;
    color: #667eea;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.unified-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: #667eea;
}

/* 统一的弹窗样式 */
.unified-modal-content {
    border-radius: 1rem;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.unified-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.unified-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.unified-modal-header > * {
    position: relative;
    z-index: 2;
}

.unified-modal-icon {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.unified-modal-title {
    color: white;
    font-weight: 700;
    margin: 0;
}

.unified-modal-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.unified-btn-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.unified-btn-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.unified-btn-secondary {
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    background: white;
    color: #6c757d;
    transition: all 0.3s ease;
}

.unified-btn-secondary:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
}

/* 统一的关闭按钮样式 */
.unified-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    opacity: 0.8;
    transition: all 0.2s ease;
    z-index: 1060;
}

.unified-close-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .unified-upload-area {
        padding: 2rem 1rem;
    }
    
    .unified-upload-icon {
        width: 60px;
        height: 60px;
    }
    
    .unified-upload-title {
        font-size: 1.25rem;
    }
    
    .unified-modal-header {
        padding: 1.5rem;
    }
}