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

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding-bottom: 60px;
    position: relative;
}

/* 加载动画已移至 common/common.css */
/* spinner和@keyframes spin已移至 common/common.css */

/* Header样式已移至 common/header.css 统一管理 */

.container {
    padding: 15px;
    position: relative;
    z-index: 1;
}

.order-info {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #333;
}

.info-item .highlight {
    color: #ec0000;
    font-weight: 700;
    font-size: 16px;
}

.bill-list {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.bill-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

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

.bill-item:active {
    background: #f8f9fa;
}

.bill-left {
    flex: 1;
}

.bill-period {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    font-weight: 600;
}

.bill-date {
    font-size: 12px;
    color: #666;
}

.bill-money {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-right: 8px;
}

.bill-action {
    padding: 6px 16px;
    background: #ec0000;
    border: 1px solid #ec0000;
    color: #ffffff;
    border-radius: 16px;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(236, 0, 0, 0.2);
    transition: background 0.2s;
}

.bill-action:hover {
    background: #d40000;
    border-color: #d40000;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ccc;
}

.empty-state p {
    font-size: 14px;
    font-weight: 500;
}

.nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    font-size: 12px;
    flex: 1;
    transition: color 0.2s;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
    transition: transform 0.2s;
}

.nav-item.active {
    color: #ec0000;
}

.nav-item.active i {
    transform: scale(1.1);
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.toast.show {
    opacity: 1;
}

/* 提前还款提示弹窗 */
.early-repayment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.early-repayment-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.early-repayment-modal .modal-content {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.early-repayment-modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.early-repayment-modal .modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.early-repayment-modal .modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.early-repayment-modal .warning-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 24px;
}

.early-repayment-modal .modal-header h3 {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.early-repayment-modal .modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: 16px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.early-repayment-modal .modal-close:hover {
    background: #e5e5e5;
    color: #333;
}

.early-repayment-modal .modal-body {
    padding: 24px;
}

.early-repayment-modal .warning-content {
    text-align: center;
}

.early-repayment-modal .main-message {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.early-repayment-modal .main-message strong {
    color: #f59e0b;
    font-weight: 700;
}

.early-repayment-modal .payment-status {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.early-repayment-modal .status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.early-repayment-modal .status-item:last-child {
    border-bottom: none;
}

.early-repayment-modal .status-label {
    font-size: 14px;
    color: #666;
}

.early-repayment-modal .status-value {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.early-repayment-modal .status-value.required {
    color: #f59e0b;
}

.early-repayment-modal .status-value.remaining {
    color: #ec0000;
}

.early-repayment-modal .notice-message {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    text-align: left;
    padding: 12px;
    background: #fff7ed;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
}

.early-repayment-modal .modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #f0f0f0;
}

.early-repayment-modal .btn-confirm {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #ec0000 0%, #c10000 100%);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(236, 0, 0, 0.3);
}

.early-repayment-modal .btn-confirm:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(236, 0, 0, 0.3);
}

/* 账单按钮状态 */
.bill-action[data-is-paid="1"] {
    background: #10b981 !important;
    border-color: #10b981 !important;
    cursor: default;
}

.bill-action[data-is-paid="1"]:hover {
    background: #10b981 !important;
}

