body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* 背景动画 */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1s ease-in-out;
    opacity: 1;
}

/* 卡片容器 */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.card-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.card {
    background-color: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* 卡片头部 */
.card-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 32px;
    height: 32px;
    margin-right: 12px;
}

.title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.history-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    background-color: transparent;
    border: none;
    transition: background-color 0.2s, color 0.2s;
}

.history-btn:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

/* 卡片内容 */
.card-body {
    padding: 25px;
}

/* 上传区域 */
.upload-area {
    margin-bottom: 20px;
}

.drop-zone {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
    position: relative;
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

.drop-zone-prompt {
    color: #6c757d;
}

.drop-zone-prompt i {
    color: #007bff;
    margin-bottom: 15px;
}

.drop-zone-prompt p {
    margin: 10px 0 0;
}

.drop-zone-prompt p.small {
    font-size: 14px;
    opacity: 0.7;
}

.form-control-file {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* 格式选项 */
.format-options {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.format-btn-group {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.format-btn-group .btn {
    flex: 1;
    margin: 0 5px;
    border-radius: 6px;
    transition: all 0.3s;
}

.format-btn-group .btn:first-child {
    margin-left: 0;
}

.format-btn-group .btn:last-child {
    margin-right: 0;
}

/* 链接容器 */
.link-container {
    position: relative;
}

textarea.form-control {
    resize: none;
    border-radius: 8px;
    padding: 12px;
    min-height: 100px;
    max-height: 200px;
    font-family: monospace;
    border-color: #ced4da;
    transition: border-color 0.3s, box-shadow 0.3s;
}

textarea.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.copy-btn {
    height: 100%;
    border-radius: 0 8px 8px 0;
}

/* 历史记录 */
.history-container {
    margin-top: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.history-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #495057;
    margin-bottom: 15px;
}

.history-title i {
    margin-right: 8px;
    color: #007bff;
}

.history-list {
    max-height: 250px;
    overflow-y: auto;
}

.cache-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #fff;
    border-radius: 6px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.cache-item:last-child {
    margin-bottom: 0;
}

.cache-item:hover {
    background-color: #e9f5ff;
    transform: translateY(-2px);
}

/* 卡片底部 */
.card-footer {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.admin-link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.admin-link:hover {
    color: #007bff;
    text-decoration: none;
}

.project-link {
    color: #6c757d;
    font-size: 14px;
}

.project-link a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

.project-link a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .card-header {
        padding: 15px;
    }
    
    .title {
        font-size: 20px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .drop-zone {
        padding: 25px 15px;
    }
    
    .drop-zone-prompt i {
        font-size: 2em;
    }
    
    .drop-zone-prompt p {
        font-size: 14px;
    }
    
    .drop-zone-prompt p.small {
        font-size: 12px;
    }
    
    .format-btn-group {
        flex-wrap: wrap;
    }
    
    .format-btn-group .btn {
        flex: 1 1 40%;
        margin: 5px;
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .card-footer {
        text-align: center;
        padding: 10px 15px;
    }
    
    .card-footer .row .col-md-6 {
        margin-bottom: 5px;
    }
    
    .project-link, .admin-link {
        font-size: 12px;
    }
}

/* 改善可访问性 */
.btn:focus, .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 添加加载动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-image.loaded {
    animation: fadeIn 0.5s;
}

/* 统一按钮样式 */
.copy-btn {
    background-color: #007bff;
    color: white;
    border: none;
}

.copy-btn:hover {
    background-color: #0069d9;
} 