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

178 lines
2.7 KiB
CSS

* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: "Baloo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
html,
body {
width: 100%;
min-height: 100%;
background: #edf8f1;
color: #1f3528;
-webkit-text-size-adjust: 100%;
}
button,
input {
font: inherit;
}
button {
border: 0;
background: transparent;
color: inherit;
}
.page {
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.32em;
font-weight: 800;
text-align: center;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.back-button,
.lang-button {
min-width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 800;
color: #1f6f46;
}
.back-button span {
font-size: 2em;
line-height: 1;
}
.lang-button {
justify-self: end;
padding: 0 10px;
border-radius: 999px;
background: #dff5e7;
font-size: 0.86em;
}
.content {
display: flex;
flex-direction: column;
gap: 14px;
padding: 16px;
}
.search-card,
.list-card,
.empty-card {
border: 1px solid #b7e0c6;
border-radius: 18px;
background: #ffffff;
box-shadow: 0 8px 20px rgba(69, 129, 89, 0.12);
}
.search-card {
display: flex;
gap: 8px;
padding: 10px;
background: #fbfffc;
}
.search-card input {
flex: 1;
min-width: 0;
border: 1px solid #cce9d7;
border-radius: 12px;
background: #f8fff9;
padding: 10px 12px;
outline: none;
color: #1f3528;
font-weight: 700;
}
.search-card button,
.primary-button {
flex-shrink: 0;
border-radius: 12px;
background: #dff5e7;
padding: 0 14px;
color: #1f6f46;
font-weight: 800;
}
.list-card {
overflow: hidden;
}
.row {
width: 100%;
min-height: 4.2em;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 12px 14px;
border-bottom: 1px solid #e2f1e7;
}
.row:last-child {
border-bottom: 0;
}
.row:nth-child(2n) {
background: #fbfffc;
}
.row-title {
font-weight: 800;
color: #173a28;
}
.row-subtitle {
margin-top: 4px;
color: #6d7e72;
font-size: 0.86em;
font-weight: 700;
}
.tag {
flex-shrink: 0;
border-radius: 999px;
background: #fff3c8;
padding: 5px 9px;
color: #846216;
font-size: 0.82em;
font-weight: 800;
}
.empty-card {
padding: 24px 16px;
text-align: center;
color: #6d7e72;
font-weight: 700;
}