/* 微信代认证小程序系统样式文件 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

/* 容器布局 */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航栏 */
.header {
    background: linear-gradient(135deg, #07C160 0%, #05a050 100%);
    color: white;
    padding: 0 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.system-title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.system-title i {
    font-size: 24px;
}

.user-info {
    font-size: 14px;
    opacity: 0.9;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    gap: 20px;
    padding: 20px;
}

/* 左侧菜单栏 */
.sidebar {
    width: 220px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    overflow: hidden;
}

.nav-menu ul {
    list-style: none;
}

.nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.nav-item:last-child {
    border-bottom: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #f8f9fa;
    color: #07C160;
}

.nav-item.active .nav-link {
    background-color: #07C160;
    color: white;
}

.nav-link i {
    font-size: 16px;
    width: 16px;
}

/* 右侧内容区域 */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 页面标题 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.page-description {
    color: #666;
    font-size: 14px;
}

.page-actions {
    display: flex;
    gap: 12px;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    color: #07C160;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.card-body {
    padding: 20px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: #07C160;
    color: white;
}

.btn-primary:hover {
    background-color: #05a050;
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
}

.btn-secondary:hover {
    background-color: #e9ecef;
    color: #333;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
}

.btn-large {
    padding: 12px 24px;
    font-size: 16px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #07C160;
    color: white;
    font-size: 20px;
}

.stat-icon.pending {
    background-color: #ffc107;
}

.stat-icon.auditing {
    background-color: #17a2b8;
}

.stat-icon.passed {
    background-color: #28a745;
}

.stat-icon.rejected {
    background-color: #dc3545;
}

.stat-icon.failed {
    background-color: #6c757d;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.form-label,
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #07C160;
    box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.1);
}

.form-help {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* 筛选区域 */
.filter-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.filter-form {
    display: flex;
    gap: 16px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-form .form-group {
    margin-bottom: 0;
    min-width: 150px;
}

/* 表格样式 */
.table-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.text-center {
    text-align: center;
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
}

.pagination-info {
    color: #666;
    font-size: 14px;
}

.pagination {
    display: flex;
    gap: 4px;
}

.pagination .btn {
    min-width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .btn.active {
    background-color: #07C160;
    color: white;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-large {
    max-width: 800px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: #f0f0f0;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 加载遮罩 */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.loading-spinner i {
    font-size: 18px;
    color: #07C160;
}

/* 状态标签 */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.auditing {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-badge.passed {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.failed {
    background-color: #e2e3e5;
    color: #383d41;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 8px;
}

.empty-state small {
    font-size: 14px;
    color: #999;
}

/* 代交额度管理样式 */
.quota-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.quota-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #f0f0f0;
}

.quota-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #07C160;
    color: white;
    font-size: 20px;
}

.quota-icon.used {
    background-color: #ffc107;
}

.quota-icon.total {
    background-color: #17a2b8;
}

.quota-info {
    flex: 1;
}

.quota-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.quota-value {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    line-height: 1;
}

.quota-unit {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.quota-progress {
    margin-top: 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.progress-bar {
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #07C160;
    transition: width 0.3s ease;
    width: 0%;
}

/* 认证费用标准样式 */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.pricing-item {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.pricing-item:hover {
    border-color: #07C160;
    box-shadow: 0 2px 8px rgba(7, 193, 96, 0.1);
}

.pricing-type {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.pricing-type i {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    color: #07C160;
    font-size: 18px;
}

.pricing-type span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.pricing-amount {
    font-size: 20px;
    font-weight: 600;
    color: #07C160;
    margin-right: 8px;
}

.pricing-note {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.pricing-notes {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
}

.pricing-notes h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
}

.pricing-notes ul {
    list-style: none;
    padding: 0;
}

.pricing-notes li {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    padding-left: 16px;
    position: relative;
}

.pricing-notes li:before {
    content: '•';
    color: #07C160;
    position: absolute;
    left: 0;
}

/* 支付模式样式 */
.payment-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.payment-mode {
    display: flex;
    gap: 16px;
    padding: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.payment-mode:hover {
    border-color: #07C160;
    box-shadow: 0 2px 8px rgba(7, 193, 96, 0.1);
}

.mode-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.mode-icon.merchant {
    background-color: #17a2b8;
}

.mode-icon.provider {
    background-color: #07C160;
}

.mode-content {
    flex: 1;
}

.mode-content h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.mode-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.mode-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-tag {
    background-color: #f8f9fa;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid #e9ecef;
}

/* 费用计算样式 */
.cost-calculation {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.cost-item:last-child {
    margin-bottom: 0;
}

.cost-item.total {
    border-top: 1px solid #e9ecef;
    padding-top: 8px;
    font-weight: 600;
    color: #333;
}

.cost-value {
    color: #07C160;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .content {
        order: 1;
    }
    
    .nav-menu ul {
        display: flex;
        overflow-x: auto;
    }
    
    .nav-item {
        border-bottom: none;
        border-right: 1px solid #f0f0f0;
        flex-shrink: 0;
    }
    
    .nav-item:last-child {
        border-right: none;
    }
    
    .page-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .page-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-form .form-group {
        min-width: auto;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .table-container {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 10px;
    }
    
    .system-title {
        font-size: 16px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .card-body,
    .modal-body {
        padding: 15px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .btn-large {
        padding: 10px 20px;
        font-size: 14px;
    }
}