chatapp-h5/h5/agency-center/agency-center.css
2026-04-24 20:42:36 +08:00

415 lines
6.7 KiB
CSS

@font-face {
font-family: "Baloo 2";
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Baloo 2";
font-weight: 600;
font-style: normal;
font-display: swap;
}
* {
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.4;
}
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;
overflow-x: hidden;
}
body {
color: #21342a;
background: #edf8f1;
}
button {
border: 0;
background: transparent;
color: inherit;
font: inherit;
}
.agency-center {
min-height: 100vh;
overflow-y: auto;
background-color: #edf8f1;
background-image: none;
}
.agency-center::-webkit-scrollbar {
display: none;
}
.page-header {
position: sticky;
top: 0;
z-index: 10;
display: grid;
grid-template-columns: 44px 1fr auto;
align-items: center;
width: 100%;
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;
font-size: 1.35em;
font-weight: 600;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #153d28;
}
.header-actions {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 6px;
}
.icon-button,
.message-button,
.language-button {
min-width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
color: #1f6f46;
}
.icon-button span {
display: block;
font-size: 2em;
line-height: 1;
}
.message-button {
width: 36px;
border-radius: 50%;
background: #fff3c8;
color: #7d5b09;
}
.message-button span {
width: 16px;
height: 16px;
display: block;
border-radius: 50%;
background: #f3c74e;
color: #5d4200;
font-size: 0.8em;
line-height: 16px;
text-align: center;
}
.language-button {
min-width: 42px;
padding: 0 10px;
border-radius: 999px;
background: #dff5e7;
color: #24724a;
font-size: 0.9em;
}
.content {
position: relative;
z-index: 2;
display: flex;
flex-direction: column;
gap: 14px;
padding: 16px;
}
.surface-card {
position: relative;
border: 1px solid #b7e0c6;
border-radius: 18px;
background: #ffffff;
box-shadow: 0 8px 20px rgba(69, 129, 89, 0.12);
}
.salary-card {
padding: 18px;
background: #f8fff9;
border-color: #94d9ae;
overflow: hidden;
}
.salary-card::after {
content: "";
position: absolute;
right: 18px;
bottom: 18px;
width: 64px;
height: 64px;
border-radius: 20px;
background: #d7f5e2;
border: 10px solid #ecfbf1;
opacity: 0.9;
}
.salary-title {
position: relative;
z-index: 1;
display: flex;
justify-content: space-between;
gap: 8px;
margin-bottom: 5px;
}
.salary-title span {
min-width: 0;
font-weight: 600;
color: #244735;
}
.salary-title button {
flex-shrink: 0;
padding: 4px 10px;
border-radius: 999px;
background: #fff3c8;
color: #846216;
font-weight: 600;
}
.salary-amount {
position: relative;
z-index: 1;
font-size: 1.5em;
font-weight: 600;
color: #105c36;
}
.task-card {
margin: 0 1%;
padding: 16px;
background: #fffaf0;
border-color: #e7c777;
}
.task-title {
margin-bottom: 12px;
font-weight: 700;
color: #3f3826;
}
.task-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
text-align: center;
}
.task-cell {
min-width: 0;
padding: 8px;
border-radius: 12px;
background: #fffdf7;
border: 1px solid #f0dfaa;
}
.task-label {
margin-bottom: 5px;
font-size: 0.86em;
font-weight: 700;
color: #4b4536;
}
.task-value {
font-size: 0.95em;
font-weight: 800;
color: #1f3528;
overflow-wrap: anywhere;
}
.menu-card {
margin: 0 1% 12px;
padding: 10px;
background: #fbfffc;
}
.menu-row {
width: 100%;
min-height: 4.5em;
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
padding: 10px 12px;
border-radius: 14px;
text-align: left;
}
.menu-row:nth-of-type(4n + 1) {
background: #eefbf3;
}
.menu-row:nth-of-type(4n + 3) {
background: #f7fbec;
}
.menu-row:nth-of-type(4n + 5) {
background: #eef7fb;
}
.menu-row:nth-of-type(4n + 7) {
background: #fff5ed;
}
.menu-label {
flex: 1;
min-width: 0;
display: flex;
align-items: center;
gap: 12px;
}
.menu-label img,
.menu-symbol {
display: flex;
width: 2.7em;
padding: 0.55em;
aspect-ratio: 1 / 1;
flex-shrink: 0;
align-items: center;
justify-content: center;
border-radius: 14px;
background: #d7f5e2;
border: 1px solid #bce5ca;
color: #1e6b43;
font-weight: 800;
}
.menu-row:nth-of-type(4n + 5) .menu-label img,
.menu-row:nth-of-type(4n + 5) .menu-symbol {
background: #dff2fb;
border-color: #c0e1f1;
}
.menu-row:nth-of-type(4n + 7) .menu-label img,
.menu-row:nth-of-type(4n + 7) .menu-symbol {
background: #ffe6d6;
border-color: #ffd2b7;
}
.menu-label span:last-child {
min-width: 0;
font-size: 1em;
font-weight: 600;
color: #244735;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.menu-row > img {
display: block;
width: 1.35em;
flex-shrink: 0;
opacity: 0.5;
}
.divider {
height: 1px;
margin: 0 12px;
background: #dbece0;
}
.modal-mask {
position: fixed;
inset: 0;
z-index: 30;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
background: rgba(0, 0, 0, 0.5);
}
.modal-dialog {
width: min(80vw, 320px);
padding: 14px;
border-radius: 12px;
background: #ffffff;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.modal-title {
color: rgba(0, 0, 0, 0.8);
font-weight: 700;
font-size: 1.2em;
}
.modal-message {
color: rgba(0, 0, 0, 0.8);
font-weight: 600;
text-align: center;
}
.modal-hint {
color: rgba(0, 0, 0, 0.45);
font-weight: 600;
font-size: 0.85em;
text-align: center;
}
.modal-action {
width: 50%;
min-width: 120px;
padding: 8px 12px;
border-radius: 999px;
background: #f3c74e;
color: #3f2b00;
font-weight: 800;
}
.toast {
position: fixed;
left: 50%;
bottom: calc(22px + env(safe-area-inset-bottom));
z-index: 40;
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"] .flip-img {
transform: rotate(180deg);
}