/* 停车缴费页面样式 */

.payment-page {
    min-height: 100vh;
    background-color: #f5f5f5;
    padding-bottom: 80px; /* 为底部支付卡片留出空间 */
}


/* 页面加载状态 */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    z-index: 9999;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #1677FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-text {
    font-size: 15px;
    color: #6b7280;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 页面内容 */
.page-content {
    padding: 16px;
    padding-top: 16px;
    position: relative;
    min-height: calc(100vh - 80px);
}


/* 车牌卡片区域 */
.plate-card-section {
    margin-bottom: 16px;
}

/* 车牌卡片显示 */
.plate-card-display {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    width: 100%;
}

.plate-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 1.5px;
    width: 100%;
    max-width: 280px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    height: auto;
    min-height: 60px;
}

.plate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    z-index: 1;
    pointer-events: none;
}

.plate-card > * {
    position: relative;
    z-index: 2;
}

.plate-prefix,
.plate-number {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    font-size: 20px;
}

.plate-dot {
    margin: 0 3px;
    font-size: 16px;
    opacity: 0.75;
    display: inline-block;
    vertical-align: middle;
}

/* 车牌颜色样式 */
.plate-card.blue-white {
    background: linear-gradient(135deg, #0066cc, #004499);
    color: #ffffff;
}

.plate-card.yellow-black {
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    color: #000000;
}

.plate-card.white-black {
    background: linear-gradient(135deg, #ffffff, #f5f5f5);
    color: #000000;
    border: 2px solid #e5e7eb;
}

.plate-card.black-white {
    background: linear-gradient(135deg, #000000, #333333);
    color: #ffffff;
}

.plate-card.green-white {
    background: linear-gradient(135deg, #00cc66, #009944);
    color: #ffffff;
}

.plate-card.green-black {
    background: linear-gradient(135deg, #00cc66, #009944);
    color: #000000;
}

.plate-card.green-yellow-black {
    background: linear-gradient(135deg, #00cc66 0%, #ffcc00 100%);
    color: #000000;
}

/* 车牌输入区域 */
.plate-input-section {
    padding: 16px;
}

.plate-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.plate-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background: transparent;
    letter-spacing: 2px;
}

.plate-input::placeholder {
    color: #999;
    letter-spacing: 0;
}

.search-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #1677FF, #0958d9);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(22, 119, 255, 0.3);
}

.search-btn:active {
    transform: scale(0.96);
    box-shadow: 0 1px 4px rgba(22, 119, 255, 0.2);
}

/* 订单列表区域 */
.order-list-section {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.order-list {
    padding: 8px 0;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.order-item:active {
    background-color: #f8f8f8;
}

.order-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #1677FF;
}

.order-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.order-location {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.order-tags {
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-type {
    font-size: 12px;
    color: #1677FF;
    background-color: #e6f4ff;
    padding: 2px 8px;
    border-radius: 4px;
}

.order-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.order-status.active {
    color: #1677FF;
    background-color: #e6f4ff;
}

.order-status.arrear {
    color: #ff4d4f;
    background-color: #fff1f0;
}

.order-details {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #666;
}

/* 欠费订单详细信息 */
.order-item-arrear .order-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.order-detail-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    width: 100%;
    line-height: 1.5;
    word-break: break-all;
}

.order-details-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.order-details-row .order-detail-item {
    flex: 1;
}

.detail-label {
    color: #999;
    margin-right: 4px;
}

.detail-value {
    color: #333;
    font-weight: 500;
}

.order-detail-item.arrear-amount {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.order-detail-item.arrear-amount .detail-label {
    color: #ff4d4f;
    font-weight: 600;
}

.order-detail-item.arrear-amount .detail-value {
    color: #ff4d4f;
    font-weight: 600;
    font-size: 16px;
}

.order-amount {
    font-size: 18px;
    font-weight: 600;
    color: #ff4d4f;
    margin-left: auto;
}

.no-orders {
    padding: 60px 20px;
    text-align: center;
    color: #999;
    font-size: 15px;
}

/* 底部支付卡片 */
.payment-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    z-index: 100;
    max-width: 480px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* 总金额显示区域 */
.total-amount-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0f7ff, #e6f4ff);
    border-bottom: 1px solid #e0e0e0;
}

.total-amount-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.total-amount-value {
    font-size: 20px;
    color: #1677FF;
    font-weight: 600;
}

/* 按钮区域 */
.payment-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.call-admin-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1677FF, #0958d9);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(22, 119, 255, 0.3);
}

.call-admin-btn:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(22, 119, 255, 0.2);
}

.pay-btn {
    flex: 1;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1677FF, #0958d9);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(22, 119, 255, 0.3);
}

.pay-btn:disabled {
    background: linear-gradient(135deg, #1677FF, #0958d9);
    color: #ffffff;
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: 0 2px 8px rgba(22, 119, 255, 0.15);
}

.pay-btn:not(:disabled):active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(22, 119, 255, 0.2);
}

