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

319 lines
5.0 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.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: #1f3528;
background: #edf8f1;
}
button {
border: 0;
background: transparent;
color: inherit;
font: inherit;
}
.center-page {
min-height: 100vh;
overflow-y: auto;
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;
font-size: 1.35em;
font-weight: 700;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #153d28;
}
.icon-button,
.language-button {
min-width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
color: #1f6f46;
}
.icon-button span {
display: block;
font-size: 2em;
line-height: 1;
}
.language-button {
justify-self: end;
padding: 0 10px;
border-radius: 999px;
background: #dff5e7;
color: #24724a;
font-size: 0.86em;
}
.content {
display: flex;
flex-direction: column;
gap: 14px;
padding: 16px;
}
.surface-card {
border: 1px solid #b7e0c6;
border-radius: 18px;
background: #ffffff;
box-shadow: 0 8px 20px rgba(69, 129, 89, 0.12);
}
.hero-card {
position: relative;
padding: 18px;
background: #f8fff9;
border-color: #94d9ae;
overflow: hidden;
}
.hero-card::after {
content: "";
position: absolute;
right: 16px;
bottom: 16px;
width: 64px;
height: 64px;
border-radius: 20px;
background: #d7f5e2;
border: 10px solid #ecfbf1;
}
.hero-row {
position: relative;
z-index: 1;
display: flex;
justify-content: space-between;
gap: 10px;
}
.hero-title {
font-weight: 700;
color: #244735;
}
.hero-link {
flex-shrink: 0;
padding: 4px 10px;
border-radius: 999px;
background: #fff3c8;
color: #846216;
font-weight: 700;
}
.hero-value {
position: relative;
z-index: 1;
margin-top: 6px;
font-size: 1.65em;
font-weight: 800;
color: #105c36;
}
.summary-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.summary-item {
padding: 12px;
border-radius: 14px;
border: 1px solid #cce9d7;
background: #fbfffc;
}
.summary-item:nth-child(2n) {
background: #f7fbec;
}
.summary-label {
font-size: 0.83em;
font-weight: 700;
color: #587060;
}
.summary-value {
margin-top: 4px;
font-size: 1.12em;
font-weight: 800;
color: #153d28;
}
.task-card {
padding: 14px 16px 16px;
background: #fffaf0;
border-color: #e7c777;
}
.task-title {
margin-bottom: 10px;
font-weight: 800;
color: #3f3826;
}
.task-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
text-align: center;
}
.task-label {
margin-bottom: 6px;
font-size: 0.9em;
font-weight: 800;
color: #4b4536;
}
.task-value {
font-size: 0.95em;
font-weight: 800;
color: #1f3528;
}
.menu-card {
padding: 10px;
background: #fbfffc;
}
.section-title {
padding: 4px 4px 10px;
font-size: 1.02em;
font-weight: 800;
color: #1f5134;
}
.section-title:empty {
display: none;
}
.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 + 2) {
background: #eefbf3;
}
.menu-row:nth-of-type(4n + 3) {
background: #f7fbec;
}
.menu-row:nth-of-type(4n + 4) {
background: #eef7fb;
}
.menu-row:nth-of-type(4n + 5) {
background: #fff5ed;
}
.menu-label {
flex: 1;
min-width: 0;
display: flex;
align-items: center;
gap: 12px;
}
.menu-icon {
width: 2.65em;
height: 2.65em;
display: flex;
flex-shrink: 0;
align-items: center;
justify-content: center;
border-radius: 14px;
border: 1px solid #bce5ca;
background: #d7f5e2;
color: #1e6b43;
font-size: 1em;
font-weight: 800;
}
.menu-text {
min-width: 0;
font-size: 1em;
font-weight: 800;
color: #173a28;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.arrow {
flex-shrink: 0;
color: #7fa48d;
font-size: 1.35em;
font-weight: 800;
}
.toast {
position: fixed;
left: 50%;
bottom: calc(22px + env(safe-area-inset-bottom));
z-index: 20;
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;
}