/* 开票记录页面样式 */
:root {
    --primary-color: #00823C;
    --primary-light: #e0f2e9;
    --primary-dark: #006e33;
    
    --blue-color: #1976D2;
    --blue-light: #E3F2FD;
    
    --purple-color: #7B1FA2;
    --purple-light: #F3E5F5;
    
    --orange-color: #FF7043;
    --orange-light: #FBE9E7;
    
    --green-color: #43A047;
    --green-light: #E8F5E9;
    
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --danger-color: #F44336;
}

/* 整体内容区域优化 */
.user-content {
    max-width: 1200px;
    margin: 0 auto;
}

.user-info-overview {
    padding: 10px;
}

/* 开票记录统计卡片 */
.invoice-stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 35px;
}

.stats-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stats-card:nth-child(1) {
    background: linear-gradient(145deg, var(--blue-light), #fff);
    border-left: 4px solid var(--blue-color);
}

.stats-card:nth-child(2) {
    background: linear-gradient(145deg, var(--green-light), #fff);
    border-left: 4px solid var(--green-color);
}

.stats-card:nth-child(3) {
    background: linear-gradient(145deg, var(--orange-light), #fff);
    border-left: 4px solid var(--orange-color);
}

.stats-card:nth-child(4) {
    background: linear-gradient(145deg, var(--purple-light), #fff);
    border-left: 4px solid var(--purple-color);
}

.stats-card::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.08;
    right: -40px;
    bottom: -40px;
    transition: all 0.5s ease;
}

.stats-card:nth-child(1)::after {
    background-color: var(--blue-color);
}

.stats-card:nth-child(2)::after {
    background-color: var(--green-color);
}

.stats-card:nth-child(3)::after {
    background-color: var(--orange-color);
}

.stats-card:nth-child(4)::after {
    background-color: var(--purple-color);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stats-card:hover::after {
    transform: scale(1.2);
    opacity: 0.12;
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 28px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.stats-card:nth-child(1) .stats-icon {
    color: var(--blue-color);
    background-color: rgba(25, 118, 210, 0.15);
}

.stats-card:nth-child(2) .stats-icon {
    color: var(--green-color);
    background-color: rgba(67, 160, 71, 0.15);
}

.stats-card:nth-child(3) .stats-icon {
    color: var(--orange-color);
    background-color: rgba(255, 112, 67, 0.15);
}

.stats-card:nth-child(4) .stats-icon {
    color: var(--purple-color);
    background-color: rgba(123, 31, 162, 0.15);
}

.stats-card:hover .stats-icon {
    transform: scale(1.1) rotate(5deg);
}

.stats-content {
    flex: 1;
}

.stats-value {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.stats-card:hover .stats-value {
    transform: scale(1.05);
}

.stats-card:nth-child(1) .stats-value {
    color: var(--blue-color);
}

.stats-card:nth-child(2) .stats-value {
    color: var(--green-color);
}

.stats-card:nth-child(3) .stats-value {
    color: var(--orange-color);
}

.stats-card:nth-child(4) .stats-value {
    color: var(--purple-color);
}

.stats-label {
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
}

.stats-card:hover .stats-label {
    color: #333;
}

/* 筛选容器 */
.invoice-filter-container {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 35px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.invoice-filter-container:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-title {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.filter-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.filter-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.filter-search {
    position: relative;
}

.filter-search input {
    padding: 10px 18px;
    padding-right: 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 250px;
    font-size: 15px;
    transition: all 0.3s;
}

.filter-search input:hover {
    border-color: #bbb;
}

.filter-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 130, 60, 0.1);
    outline: none;
}

.filter-search i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.filter-search i:hover {
    color: var(--primary-color);
}

.filter-dropdown select {
    padding: 10px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    font-size: 15px;
    color: #333;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23999' 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 10px center;
    background-size: 16px;
    padding-right: 35px;
}

.filter-dropdown select:hover {
    border-color: #bbb;
}

.filter-dropdown select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 130, 60, 0.1);
    outline: none;
}

/* 发票记录表格 */
.invoice-records-container {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 35px;
    transition: all 0.3s ease;
}

.invoice-records-container:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.invoice-records-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.invoice-records-table thead {
    background-color: #f9f9f9;
    position: relative;
}

.invoice-records-table thead::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(0,0,0,0.02), rgba(0,0,0,0.1), rgba(0,0,0,0.02));
}

.invoice-records-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 500;
    color: #555;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    position: relative;
}

.invoice-records-table th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 1px;
    background-color: #eee;
}

.invoice-records-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.invoice-records-table tbody tr {
    transition: all 0.3s;
    height: 85px;
}

.invoice-records-table tbody tr:hover {
    background-color: #f9f9f9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    z-index: 1;
    position: relative;
}

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

/* 发票信息样式 */
.invoice-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.invoice-type {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
    width: fit-content;
}

.invoice-type.electronic {
    background-color: var(--blue-light);
    color: var(--blue-color);
}

.invoice-type.paper {
    background-color: var(--orange-light);
    color: var(--orange-color);
}

.invoice-category {
    font-size: 14px;
    color: #666;
}

/* 状态标签 */
.status-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.status-tag.completed {
    background-color: var(--green-light);
    color: var(--green-color);
}
.status-tag.completed {
    background-color: var(--danger-light);
    color: var(--danger-color);
}

.status-tag.processing {
    background-color: #FFF8E1;
    color: #FFA000;
}

/* 发票金额 */
.invoice-amount {
    font-weight: 600;
    color: #ff6b6b;
    font-size: 16px;
}

/* 发票号码 */
.invoice-number {
    font-family: monospace;
    font-size: 15px;
    color: #555;
    letter-spacing: 0.5px;
}

/* 操作按钮 */
.invoice-actions {
    white-space: nowrap;
}

.action-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
    margin-right: 8px;
    background-color: #f5f5f5;
    color: #555;
}

.action-btn i {
    margin-right: 6px;
    font-size: 16px;
}

.action-btn.view-btn {
    background-color: var(--blue-light);
    color: var(--blue-color);
}

.action-btn.view-btn:hover {
    background-color: #BBDEFB;
}

.action-btn.download-btn {
    background-color: var(--green-light);
    color: var(--green-color);
}

.action-btn.download-btn:hover {
    background-color: #C8E6C9;
}

.action-btn.disabled {
    background-color: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
}

/* 分页 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    padding: 0 10px;
}

.pagination {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 8px;
    background-color: #fff;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #eee;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.page-item:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: -1;
}

.page-item:hover:not(.disabled):not(.active):before {
    width: 120%;
    height: 120%;
}

.page-item:hover:not(.disabled):not(.active) {
    background-color: #fff;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-item.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0, 130, 60, 0.2);
}

.page-item.disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    font-size: 15px;
    color: #999;
}

.page-info {
    font-size: 15px;
    color: #666;
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 发票时间样式 */
.invoice-time {
    line-height: 1.4;
}

.time-detail {
    font-size: 13px;
    color: #999;
    display: block;
}

/* 发票标题 */
.invoice-title {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .invoice-stats-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stats-card {
        padding: 20px;
    }
    
    .stats-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin-right: 15px;
    }
    
    .stats-value {
        font-size: 24px;
    }
    
    .invoice-title {
        max-width: 150px;
    }
}

@media (max-width: 992px) {
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .filter-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .filter-search {
        width: 100%;
    }
    
    .filter-search input {
        width: 100%;
    }
    
    .filter-dropdown select {
        width: 100%;
    }
    
    .invoice-records-table {
        display: block;
        overflow-x: auto;
    }
    
    .invoice-records-table th,
    .invoice-records-table td {
        padding: 15px;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .invoice-title {
        max-width: 120px;
    }
}

@media (max-width: 768px) {
    .invoice-stats-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .action-btn {
        padding: 6px 8px;
    }
    
    .action-btn i {
        margin-right: 0;
    }
    
    .action-btn span {
        display: none;
    }
    
    .invoice-records-table th:nth-child(3),
    .invoice-records-table td:nth-child(3) {
        display: none;
    }
    
    .invoice-records-table th:nth-child(6),
    .invoice-records-table td:nth-child(6) {
        display: none;
    }
    
    .page-item, .page-ellipsis {
        width: 36px;
        height: 36px;
        margin: 0 3px;
    }
}

@media (max-width: 576px) {
    .invoice-records-table th:nth-child(5),
    .invoice-records-table td:nth-child(5) {
        display: none;
    }
} 