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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}

/* 页面容器 */
.page {
    display: none !important; /* 强制隐藏，避免闪烁 */
    min-height: 100vh;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    position: relative;
}

.page.active {
    display: block !important; /* 强制显示 */
}

/* 澶撮儴瀵艰埅 */
.header {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    padding-bottom: 20px;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-bar h1 {
    font-size: 18px;
    font-weight: 600;
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.nav-actions i {
    font-size: 18px;
    cursor: pointer;
}

.back-btn {
    font-size: 18px;
    cursor: pointer;
}

/* 收藏提示 */
.collect-tip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    margin: 0 20px;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 14px;
    position: relative;
}

.collect-tip::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(0, 0, 0, 0.3);
}

/* 主要内容区域 */
.main-content {
    background: white;
    margin-top: 20px;
    border-radius: 20px 20px 0 0;
    min-height: calc(100vh - 200px);
    padding-bottom: 100px;
}

/* 顶部宣传区域 */
.hero-section {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    padding: 30px 20px;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.hero-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-image {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.phone-mockup {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.phone-mockup i {
    font-size: 40px;
    color: white;
}

.check-mark {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #00C851;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-mark i {
    font-size: 12px;
    color: white;
}

/* 功能按钮区域 */
.function-buttons {
    padding: 30px 20px;
    background: white;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.function-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.function-btn:hover {
    transform: translateY(-2px);
}

.btn-icon {
    width: 55px;
    height: 55px;
    background: #f8f9fa;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-icon i {
    font-size: 22px;
    color: #4A90E2;
}

.function-btn span {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    line-height: 1.2;
}

/* 服务说明 */
.service-notice {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    margin: 0 20px;
    border-radius: 10px;
    font-size: 12px;
    color: #666;
    gap: 8px;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-notice i:first-child {
    color: #4A90E2;
    flex-shrink: 0;
}

.notice-text {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.notice-text span {
    display: inline-block;
    animation: scrollText 15s linear infinite;
}

@keyframes scrollText {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.service-notice i:last-child {
    color: #999;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.service-notice i:last-child:hover {
    color: #666;
}

/* 最近借条区域 */
.recent-section {
    padding: 30px 20px;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    margin: 0;
    border-radius: 0;
}

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

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.view-more {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.recent-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* 最近借条容器 */
#recent-loans-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    grid-column: 1; /* 只占据第一列 */
}

/* 最近借条卡片 */
.recent-loan-card {
    background: white;
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease;
    overflow: hidden;
}

.recent-loan-card:hover {
    transform: translateY(-2px);
}

.recent-loan-card .card-header {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.recent-loan-card .status-tag {
    background: #FF9500;
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.recent-loan-card .status-tag.status-pending {
    background: #FF9500;
}

.recent-loan-card .status-tag.status-signed {
    background: #4CAF50;
}

.recent-loan-card .status-tag.status-draft {
    background: #999;
}

.recent-loan-card .card-content {
    padding-top: 8px;
}

.recent-loan-card .card-content h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

.recent-loan-card .amount {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.2;
}

.recent-loan-card .fund-flow {
    background: #f0f0f0;
    color: #666;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    display: inline-block;
    margin-bottom: 10px;
}

.recent-loan-card .parties-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
    padding: 6px 0;
    border-top: 1px solid #f0f0f0;
}

.recent-loan-card .party-name {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.recent-loan-card .borrower {
    font-size: 11px;
    color: #999;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-top: 6px;
}

#recent-loans-container .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#recent-loans-container .empty-state .empty-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

#recent-loans-container .empty-state h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

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

/* 借条卡片 */
.loan-card {
    background: white;
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-header {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.status-tag {
    background: #FF9500;
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.card-content {
    padding-top: 8px;
}

.card-content h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

.amount {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.2;
}

.fund-flow {
    background: #f0f0f0;
    color: #666;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    display: inline-block;
    margin-bottom: 10px;
}

.borrower {
    font-size: 13px;
    color: #666;
    line-height: 1.3;
}

/* 创建借条卡片 */
.create-card {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.create-icon {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.create-icon i {
    font-size: 20px;
    color: #4A90E2;
}

.create-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

.create-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* 充值优惠区域 */
.promotion-section {
    background: linear-gradient(135deg, #E8F5E8, #C8E6C9);
    margin: 20px;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promotion-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.promotion-content p {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.recharge-btn {
    background: #4A90E2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.promotion-image {
    flex-shrink: 0;
}

.promo-icon {
    width: 60px;
    height: 60px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-icon i {
    font-size: 24px;
    color: #4A90E2;
}

/* 个人中心页面样式 */
.profile-content {
    background: white;
    margin-top: 20px;
    border-radius: 20px 20px 0 0;
    min-height: calc(100vh - 120px);
    padding: 20px;
    padding-bottom: 100px;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.avatar {
    width: 60px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.avatar i {
    font-size: 24px;
    color: #999;
}

.user-details h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.verified-badge i {
    color: #4A90E2;
    font-size: 14px;
}

.verified-badge span {
    color: #4A90E2;
    font-size: 12px;
}

.user-details p {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
}

.user-details p:hover {
    color: #4A90E2;
}



.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.feature-icon.blue {
    background: #E3F2FD;
}

.feature-icon.orange {
    background: #FFF3E0;
}

.feature-icon.green {
    background: #E8F5E8;
}

.feature-icon i {
    font-size: 20px;
}

.feature-icon.blue i {
    color: #4A90E2;
}

.feature-icon.orange i {
    color: #FF9500;
}

.feature-icon.green i {
    color: #4CAF50;
}

.feature-item span {
    font-size: 14px;
    color: #333;
}

.menu-list {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
}

.menu-item i:first-child {
    font-size: 18px;
    color: #666;
    margin-right: 15px;
    width: 20px;
}

.menu-item span {
    flex: 1;
    font-size: 16px;
    color: #333;
}

.phone-number {
    color: #666 !important;
    font-size: 14px !important;
}

.menu-item i:last-child {
    color: #999;
    font-size: 14px;
}

/* 创建借条页面样式 */
.create-content {
    background: white;
    margin-top: 20px;
    border-radius: 20px 20px 0 0;
    min-height: calc(100vh - 120px);
    padding: 20px;
    padding-bottom: 100px;
}

.loan-type-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.party-info {
    margin-bottom: 30px;
}

.party-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.party-label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

.party-item.lender .party-label {
    background: #E3F2FD;
    color: #4A90E2;
}

.party-item.borrower .party-label {
    background: #FFF3E0;
    color: #FF9500;
}

.party-name {
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.party-contact {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.party-note {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.toggle-section {
    margin-bottom: 10px;
}

.toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.toggle input {
    display: none;
}

.toggle .slider {
    position: relative;
    width: 50px;
    height: 24px;
    background: #ddd;
    border-radius: 12px;
    margin-right: 10px;
    transition: background 0.3s;
    font-size: 11px;  /* 调小"由我填"文字大小 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    z-index: 1;  /* 确保文字显示在伪元素之上 */
}

.toggle .slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    z-index: 0;  /* 圆形滑块在文字后面 */
}

.toggle input:checked + .slider {
    background: #4A90E2;
    color: white;  /* 选中状态下文字为白色 */
}

.toggle input:checked + .slider::before {
    transform: translateX(26px);
}

.tip {
    font-size: 12px;
    color: #FF9500;
    background: #FFF8E1;
    padding: 8px 12px;
    border-radius: 8px;
}

.loan-details {
    margin-bottom: 30px;
}

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

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

.form-group label i {
    color: #999;
    margin-left: 5px;
}

.amount-input {
    position: relative;
    display: flex;
    align-items: center;
}

.amount-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.amount-input .currency {
    position: absolute;
    right: 15px;
    color: #666;
    font-size: 16px;
}

.select-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    background: white;
}

.select-field span {
    font-size: 16px;
    color: #333;
}

.select-field i {
    color: #999;
}

.period-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.period-btn {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.period-btn:hover,
.period-btn.active {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

.supplement-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.next-btn {
    width: 100%;
    background: #4A90E2;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

/* 借条确认页面样式 */
.confirm-content {
    background: white;
    margin-top: 20px;
    border-radius: 20px 20px 0 0;
    min-height: calc(100vh - 120px);
    padding: 20px;
    padding-bottom: 100px;
}

.loan-type-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.loan-type-header h3 {
    font-size: 18px;
    color: #333;
}

.confirm-content .party-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.borrower-label {
    background: #E3F2FD;
    color: #4A90E2;
}

.lender-label {
    background: #FFF3E0;
    color: #FF9500;
}

.loan-info-section {
    margin: 30px 0;
}

.loan-info-section h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row .label {
    font-size: 14px;
    color: #666;
    min-width: 80px;
}

.info-row .value {
    font-size: 16px;
    color: #333;
    text-align: right;
    flex: 1;
}

.info-row .value small {
    font-size: 12px;
    color: #999;
    display: block;
    margin-top: 2px;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.back-edit-btn {
    padding: 15px;
    border: 1px solid #4A90E2;
    border-radius: 25px;
    background: white;
    color: #4A90E2;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.confirm-btn {
    padding: 15px;
    border: none;
    border-radius: 25px;
    background: #4A90E2;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* 确认页面按钮样式 */
.confirm-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding: 0 20px;
}

.confirm-actions .cancel-btn {
    flex: 1;
    padding: 15px;
    border: 1px solid #4A90E2;
    border-radius: 25px;
    background: white;
    color: #4A90E2;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-actions .cancel-btn:hover {
    background: #f0f7ff;
}

.confirm-actions .confirm-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 25px;
    background: #4A90E2;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-actions .confirm-btn:hover {
    background: #357ABD;
}

/* 充值中心页面样式 */
.recharge-content {
    background: white;
    margin-top: 20px;
    border-radius: 20px 20px 0 0;
    min-height: calc(100vh - 120px);
    padding: 20px;
    padding-bottom: 100px;
}

.package-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #4A90E2;
}

.package-card {
    border: 2px solid #4A90E2;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.package-header h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: #4A90E2;
    margin-bottom: 10px;
}

.package-info {
    font-size: 14px;
    color: #666;
}

.validity-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4A90E2;
    font-size: 14px;
    margin-bottom: 30px;
}

.purchase-btn {
    width: 100%;
    background: #4A90E2;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* 已购套餐页面样式 */
.packages-content {
    background: white;
    margin-top: 20px;
    border-radius: 20px 20px 0 0;
    min-height: calc(100vh - 120px);
    padding: 20px;
    padding-bottom: 100px;
}

.package-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    margin-bottom: 20px;
    position: relative;
}

.package-icon {
    width: 50px;
    height: 50px;
    background: #E3F2FD;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.package-icon i {
    font-size: 20px;
    color: #4A90E2;
}

.package-details {
    flex: 1;
}

.package-details h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.package-status {
    position: absolute;
    top: 15px;
    right: 15px;
}

.gift-tag {
    background: #FF9500;
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
}

.usage-info {
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
}

.usage-info span {
    font-size: 14px;
    color: #666;
}

.expiry-date {
    font-size: 14px;
    color: #666;
}

.no-more-data {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 40px 0;
}

/* 签名页面样式 */
.signature-content {
    background: white;
    margin-top: 20px;
    border-radius: 20px 20px 0 0;
    min-height: calc(100vh - 120px);
    padding: 20px;
    padding-bottom: 100px;
}

.signature-display {
    text-align: center;
    padding: 40px 0;
}

.signature-box {
    border: 2px dashed #FF9500;
    border-radius: 10px;
    padding: 40px 20px;
    margin-bottom: 20px;
    background: #FFF8E1;
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signature-text {
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.signature-image {
    max-width: 100%;
    max-height: 150px;
    border-radius: 5px;
}

.reset-btn, .reset-signature-btn {
    color: #4A90E2;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    text-decoration: underline;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.reset-btn:hover, .reset-signature-btn:hover {
    background: #f0f0f0;
}

/* 签名编辑器模态框 */
.signature-editor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.signature-editor {
    background: white;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.signature-editor-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.signature-editor-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.signature-editor-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.signature-tips {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.signature-tips i {
    color: #4A90E2;
    margin-right: 8px;
}

.signature-canvas-container {
    flex: 1;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: white;
    position: relative;
    min-height: 200px;
    overflow: hidden;
}

.signature-canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
    display: block;
}

.signature-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccc;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.signature-editor-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.signature-editor-footer .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-signature-btn {
    background: #6c757d;
    color: white;
}

.clear-signature-btn:hover {
    background: #5a6268;
}

.cancel-signature-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.cancel-signature-btn:hover {
    background: #e9ecef;
}

.save-signature-btn {
    background: #4A90E2;
    color: white;
}

.save-signature-btn:hover {
    background: #357abd;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .signature-editor-modal {
        padding: 10px;
    }
    
    .signature-editor {
        max-width: 100%;
        max-height: 95vh;
    }
    
    .signature-canvas-container {
        min-height: 180px;
    }
    
    .signature-editor-footer {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .signature-editor-footer .btn {
        flex: 1;
        min-width: 100px;
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* 签名状态样式 */
.signature-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.signature-status.verified {
    color: #4CAF50;
}

.signature-status.verified i {
    color: #4CAF50;
}

.signature-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.signature-empty-state i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.signature-empty-state h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #666;
}

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

/* 签名加载状态 */
.signature-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #666;
}

.signature-loading i {
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* 新增弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal .modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 400px;
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

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

.close-modal {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

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

.modal-body {
    padding: 0 20px 20px 20px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
}

.modal-btn {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn.cancel-btn {
    background: white;
    color: #666;
}

.modal-btn.cancel-btn:hover {
    background: #f5f5f5;
}

.modal-btn.confirm-btn {
    background: #007AFF;
    color: white;
    border-color: #007AFF;
}

.modal-btn.confirm-btn:hover {
    background: #005ecb;
}

.modal-btn.full-width {
    flex: none;
    width: 100%;
}

/* 还款方式弹窗样式 */
.repayment-method-info {
    text-align: center;
    padding: 20px 0;
}

.repayment-method-info h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.repayment-method-info p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* 借款事由弹窗样式 */
.purpose-options {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.purpose-option {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.purpose-option:last-child {
    border-bottom: none;
}

.purpose-option:hover {
    background: #f8f9fa;
}

.purpose-option.selected {
    color: #007AFF;
    background: #f0f8ff;
}

/* 日期选择弹窗样式 */
.date-picker {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.date-column {
    flex: 1;
    text-align: center;
}

.date-header {
    font-size: 16px;
    color: #00CED1;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00CED1;
}

.date-values {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.date-value {
    padding: 10px;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.date-value:hover {
    background: #f0f8ff;
    color: #333;
}

.date-value.selected {
    color: #333;
    font-weight: 600;
    background: #f0f8ff;
    border: 2px solid #00CED1;
}

/* 支付方式弹窗样式 */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.payment-option:last-child {
    border-bottom: none;
}

.payment-option:hover {
    background: #f8f9fa;
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.payment-option.selected .option-radio {
    background: #007AFF;
    border-color: #007AFF;
}

.option-radio i {
    color: white;
    font-size: 12px;
    display: none;
}

.payment-option.selected .option-radio i {
    display: block;
}

.option-content {
    flex: 1;
}

.option-title {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.option-subtitle {
    display: inline-block;
    background: #007AFF;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
}

.option-desc {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* 弹窗动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* 响应式设计 - 移动端优化 */
@media (max-width: 480px) {
    .modal .modal-content {
        max-width: 95%;
        margin: 20px;
    }
    
    .date-picker {
        gap: 10px;
    }
    
    .modal-header {
        padding: 15px 15px 0 15px;
    }
    
    .modal-body {
        padding: 0 15px 15px 15px;
    }
    
    .button-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .btn-icon {
        width: 45px;
        height: 45px;
        border-radius: 12px;
        margin-bottom: 6px;
    }
    
    .btn-icon i {
        font-size: 18px;
    }
    
    .function-btn span {
        font-size: 11px;
    }
    
    .function-buttons {
        padding: 25px 15px;
    }
    
    .recent-cards {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .loan-card {
        padding: 15px;
        height: 160px;
    }

    .card-header {
        top: 10px;
        right: 10px;
    }

    .card-content {
        padding-top: 6px;
    }

    .card-content h4 {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .amount {
        font-size: 19px;
        margin-bottom: 6px;
    }

    .status-tag {
        font-size: 10px;
        padding: 3px 8px;
        border-radius: 8px;
    }

    .fund-flow {
        font-size: 10px;
        padding: 3px 6px;
        margin-bottom: 8px;
    }

    .borrower {
        font-size: 12px;
    }
    
    .create-card {
        height: 160px;
        padding: 15px;
    }

    .create-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }

    .create-icon i {
        font-size: 18px;
    }

    .create-card h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .create-card p {
        font-size: 12px;
    }
}

/* 利率选择弹窗样式 */
.rate-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff8e1;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #ff9500;
}

.rate-notice i {
    color: #ff9500;
    font-size: 14px;
}

.rate-notice span {
    color: #e65100;
    font-size: 13px;
    font-weight: 500;
}

.rate-input-section {
    margin-bottom: 20px;
}

.rate-type-tabs {
    display: flex;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}

.rate-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rate-tab.active {
    background: white;
    color: #4A90E2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rate-content {
    display: none;
}

.rate-content.active {
    display: block;
}

.rate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.rate-option {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.rate-option:hover {
    border-color: #4A90E2;
    background: #f8fbff;
}

.rate-option.selected {
    border-color: #4A90E2;
    background: #f0f7ff;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.rate-option.selected::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #4A90E2;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.rate-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.rate-desc {
    font-size: 11px;
    color: #999;
    line-height: 1.2;
}

.custom-input-wrapper {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.custom-input-group {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 12px;
}

.custom-input-group input {
    flex: 1;
    padding: 16px 20px;
    padding-right: 50px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
}

.custom-input-group input:focus {
    border-color: #4A90E2;
}

.custom-input-group input:invalid {
    border-color: #ff5252;
}

.rate-unit {
    position: absolute;
    right: 16px;
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.rate-range {
    text-align: center;
}

.rate-range span {
    font-size: 12px;
    color: #999;
}

.selected-rate-display {
    background: #f0f7ff;
    border: 1px solid #4A90E2;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.display-value {
    font-size: 16px;
    font-weight: 600;
    color: #4A90E2;
}

/* 手机端优化 */
@media (max-width: 480px) {
    .rate-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .rate-option {
        padding: 14px 10px;
    }
    
    .rate-value {
        font-size: 16px;
    }
    
    .rate-desc {
        font-size: 10px;
    }
    
    .custom-input-group input {
        padding: 14px 16px;
        padding-right: 45px;
        font-size: 14px;
    }
    
    .rate-unit {
        right: 14px;
        font-size: 14px;
    }
    
    .selected-rate-display {
        padding: 14px 16px;
    }
    
    .display-label {
        font-size: 13px;
    }
    
    .display-value {
        font-size: 15px;
    }
    
    .rate-tab {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* 还款方式选择器样式 */
.repayment-method-description {
    background: #f8fbff;
    border: 1px solid #e3f2fd;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.method-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.method-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 还款方式专用的滚轮容器 */
#repayment-method-modal .wheel-picker-container {
    height: 200px;
    padding: 10px 0;
}

#repayment-method-modal .wheel-picker-mask {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.8) 15%,
        transparent 30%,
        transparent 70%,
        rgba(255, 255, 255, 0.8) 85%,
        rgba(255, 255, 255, 0.95) 100%
    );
    z-index: 1;
}

#repayment-method-modal .wheel-picker-selection {
    height: 50px;
    top: 50%;
    transform: translateY(calc(-50% + 24px));  /* 向下偏移24px */
    border: 2px solid #4A90E2;
    border-radius: 12px;
    background: rgba(74, 144, 226, 0.1);
    left: 10px;
    right: 10px;
    z-index: 2;
}

#repayment-method-modal .wheel-column {
    z-index: 0;
}

#repayment-method-modal .wheel-items {
    z-index: 0;
}

#repayment-method-modal .wheel-item {
    height: 50px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    z-index: 0;
    margin-top: -8px;
}

#repayment-method-modal .wheel-item.selected {
    font-size: 17px;
    font-weight: 600;
    color: #4A90E2;
    z-index: 1;
}

#repayment-method-modal .wheel-item.dimmed {
    opacity: 0.4;
    font-size: 15px;
}

/* 手机端优化 */
@media (max-width: 480px) {
    .repayment-method-description {
        padding: 16px;
        margin-top: 16px;
    }
    
    .method-title {
        font-size: 16px;
    }
    
    .method-desc {
        font-size: 13px;
    }
    
    #repayment-method-modal .wheel-picker-container {
        height: 180px;
        padding: 8px 0;
    }
    
    #repayment-method-modal .wheel-picker-selection {
        height: 44px;
        left: 8px;
        right: 8px;
        transform: translateY(calc(-50% + 24px));  /* 向下偏移24px */
    }
    
    #repayment-method-modal .wheel-item {
        height: 44px;
        font-size: 14px;
        padding: 0 16px;
        margin-top: -6px;
    }
    
    #repayment-method-modal .wheel-item.selected {
        font-size: 15px;
    }
    
    #repayment-method-modal .wheel-item.dimmed {
        font-size: 13px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.function-btn,
.loan-card,
.create-card {
    animation: fadeInUp 0.6s ease-out;
}

.function-btn:nth-child(1) { animation-delay: 0.1s; }
.function-btn:nth-child(2) { animation-delay: 0.2s; }
.function-btn:nth-child(3) { animation-delay: 0.3s; }

/* 页面切换动画 */
.page {
    transition: opacity 0.3s ease-in-out;
}

.page:not(.active) {
    opacity: 0;
}

.page.active {
    opacity: 1;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.nav-item.active {
    color: #4A90E2;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 12px;
}

.create-btn {
    position: relative;
}

.create-circle {
    width: 50px;
    height: 50px;
    background: #4A90E2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
}

.create-circle i {
    font-size: 20px;
    color: white;
}

.nav-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #333;
    white-space: nowrap;
}

/* 我要出借弹窗专用样式 */
#lend-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

#lend-modal.active {
    display: flex;
}

#lend-modal .modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 480px;
    width: 90%;
    animation: slideUp 0.3s ease;
    margin: 20px;
}

#lend-modal .modal-options {
    display: flex;
    flex-direction: column;
}

#lend-modal .option-item {
    padding: 20px 32px;
    font-size: 16px;
    color: #333;
    text-align: center;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    position: relative;
}

#lend-modal .option-item:last-child {
    border-bottom: none;
}

#lend-modal .option-item:hover {
    background: #f8f9fa;
}

#lend-modal .option-item:active {
    background: #e9ecef;
    transform: scale(0.98);
    transition: all 0.1s ease;
}

/* 微信风格的点击效果 */
#lend-modal .option-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: opacity 0.15s ease;
}

#lend-modal .option-item:active::before {
    opacity: 1;
}

/* 滚轮式日期选择器样式 */
.wheel-picker-modal {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    background: white;
    z-index: 1000;
}

.modal.active .wheel-picker-modal {
    transform: translateY(0);
}

.wheel-picker-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 10px;
    border-bottom: 1px solid #f0f0f0;
    background: white;
    border-radius: 20px 20px 0 0;
}

.wheel-picker-modal .modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.wheel-picker-modal .modal-header .modal-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
    text-align: center;
}

.wheel-picker-modal .modal-header .cancel-btn {
    color: #666;
}

.wheel-picker-modal .modal-header .cancel-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.wheel-picker-modal .modal-header .confirm-btn {
    color: #4A90E2;
    font-weight: 600;
}

.wheel-picker-modal .modal-header .confirm-btn:hover {
    background: rgba(74, 144, 226, 0.1);
}

.wheel-picker-container {
    position: relative;
    height: 280px;
    background: white;
    overflow: hidden;
    padding: 20px 0;
    user-select: none;
    -webkit-user-select: none;
}

.wheel-picker-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.8) 20%,
        transparent 35%,
        transparent 65%,
        rgba(255, 255, 255, 0.8) 80%,
        rgba(255, 255, 255, 0.95) 100%
    );
    pointer-events: none;
    z-index: 2;
}

.wheel-picker-selection {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 44px;
    transform: translateY(calc(-50% + 16px)) !important;  /* 向下偏移16px */
    border: none;
    border-top: 1px solid rgba(74, 144, 226, 0.3);
    border-bottom: 1px solid rgba(74, 144, 226, 0.3);
    background: rgba(74, 144, 226, 0.05);
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
    box-sizing: border-box;
}

.wheel-picker-columns {
    display: flex;
    height: 100%;
    position: relative;
    z-index: 0;
}

.wheel-column {
    flex: 1;
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

.wheel-items {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    touch-action: pan-y;
}

.wheel-item {
    height: 44px;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wheel-item:hover {
    color: #4A90E2;
}

.wheel-item.selected {
    color: #4A90E2;
    font-weight: 600;
    transform: scale(1.05);
}

.wheel-item.dimmed {
    opacity: 0.4;
    font-size: 16px;
    color: #999;
}

.wheel-picker-labels {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    pointer-events: none;
    z-index: 3;
}

.wheel-label {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

/* 滚轮动画效果 */
.wheel-items.scrolling {
    transition: none;
}

.wheel-items.snapping {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 响应式调整 */
@media (max-width: 480px) {
    .wheel-picker-container {
        height: 260px;
        padding: 15px 0;
    }
    
    .wheel-picker-selection {
        height: 40px;
        transform: translateY(calc(-50% + 16px)) !important;  /* 向下偏移16px */
    }
    
    .wheel-item {
        height: 40px;
        font-size: 16px;
    }
    
    .wheel-item.selected {
        font-size: 17px;
    }
    
    .wheel-item.dimmed {
        font-size: 14px;
    }
    
    .wheel-picker-modal .modal-header {
        padding: 16px 16px 8px;
    }
    
    .wheel-picker-modal .modal-header h3 {
        font-size: 16px;
    }
    
    .wheel-picker-modal .modal-header .modal-btn {
        font-size: 14px;
        padding: 6px 10px;
        min-width: 50px;
    }
    
    .wheel-picker-labels {
        bottom: 10px;
    }
    
    .wheel-label {
        font-size: 12px;
    }
}

/* 旧的日期选择器样式 - 保留作为备用 */
.date-picker {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 20px 0;
}

.date-column {
    flex: 1;
    text-align: center;
}

.date-header {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.date-values {
    max-height: 200px;
    overflow-y: auto;
    border-radius: 8px;
    background: #fafafa;
}

.date-value {
    padding: 12px 8px;
    margin: 2px 0;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.date-value:hover {
    background: #e3f2fd;
    color: #4A90E2;
}

.date-value.selected {
    background: #4A90E2;
    color: white;
    font-weight: 600;
}

/* 日期选择器专用样式 - 精确对齐调整 */
#date-picker-modal .wheel-picker-container {
    height: 280px;
    padding: 20px 0;
}

#date-picker-modal .wheel-picker-selection {
    height: 52px;  /* 增加高度以包含间隔：44px（项目高度）+ 8px（间隔） */
    left: 20px;
    right: 20px;
    transform: translateY(calc(-50% + 16px)) !important;  /* 向下偏移16px */
}

#date-picker-modal .wheel-item {
    height: 44px;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    margin-bottom: 8px;  /* 添加项目间隔 */
}

#date-picker-modal .wheel-item:last-child {
    margin-bottom: 0;  /* 最后一项不需要底部间隔 */
}

#date-picker-modal .wheel-item.selected {
    color: #4A90E2;
    font-weight: 600;
    transform: scale(1.05);
}

#date-picker-modal .wheel-item.dimmed {
    opacity: 0.4;
    font-size: 16px;
    color: #999;
}

/* 还款方式选择器字体上移一点就完全准确了，要在手机端匹配，其他都不需要改，就改下字体位置，让字体能上移到蓝色框内 */
#repayment-method-modal .wheel-item.dimmed {
    font-size: 13px;
}

/* 日期选择器手机端优化 */
@media (max-width: 480px) {
    #date-picker-modal .wheel-picker-container {
        height: 260px;
        padding: 15px 0;
    }

    #date-picker-modal .wheel-picker-selection {
        height: 48px;  /* 增加高度以包含间隔：40px（项目高度）+ 8px（间隔） */
        left: 20px;
        right: 20px;
        transform: translateY(calc(-50% + 16px)) !important;  /* 向下偏移16px */
    }

    #date-picker-modal .wheel-item {
        height: 40px;
        font-size: 16px;
        margin-bottom: 8px;  /* 添加项目间隔 */
    }

    #date-picker-modal .wheel-item:last-child {
        margin-bottom: 0;  /* 最后一项不需要底部间隔 */
    }

    #date-picker-modal .wheel-item.selected {
        font-size: 17px;
    }

    #date-picker-modal .wheel-item.dimmed {
        font-size: 14px;
    }
}

/* 个人信息页面样式 */
.user-info-content {
    background: white;
    margin-top: 20px;
    border-radius: 20px 20px 0 0;
    min-height: calc(100vh - 120px);
    padding: 20px;
    padding-bottom: 100px;
}

.info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    background: white;
}

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

.info-label {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    min-width: 80px;
}

.info-value {
    font-size: 16px;
    color: #666;
    text-align: right;
    flex: 1;
}

.info-value.verified {
    color: #4CAF50;
    font-weight: 500;
}

.logout-btn {
    width: 100%;
    background: #007AFF;
    color: white;
    border: none;
    padding: 16px 0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.logout-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.logout-btn:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .user-info-content {
        padding: 16px;
        padding-bottom: 80px;
    }
    
    .info-item {
        padding: 16px 20px;
    }
    
    .info-label,
    .info-value {
        font-size: 15px;
    }
    
    .logout-btn {
        padding: 14px 0;
        font-size: 15px;
    }
}

/* 借条模板预览页面样式 */
#template-page {
    /* 模板页面不需要底部导航，所以不需要额外的底部空间 */
}

.template-content {
    padding: 16px;
    background-color: #f5f5f5;
    min-height: calc(100vh - 60px);
    padding-bottom: 20px; /* 模板页面不需要为底部导航留空间 */
}

.legal-notice {
    background-color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.legal-notice p {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.loan-template {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.template-header {
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
}

.template-header h2 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.template-content-text {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.template-content-text p {
    margin-bottom: 16px;
    text-align: justify;
}

.template-content-text strong {
    color: #1976d2;
    font-weight: bold;
}

.contact-info {
    margin: 20px 0;
    padding: 16px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #1976d2;
}

.contact-info p {
    margin: 8px 0;
    font-size: 13px;
    color: #555;
}

.signature-area {
    margin-top: 32px;
}

.signature-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.signature-box {
    flex: 1;
    text-align: center;
}

.signature-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 500;
}

.signature-frame {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 24px 16px;
    margin-bottom: 12px;
    background-color: #fafafa;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signature-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    font-family: '楷体', 'KaiTi', serif;
}

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

.template-actions {
    padding: 0 16px 20px;
    display: flex;
    gap: 12px;
}

.template-btn {
    flex: 1;
    padding: 14px 0;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lender-btn {
    background: linear-gradient(135deg, #1976d2, #1565c0);
}

.lender-btn:hover {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    transform: translateY(-1px);
}

.borrower-btn {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

.borrower-btn:hover {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    transform: translateY(-1px);
}

.template-btn:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .loan-template {
        padding: 16px;
    }
    
    .signature-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .template-content-text {
        font-size: 13px;
    }
    
    .template-header h2 {
        font-size: 18px;
    }
    
    .signature-frame {
        min-height: 60px;
        padding: 16px 12px;
    }
    
    .signature-name {
        font-size: 16px;
    }
}

/* 借条管理页面样式 */
.loans-content {
    background: white;
    margin-top: 20px;
    border-radius: 20px 20px 0 0;
    min-height: calc(100vh - 120px);
    padding-bottom: 100px;
}

.loans-tabs {
    display: flex;
    background: white;
    padding: 0 20px;
    border-bottom: 1px solid #f0f0f0;
}

/* 搜索框样式 */
.search-container {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(74, 144, 226, 0.08);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 18px;
    padding: 16px 20px;
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.08), 
                0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.search-box:focus-within {
    border-color: #4A90E2;
    box-shadow: 0 6px 30px rgba(74, 144, 226, 0.15), 
                0 0 0 3px rgba(74, 144, 226, 0.1);
    transform: translateY(-1px);
}

.search-icon {
    color: #4A90E2;
    margin-right: 12px;
    font-size: 18px;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.search-box:focus-within .search-icon {
    opacity: 1;
    transform: scale(1.1);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    color: #333;
    padding: 0;
    line-height: 1.5;
    font-weight: 400;
}

.search-input::placeholder {
    color: #9ca3af;
    font-size: 15px;
    font-weight: 400;
}

.clear-search {
    color: #6b7280;
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    margin-left: 8px;
    background: rgba(74, 144, 226, 0.05);
}

.clear-search.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.clear-search:hover {
    color: #4A90E2;
    background: rgba(74, 144, 226, 0.15);
    transform: scale(1.1);
}

.clear-search:active {
    transform: scale(0.95);
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 20px 0;
    font-size: 16px;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab-item.active {
    color: #4A90E2;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #4A90E2;
    border-radius: 2px;
}

.loans-list {
    padding: 40px 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-illustration {
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
}

.empty-icon {
    position: relative;
    display: inline-block;
}

.empty-icon > .fas.fa-file-contract {
    font-size: 80px;
    color: #e0e6ed;
    display: block;
}

.person-icon {
    position: absolute;
    bottom: 10px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #4A90E2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.person-icon .fas {
    font-size: 18px;
    color: white;
}

.empty-text h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.empty-text p {
    font-size: 14px;
    color: #999;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .loans-content {
        padding-bottom: 80px;
    }
    
    .loans-tabs {
        padding: 0 16px;
    }
    
    .tab-item {
        padding: 16px 0;
        font-size: 15px;
    }
    
    .tab-item.active::after {
        width: 50px;
        height: 2px;
    }
    
    /* 移动端搜索框样式 */
    .search-container {
        padding: 16px;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    }
    
    .search-box {
        padding: 14px 18px;
        border-radius: 16px;
        box-shadow: 0 3px 15px rgba(74, 144, 226, 0.1), 
                    0 1px 6px rgba(0, 0, 0, 0.08);
    }
    
    .search-box:focus-within {
        box-shadow: 0 5px 25px rgba(74, 144, 226, 0.2), 
                    0 0 0 2px rgba(74, 144, 226, 0.12);
        transform: translateY(-0.5px);
    }
    
    .search-input {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .search-input::placeholder {
        font-size: 15px;
        color: #a1a1aa;
    }
    
    .search-icon {
        font-size: 17px;
        margin-right: 10px;
    }
    
    .clear-search {
        font-size: 15px;
        padding: 6px;
        margin-left: 6px;
    }
    
    .clear-search:hover {
        transform: scale(1.05);
    }
    
    .loans-list {
        padding: 30px 16px;
    }
    
    .empty-state {
        padding: 40px 16px;
    }
    
    .empty-icon > .fas.fa-file-contract {
        font-size: 64px;
    }
    
    .person-icon {
        width: 32px;
        height: 32px;
        bottom: 8px;
        right: -12px;
    }
    
    .person-icon .fas {
        font-size: 14px;
    }
    
    .empty-text h3 {
        font-size: 16px;
    }
    
    .empty-text p {
        font-size: 13px;
    }
}

/* 借条项目样式 */
.loan-item {
    background: white;
    margin: 10px 0;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.loan-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.loan-number {
    font-size: 12px;
    color: #666;
}

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

.status-draft {
    background: #f5f5f5;
    color: #666;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-signed {
    background: #d4edda;
    color: #155724;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* 待收和逾期借条样式 */
.status-pending-collection {
    background: #d1ecf1;
    color: #0c5460;
}

.status-overdue {
    background: #f8d7da;
    color: #721c24;
}

/* 逾期借条卡片样式 */
.loan-item.overdue {
    border: 2px solid #e74c3c;
    background: linear-gradient(135deg, #fff5f5, #ffeaea);
}

.loan-item.overdue .loan-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.loan-item.overdue .loan-number {
    color: rgba(255, 255, 255, 0.9);
}

.loan-item.overdue .loan-amount {
    color: #e74c3c;
    font-weight: bold;
}

/* 待收借条卡片样式 */
.loan-item.pending-collection {
    border: 2px solid #3498db;
    background: linear-gradient(135deg, #f8fbff, #e3f2fd);
}

.loan-item.pending-collection .loan-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.loan-item.pending-collection .loan-number {
    color: rgba(255, 255, 255, 0.9);
}

.loan-item.pending-collection .loan-amount {
    color: #3498db;
    font-weight: bold;
}

/* 历史借出卡片样式 */
.loan-item.history-lend {
    border: 2px solid #95a5a6;
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
}

.loan-item.history-lend .loan-header {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.loan-item.history-lend .loan-number {
    color: rgba(255, 255, 255, 0.9);
}

.loan-item.history-lend .loan-amount {
    color: #7f8c8d;
    font-weight: bold;
}

/* 已完成借条样式 */
.status-completed {
    background: #d4edda;
    color: #155724;
}

/* 其他状态样式 */
.status-other {
    background: #f8f9fa;
    color: #495057;
}

/* 已签署状态样式 */
.status-signed {
    background: #d4edda;
    color: #155724;
}

/* 待签署状态样式 */
.status-pending {
    background: #fff3cd;
    color: #856404;
}

/* 草稿状态样式 */
.status-draft {
    background: #f8f9fa;
    color: #495057;
}

/* 逾期天数提示样式 */
.overdue-days {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

/* 待收天数提示样式 */
.pending-days {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

/* 逾期图标样式 */
.overdue-icon {
    color: #e74c3c;
    margin-right: 5px;
}

/* 待收图标样式 */
.pending-icon {
    color: #3498db;
    margin-right: 5px;
}

.loan-content {
    color: #333;
}

.loan-amount {
    font-size: 18px;
    font-weight: bold;
    color: #4A90E2;
    margin-bottom: 5px;
}

.loan-purpose {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.loan-parties {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    padding: 6px 0;
    border-top: 1px solid #f0f0f0;
}

.loan-parties span {
    flex: 1;
}

.loan-dates {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.loan-dates-vertical {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0;
}

.loan-dates-vertical .date-row {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

.loan-meta {
    font-size: 12px;
    color: #999;
    text-align: right;
}

/* 借条操作按钮 */
.loan-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.delete-loan-btn {
    padding: 6px 16px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.delete-loan-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
    transform: translateY(-1px);
}

.delete-loan-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.delete-loan-btn i {
    font-size: 13px;
}

/* 借款人信息填写弹窗样式 */
#borrower-info-modal .modal-content,
#lender-info-modal .modal-content {
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

#borrower-info-modal .modal-header h3,
#lender-info-modal .modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.borrower-form,
.lender-form {
    padding: 0;
}

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

.form-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}



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

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

.borrower-form .form-group label .required,
.lender-form .form-group label .required {
    color: #ff4444;
    margin-right: 2px;
}

.borrower-form .form-group input,
.lender-form .form-group input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.borrower-form .form-group input:focus,
.lender-form .form-group input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.borrower-form .form-group input::placeholder,
.lender-form .form-group input::placeholder {
    color: #999;
}

.borrower-form .form-group input:valid,
.lender-form .form-group input:valid {
    border-color: #52c41a;
}

.borrower-form .form-group input:invalid:not(:placeholder-shown),
.lender-form .form-group input:invalid:not(:placeholder-shown) {
    border-color: #ff4444;
}

#borrower-info-modal .modal-buttons,
#lender-info-modal .modal-buttons {
    padding: 20px 0 0 0;
    margin-top: 20px;
    border-top: 1px solid #f0f0f0;
}

#borrower-confirm-btn,
#lender-confirm-btn {
    width: 100%;
    height: 44px;
    background: #4A90E2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#borrower-confirm-btn:hover,
#lender-confirm-btn:hover {
    background: #357abd;
}

#borrower-confirm-btn:disabled,
#lender-confirm-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 480px) {
    #borrower-info-modal .modal-content,
    #lender-info-modal .modal-content {
        width: 95%;
        margin: 20px auto;
        max-height: 85vh;
    }
    
    .borrower-form .form-group,
    .lender-form .form-group {
        margin-bottom: 16px;
    }
    
    .borrower-form .form-group input,
    .lender-form .form-group input {
        height: 40px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    #borrower-confirm-btn,
    #lender-confirm-btn {
        height: 40px;
        font-size: 15px;
    }
}

/* 借款人/出借人区域点击样式 */
.party-item.clickable {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.party-item.clickable:hover {
    background-color: #f8f9fa;
}

.party-item.clickable.active {
    border: 1px solid #4A90E2;
    background-color: #f0f7ff;
}

.party-item.clickable .party-name {
    color: #4A90E2;
    font-weight: 500;
}

.party-item.clickable .party-note {
    color: #666;
    font-size: 13px;
}

/* 表单提示信息样式 */
.form-note {
    background: #f0f7ff;
    border: 1px solid #d1e7ff;
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-note i {
    color: #4A90E2;
    font-size: 14px;
}

.form-note span {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* 个人信息编辑按钮 */
.edit-info-btn {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.edit-info-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.edit-info-btn:hover::before {
    left: 100%;
}

.edit-info-btn:hover {
    background: linear-gradient(135deg, #357ABD, #2c6aa0);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.edit-info-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.edit-info-btn i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.edit-info-btn:hover i {
    transform: rotate(15deg);
}

.edit-info-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.edit-info-btn:disabled:hover {
    background: #ccc;
    transform: none;
    box-shadow: none;
}

/* 个人信息模态框样式 */
#personal-info-modal .modal-content {
    max-width: 450px;
    margin: 0 auto;
}

#personal-info-modal .modal-header h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.personal-form {
    padding: 0;
}

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

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

.personal-form .form-group label .required {
    color: #ff4757;
    margin-right: 3px;
}

.personal-form .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.personal-form .form-group input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

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

.personal-form .form-group input:valid {
    border-color: #00C851;
}

.personal-form .form-group input:invalid:not(:placeholder-shown) {
    border-color: #ff4757;
}

.personal-form .form-note {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.personal-form .form-note i {
    color: #4A90E2;
    font-size: 14px;
}

.personal-form .form-note span {
    font-size: 13px;
    color: #666;
}

#personal-info-modal .modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

#personal-info-confirm-btn {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

#personal-info-confirm-btn:hover {
    background: linear-gradient(135deg, #357ABD, #2c6aa0);
    transform: translateY(-2px);
}

#personal-info-confirm-btn:disabled {
    background: #cccccc !important;
    cursor: not-allowed !important;
    transform: none !important;
    opacity: 0.6 !important;
    box-shadow: none !important;
}

#personal-info-confirm-btn.enabled {
    background: linear-gradient(135deg, #4A90E2, #357ABD) !important;
    cursor: pointer !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3) !important;
}

#personal-info-confirm-btn.enabled:hover {
    background: linear-gradient(135deg, #357ABD, #2c6aa0) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4) !important;
}

@media (max-width: 480px) {
    #personal-info-modal .modal-content {
        margin: 20px;
        max-width: none;
    }
    
    .personal-form .form-group {
        margin-bottom: 16px;
    }
    
    .personal-form .form-group input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    #personal-info-confirm-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 个人信息编辑页面样式美化 */
.edit-form {
    padding: 0;
}

.edit-form .form-section {
    margin-bottom: 20px;
}

.edit-form .form-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

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

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

.edit-form .form-group label .required {
    color: #ff4757;
    margin-right: 3px;
}

.edit-form .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.edit-form .form-group input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

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

.edit-form .form-group input:valid {
    border-color: #00C851;
}

.edit-form .form-group input:invalid:not(:placeholder-shown) {
    border-color: #ff4757;
}

.edit-form .form-group input.error {
    border-color: #ff4757;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.edit-form .form-group input.success {
    border-color: #00C851;
    box-shadow: 0 0 0 3px rgba(0, 200, 81, 0.1);
}

.edit-form .form-note {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-form .form-note i {
    color: #4A90E2;
    font-size: 14px;
}

.edit-form .form-note span {
    font-size: 13px;
    color: #666;
}

/* 编辑页面按钮样式 */
.edit-form .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.edit-form .form-actions .btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.edit-form .form-actions .cancel-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
}

.edit-form .form-actions .cancel-btn:hover {
    background: #e9ecef;
    color: #333;
}

.edit-form .form-actions .save-btn {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
}

.edit-form .form-actions .save-btn:hover {
    background: linear-gradient(135deg, #357ABD, #2c6aa0);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.edit-form .form-actions .save-btn:disabled {
    background: #cccccc !important;
    cursor: not-allowed !important;
    transform: none !important;
    opacity: 0.6 !important;
    box-shadow: none !important;
}

.edit-form .form-actions .save-btn:disabled:hover {
    background: #cccccc !important;
    transform: none !important;
    box-shadow: none !important;
}

/* 错误提示样式优化 */
.edit-form .error-message {
    color: #ff4757;
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
    display: none;
    line-height: 1.4;
}

.edit-form .error-message.show {
    display: block;
}

/* 成功提示样式 */
.edit-form .success-message {
    color: #00C851;
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
    display: none;
    line-height: 1.4;
}

.edit-form .success-message.show {
    display: block;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .edit-form .form-group {
        margin-bottom: 16px;
    }
    
    .edit-form .form-group input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .edit-form .form-actions .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .edit-form .form-actions {
        gap: 8px;
    }
}

