chatapp-h5/h5/host-setting/host-setting.css
2026-04-24 21:13:53 +08:00

270 lines
4.1 KiB
CSS

* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: "Baloo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
line-height: 1.35;
}
html,
body {
width: 100%;
min-height: 100%;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: 100%;
-webkit-overflow-scrolling: touch;
-webkit-tap-highlight-color: transparent;
}
body {
color: rgba(0, 0, 0, 0.8);
background: #edf8f1;
}
button {
border: 0;
background: transparent;
color: inherit;
font: inherit;
}
.host-setting {
width: 100vw;
min-height: 100vh;
background: #edf8f1;
}
.page-header {
position: sticky;
top: 0;
z-index: 10;
display: grid;
grid-template-columns: 44px 1fr 58px;
align-items: center;
min-height: calc(48px + env(safe-area-inset-top));
padding: env(safe-area-inset-top) 10px 0;
background: #f8fff9;
border-bottom: 1px solid #cce9d7;
box-shadow: 0 4px 14px rgba(75, 137, 95, 0.14);
}
.page-header h1 {
min-width: 0;
color: #153d28;
font-size: 1.25em;
font-weight: 700;
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.header-icon,
.lang-button {
min-width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
color: #1f6f46;
font-weight: 700;
}
.header-icon {
padding: 6px;
}
.header-icon img {
width: 100%;
height: 100%;
display: block;
}
.lang-button {
justify-self: end;
padding: 0 10px;
border-radius: 999px;
background: #dff5e7;
font-size: 0.86em;
}
.page-content {
position: relative;
display: flex;
flex-direction: column;
gap: 2vw;
padding: 16px;
}
.setting-section {
display: flex;
flex-direction: column;
gap: 2vw;
}
.section-head {
display: flex;
align-items: center;
justify-content: space-between;
}
.section-title,
.kyc-title {
display: flex;
align-items: center;
color: #173a28;
font-size: 1.4em;
font-weight: 700;
}
.more-button {
display: flex;
align-items: center;
color: rgba(0, 0, 0, 0.42);
font-weight: 500;
}
.surface-card {
border: 1px solid #b7e0c6;
border-radius: 20px;
background: #fbfffc;
box-shadow: 0 8px 20px rgba(69, 129, 89, 0.12);
}
.empty-row {
width: 100%;
min-height: 54px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px;
color: rgba(0, 0, 0, 0.8);
font-weight: 600;
}
.bank-detail,
.kyc-detail {
width: 100%;
display: flex;
flex-direction: column;
gap: 2vw;
padding: 12px;
}
.field-label {
color: rgba(0, 0, 0, 0.8);
font-weight: 600;
}
.field-value,
.field-text {
color: rgba(0, 0, 0, 0.42);
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.field-text {
font-size: 0.8em;
overflow-wrap: break-word;
white-space: normal;
}
.status-text {
margin-left: 4px;
font-size: 0.9em;
font-weight: 700;
}
.status-pass {
color: #2fb95d;
}
.status-failed {
color: #e04444;
}
.status-pending {
color: #d79a12;
}
.icon-route {
width: 6vw;
min-width: 24px;
display: flex;
align-items: center;
justify-content: center;
}
.arrow-icon {
display: block;
width: 6vw;
min-width: 24px;
max-width: 34px;
}
.preview-list {
display: flex;
align-items: center;
gap: 4px;
flex-wrap: wrap;
}
.preview-list img {
display: block;
width: 15vw;
aspect-ratio: 1 / 1;
object-fit: cover;
border-radius: 5vw;
background: #edf8f1;
}
.toast {
position: fixed;
left: 50%;
bottom: calc(22px + env(safe-area-inset-bottom));
z-index: 30;
max-width: calc(100% - 40px);
transform: translateX(-50%);
padding: 9px 13px;
border-radius: 999px;
background: rgba(22, 56, 36, 0.92);
color: #fff;
font-size: 0.9em;
font-weight: 700;
text-align: center;
}
[hidden] {
display: none !important;
}
[dir="rtl"] .status-text {
margin-right: 4px;
margin-left: 0;
}
[dir="rtl"] .arrow-icon,
[dir="rtl"] .header-icon img {
transform: scaleX(-1);
}
@media screen and (max-width: 360px) {
* {
font-size: 10px;
}
}
@media screen and (min-width: 360px) {
* {
font-size: 12px;
}
}
@media screen and (min-width: 768px) {
* {
font-size: 24px;
}
}