修改样式、功能完成,待测试

This commit is contained in:
rain
2026-07-08 11:46:09 +08:00
parent 8a6a8acab7
commit eca7992d03
40 changed files with 1025 additions and 596 deletions
+78 -252
View File
@@ -191,6 +191,27 @@
.cxz-data-table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
}
.cxz-data-table .cxz-col-expert {
width: 30%;
}
.cxz-data-table .cxz-col-issue {
width: 22%;
}
.cxz-data-table .cxz-col-recommend {
width: 22%;
}
.cxz-data-table .cxz-col-rate {
width: 13%;
}
.cxz-data-table .cxz-col-action {
width: 13%;
}
.cxz-data-table thead {
@@ -216,12 +237,28 @@
vertical-align: middle;
}
.cxz-data-table th:nth-child(1),
.cxz-data-table td:nth-child(1) {
text-align: left;
}
.cxz-data-table td:nth-child(2),
.cxz-data-table td:nth-child(3) {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.cxz-data-table tbody tr {
transition: background 0.2s ease;
}
.cxz-table-box .cxz-data-table tbody tr:nth-child(even) {
background: #eef4fc;
}
.cxz-data-table tbody tr:hover {
background: var(--bg-light, #f4f6fb);
background: #e4edf9;
}
.cxz-data-table tbody tr:last-child td {
@@ -282,136 +319,51 @@
border-radius: var(--radius-md, 8px) !important;
}
/* ----------------------------------------------------------
5. Ranking Box
---------------------------------------------------------- */
.cxz-ranking-box {
background: var(--white, #ffffff);
border-radius: var(--radius-lg, 12px);
overflow: hidden;
box-shadow: var(--shadow-md, 0 4px 16px rgba(0, 0, 0, 0.08));
margin-bottom: 20px;
border: 1px solid var(--border-light, #e5e7eb);
}
.cxz-ranking-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 20px;
border-bottom: 2px solid var(--gold, #fdb933);
background: linear-gradient(135deg, var(--bg-light, #f4f6fb), #ffffff);
}
.cxz-ranking-title {
font-size: 16px;
font-weight: 700;
color: var(--primary, #102b6a);
padding-left: 14px;
border-left: 4px solid var(--gold, #fdb933);
line-height: 1.4;
}
.cxz-rank-table {
width: 100%;
border-collapse: collapse;
}
.cxz-rank-table thead {
background: var(--bg-light, #f4f6fb);
}
.cxz-rank-table th {
padding: 12px 16px;
font-size: 13px;
font-weight: 600;
color: var(--text-muted, #6b7280);
text-align: center;
white-space: nowrap;
border-bottom: 1px solid var(--border-light, #e5e7eb);
}
.cxz-rank-table td {
padding: 14px 16px;
font-size: 14px;
text-align: center;
border-bottom: 1px solid var(--border-light, #e5e7eb);
color: var(--text-dark, #1a1a2e);
vertical-align: middle;
}
.cxz-rank-table tbody tr {
transition: background 0.2s ease;
}
.cxz-rank-table tbody tr:hover {
background: var(--bg-light, #f4f6fb);
}
.cxz-rank-table tbody tr:last-child td {
border-bottom: none;
}
/* Highlight top-3 rows */
.cxz-rank-table tbody tr:nth-child(1) {
background: rgba(253, 185, 51, 0.04);
}
.cxz-rank-table tbody tr:nth-child(2) {
background: rgba(192, 192, 192, 0.04);
}
.cxz-rank-table tbody tr:nth-child(3) {
background: rgba(205, 127, 50, 0.04);
}
/* ----------------------------------------------------------
6. Rank Badges
---------------------------------------------------------- */
.cxz-rank-badge {
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border-radius: 50%;
font-size: 13px;
font-weight: 700;
color: #ffffff;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
flex-shrink: 0;
}
/* 1st place - Gold */
.cxz-rank-1 {
background: linear-gradient(135deg, #fdb933, #f5a623);
box-shadow: 0 2px 8px rgba(253, 185, 51, 0.45);
}
/* 2nd place - Silver */
.cxz-rank-2 {
background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
box-shadow: 0 2px 8px rgba(192, 192, 192, 0.45);
}
/* 3rd place - Bronze */
.cxz-rank-3 {
background: linear-gradient(135deg, #cd7f32, #b5651d);
box-shadow: 0 2px 8px rgba(205, 127, 50, 0.45);
}
/* 4th and beyond - Muted */
.cxz-rank-n {
background: var(--text-muted, #6b7280);
box-shadow: 0 1px 4px rgba(107, 114, 128, 0.3);
}
.cxz-expert-cell {
display: inline-flex;
align-items: center;
gap: 10px;
max-width: 100%;
color: var(--text);
font-weight: 600;
overflow: hidden;
vertical-align: middle;
white-space: nowrap;
}
.cxz-expert-rank {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 28px;
color: var(--text-muted, #6b7280);
font-weight: 700;
flex-shrink: 0;
}
.cxz-expert-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.table-img,
.cxz-table-avatar-placeholder {
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border-radius: 50%;
vertical-align: middle;
object-fit: cover;
}
.cxz-table-avatar-placeholder {
background: linear-gradient(135deg, var(--navy, #08183c), var(--primary, #102b6a));
color: #ffffff;
font-size: 13px;
font-weight: 700;
}
.cxz-expert-avatar {
@@ -437,40 +389,6 @@
font-size: 13px;
}
/* ----------------------------------------------------------
7. Expert Link
---------------------------------------------------------- */
.cxz-expert-link {
display: inline-flex;
align-items: center;
gap: 6px;
color: var(--primary, #102b6a);
text-decoration: none;
font-weight: 600;
font-size: 14px;
transition: all 0.2s ease;
white-space: nowrap;
}
.cxz-expert-link:hover {
color: var(--orange, #f15a22);
}
.cxz-expert-link::before {
content: "";
display: inline-block;
width: 4px;
height: 4px;
border-radius: 50%;
background: var(--primary, #102b6a);
flex-shrink: 0;
transition: background 0.2s ease;
}
.cxz-expert-link:hover::before {
background: var(--orange, #f15a22);
}
/* ----------------------------------------------------------
8. Buy / Action Button
---------------------------------------------------------- */
@@ -578,10 +496,6 @@
font-size: 12px;
}
.cxz-ranking-box {
margin-bottom: 16px;
}
.cxz-cai-layout {
grid-template-columns: 1fr;
}
@@ -686,53 +600,6 @@
min-width: 560px;
}
/* Ranking */
.cxz-ranking-box {
border-radius: var(--radius-md, 8px);
margin-bottom: 16px;
}
.cxz-ranking-header {
padding: 12px 14px;
}
.cxz-ranking-title {
font-size: 14px;
padding-left: 10px;
border-left-width: 3px;
}
.cxz-rank-table th {
padding: 10px 6px;
font-size: 12px;
}
.cxz-rank-table td {
padding: 10px 6px;
font-size: 12px;
}
.cxz-ranking-box {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.cxz-rank-table {
min-width: 420px;
}
/* Rank badges - slightly smaller on mobile */
.cxz-rank-badge {
width: 24px;
height: 24px;
font-size: 12px;
}
/* Expert link */
.cxz-expert-link {
font-size: 13px;
}
/* Buy button */
.cxz-btn-buy {
padding: 4px 14px;
@@ -813,32 +680,12 @@
margin: 1px 0;
}
.cxz-rank-table {
min-width: 360px;
}
.cxz-rank-badge {
width: 22px;
height: 22px;
font-size: 11px;
}
.cxz-btn-buy {
padding: 3px 10px;
font-size: 10px;
border-radius: 10px;
}
.cxz-expert-link {
font-size: 12px;
gap: 4px;
}
.cxz-expert-link::before {
width: 3px;
height: 3px;
}
.cxz-pagination {
padding: 12px 6px;
}
@@ -874,24 +721,6 @@
animation: cxz-fade-in 0.4s ease-out;
}
.cxz-ranking-box {
animation: cxz-fade-in 0.5s ease-out;
}
/* Badge pulse animation for 1st place */
@keyframes cxz-badge-pulse {
0%, 100% {
box-shadow: 0 2px 8px rgba(253, 185, 51, 0.45);
}
50% {
box-shadow: 0 2px 14px rgba(253, 185, 51, 0.7);
}
}
.cxz-rank-1 {
animation: cxz-badge-pulse 2s ease-in-out infinite;
}
/* ----------------------------------------------------------
15. Print Styles
---------------------------------------------------------- */
@@ -903,16 +732,13 @@
display: none !important;
}
.cxz-ranking-box,
.cxz-table-box {
box-shadow: none;
border: 1px solid #ccc;
}
.cxz-data-table th,
.cxz-data-table td,
.cxz-rank-table th,
.cxz-rank-table td {
.cxz-data-table td {
padding: 6px 8px;
font-size: 11px;
}