彩先知pc

This commit is contained in:
rain
2026-06-04 11:43:38 +08:00
parent 934046b8ef
commit 3a2081f395
243 changed files with 76952 additions and 3 deletions
+963
View File
@@ -0,0 +1,963 @@
/* ============================================================
usercenter.css - 用户中心页 (usercenter.html)
Comprehensive styles with responsive breakpoints
============================================================ */
/* === Container === */
.uc-container {
max-width: 1200px;
margin: 0 auto;
padding: 24px 20px 40px;
}
/* ============================================================
Profile Card
- White background with shadow
- Avatar on left, info in middle, actions on right
============================================================ */
.uc-profile-card {
background: var(--white);
border-radius: var(--radius-lg);
padding: 32px;
display: flex;
align-items: center;
gap: 24px;
box-shadow: var(--shadow-md);
margin-bottom: 24px;
position: relative;
overflow: hidden;
border: 1px solid var(--border-light);
}
/* Decorative gradient strip along the top */
.uc-profile-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, var(--primary), var(--gold), var(--orange), var(--purple));
}
/* Decorative soft radial glow behind avatar area */
.uc-profile-card::after {
content: '';
position: absolute;
top: 20px;
left: 20px;
width: 160px;
height: 160px;
background: radial-gradient(circle, rgba(16, 43, 106, 0.04) 0%, transparent 70%);
border-radius: 50%;
pointer-events: none;
}
/* --- Avatar --- */
.uc-avatar-wrap {
position: relative;
z-index: 1;
flex-shrink: 0;
}
.uc-avatar {
width: 88px;
height: 88px;
border-radius: 50%;
border: 3px solid var(--gold);
object-fit: cover;
box-shadow: 0 4px 16px rgba(253, 185, 51, 0.25);
cursor: pointer;
transition: transform 0.3s ease, box-shadow 0.3s ease;
display: block;
}
.uc-avatar:hover {
transform: scale(1.06);
box-shadow: 0 6px 24px rgba(253, 185, 51, 0.4);
}
/* --- User Info --- */
.uc-info {
flex: 1;
min-width: 0;
position: relative;
z-index: 1;
}
.uc-nickname {
font-size: 22px;
font-weight: 700;
color: var(--text-dark);
margin-bottom: 6px;
line-height: 1.3;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.uc-level {
display: inline-block;
background: linear-gradient(135deg, var(--gold), var(--orange));
color: var(--primary);
font-size: 12px;
font-weight: 700;
padding: 2px 14px;
border-radius: 12px;
margin-bottom: 8px;
letter-spacing: 0.5px;
}
.uc-phone {
font-size: 13px;
color: var(--text-muted);
line-height: 1.4;
}
/* --- Action Buttons --- */
.uc-actions {
display: flex;
gap: 10px;
position: relative;
z-index: 1;
flex-shrink: 0;
}
.uc-btn {
padding: 9px 22px;
border-radius: 20px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
border: none;
transition: all 0.3s ease;
white-space: nowrap;
outline: none;
line-height: 1.4;
}
.uc-btn:active {
transform: scale(0.97);
}
.uc-btn-signin {
background: linear-gradient(135deg, var(--gold), var(--orange));
color: var(--primary);
}
.uc-btn-signin:hover {
box-shadow: 0 4px 18px rgba(253, 185, 51, 0.45);
transform: translateY(-2px);
}
.uc-btn-signin:active {
transform: translateY(0) scale(0.97);
}
.uc-btn-edit {
background: var(--bg-light);
color: var(--primary);
border: 1px solid var(--border-light);
}
.uc-btn-edit:hover {
background: var(--primary);
color: var(--white);
border-color: var(--primary);
box-shadow: 0 4px 14px rgba(16, 43, 106, 0.2);
transform: translateY(-2px);
}
.uc-btn-logout2 {
background: transparent;
color: var(--text-muted);
border: 1px solid var(--border-light);
}
.uc-btn-logout2:hover {
background: var(--red);
color: var(--white);
border-color: var(--red);
box-shadow: 0 4px 14px rgba(231, 76, 60, 0.25);
transform: translateY(-2px);
}
.uc-btn-expert {
background: var(--bg-light);
color: var(--purple);
border: 1px solid rgba(123, 45, 142, 0.25);
}
.uc-btn-expert:hover {
background: linear-gradient(135deg, var(--purple), #9b59b6);
color: var(--white);
border-color: var(--purple);
box-shadow: 0 4px 14px rgba(123, 45, 142, 0.25);
transform: translateY(-2px);
}
.uc-btn-publish {
background: var(--bg-light);
color: var(--primary);
border: 1px solid rgba(16, 43, 106, 0.2);
}
.uc-btn-publish:hover {
background: linear-gradient(135deg, var(--primary), #3b6fd4);
color: var(--white);
border-color: var(--primary);
box-shadow: 0 4px 14px rgba(16, 43, 106, 0.25);
transform: translateY(-2px);
}
.uc-btn-collection {
background: var(--bg-light);
color: var(--gold);
border: 1px solid rgba(253, 185, 51, 0.25);
}
.uc-btn-collection:hover {
background: linear-gradient(135deg, var(--gold), var(--orange));
color: var(--white);
border-color: var(--gold);
box-shadow: 0 4px 14px rgba(253, 185, 51, 0.25);
transform: translateY(-2px);
}
.uc-btn-tuiguang {
background: var(--bg-light);
color: var(--red);
border: 1px solid rgba(231, 76, 60, 0.25);
}
.uc-btn-tuiguang:hover {
background: linear-gradient(135deg, var(--red), #e74c3c);
color: var(--white);
border-color: var(--red);
box-shadow: 0 4px 14px rgba(231, 76, 60, 0.25);
transform: translateY(-2px);
}
/* ============================================================
Balance Grid - 4 columns with colored icon badges
============================================================ */
.uc-balance-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
margin-bottom: 24px;
}
.uc-balance-item {
background: var(--white);
border-radius: var(--radius-lg);
padding: 20px;
box-shadow: var(--shadow-sm);
transition: all 0.3s ease;
border: 1px solid var(--border-light);
position: relative;
overflow: hidden;
}
/* Subtle top accent line matching icon color */
.uc-balance-item::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: var(--border-light);
transition: background 0.3s;
}
.uc-balance-item:nth-child(1)::before {
background: linear-gradient(90deg, var(--gold), var(--orange));
}
.uc-balance-item:nth-child(2)::before {
background: linear-gradient(90deg, var(--primary), #3b6fd4);
}
.uc-balance-item:nth-child(3)::before {
background: linear-gradient(90deg, var(--orange), var(--red));
}
.uc-balance-item:nth-child(4)::before {
background: linear-gradient(90deg, var(--purple), #9b59b6);
}
.uc-balance-item:hover {
box-shadow: var(--shadow-md);
transform: translateY(-3px);
}
.uc-balance-label {
font-size: 13px;
color: var(--text-muted);
margin-bottom: 10px;
display: flex;
align-items: center;
gap: 8px;
font-weight: 500;
}
/* --- Balance Icon Badges --- */
.balance-icon {
width: 26px;
height: 26px;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: 800;
color: var(--white);
flex-shrink: 0;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
letter-spacing: 0;
line-height: 1;
}
.uc-balance-value {
font-size: 28px;
font-weight: 700;
color: var(--primary);
line-height: 1.2;
}
.uc-balance-value span {
font-size: 14px;
font-weight: 400;
color: var(--text-muted);
margin-left: 4px;
}
.uc-balance-links {
margin-top: 12px;
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.uc-balance-links a {
font-size: 12px;
color: var(--primary);
text-decoration: none;
padding: 3px 12px;
border-radius: 12px;
background: rgba(16, 43, 106, 0.06);
transition: all 0.25s ease;
font-weight: 500;
}
.uc-balance-links a:hover {
background: var(--primary);
color: var(--white);
box-shadow: 0 2px 8px rgba(16, 43, 106, 0.2);
}
/* ============================================================
Section - white card wrapper for tables
============================================================ */
.uc-section {
background: var(--white);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
margin-bottom: 24px;
overflow: hidden;
border: 1px solid var(--border-light);
}
.uc-section-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 20px;
border-bottom: 1px solid var(--border-light);
background: linear-gradient(90deg, rgba(16, 43, 106, 0.03) 0%, transparent 100%);
}
.uc-section-title {
font-size: 16px;
font-weight: 700;
color: var(--primary);
padding-left: 12px;
border-left: 4px solid var(--gold);
line-height: 1.3;
}
/* ============================================================
Filter Bar
============================================================ */
.uc-filter-bar {
display: flex;
gap: 12px;
align-items: center;
flex-wrap: wrap;
padding: 14px 20px;
border-bottom: 1px solid var(--border-light);
background: var(--bg-light);
}
.uc-filter-bar label {
font-size: 13px;
font-weight: 600;
color: var(--text-dark);
margin-right: 2px;
white-space: nowrap;
}
.uc-filter-bar select {
padding: 7px 12px;
border-radius: var(--radius-md);
border: 1px solid var(--border-light);
font-size: 13px;
color: var(--text-dark);
outline: none;
background: var(--white);
min-width: 110px;
transition: border-color 0.25s;
cursor: pointer;
}
.uc-filter-bar select:focus {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(16, 43, 106, 0.08);
}
.uc-filter-btn {
padding: 7px 24px;
border-radius: var(--radius-md);
font-size: 13px;
cursor: pointer;
border: none;
background: var(--primary);
color: var(--white);
font-weight: 600;
transition: all 0.3s ease;
white-space: nowrap;
}
.uc-filter-btn:hover {
box-shadow: 0 3px 12px rgba(16, 43, 106, 0.3);
transform: translateY(-1px);
}
.uc-filter-btn:active {
transform: translateY(0) scale(0.98);
}
/* ============================================================
Data Table - clean with alternating rows
============================================================ */
.uc-table {
width: 100%;
border-collapse: collapse;
}
.uc-table thead {
background: linear-gradient(135deg, #f0f3fa 0%, #e8ecf5 100%);
}
.uc-table th {
padding: 13px 16px;
font-size: 13px;
font-weight: 600;
color: var(--primary);
text-align: left;
white-space: nowrap;
border-bottom: 2px solid rgba(16, 43, 106, 0.08);
}
.uc-table td {
padding: 13px 16px;
font-size: 13px;
color: var(--text-dark);
border-bottom: 1px solid var(--border-light);
vertical-align: middle;
line-height: 1.5;
}
/* Alternating row background */
.uc-table tbody tr:nth-child(even) td {
background: rgba(244, 246, 251, 0.5);
}
.uc-table tbody tr {
transition: background 0.2s;
}
.uc-table tbody tr:hover td {
background: rgba(16, 43, 106, 0.04);
}
.uc-table a {
color: var(--primary);
text-decoration: none;
transition: color 0.2s;
}
.uc-table a:hover {
color: var(--orange);
}
/* Empty state row */
.uc-table td[colspan] {
text-align: center;
color: var(--text-muted);
padding: 30px 16px;
font-size: 14px;
}
/* ============================================================
Pagination
============================================================ */
.uc-pagination {
padding: 16px 20px;
display: flex;
justify-content: center;
border-top: 1px solid var(--border-light);
}
/* Layui page override for consistent look */
.uc-pagination .layui-laypage {
margin: 0;
}
.uc-pagination .layui-laypage a,
.uc-pagination .layui-laypage span {
border-radius: 6px;
margin: 0 2px;
}
/* ============================================================
Edit Profile Popup (layui layer dialog)
============================================================ */
.uc-edit-popup {
border-radius: var(--radius-lg) !important;
overflow: hidden;
}
/* Title bar */
.uc-edit-popup .layui-layer-title {
background: linear-gradient(90deg, var(--primary), var(--primary-light)) !important;
color: var(--white) !important;
font-weight: 700 !important;
font-size: 15px !important;
border-bottom: none !important;
height: 46px !important;
line-height: 46px !important;
padding: 0 20px !important;
}
/* Close button */
.uc-edit-popup .layui-layer-ico.layui-layer-close1 {
top: 12px !important;
right: 12px !important;
filter: brightness(3);
}
/* Content area */
.uc-edit-popup .layui-layer-content {
padding: 0;
}
/* --- Edit Avatar --- */
.uc-edit-avatar {
width: 84px;
height: 84px;
border-radius: 50%;
border: 3px solid var(--gold);
object-fit: cover;
cursor: pointer;
display: block;
margin: 0 auto 8px;
box-shadow: 0 4px 16px rgba(253, 185, 51, 0.25);
transition: transform 0.3s, box-shadow 0.3s;
}
.uc-edit-avatar:hover {
transform: scale(1.06);
box-shadow: 0 6px 24px rgba(253, 185, 51, 0.4);
}
/* --- Edit Form Fields --- */
.uc-edit-field {
margin-bottom: 18px;
}
.uc-edit-field label {
display: block;
font-size: 13px;
font-weight: 600;
color: var(--primary);
margin-bottom: 6px;
}
.uc-edit-field input[type="text"],
.uc-edit-field input[type="password"] {
width: 100%;
height: 42px;
padding: 0 14px;
font-size: 14px;
border: 2px solid var(--border-light);
border-radius: var(--radius-md);
outline: none;
transition: all 0.3s ease;
background: var(--bg-light);
color: var(--text-dark);
}
.uc-edit-field input:focus {
border-color: var(--primary);
background: var(--white);
box-shadow: 0 0 0 3px rgba(16, 43, 106, 0.08);
}
.uc-edit-field input::placeholder {
color: var(--text-muted);
opacity: 0.7;
}
/* Save button inside popup */
.uc-edit-popup .uc-filter-btn {
width: 100%;
height: 44px;
font-size: 15px;
margin-top: 8px;
border-radius: var(--radius-md);
}
/* ============================================================
Responsive - Tablet (max-width: 1024px)
============================================================ */
@media (max-width: 1024px) {
.uc-container {
padding: 20px 16px 32px;
}
.uc-profile-card {
padding: 24px;
gap: 20px;
}
.uc-avatar {
width: 76px;
height: 76px;
}
.uc-nickname {
font-size: 20px;
}
.uc-balance-grid {
gap: 12px;
}
.uc-balance-item {
padding: 16px;
}
.uc-balance-value {
font-size: 24px;
}
.uc-table th,
.uc-table td {
padding: 11px 12px;
font-size: 13px;
}
}
/* ============================================================
Responsive - Mobile (max-width: 768px)
============================================================ */
@media (max-width: 768px) {
.uc-container {
padding: 16px 12px 28px;
}
/* Profile card stacks vertically */
.uc-profile-card {
flex-direction: column;
text-align: center;
padding: 28px 20px 24px;
gap: 16px;
}
.uc-profile-card::after {
left: 50%;
transform: translateX(-50%);
top: 10px;
width: 120px;
height: 120px;
}
.uc-avatar-wrap {
display: flex;
justify-content: center;
}
.uc-avatar {
width: 72px;
height: 72px;
}
.uc-nickname {
font-size: 18px;
text-align: center;
}
.uc-info {
display: flex;
flex-direction: column;
align-items: center;
}
.uc-phone {
text-align: center;
}
.uc-actions {
justify-content: center;
flex-wrap: wrap;
gap: 8px;
}
.uc-btn {
padding: 8px 16px;
font-size: 12px;
}
/* Balance grid becomes 2 columns */
.uc-balance-grid {
grid-template-columns: repeat(2, 1fr);
gap: 10px;
}
.uc-balance-item {
padding: 14px;
}
.uc-balance-value {
font-size: 22px;
}
.uc-balance-label {
font-size: 12px;
gap: 6px;
}
.balance-icon {
width: 22px;
height: 22px;
font-size: 11px;
}
.uc-balance-links {
margin-top: 8px;
gap: 6px;
}
.uc-balance-links a {
font-size: 11px;
padding: 2px 8px;
}
/* Section adjustments */
.uc-section-header {
padding: 12px 14px;
}
.uc-section-title {
font-size: 15px;
}
/* Filter bar stacks */
.uc-filter-bar {
padding: 12px 14px;
gap: 8px;
}
.uc-filter-bar select {
min-width: 90px;
padding: 6px 8px;
font-size: 12px;
}
.uc-filter-btn {
padding: 6px 16px;
font-size: 12px;
}
/* Table adjustments */
.uc-table th,
.uc-table td {
padding: 10px 8px;
font-size: 12px;
}
.uc-pagination {
padding: 12px 14px;
}
}
/* ============================================================
Responsive - Small Mobile (max-width: 480px)
============================================================ */
@media (max-width: 480px) {
.uc-container {
padding: 12px 10px 24px;
}
.uc-profile-card {
padding: 24px 16px 20px;
}
.uc-avatar {
width: 64px;
height: 64px;
border-width: 2px;
}
.uc-nickname {
font-size: 17px;
}
.uc-level {
font-size: 11px;
padding: 1px 10px;
}
.uc-actions {
flex-direction: column;
gap: 6px;
width: 100%;
}
.uc-btn {
width: 100%;
text-align: center;
justify-content: center;
}
/* Balance grid stays 2 columns but tighter */
.uc-balance-grid {
grid-template-columns: repeat(2, 1fr);
gap: 8px;
}
.uc-balance-item {
padding: 12px;
}
.uc-balance-value {
font-size: 20px;
}
.uc-balance-value span {
font-size: 12px;
}
.balance-icon {
width: 20px;
height: 20px;
font-size: 10px;
}
.uc-balance-links a {
font-size: 11px;
padding: 2px 6px;
}
/* Table horizontal scroll */
.uc-section {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.uc-table {
min-width: 500px;
}
.uc-filter-bar {
gap: 6px;
}
.uc-filter-bar select {
flex: 1;
min-width: 0;
}
/* Edit popup responsive */
.uc-edit-popup {
width: 92vw !important;
max-width: 400px !important;
}
.uc-edit-avatar {
width: 72px;
height: 72px;
}
}
/* ============================================================
Animations & Utilities
============================================================ */
/* Fade-in for balance items on load */
@keyframes ucFadeInUp {
from {
opacity: 0;
transform: translateY(16px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.uc-balance-item {
animation: ucFadeInUp 0.4s ease both;
}
.uc-balance-item:nth-child(1) { animation-delay: 0.05s; }
.uc-balance-item:nth-child(2) { animation-delay: 0.1s; }
.uc-balance-item:nth-child(3) { animation-delay: 0.15s; }
.uc-balance-item:nth-child(4) { animation-delay: 0.2s; }
/* Subtle pulse on sign-in button to draw attention */
@keyframes ucPulse {
0%, 100% {
box-shadow: 0 0 0 0 rgba(253, 185, 51, 0.4);
}
50% {
box-shadow: 0 0 0 8px rgba(253, 185, 51, 0);
}
}
.uc-btn-signin {
animation: ucPulse 2.5s infinite;
}
.uc-btn-signin:hover {
animation: none;
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
.uc-balance-item,
.uc-btn-signin {
animation: none;
}
.uc-avatar,
.uc-edit-avatar,
.uc-balance-item,
.uc-btn,
.uc-balance-links a,
.uc-filter-btn {
transition: none;
}
}