/* 自定义样式 */

/* 基本样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f8f9fa;
}

/* 卡片样式 */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* 图片样式 */
.character-image {
    max-height: 200px;
    object-fit: contain;
    background-color: #fff;
    border: 1px solid #dee2e6;
}

/* 表单样式 */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 按钮样式 */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .character-image {
        max-height: 150px;
    }
}

/* 移动端样式优化 */
@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h5 {
        font-size: 1.2rem;
    }
    
    .character-image {
        max-height: 120px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.loading::after {
    content: "";
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 上传按钮样式 */
input[type="file"] {
    cursor: pointer;
}

/* 字体选择器样式 */
.char-image-select {
    cursor: pointer;
}

/* 页脚样式 */
.footer {
    margin-top: auto;
    width: 100%;
}