/* 用量查询页面样式 */

.usage {
    min-height: 100vh;
    background: linear-gradient(180deg, #F5F7FA 0%, #FFFFFF 100%);
}

.usage-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 面包屑 */
.usage .breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    color: #666;
}

.usage .breadcrumb-item {
    display: inline;
}

.usage .breadcrumb-item::after {
    content: '/';
    margin: 0 8px;
    color: #999;
}

.usage .breadcrumb-item:last-child::after {
    content: '';
}

.usage .breadcrumb-item a {
    color: #666;
    text-decoration: none;
}

.usage .breadcrumb-item a:hover {
    color: #4C6EF5;
}

.usage .breadcrumb-item strong {
    color: #333;
}

/* 页面标题 */
.usage .page-header {
    margin-bottom: 24px;
    text-align: center;
}

.usage .page-title {
    font-size: 28px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 12px;
}

.usage .page-desc {
    font-size: 14px;
    color: #666;
}

/* 搜索面板 */
.usage .search-panel {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.usage .search-form {
    max-width: 600px;
    margin: 0 auto;
}

.usage .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.usage .form-item {
    flex: 1;
}

.usage .form-item.half {
    flex: 0 0 calc(50% - 8px);
}

.usage .form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.usage .form-label .required {
    color: #F5222D;
}

.usage .form-input .input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    font-size: 14px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
}

.usage .form-input .input:focus {
    border-color: #4C6EF5;
    box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.1);
}

.usage .form-input .input.error {
    border-color: #F5222D;
    background-color: #FFF2F0;
}

.usage .form-input .input::placeholder {
    color: #999;
}

/* 快捷时间按钮 */
.usage .quick-time-btns {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.usage .quick-label {
    font-size: 14px;
    color: #666;
}

.usage .quick-btn {
    padding: 6px 16px;
    font-size: 13px;
    color: #666;
    background: #F5F7FA;
    border: 1px solid #E5E5E5;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.usage .quick-btn:hover {
    border-color: #4C6EF5;
    color: #4C6EF5;
}

.usage .quick-btn.active {
    background: linear-gradient(135deg, #4C6EF5 0%, #6B8BFF 100%);
    color: #FFFFFF;
    border-color: #4C6EF5;
}

.usage .form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* 按钮样式 */
.usage .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 32px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.usage .btn-primary {
    background: linear-gradient(135deg, #4C6EF5 0%, #6B8BFF 100%);
    color: #FFFFFF;
}

.usage .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 110, 245, 0.4);
}

.usage .btn-default {
    background: #F5F5F5;
    color: #666;
}

.usage .btn-default:hover {
    background: #E8E8E8;
}

.usage .btn-export {
    background: #52C41A;
    color: #FFFFFF;
    padding: 0 20px;
    height: 36px;
    font-size: 13px;
}

.usage .btn-export:hover {
    background: #45A617;
}

/* 统计汇总 */
.usage .summary-panel {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.usage .summary-item {
    flex: 1;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.usage .summary-item.highlight {
    background: linear-gradient(135deg, #4C6EF5 0%, #6B8BFF 100%);
}

.usage .summary-item.highlight .summary-value,
.usage .summary-item.highlight .summary-label {
    color: #FFFFFF;
}

.usage .summary-value {
    font-size: 32px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.usage .summary-label {
    font-size: 14px;
    color: #666;
}

/* 结果面板 */
.usage .result-panel {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

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

.usage .result-title {
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
}

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

.usage .filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.usage .filter-item label {
    font-size: 14px;
    color: #666;
}

.usage .filter-item .input {
    width: 200px;
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    outline: none;
}

.usage .filter-item .input:focus {
    border-color: #4C6EF5;
}

/* 表格样式 */
.usage .table-wrapper {
    overflow-x: auto;
}

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

.usage .data-table th {
    background: #F5F7FA;
    padding: 14px 16px;
    text-align: left;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #E5E5E5;
    white-space: nowrap;
}

.usage .data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #F0F0F0;
    color: #666;
}

.usage .data-table tr:hover td {
    background: #F9FAFB;
}

.usage .data-table td:first-child,
.usage .data-table td:nth-child(2) {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.usage .data-table td:nth-child(3),
.usage .data-table td:nth-child(4),
.usage .data-table td:nth-child(5) {
    text-align: center;
}

.usage .data-table td:nth-child(6),
.usage .data-table td:nth-child(7) {
    text-align: right;
}

.usage .data-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #F5222D;
}

/* 空状态 */
.usage .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.usage .empty-state img {
    width: 120px;
    height: auto;
    margin-bottom: 16px;
}

.usage .empty-state p {
    font-size: 14px;
    color: #999;
}

/* 加载状态 */
.usage-content.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .usage-content {
        padding: 16px;
    }

    .usage .page-title {
        font-size: 22px;
    }

    .usage .search-panel {
        padding: 20px;
    }

    .usage .form-row {
        flex-direction: column;
    }

    .usage .form-item.half {
        flex: 1;
    }

    .usage .quick-time-btns {
        justify-content: center;
    }

    .usage .summary-panel {
        flex-wrap: wrap;
    }

    .usage .summary-item {
        flex: 0 0 calc(50% - 10px);
    }

    .usage .result-header {
        flex-direction: column;
        gap: 12px;
    }

    .usage .result-actions {
        width: 100%;
        flex-direction: column;
    }

    .usage .filter-item {
        width: 100%;
    }

    .usage .filter-item .input {
        flex: 1;
        width: auto;
    }
}