This commit is contained in:
2026-01-22 18:31:30 +08:00
commit d703ac3574
46 changed files with 7751 additions and 0 deletions

756
style.css Normal file
View File

@@ -0,0 +1,756 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
background-color: #f5f5f5;
color: #333;
font-size: 14px;
line-height: 1.5;
}
.container {
min-height: 100vh;
padding: 10px 16px;
padding-bottom: 20px;
}
.money-header {
display: flex;
align-items: flex-end;
justify-content: space-between;
border-bottom: 1px solid #ddd;
padding-bottom: 12px;
position: relative;
}
.money-label {
font-weight: 600;
margin-right: 8px;
font-size: 14px;
}
.money-input {
flex: 1;
font-size: 38px;
font-weight: 600;
border: none;
outline: none;
color: #333;
background: transparent;
width: 265px;
text-align: left;
}
.max-loan {
position: absolute;
bottom: 4px;
right: 0;
color: #3474fe;
font-size: 12px;
cursor: pointer;
}
.interest-rate-text {
margin-top: 12px;
font-size: 12px;
color: #777;
}
.rate-highlight {
color: #3474fe;
}
/* 借款金额区域 - 统一使用money-section */
.money-section {
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
font-size: 14px;
margin-top: 8px;
}
.money-first {
margin-top: 5px;
padding: 20px;
box-shadow: none;
position: relative;
}
.money-card {
padding: 0 20px;
}
.money-compact {
padding-bottom: 1px;
}
.money-phone {
padding-top: 16px;
padding-bottom: 16px;
padding-left: 0;
padding-right: 0;
}
.info-item {
display: flex;
justify-content: space-between;
align-items: center;
height: 52px;
border-bottom: 1px solid #efefef;
}
.info-item.clickable {
cursor: pointer;
}
.info-item.no-border {
border: none;
}
.info-item.compact {
height: 49px;
color: #777;
font-size: 12px;
}
.info-label {
font-weight: 600;
color: #333;
font-size: 14px;
min-width: 56px;
}
.info-content.row {
flex-direction: row;
align-items: center;
justify-content: flex-end;
}
.info-content {
text-align: right;
flex: 1;
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: center;
}
.info-main {
font-size: 12px;
font-weight: 400;
color: #333;
}
.info-desc {
color: #aaa;
font-size: 11px;
margin-top: 2px;
}
.arrow-icon {
color: #999;
margin-left: 4px;
font-size: 14px;
}
.disclaimer-text {
font-size: 10px;
color: #777;
margin-top: 8px;
padding: 0 20px;
}
.phone-input-wrapper {
height: 52px;
padding: 0 16px;
margin: 0 16px 16px 16px;
background-color: #f8f8f8;
border-radius: 25px;
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
}
.phone-label {
font-size: 14px;
font-weight: 600;
color: #333;
}
.phone-input {
font-size: 12px;
font-weight: 400;
border: none;
outline: none;
background: transparent;
text-align: right;
flex: 1;
margin-left: 12px;
color: #333;
width: 175px;
}
.phone-input::placeholder {
color: #999;
}
.phone-input.error {
color: #ff4444;
}
.phone-error {
font-size: 12px;
color: #ff4444;
text-align: center;
margin-top: 8px;
padding: 0 16px;
min-height: 20px;
}
.button-wrapper {
width: 100%;
padding: 24px 16px;
padding-top: 20px;
padding-bottom: 0;
background-color: #fff;
}
.apply-btn {
width: 100%;
height: 48px;
line-height: 48px;
color: #fff;
font-size: 18px;
text-align: center;
background: linear-gradient(140deg, #3474fe, #3474fe);
border: none;
border-radius: 25px;
cursor: pointer;
transition: all 0.2s ease;
}
.apply-btn:active {
opacity: 0.9;
}
/* 协议勾选 */
.agreement-section {
margin: 24px 16px 16px;
display: flex;
align-items: center;
flex-wrap: wrap;
font-size: 11px;
line-height: 1.5;
}
.checkbox-wrapper {
display: flex;
align-items: center;
cursor: pointer;
margin-right: 4px;
}
.checkbox-input {
display: none;
}
.checkbox-icon {
width: 12px;
height: 12px;
border: 1px solid #c8c9cc;
border-radius: 50%;
margin-right: 5px;
position: relative;
flex-shrink: 0;
}
.checkbox-input:checked + .checkbox-icon {
background-color: #2979ff;
border-color: #2979ff;
}
.checkbox-input:checked + .checkbox-icon::after {
content: '';
position: absolute;
left: 3px;
top: 1px;
width: 4px;
height: 7px;
border: solid #fff;
border-width: 0 1px 1px 0;
transform: rotate(45deg);
}
.checkbox-label {
font-size: 11px;
color: #606266;
}
.agreement-link {
color: #2979ff;
font-size: 12px;
text-decoration: none;
margin: 0 2px;
white-space: nowrap;
}
.agreement-link:active {
opacity: 0.7;
}
/* 底部声明 */
.footer-section {
text-align: center;
color: #aaa;
margin: 16px 0;
font-size: 12px;
padding: 0 16px;
}
.footer-title {
font-weight: 600;
margin-bottom: 8px;
}
.footer-section p {
line-height: 22px;
font-size: 11px;
margin: 4px 0;
}
/* 借款用途选择器模态框 */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(4px);
display: none;
align-items: flex-end;
justify-content: center;
z-index: 1000;
opacity: 0;
transition: opacity 0.3s ease;
}
.modal-overlay.show {
display: flex;
opacity: 1;
}
.modal-overlay.showing {
display: flex;
}
.modal-content {
width: 100%;
max-width: 100%;
background-color: #fff;
border-radius: 16px 16px 0 0;
max-height: 70vh;
display: flex;
flex-direction: column;
transform: translateY(100%);
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.show .modal-content {
transform: translateY(0);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 20px;
border-bottom: 1px solid #eee;
flex-shrink: 0;
position: relative;
}
.modal-header::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(to right, transparent, #eee 20%, #eee 80%, transparent);
}
.modal-btn {
background: none;
border: none;
font-size: 16px;
cursor: pointer;
padding: 8px 16px;
transition: all 0.2s ease;
border-radius: 4px;
min-width: 60px;
text-align: center;
user-select: none;
}
.modal-btn-cancel {
color: #666;
}
.modal-btn-cancel:active {
background-color: #f5f5f5;
opacity: 0.8;
}
.modal-btn-confirm {
color: #3474fe;
font-weight: 500;
}
.modal-btn-confirm:active {
background-color: rgba(52, 116, 254, 0.1);
opacity: 0.8;
}
.modal-body {
flex: 1;
overflow-y: auto;
padding: 0;
-webkit-overflow-scrolling: touch;
overscroll-behavior: contain;
}
.modal-body::-webkit-scrollbar {
width: 4px;
}
.modal-body::-webkit-scrollbar-track {
background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
background: #ddd;
border-radius: 2px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
background: #bbb;
}
/* 模态框选项通用样式 */
.modal-option {
padding: 16px 20px;
font-size: 16px;
color: #333;
border-bottom: 1px solid #f0f0f0;
cursor: pointer;
transition: all 0.2s ease;
position: relative;
user-select: none;
display: flex;
align-items: center;
justify-content: center;
}
.modal-option:last-child {
border-bottom: none;
}
.modal-option-text {
text-align: center;
}
.modal-option-check {
width: 20px;
height: 20px;
border-radius: 50%;
border: 2px solid #ddd;
transition: all 0.2s ease;
flex-shrink: 0;
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
}
.modal-option:active {
background-color: #f5f5f5;
}
.modal-option.active {
background-color: #e8e8e8;
}
.modal-option.active .modal-option-text {
color: #333;
font-weight: 600;
}
.modal-option.active .modal-option-check {
border-color: #3474fe;
background-color: #3474fe;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M10 3L4.5 8.5 2 6' stroke='none' stroke-width='2' fill-rule='evenodd'/%3E%3C/svg%3E");
background-size: 10px 10px;
background-position: center;
background-repeat: no-repeat;
}
/* 防止背景滚动 */
body.modal-open {
overflow: hidden;
position: fixed;
width: 100%;
}
/* 验证码弹窗样式 */
#verifyCodeModal {
align-items: center;
justify-content: center;
}
.verify-code-modal {
width: 90%;
max-width: 400px;
background-color: #fff;
border-radius: 16px;
display: flex;
flex-direction: column;
transform: scale(0.8);
opacity: 0;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
z-index: 1001;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
#verifyCodeModal.show .verify-code-modal {
transform: scale(1);
opacity: 1;
}
.verify-code-header {
padding: 20px 20px 16px;
text-align: center;
border-bottom: 1px solid #eee;
}
.verify-code-title {
font-size: 18px;
font-weight: 600;
color: #333;
margin: 0;
}
.verify-code-body {
padding: 24px 20px;
}
.verify-code-tip {
font-size: 14px;
color: #666;
text-align: center;
margin-bottom: 20px;
}
.verify-code-input-wrapper {
display: flex;
align-items: center;
background-color: #f8f8f8;
border-radius: 8px;
padding: 0 16px;
height: 48px;
margin-bottom: 12px;
border: 1px solid transparent;
transition: all 0.2s ease;
}
.verify-code-input-wrapper:focus-within {
border-color: #3474fe;
background-color: #fff;
}
.verify-code-input-wrapper.error {
border-color: #ff4444;
background-color: #fff5f5;
}
.verify-code-input-icon {
font-size: 18px;
margin-right: 12px;
flex-shrink: 0;
}
.verify-code-input {
flex: 1;
border: none;
outline: none;
background: transparent;
font-size: 16px;
color: #333;
height: 100%;
}
.verify-code-input::placeholder {
color: #999;
}
.verify-code-countdown {
font-size: 14px;
color: #999;
margin-left: 12px;
flex-shrink: 0;
cursor: pointer;
user-select: none;
}
.verify-code-error {
font-size: 12px;
color: #ff4444;
text-align: center;
margin-top: 8px;
}
.verify-code-footer {
padding: 0 20px 24px;
}
.verify-code-btn {
width: 100%;
height: 48px;
line-height: 48px;
color: #fff;
font-size: 16px;
text-align: center;
background: linear-gradient(140deg, #3474fe, #3474fe);
border: none;
border-radius: 24px;
cursor: pointer;
transition: all 0.2s ease;
}
.verify-code-btn:active {
opacity: 0.9;
}
/* 协议提示弹窗样式 */
#agreementModal {
align-items: center;
justify-content: center;
}
.agreement-modal {
width: 90%;
max-width: 320px;
background-color: #fff;
border-radius: 16px;
display: flex;
flex-direction: column;
transform: scale(0.8);
opacity: 0;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
z-index: 1001;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
overflow: hidden;
}
#agreementModal.show .agreement-modal {
transform: scale(1);
opacity: 1;
}
.agreement-modal-header {
padding: 20px 20px 16px;
text-align: center;
border-bottom: 1px solid #eee;
}
.agreement-modal-title {
font-size: 18px;
font-weight: 600;
color: #333;
margin: 0;
}
.agreement-modal-body {
padding: 20px;
text-align: center;
}
.agreement-modal-text {
font-size: 14px;
color: #333;
margin-bottom: 12px;
line-height: 1.5;
}
.agreement-modal-links {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
}
.agreement-modal-link {
color: #3474fe;
font-size: 14px;
text-decoration: none;
line-height: 1.5;
}
.agreement-modal-link:active {
opacity: 0.7;
}
.agreement-modal-footer {
display: flex;
border-top: 1px solid #eee;
padding: 0;
}
.agreement-modal-btn {
flex: 1;
height: 48px;
line-height: 48px;
font-size: 16px;
text-align: center;
border: none;
cursor: pointer;
transition: all 0.2s ease;
background: transparent;
}
.agreement-modal-btn-cancel {
color: #666;
border-right: 1px solid #eee;
}
.agreement-modal-btn-cancel:active {
background-color: #f5f5f5;
}
.agreement-modal-btn-confirm {
color: #fff;
background: linear-gradient(140deg, #3474fe, #3474fe);
font-weight: 500;
}
.agreement-modal-btn-confirm:active {
opacity: 0.9;
}
/* 响应式适配 */
@media (max-width: 375px) {
.money-input {
font-size: 32px;
}
.info-item {
height: 49px;
}
}