* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-brand h1 {
    font-size: 20px;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.nav-user {
    font-size: 13px;
}

.nav-action-btn {
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.nav-action-btn:hover {
    background: rgba(255,255,255,0.25);
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 6px;
    transition: background 0.3s;
    font-size: 14px;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
}

.nav-link.active {
    background: rgba(255,255,255,0.2);
    font-weight: 500;
}

/* 主内容区 */
.main-content {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 卡片 */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* 列表页布局：主内容 + 公众号二维码侧栏 */
.list-page-wrapper {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.list-page-main {
    flex: 1;
    min-width: 0;
}
.gzh-qrcode-card {
    flex-shrink: 0;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.gzh-qrcode-img {
    width: 120px;
    height: 120px;
    display: block;
    margin: 0 auto 10px;
}
.gzh-qrcode-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* 卡片头部带筛选器 */
.card-header-with-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.card-header-with-filter .card-title {
    margin-bottom: 0;
}

/* 按钮 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: #f3f4f6;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #e5e7eb;
}

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

/* 输入框 */
.input, .select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: white;
}

.input:focus, .select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 优化的下拉框样式 */
select.input, 
select.select,
.filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
}

select.input:hover, 
select.select:hover,
.filter-select:hover {
    border-color: var(--primary-color);
    background-color: #f9fafb;
}

select.input:focus, 
select.select:focus,
.filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    background-color: white;
}

/* 下拉框选项样式 */
select.input option, 
select.select option,
.filter-select option {
    padding: 10px;
    font-size: 14px;
    color: var(--text-primary);
    background-color: white;
}

select.input option:hover, 
select.select option:hover,
.filter-select option:hover {
    background-color: #f3f4f6;
}

/* 筛选器下拉框（更紧凑的样式）*/
.filter-select {
    width: auto;
    min-width: 200px;
    padding: 8px 36px 8px 12px;
    font-size: 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background-color: white;
    transition: all 0.2s ease;
}

.filter-select:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-select:focus {
    border-color: var(--primary-color);
    transform: translateY(0);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .filter-select {
        width: 100%;
        min-width: auto;
    }
}

/* 表格 */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background: #f9fafb;
}

th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    color: var(--text-secondary);
}

tbody tr:hover {
    background: #fafbfc;
    cursor: pointer;
}

/* 状态标签 */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-error {
    background: #fee2e2;
    color: #991b1b;
}

/* 筛选区域 */
.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group.horizontal {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-group.horizontal label {
    margin: 0;
}

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

.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-icon {
    font-size: 40px;
    opacity: 0.2;
    float: right;
}

/* 图表容器 */
.chart-container {
    width: 100%;
    height: 400px;
    margin-top: 20px;
}

.chart-large {
    height: 600px;
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: white;
    margin-top: 16px;
    font-size: 16px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 16px;
}

.empty-state-text {
    font-size: 16px;
    margin-bottom: 8px;
}

/* 分页 */
.pagination {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

#pagination-top {
    margin-top: 0;
    margin-bottom: 20px;
    padding-top: 0;
    border-top: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.pagination-pages {
    display: flex;
    gap: 4px;
    align-items: center;
    margin: 0 8px;
}

.pagination-ellipsis {
    padding: 0 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.pagination-controls .btn {
    min-width: 40px;
}

.pagination-controls .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 数据表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table thead {
    background: #f9fafb;
    border-bottom: 2px solid var(--border-color);
}

.data-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

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

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.file-input {
    width: 100%;
    padding: 10px;
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.file-input:hover {
    border-color: var(--primary-color);
}

/* 图标按钮 */
.btn-icon {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 8px;
    border-radius: 4px;
    transition: background 0.2s;
    vertical-align: middle;
}

.btn-icon:hover {
    background: #f3f4f6;
}

.btn-icon.btn-delete:hover {
    background: #fee;
    color: #dc2626;
}

/* ===== 当日统计页面样式 ===== */

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.daily-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.date-picker-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.date-picker-group label {
    font-weight: 500;
    color: var(--text-secondary);
}

.date-input {
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.date-input:hover {
    border-color: var(--primary-color);
}

.date-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.date-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-left: 8px;
}

.daily-overview {
    grid-template-columns: repeat(3, 1fr);
}

/* 设备大类统计卡片网格 */
.category-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.category-stat-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.category-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

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

.category-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.category-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.category-details {
    margin-bottom: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 13px;
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
}

.detail-value.amount {
    color: var(--success-color);
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.view-details-btn {
    width: 100%;
}

/* 详情区域 */
.category-detail-section {
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.category-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    cursor: pointer;
    transition: background 0.2s;
}

.category-detail-header:hover {
    background: #f1f5f9;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.item-count-badge {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 8px;
}

.expand-icon {
    font-size: 14px;
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.category-detail-section.expanded .expand-icon {
    transform: rotate(0deg);
}

.category-detail-body {
    padding: 0;
    border-top: 1px solid var(--border-color);
}

.daily-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.daily-detail-table th {
    background: #f9fafb;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.daily-detail-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    color: var(--text-secondary);
}

.daily-detail-table tbody tr:hover {
    background: #fafbfc;
}

.notice-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.notice-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.brand-tag {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 12px 20px;
    }
    
    .nav-menu {
        margin-top: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filters {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
    }
    
    .pagination-pages {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 8px;
    }
    
    .daily-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .date-picker-group {
        width: 100%;
    }
    
    .daily-overview {
        grid-template-columns: 1fr;
    }
    
    .category-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .daily-detail-table {
        font-size: 12px;
    }
    
    .daily-detail-table th,
    .daily-detail-table td {
        padding: 8px;
    }
    
    .list-page-wrapper {
        flex-direction: column;
    }
}

/* ===== 月度统计页面样式 ===== */

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

.monthly-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.monthly-filters {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.monthly-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.monthly-filters label {
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.select-input {
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
}

.select-input:hover {
    border-color: var(--primary-color);
}

.select-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* 月度报告卡片 - 深色主题 */
.monthly-report-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: #e2e8f0;
}

.monthly-report-card .report-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.monthly-report-card .report-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.monthly-report-card .report-header h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color: white;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.monthly-report-card .report-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.monthly-report-card .period-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    margin-top: 12px;
    font-size: 14px;
    color: white;
    position: relative;
}

.monthly-report-card .report-content {
    padding: 30px;
}

.monthly-report-card .report-section {
    margin-bottom: 35px;
}

.monthly-report-card .section-title {
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}

.monthly-report-card .section-title .icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* 概览网格 */
.monthly-report-card .overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.monthly-report-card .stat-card {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.monthly-report-card .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.monthly-report-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #a78bfa;
    line-height: 1.2;
}

.monthly-report-card .stat-label {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 厂家排名表 */
.brand-ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.brand-ranking-table th {
    background: rgba(51, 52, 122, 0.8);
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    color: #e0e7ff;
    border-bottom: 1px solid rgba(139, 92, 246, 0.4);
    white-space: nowrap;
}

.brand-ranking-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.4);
    color: #cbd5e1;
}

.brand-ranking-table tr:hover {
    background: rgba(99, 102, 241, 0.1);
}

.brand-ranking-table tr:last-child td {
    border-bottom: none;
}

.brand-ranking-table .brand-name {
    font-weight: 600;
    color: #f1f5f9;
}

/* 排名徽章 */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f2937;
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #1f2937;
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
    color: #1f2937;
}

.rank-badge.rank-other {
    background: rgba(71, 85, 105, 0.5);
    color: #94a3b8;
}

/* 市场份额柱状图 */
.share-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-bar {
    height: 10px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    border-radius: 5px;
    min-width: 4px;
    transition: width 0.3s ease;
}

.share-text {
    font-size: 13px;
    color: #a78bfa;
    font-weight: 500;
    min-width: 50px;
}

/* 型号卡片网格 */
.model-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.model-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.4);
    border-radius: 12px;
    overflow: hidden;
}

.model-card-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15));
    padding: 14px 16px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.4);
}

.model-card-header .brand {
    font-weight: 600;
    font-size: 15px;
    color: #c4b5fd;
}

.model-card-body {
    padding: 0;
}

.model-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

.model-item:last-child {
    border-bottom: none;
}

.model-name {
    font-size: 13px;
    color: #e2e8f0;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}

.model-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #94a3b8;
    flex-shrink: 0;
}

.model-count {
    background: rgba(99, 102, 241, 0.2);
    color: #a78bfa;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.price-range {
    color: #6ee7b7;
}

/* 大单表格 */
.deals-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.deals-table th {
    background: rgba(99, 102, 241, 0.2);
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: #c4b5fd;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    white-space: nowrap;
}

.deals-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.4);
    color: #cbd5e1;
}

.deals-table tr:hover {
    background: rgba(99, 102, 241, 0.1);
}

.deals-table tr:last-child td {
    border-bottom: none;
}

.deals-table .deal-amount {
    font-weight: 700;
    color: #fbbf24;
    font-size: 14px;
}

.deals-table .deal-link {
    color: #818cf8;
    text-decoration: none;
}

.deals-table .deal-link:hover {
    text-decoration: underline;
    color: #a78bfa;
}

.deals-table .purchaser-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.monthly-report-card .brand-tag {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.monthly-report-card .empty-msg {
    text-align: center;
    color: #64748b;
    padding: 40px;
    font-size: 15px;
}

/* 响应式 */
@media screen and (max-width: 900px) {
    .monthly-report-card .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .model-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 600px) {
    .monthly-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .monthly-filters {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .monthly-filters .filter-group {
        width: 100%;
    }
    
    .monthly-filters .select-input {
        flex: 1;
    }
    
    .monthly-report-card .report-header {
        padding: 25px 16px;
    }
    
    .monthly-report-card .report-header h2 {
        font-size: 22px;
    }
    
    .monthly-report-card .report-content {
        padding: 16px;
    }
    
    .monthly-report-card .stat-value {
        font-size: 22px;
    }
    
    /* 大单表格移动端优化 - 保持表格形式，水平滚动 */
    .deals-table {
        font-size: 12px;
        min-width: 600px; /* 确保表格有最小宽度 */
    }
    
    .deals-table th,
    .deals-table td {
        padding: 10px 8px;
        white-space: nowrap;
    }
    
    .deals-table .purchaser-cell {
        min-width: 150px;
        max-width: 180px;
        white-space: normal;
        word-break: break-word;
    }
    
    .deals-table .deal-amount {
        font-size: 13px;
        white-space: nowrap;
    }
    
    .monthly-report-card .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 品牌排名表移动端优化 */
    .brand-ranking-table {
        font-size: 12px;
    }
    
    .brand-ranking-table th,
    .brand-ranking-table td {
        padding: 8px 6px;
    }
    
    .brand-ranking-table th {
        font-size: 11px;
    }
    
    .rank-badge {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .share-bar-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .share-bar {
        width: 100% !important;
        max-width: 80px;
    }
}

/* 页脚版权 */
.site-footer {
    text-align: center;
    padding: 18px 0;
    margin-top: 40px;
    background: #f5f6fa;
    border-top: 1px solid #e0e0e0;
    color: #888;
    font-size: 13px;
}
.site-footer a {
    color: #5b7ee5;
    text-decoration: none;
}
.site-footer a:hover {
    text-decoration: underline;
}

