Files
ai_wht_wechat/figma_html_page/css/common.css

281 lines
4.5 KiB
CSS
Raw Normal View History

2026-01-06 19:36:42 +08:00
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
background-color: #fff;
-webkit-font-smoothing: antialiased;
font-size: 14px;
color: #333;
}
.container {
max-width: 375px;
margin: 0 auto;
background-color: #fff;
min-height: 100vh;
position: relative;
overflow-x: hidden;
}
.status-bar {
height: 44px;
padding: 0 16px;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 15px;
font-weight: 600;
}
.status-bar .time {
font-weight: 600;
}
.status-bar .icons {
display: flex;
align-items: center;
gap: 4px;
}
.nav-bar {
height: 44px;
padding: 0 12px;
display: flex;
align-items: center;
justify-content: space-between;
}
.nav-bar .back-btn {
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.nav-bar .back-btn svg {
width: 10px;
height: 18px;
stroke: #000;
stroke-width: 2;
fill: none;
}
.nav-bar .nav-icons {
display: flex;
align-items: center;
gap: 8px;
}
.nav-bar .nav-icon {
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
}
.green-btn {
background: #07C160;
color: #fff;
border: none;
border-radius: 8px;
padding: 14px 24px;
font-size: 17px;
font-weight: 500;
cursor: pointer;
width: 100%;
transition: opacity 0.2s;
text-align: center;
}
.green-btn:active {
opacity: 0.8;
}
.input-row {
display: flex;
align-items: center;
padding: 16px 0;
border-bottom: 1px solid #E5E5E5;
}
.input-row .label {
width: 56px;
font-size: 15px;
color: #333;
flex-shrink: 0;
}
.input-row .prefix {
font-size: 16px;
color: #333;
margin-right: 8px;
}
.input-row input {
flex: 1;
border: none;
font-size: 16px;
outline: none;
background: transparent;
}
.input-row input::placeholder {
color: #C0C0C0;
}
.input-row .get-code {
font-size: 14px;
color: #333;
padding: 6px 12px;
border: 1px solid #E5E5E5;
border-radius: 4px;
background: #fff;
cursor: pointer;
white-space: nowrap;
}
.toast-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
pointer-events: none;
}
.toast {
background: rgba(76, 76, 76, 0.9);
border-radius: 12px;
padding: 24px 32px;
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
min-width: 136px;
}
.toast-icon {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
}
.toast-icon svg {
width: 36px;
height: 36px;
stroke: #fff;
stroke-width: 2;
fill: none;
}
.toast-icon.info svg {
width: 32px;
height: 32px;
}
.toast-text {
color: #fff;
font-size: 14px;
text-align: center;
line-height: 1.4;
}
.toast-loading {
width: 36px;
height: 36px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-top-color: #fff;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: none;
align-items: flex-end;
justify-content: center;
z-index: 1000;
}
.modal-overlay.active {
display: flex;
}
.modal {
background: #fff;
border-radius: 12px 12px 0 0;
width: 100%;
max-width: 375px;
padding: 24px 16px;
padding-bottom: 34px;
}
.modal-title {
font-size: 17px;
font-weight: 600;
color: #333;
text-align: center;
margin-bottom: 12px;
}
.modal-message {
font-size: 14px;
color: #666;
text-align: center;
margin-bottom: 24px;
line-height: 1.5;
}
.modal-btn {
width: 100%;
padding: 14px;
font-size: 17px;
border: none;
background: transparent;
cursor: pointer;
border-top: 1px solid #E5E5E5;
}
.modal-btn.danger {
color: #FA5151;
}
.modal-btn.cancel {
color: #333;
}
.bottom-indicator {
position: absolute;
bottom: 8px;
left: 50%;
transform: translateX(-50%);
width: 134px;
height: 5px;
background: #000;
border-radius: 3px;
}