/* uniapp风格全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f7f7f7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
}

/* 容器样式 */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px;
    flex: 1;
}

/* 卡片样式 */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    padding: 10px; /* 减少卡片内边距 */
    margin-bottom: 20px;
    border: 1px solid #ebedf0;
}

/* 表单元素样式 */
.form-control {
    border-radius: 6px;
    border: 1px solid #dcdfe6;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.2s ease;
    margin-bottom: 15px;
    /* 这里可以修改高度值 */
    height: 44px; 
    width: 300px; /* 新增宽度设置 */
}
.small-height-input {
    /* 这里可以修改高度值 */
    height: 44px; 
    width: 300px; /* 新增宽度设置 */
}

/* 身份类型选择器样式 */
.form-check {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    background-color: #f5f7fa;
    transition: all 0.2s ease;
}

.form-check:hover {
    background-color: #e4e7ed;
}

.form-check-input[value="渠道"] {
    background-color: #2979ff;
    border-color: #2979ff;
}

.form-control:focus {
    border-color: #2979ff;
    box-shadow: 0 0 0 2px rgba(41, 121, 255, 0.1);
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
    display: block;
}

/* 按钮样式 */
.btn-primary {
    background-color: #2979ff;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-primary:hover {
    background-color: #1a68e6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(41, 121, 255, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

/* 表格样式 */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 500;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-left-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

/* 图片自适应样式 */
.img-adaptive {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    height: auto;
    padding: 0; /* 减少图片内边距 */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 主要内容容器样式 */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 80px; /* 增大底部外边距以增加提交按钮下方空间 */
}

/* 页脚样式 */
footer {
    background-color: #f8f9fa !important; /* 添加浅灰色背景增强对比度 */
    color: #333333; /* 加深文字颜色 */
    display: block !important; /* 确保强制显示 */
    padding: 15px;
    text-align: center;
    position: relative; /* 相对定位 */
    margin-top: 20px; /* 添加顶部外边距 */
}

/* 响应式调整 */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }

    .card {
        padding: 16px;
    }

    .form-control {
        font-size: 14px;
        padding: 8px 12px;
        height: 42px; /* 增加输入框/选择框高度提升美观度 */
    } 
    .small-height-input {
        padding: 8px 12px;
        height: 42px !important;
    }
    .btn-primary {
        padding: 10px 20px;
        font-size: 13px;
    }

    .form-check-label {
        font-size: 13px;
    }

    .form-text {
        font-size: 12px;
    }
}