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

230 lines
3.8 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: #fff;
}
button {
border: 0;
background: transparent;
color: inherit;
font: inherit;
}
.platform-policy {
width: 100vw;
min-height: 100vh;
background-color: #fff;
background-image: url("/assets/secondBg-CSqvFWr0-1776148661447.png");
background-size: cover;
background-position: top center;
}
.page-header {
position: sticky;
top: 0;
z-index: 10;
display: grid;
grid-template-columns: 44px 1fr 44px;
align-items: center;
min-height: calc(48px + env(safe-area-inset-top));
padding: env(safe-area-inset-top) 10px 0;
background: rgba(255, 255, 255, 0.96);
}
.page-header h1 {
min-width: 0;
color: #111;
font-size: 1.25em;
font-weight: 700;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.back-button {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
}
.back-button svg {
width: 28px;
height: 28px;
}
.back-button path {
fill: none;
stroke: #111;
stroke-width: 3;
stroke-linecap: round;
stroke-linejoin: round;
}
.content {
position: relative;
z-index: 2;
padding: 16px;
}
.policy-stack {
display: flex;
flex-direction: column;
gap: 16px;
}
.policy-card {
position: relative;
padding: 16px 20vw 16px 16px;
border: 1px solid rgba(194, 217, 240, 0.82);
border-radius: 20px;
background: #fff;
box-shadow: 0 8px 20px rgba(69, 129, 89, 0.12);
}
.level-badge {
position: absolute;
top: -1vw;
right: 2vw;
width: 11vw;
min-width: 48px;
max-width: 82px;
aspect-ratio: 1 / 1;
background-image: url("/assets/levelBg--Rsqxs_B-1776148661447.png");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 1.5em;
font-weight: 400;
}
.policy-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 5px;
}
.policy-cell {
min-width: 0;
display: flex;
flex-direction: column;
align-items: center;
gap: 5px;
text-align: center;
}
.policy-cell.align-left {
width: max-content;
}
.policy-cell.align-right {
align-items: flex-end;
}
.label {
color: rgba(0, 0, 0, 0.8);
font-weight: 600;
}
.value {
color: rgba(0, 0, 0, 0.8);
font-weight: 500;
overflow-wrap: anywhere;
}
.empty-state {
min-height: 50vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 20px;
color: #666;
text-align: center;
}
.empty-icon {
margin-bottom: 16px;
font-size: 48px;
}
.empty-state p {
margin: 0;
font-size: 16px;
}
.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"] .policy-grid {
direction: rtl;
}
[dir="rtl"] .level-badge {
right: auto;
left: 2vw;
}
[dir="rtl"] .policy-card {
padding: 16px 16px 16px 20vw;
}
@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;
}
}