hyapp-h5/cp-rules/style.css
2026-06-11 18:19:38 +08:00

728 lines
11 KiB
CSS

* {
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
}
:root {
--app-scale: 1;
}
html,
body {
margin: 0;
width: 100%;
min-height: 100%;
overflow-x: hidden;
background: #732cff;
color: #fff;
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
}
button {
border: 0;
padding: 0;
background: transparent;
color: inherit;
font: inherit;
outline: none;
}
[hidden] {
display: none !important;
}
.app-viewport {
position: relative;
width: 375px;
min-height: 2066px;
margin: 0 auto;
transform: scale(var(--app-scale));
transform-origin: top center;
}
.page {
position: relative;
width: 375px;
min-height: 2066px;
overflow: hidden;
background: linear-gradient(180deg, #732cff 0%, #d369ff 100%);
}
.note-page {
background-color: #732cff;
background-image:
url('./assets/note-bg-main.png'),
linear-gradient(180deg, #732cff 0%, #d369ff 100%);
background-position:
center top,
center top;
background-repeat: repeat-y, no-repeat;
background-size:
769px 1367px,
100% 100%;
}
.ambient-bg {
position: absolute;
pointer-events: none;
object-fit: cover;
opacity: 0.6;
}
.ambient-bg-note {
left: -198px;
top: -56px;
width: 769px;
height: 1367px;
display: none;
}
.ambient-bg-rights {
left: -82px;
top: -71px;
width: 537px;
height: 954px;
}
.status-bar {
position: absolute;
z-index: 20;
left: 0;
top: 0;
width: 375px;
height: 44px;
visibility: hidden;
}
.status-frame {
position: absolute;
inset: 0;
width: 375px;
height: 44px;
}
.status-time {
position: absolute;
left: 33.9px;
top: 13px;
width: 54px;
height: 15px;
color: #fff;
font-size: 15px;
line-height: 15px;
text-align: center;
}
.status-cellular {
position: absolute;
left: 294.34px;
top: 15px;
width: 17px;
height: 11.33px;
}
.status-wifi {
position: absolute;
left: 316.34px;
top: 16.33px;
width: 15.33px;
height: 11px;
}
.status-battery {
position: absolute;
left: 336.67px;
top: 16.33px;
width: 24.33px;
height: 11.33px;
}
.nav-bar {
position: absolute;
z-index: 20;
left: 0;
top: 44px;
width: 375px;
height: 44px;
}
.back-button {
position: absolute;
left: 16px;
top: 10px;
width: 24px;
height: 24px;
}
.back-button img {
display: block;
width: 24px;
height: 24px;
}
.nav-bar h1 {
position: absolute;
left: 50%;
top: 10px;
margin: 0;
color: #fff;
font-size: 18px;
font-weight: 500;
line-height: 18px;
text-align: center;
white-space: nowrap;
letter-spacing: 0;
transform: translateX(-50%);
}
.top-tabs {
position: absolute;
z-index: 30;
left: 0;
top: 95px;
width: 375px;
height: 51px;
}
.top-tab {
position: absolute;
top: 0;
height: 51px;
color: #fff;
font-size: 14px;
line-height: 14px;
text-align: center;
cursor: pointer;
}
.top-tab-note {
left: 40px;
width: 139px;
}
.top-tab-rights {
left: 197px;
width: 139px;
}
.tab-img {
position: absolute;
inset: 0;
width: 100%;
height: 51px;
object-fit: fill;
pointer-events: none;
}
.tab-unselected {
display: block;
}
.tab-selected {
display: none;
}
[data-active-tab='note'] .top-tab-note .tab-selected,
[data-active-tab='rights'] .top-tab-rights .tab-selected {
display: block;
}
[data-active-tab='note'] .top-tab-note .tab-unselected,
[data-active-tab='rights'] .top-tab-rights .tab-unselected {
display: none;
}
.top-tab span {
position: absolute;
left: 0;
top: 19px;
z-index: 2;
width: 100%;
height: 14px;
line-height: 14px;
}
.tab-panel {
position: absolute;
left: 0;
top: 0;
width: 375px;
}
.ornate-card {
position: absolute;
left: 13px;
width: 350px;
color: #fff;
}
.card-art {
position: absolute;
inset: 0;
overflow: hidden;
border: 1px solid rgba(255, 211, 255, 0.82);
border-radius: 20px;
background:
url('./assets/panel-top.png') left top / 350px 65px no-repeat,
url('./assets/panel-bottom.png') left bottom / 350px 73px no-repeat,
url('./assets/panel-mid.png') left 65px / 350px 86px repeat-y,
radial-gradient(
circle at 50% 18%,
rgba(255, 255, 255, 0.18),
transparent 32%
),
linear-gradient(
180deg,
rgba(231, 90, 255, 0.78) 0%,
rgba(194, 55, 255, 0.68) 100%
);
box-shadow:
inset 0 0 18px rgba(255, 255, 255, 0.38),
inset 0 0 34px rgba(118, 25, 255, 0.38),
0 0 10px rgba(255, 184, 255, 0.56);
mix-blend-mode: normal;
pointer-events: none;
}
.card-art::after {
content: '';
position: absolute;
inset: 0;
background:
url('./assets/panel-top.png') left top / 350px 65px no-repeat,
url('./assets/panel-bottom.png') left bottom / 350px 73px no-repeat,
url('./assets/panel-mid.png') left 65px / 350px 86px repeat-y;
mix-blend-mode: multiply;
opacity: 0.9;
}
.title-rule {
position: absolute;
left: 30px;
top: 44px;
width: 290px;
height: 20px;
pointer-events: none;
}
.title-rule img {
display: block;
width: 290px;
height: 20px;
object-fit: fill;
}
.ornate-card h2 {
position: absolute;
left: 0;
top: 19px;
width: 350px;
margin: 0;
color: #fff;
font-size: 16px;
font-weight: 400;
line-height: 16px;
text-align: center;
letter-spacing: 0;
}
.ornate-card p,
.ornate-card dt,
.ornate-card dd {
margin: 0;
color: #fff;
font-size: 12px;
font-weight: 400;
line-height: 16px;
letter-spacing: 0;
}
.intro-card {
top: 153px;
height: 223px;
}
.intro-card p {
position: absolute;
left: 20px;
width: 310px;
text-align: justify;
}
.intro-card p:nth-of-type(1) {
top: 88px;
}
.intro-card p:nth-of-type(2) {
top: 168px;
}
.form-card {
top: 388px;
height: 846px;
}
.form-card h3 {
position: absolute;
left: 20px;
top: 72px;
width: 310px;
margin: 0;
color: #fffb1b;
font-size: 12px;
font-weight: 600;
line-height: 16px;
letter-spacing: 0;
}
.form-card > p {
position: absolute;
left: 20px;
width: 310px;
}
.form-card > p:nth-of-type(1) {
top: 94px;
}
.form-card > p:nth-of-type(2) {
top: 244px;
}
.form-card > p:nth-of-type(3) {
top: 348px;
}
.form-card .form-note {
top: 806px;
color: #fffb1b;
font-size: 10px;
line-height: 14px;
}
.crop-shot {
position: absolute;
left: 20px;
width: 310px;
margin: 0;
overflow: hidden;
border-radius: 5px;
}
.crop-shot img {
position: absolute;
display: block;
pointer-events: none;
}
.gift-panel-shot {
top: 114px;
height: 122px;
}
.gift-panel-shot img {
left: -4px;
top: -58px;
width: 310px;
height: auto;
}
.relation-select-shot {
top: 298px;
height: 42px;
border-radius: 18px;
}
.relation-select-shot img {
left: -5px;
top: -28px;
width: 310px;
height: auto;
}
.invitation-shot {
position: absolute;
left: 20px;
top: 383px;
width: 310px;
height: 408px;
margin: 0;
overflow: hidden;
border-radius: 6px;
}
.invitation-shot img {
display: block;
width: 310px;
height: auto;
transform: translateY(-2px);
}
.intimacy-card {
top: 1251px;
height: 174px;
}
.intimacy-card p {
position: absolute;
left: 20px;
top: 69px;
width: 310px;
text-align: justify;
}
.faq-card {
top: 1437px;
height: 456px;
}
.faq-list {
position: absolute;
left: 20px;
top: 68px;
width: 310px;
margin: 0;
}
.faq-list dt {
color: #fffb1b;
font-weight: 600;
}
.faq-list dd {
margin: 2px 0 8px;
}
.rights-panel {
min-height: 812px;
}
[data-active-tab='rights'] .page {
min-height: 812px;
}
[data-active-tab='rights'] {
min-height: 812px;
}
.relation-tabs {
position: absolute;
left: 52px;
top: 154px;
width: 292px;
height: 25px;
}
.relation-tabs button {
position: absolute;
top: 0;
min-width: 40px;
height: 25px;
color: rgba(255, 255, 255, 0.5);
font-size: 16px;
line-height: 16px;
text-align: left;
}
.relation-tabs button:nth-child(1) {
left: 0;
}
.relation-tabs button:nth-child(2) {
left: 107px;
}
.relation-tabs button:nth-child(3) {
left: 236px;
}
.relation-tabs .is-active {
color: #fffb1b;
}
.relation-tabs .is-active::after {
content: '';
position: absolute;
left: 3px;
top: 22px;
width: 16px;
height: 3px;
border-radius: 32px;
background: #fffb1b;
}
.rights-table {
position: absolute;
left: 12px;
top: 191px;
width: 351px;
height: 579px;
overflow: hidden;
border-radius: 12px;
background: rgba(0, 0, 0, 0.3);
}
.rights-column {
position: absolute;
left: 117px;
top: 0;
width: 117px;
height: 578px;
object-fit: fill;
pointer-events: none;
}
.table-line {
position: absolute;
left: 0;
width: 351px;
height: 1px;
background: rgba(255, 255, 255, 0.3);
}
.table-line-head {
top: 39px;
}
.row-1 {
top: 116px;
left: 234px;
width: 117px;
}
.row-2 {
top: 193px;
left: 234px;
width: 117px;
}
.row-3 {
top: 270px;
left: 234px;
width: 117px;
}
.row-4 {
top: 347px;
}
.row-5 {
top: 424px;
left: 234px;
width: 117px;
}
.row-6 {
top: 501px;
left: 234px;
width: 117px;
}
.table-vline {
position: absolute;
top: 0;
width: 1px;
height: 579px;
background: rgba(255, 255, 255, 0.3);
}
.vline-1 {
left: 117px;
}
.vline-2 {
left: 234px;
}
.rights-table span {
position: absolute;
color: #fff;
font-size: 12px;
line-height: 14.5px;
text-align: center;
white-space: nowrap;
}
.head {
top: 12px;
}
.head-level {
left: 45px;
}
.head-intimacy {
left: 134px;
}
.head-rights {
left: 276px;
}
.level-1 {
left: 46px;
top: 186px;
}
.level-2 {
left: 46px;
top: 455px;
}
.intimacy-1 {
left: 172px;
top: 186px;
}
.intimacy-2 {
left: 147px;
top: 455px;
}
.badge {
position: absolute;
left: 262px;
width: 60px;
height: 60px;
object-fit: contain;
}
.badge-1 {
top: 48px;
}
.badge-2 {
top: 125px;
}
.badge-3 {
top: 202px;
}
.badge-4 {
top: 279px;
}
.badge-5 {
top: 356px;
}
.badge-6 {
top: 433px;
}
.badge-7 {
top: 510px;
}
[data-active-tab='rights'] .note-panel,
[data-active-tab='note'] .rights-panel {
display: none;
}
[dir='rtl'] .faq-list,
[dir='rtl'] .ornate-card p,
[dir='rtl'] .form-card h3 {
text-align: right;
}