/* 咸安区入规纳统（智慧农贸）信息化平台 - 样式文件 */
/* 咸安区商贸物流数据资源综合管理系统 CSS */

/* ==================== 基础样式重置 ==================== */
* {
    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;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    overflow-x: hidden;
}

/* ==================== 页面布局 ==================== */
.page {
    display: none;
    min-height: 100vh;
    max-width: 100vw;
}

.page.active {
    display: block;
}

.dashboard {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
    padding: 20px;
}

.content-page {
    display: none;
}

.content-page.active {
    display: block;
}

/* ==================== 备案号样式 ==================== */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
    background-color: #f5f7fa;
    border-top: 1px solid #e5e7eb;
}

.footer p {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    margin: 0;
}

.footer a {
    color: #6b7280;
    text-decoration: none;
}

.footer a:hover,.footer a:visited {
    color: #4f5969;
    text-decoration: underline;
}

/* ==================== 登录页面样式 ==================== */
.login-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    color: white;
}

.login-branding {
    text-align: center;
    margin-bottom: 60px;
}

.login-logo {
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.login-branding h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.login-branding p {
    font-size: 16px;
    opacity: 0.9;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    opacity: 0.9;
}

.feature-item svg {
    flex-shrink: 0;
}

.login-right {
    flex: 0 0 400px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.login-form {
    width: 100%;
    max-width: 320px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-tips {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #666;
    line-height: 1.8;
}

.login-tips p {
    margin-bottom: 8px;
    font-weight: 500;
}

/* ==================== 导航栏样式 ==================== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.navbar-logo {
    flex-shrink: 0;
}

.navbar-menu {
    display: flex;
    gap: 32px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: #667eea;
    background-color: #f3f4f6;
}

.nav-item.active {
    color: #667eea;
    background-color: #ede9fe;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-name {
    font-weight: 500;
    color: #374151;
}

/* ==================== 按钮样式 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.btn-primary:hover:not(:disabled) {
    background: #5a67d8;
    border-color: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
}

.btn-outline:hover:not(:disabled) {
    background: #667eea;
    color: white;
}

.btn-text {
    background: transparent;
    color: #667eea;
    border: none;
    padding: 4px 8px;
}

.btn-text:hover:not(:disabled) {
    background: rgba(102, 126, 234, 0.1);
}

.btn-text.text-danger {
    color: #ef4444;
}

.btn-text.text-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.1);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 8px;
    width: 36px;
    height: 36px;
}

/* ==================== 页面头部样式 ==================== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-filter {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

/* ==================== 统计卡片样式 ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-card.large {
    grid-column: span 2;
}

.stat-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
}

.stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.stat-content p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

.stat-change.positive {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.stat-change.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ==================== 仪表板网格样式 ==================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.dashboard-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* ==================== 商户排行样式 ==================== */
.merchant-ranking {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.ranking-item:hover {
    background: #f3f4f6;
}

.rank {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.merchant-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.merchant-name {
    font-weight: 600;
    color: #1f2937;
}

.merchant-category {
    font-size: 12px;
    color: #6b7280;
}

.merchant-amount {
    font-weight: 600;
    color: #667eea;
}

/* ==================== 筛选栏样式 ==================== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-select {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    min-width: 120px;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ==================== 数据表格样式 ==================== */
.data-table-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f9fafb;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #1f2937;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

.data-table tbody tr.selected {
    background: rgba(102, 126, 234, 0.05);
}

/* ==================== 标签样式 ==================== */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.tag-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.tag-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.tag-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.tag-cyan {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.tag-orange {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.tag-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.tag-gray {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

/* ==================== 状态样式 ==================== */
.status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* ==================== 分页样式 ==================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.pagination-info {
    color: #6b7280;
    font-size: 14px;
}

.pagination-buttons {
    display: flex;
    gap: 8px;
}

.pagination-buttons .btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* ==================== 工具卡片样式 ==================== */
.payment-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.tool-card {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tool-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.tool-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.tool-card p {
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ==================== 区块卡片样式 ==================== */
.section-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.section-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h3 {
    margin-bottom: 0;
}

/* ==================== 二维码列表样式 ==================== */
.qr-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.qr-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.qr-item:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-preview {
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.qr-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.qr-info p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}

.qr-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

/* ==================== 清分对账样式 ==================== */
.settlement-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.summary-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.summary-item .label {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.summary-item .value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.text-success {
    color: #10b981 !important;
}

.text-warning {
    color: #f59e0b !important;
}

.text-danger {
    color: #ef4444 !important;
}

/* ==================== 报表模板样式 ==================== */
.report-templates {
    display: grid;
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.report-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.report-icon {
    margin-bottom: 16px;
}

.report-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.report-card p {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

.report-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.report-actions select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

/* ==================== 风控样式 ==================== */
.risk-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.risk-stat {
    background: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.risk-stat h4 {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.risk-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.risk-value .number {
    font-size: 32px;
    font-weight: 700;
    color: #ef4444;
}

.risk-value .label {
    font-size: 14px;
    color: #6b7280;
}

.risk-rules {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.rule-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.rule-info p {
    font-size: 14px;
    color: #6b7280;
}

.rule-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ==================== 开关样式 ==================== */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #667eea;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* ==================== 标签页样式 ==================== */
.tabs {
    display: flex;
    margin-bottom: 24px;
    background: white;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.tab {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active {
    background: #667eea;
    color: white;
}

.tab:hover:not(.active) {
    background: #f3f4f6;
    color: #374151;
}

/* ==================== 商户仪表板样式 ==================== */
.merchant-header {
    margin-bottom: 32px;
}

.merchant-info-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 32px;
}

.merchant-avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
}

.merchant-details h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.merchant-details p {
    color: #6b7280;
    margin-bottom: 20px;
}

.merchant-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-item {
    font-size: 14px;
    color: #6b7280;
}

.stat-item strong {
    color: #374151;
}

.progress-text {
    color: #667eea;
    font-weight: 500;
}

.merchant-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.action-card {
    background: white;
    padding: 24px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.action-card svg {
    color: #667eea;
    margin-bottom: 16px;
}

.action-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.action-card p {
    color: #6b7280;
    margin-bottom: 20px;
}

.merchant-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.chart-card {
    height: 480px;
    background: white;
    padding: 24px 24px 58px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.chart-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

/* ==================== 市场管理样式 ==================== */
.market-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.market-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.analysis-card {
    height: 480px;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.analysis-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

/* ==================== 政府部门样式 ==================== */
.gov-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.overview-card {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.overview-card h3 {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 16px;
}

.overview-value {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.overview-card p {
    font-size: 14px;
    color: #10b981;
}

.gov-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.chart-card.large {
    grid-column: span 1;
}

.gov-reports {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.gov-reports h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.report-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.report-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.report-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.report-info p {
    font-size: 14px;
    color: #6b7280;
}

/* ==================== 模态框样式 ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    pointer-events: none;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.modal-body {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 24px 24px;
}

/* ==================== 响应式样式 ==================== */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-left {
        flex: 0 0 auto;
        padding: 40px 20px;
    }
    
    .login-right {
        flex: 1;
        padding: 40px 20px;
    }
    
    .navbar {
        padding: 0 16px;
    }
    
    .navbar-menu {
        gap: 16px;
    }
    
    .nav-item {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .content {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card.large {
        grid-column: span 1;
    }
    
    .filter-bar {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .search-input {
        min-width: auto;
        flex: 1 1 200px;
    }
    
    .merchant-info-card {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .merchant-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .market-stats {
        grid-template-columns: 1fr;
    }
    
    .gov-charts {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 8px;
    }
    
    .payment-tools {
        grid-template-columns: 1fr;
    }
    
    .report-templates {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .pagination {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .report-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .report-actions {
        width: 100%;
    }
    
    .rule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .rule-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    .navbar,
    .filter-bar,
    .btn,
    .pagination {
        display: none !important;
    }
    
    .content {
        padding: 0;
    }
    
    .page {
        min-height: auto;
    }
    
    .dashboard-card,
    .data-table-card,
    .section-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* ==================== 滚动条样式 ==================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ==================== 动画效果 ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page.active {
    animation: fadeIn 0.3s ease-out;
}

.notification {
    animation: fadeIn 0.3s ease-out;
}

/* ==================== 工具类 ==================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.gap-3 {
    gap: 24px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}