/* 微信支付商户进件系统样式表 */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 主要内容区 */
.main-content {
    padding: 30px 0;
    min-height: calc(100vh - 160px);
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.card-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.card-title {
    font-size: 22px;
    color: #07c160;
    font-weight: 600;
}

.card-subtitle {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-label.required::after {
    content: " *";
    color: #ff4d4f;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #07c160;
    outline: none;
    box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.2);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* 文件上传样式 */
.file-upload {
    border: 2px dashed #ddd;
    border-radius: 6px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
}

.file-upload:hover {
    border-color: #07c160;
}

.file-upload i {
    font-size: 48px;
    color: #07c160;
    margin-bottom: 15px;
}

.file-upload .file-input {
    display: none;
}

.file-preview {
    margin-top: 15px;
}

.file-preview-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.file-preview-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #07c160;
    color: white;
}

.btn-primary:hover {
    background-color: #06ad56;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 表格样式 */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-auditing {
    background-color: #fff7e6;
    color: #fa8c16;
}

.status-finished {
    background-color: #f6ffed;
    color: #52c41a;
}

.status-rejected {
    background-color: #fff1f0;
    color: #ff4d4f;
}

.status-pending {
    background-color: #e6f7ff;
    color: #1890ff;
}

/* 页脚 */
.footer {
    background-color: #2d3748;
    color: #a0aec0;
    padding: 30px 0;
    text-align: center;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu li {
        margin: 5px 10px;
    }
    
    .card {
        padding: 20px;
    }
    
    .table th,
    .table td {
        padding: 8px 10px;
    }
}

/* 进度条样式 */
.progress-bar {
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background-color: #07c160;
    transition: width 0.3s;
}

/* 消息提示 */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

.alert-error {
    background-color: #fff1f0;
    border: 1px solid #ffa39e;
    color: #ff4d4f;
}

.alert-warning {
    background-color: #fff7e6;
    border: 1px solid #ffd591;
    color: #fa8c16;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 30px;
}

.pagination li {
    margin: 0 5px;
}

.pagination a {
    display: block;
    padding: 8px 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #f8f9fa;
}

.pagination .active a {
    background-color: #07c160;
    color: white;
    border-color: #07c160;
}

/* 管理后台侧边栏 */
.admin-sidebar {
    background-color: #1a202c;
    color: #a0aec0;
    min-height: 100vh;
    width: 250px;
    position: fixed;
    left: 0;
    top: 0;
    padding-top: 20px;
}

.admin-content {
    margin-left: 250px;
    padding: 20px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu a:hover {
    background-color: #2d3748;
    color: white;
}

.sidebar-menu .active a {
    background-color: #07c160;
    color: white;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #07c160;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
