Files
2026-07-09 17:30:10 +08:00

613 lines
11 KiB
CSS

.page-profile {
background: #f8f4ec;
}
.profile-hero {
position: relative;
overflow: hidden;
padding: 62px 0 34px;
background:
radial-gradient(circle at 78% 12%, rgba(196, 146, 69, .18), transparent 25%),
linear-gradient(125deg, #fffaf0 0%, #f4eadb 48%, #eaf2ee 100%);
}
.profile-hero:before {
content: "";
position: absolute;
inset: 0;
background-image:
linear-gradient(rgba(138, 50, 43, .05) 1px, transparent 1px),
linear-gradient(90deg, rgba(138, 50, 43, .05) 1px, transparent 1px);
background-size: 64px 64px;
mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.profile-hero-grid {
position: relative;
z-index: 2;
display: grid;
grid-template-columns: minmax(0, 1fr) 420px;
gap: 24px;
align-items: stretch;
}
.profile-card,
.profile-stats,
.panel,
.side-card {
border: 1px solid rgba(224, 211, 189, .84);
border-radius: 18px;
background: rgba(255, 253, 248, .86);
box-shadow: 0 22px 58px rgba(57, 48, 36, .08);
}
.profile-card {
display: grid;
grid-template-columns: 116px 1fr;
gap: 28px;
padding: 34px;
align-items: center;
}
.avatar-wrap {
position: relative;
width: 108px;
height: 108px;
}
.avatar {
width: 108px;
height: 108px;
border-radius: 28px;
display: grid;
place-items: center;
color: #fff;
background:
radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .38), transparent 24%),
linear-gradient(145deg, var(--red), #ee8d60 52%, var(--green));
font-family: "SimSun", "Songti SC", serif;
font-size: 46px;
font-weight: 900;
box-shadow: 0 18px 40px rgba(200, 59, 50, .18);
}
.avatar-wrap span {
position: absolute;
right: -4px;
bottom: -4px;
width: 28px;
height: 28px;
border: 5px solid #fffdf8;
border-radius: 50%;
background: #31bf6b;
}
.profile-info h1 {
margin-bottom: 12px;
font-size: 44px;
}
.profile-info p {
max-width: 720px;
color: #636c65;
font-size: 17px;
line-height: 1.9;
}
.profile-tags,
.mini-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.profile-tags span,
.mini-actions span {
padding: 7px 12px;
border-radius: 999px;
color: var(--red);
background: #f8e5df;
font-size: 14px;
font-weight: 800;
}
.profile-stats {
display: grid;
grid-template-columns: repeat(2, 1fr);
padding: 22px;
gap: 14px;
}
.profile-stats div {
min-height: 116px;
padding: 20px;
border-radius: 14px;
display: grid;
align-content: center;
background: rgba(247, 239, 226, .72);
}
.profile-stats strong {
color: var(--green);
font-size: 34px;
line-height: 1;
}
.profile-stats span,
.panel-head p,
.data-list span,
.todo-list span,
.family-card p,
.feature-tile p,
.content-tile p {
color: var(--muted);
line-height: 1.75;
}
.dashboard-section {
padding-top: 42px;
}
.dashboard-layout {
display: grid;
grid-template-columns: 300px minmax(0, 1fr);
gap: 24px;
align-items: start;
}
.dashboard-side {
position: sticky;
top: 106px;
display: grid;
gap: 20px;
}
.side-card,
.panel {
padding: 26px;
}
.side-card h2,
.panel h2 {
margin-bottom: 8px;
font-family: "SimSun", "Songti SC", serif;
font-size: 30px;
}
.user-actions {
display: grid;
gap: 10px;
}
.user-actions a,
.todo-list a {
display: block;
padding: 15px 16px;
border: 1px solid var(--line);
border-radius: 14px;
background: #fbf7ed;
transition: transform .22s ease, border-color .22s ease, background .22s ease, color .22s ease;
}
.user-actions a:hover,
.todo-list a:hover {
transform: translateX(5px);
border-color: rgba(71, 111, 99, .28);
background: #eef4ef;
}
.user-actions span,
.todo-list b {
display: block;
color: var(--ink);
font-weight: 900;
}
.user-actions b {
display: block;
margin-top: 4px;
color: var(--muted);
font-size: 13px;
}
.logout-link span {
color: var(--red);
}
.card-head,
.panel-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 18px;
margin-bottom: 22px;
}
.card-head span {
padding: 6px 11px;
border-radius: 999px;
color: #fff;
background: var(--red);
font-weight: 800;
}
.todo-list,
.dashboard-main {
display: grid;
gap: 18px;
}
.panel-head.compact {
margin-bottom: 18px;
}
.panel-head h2 {
margin-bottom: 6px;
}
.family-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
}
.family-card {
display: grid;
grid-template-columns: 112px 1fr;
gap: 20px;
min-height: 190px;
padding: 20px;
border: 1px solid var(--line);
border-radius: 16px;
background: #fffdf8;
transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.family-card:hover,
.feature-tile:hover,
.content-tile:hover {
border-color: rgba(196, 146, 69, .42);
box-shadow: 0 22px 52px rgba(57, 48, 36, .1);
}
.book-cover {
min-height: 150px;
border-radius: 10px;
display: grid;
place-items: center;
color: #fffdf8;
background:
linear-gradient(90deg, transparent calc(100% - 16px), rgba(255, 255, 255, .7) calc(100% - 15px), transparent calc(100% - 14px)),
linear-gradient(135deg, #0f405c, #092c42);
font-family: "SimSun", "Songti SC", serif;
font-size: 22px;
line-height: 1.7;
text-align: center;
box-shadow: inset -12px 0 0 rgba(255, 255, 255, .08);
}
.book-cover.alt {
background:
linear-gradient(90deg, transparent calc(100% - 16px), rgba(255, 255, 255, .7) calc(100% - 15px), transparent calc(100% - 14px)),
linear-gradient(135deg, #173c35, #785f35);
}
.family-card h3,
.feature-tile h3,
.content-tile h3 {
margin-bottom: 8px;
font-size: 24px;
}
.feature-grid,
.content-grid,
.service-grid {
display: grid;
gap: 16px;
}
.management-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feature-tile,
.content-tile {
position: relative;
overflow: hidden;
min-height: 170px;
padding: 22px;
border: 1px solid var(--line);
border-radius: 16px;
background: #fffdf8;
transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.feature-tile span,
.content-tile span {
width: 48px;
height: 48px;
margin-bottom: 18px;
border-radius: 14px;
display: grid;
place-items: center;
color: var(--red);
background: #f7e4dc;
font-weight: 900;
}
.feature-tile:after,
.content-tile:after {
content: "";
position: absolute;
inset: 0 auto 0 -42%;
width: 34%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .52), transparent);
transform: skewX(-18deg);
transition: left .54s ease;
}
.feature-tile:hover:after,
.content-tile:hover:after {
left: 112%;
}
.content-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.content-tile.large {
grid-column: span 2;
color: #fff;
background: linear-gradient(145deg, var(--green-dark), var(--green));
}
.content-tile.large p,
.content-tile.large h3 {
color: rgba(255, 255, 255, .86);
}
.content-tile.large span {
color: var(--green-dark);
background: rgba(255, 253, 248, .9);
}
.profile-data-layout {
display: grid;
grid-template-columns: 1.15fr .85fr;
gap: 18px;
}
.link-btn {
flex: 0 0 auto;
padding: 9px 14px;
border-radius: 999px;
color: var(--red);
background: #f8e5df;
font-weight: 900;
}
.data-list {
display: grid;
border-top: 1px solid var(--line);
}
.data-list p {
display: grid;
grid-template-columns: 150px 1fr;
gap: 16px;
margin: 0;
padding: 16px 0;
border-bottom: 1px solid var(--line);
}
.data-list b {
color: var(--ink);
}
.service-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.service-grid a {
min-height: 88px;
padding: 18px;
border-radius: 14px;
display: grid;
place-items: center;
color: #6f4a37;
background: #fbf7ed;
border: 1px solid var(--line);
font-weight: 900;
transition: transform .22s ease, color .22s ease, background .22s ease;
}
.service-grid a:hover {
color: #fff;
background: var(--green);
transform: translateY(-3px);
}
.tilt-card {
transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift, 0));
transition: transform .18s ease, box-shadow .24s ease, border-color .24s ease;
}
.tilt-card:hover {
--lift: -5px;
}
.logout-modal {
position: fixed;
inset: 0;
z-index: 80;
display: grid;
place-items: center;
padding: 24px;
opacity: 0;
pointer-events: none;
transition: opacity .22s ease;
}
.logout-modal.show {
opacity: 1;
pointer-events: auto;
}
.logout-modal-backdrop {
position: absolute;
inset: 0;
background: rgba(32, 35, 34, .46);
backdrop-filter: blur(10px);
}
.logout-dialog {
position: relative;
z-index: 1;
width: min(420px, 100%);
padding: 34px;
border-radius: 8px;
background: #fff;
box-shadow: 0 28px 80px rgba(61, 73, 68, .24);
text-align: center;
transform: translateY(12px) scale(.98);
transition: transform .22s ease;
}
.logout-modal.show .logout-dialog {
transform: translateY(0) scale(1);
}
.logout-close {
position: absolute;
top: 14px;
right: 14px;
width: 34px;
height: 34px;
border: 0;
border-radius: 50%;
background: #f4f1eb;
color: #7f786f;
font-size: 24px;
line-height: 1;
cursor: pointer;
transition: transform .2s ease, background .2s ease, color .2s ease;
}
.logout-close:hover {
transform: rotate(90deg);
background: var(--red-soft);
color: var(--red);
}
.logout-icon {
display: inline-grid;
place-items: center;
width: 58px;
height: 58px;
border-radius: 50%;
margin-bottom: 16px;
background: var(--red-soft);
color: var(--red);
font-weight: 800;
}
.logout-dialog h2 {
margin: 0 0 10px;
font-size: 24px;
color: var(--ink);
}
.logout-dialog p {
margin: 0;
color: var(--muted);
line-height: 1.8;
}
.logout-actions {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
margin-top: 26px;
}
.logout-actions .btn {
justify-content: center;
}
.logout-modal-open {
overflow: hidden;
}
@media (max-width: 1120px) {
.profile-hero-grid,
.dashboard-layout,
.profile-data-layout {
grid-template-columns: 1fr;
}
.dashboard-side {
position: static;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.content-grid,
.management-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 760px) {
.profile-hero {
padding-top: 36px;
}
.profile-card {
grid-template-columns: 1fr;
padding: 24px;
}
.profile-info h1 {
font-size: 36px;
}
.profile-stats,
.dashboard-side,
.family-grid,
.content-grid,
.management-grid,
.service-grid {
grid-template-columns: 1fr;
}
.family-card {
grid-template-columns: 88px 1fr;
}
.book-cover {
min-height: 120px;
font-size: 18px;
}
.content-tile.large {
grid-column: span 1;
}
.panel-head,
.card-head {
display: grid;
}
.data-list p {
grid-template-columns: 1fr;
gap: 4px;
}
.logout-dialog {
padding: 30px 22px;
}
.logout-actions {
grid-template-columns: 1fr;
}
}