2026-06-08 00:53:55 +08:00

812 lines
15 KiB
CSS

.databi-panel {
min-width: 0;
min-height: 236px;
padding: 16px 20px;
border-radius: 8px;
}
.panel--table {
min-height: 190px;
margin-top: 16px;
}
.panel-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
min-height: 28px;
margin-bottom: 12px;
}
.panel-title {
margin: 0;
color: #f3f9ff;
font-size: 18px;
font-weight: 780;
}
.panel-info {
display: grid;
width: 22px;
height: 22px;
place-items: center;
border: 1px solid rgba(157, 199, 232, 0.72);
border-radius: 50%;
color: #9dc7e8;
font-size: 13px;
}
.geo-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(218px, 0.72fr);
align-items: start;
gap: 16px;
height: 100%;
min-height: 0;
}
.databi-grid--top .geo-layout,
.databi-grid--top .funnel-layout {
flex: 1;
height: auto;
min-height: 0;
}
.databi-grid--top .geo-map {
aspect-ratio: 1.66;
height: auto;
max-height: 210px;
}
.geo-map {
position: relative;
min-width: 0;
overflow: hidden;
border-radius: 8px;
background:
radial-gradient(circle at 50% 50%, rgba(39, 228, 245, 0.1), transparent 48%),
radial-gradient(ellipse at 48% 52%, rgba(36, 116, 154, 0.2), transparent 68%),
linear-gradient(180deg, rgba(11, 48, 74, 0.62), rgba(5, 25, 43, 0.24));
}
.geo-map::before {
position: absolute;
inset: 26px 18px;
z-index: 0;
border: 0;
border-radius: 0;
background:
linear-gradient(90deg, rgba(39, 228, 245, 0.055) 1px, transparent 1px) 0 0 / 25% 100%,
linear-gradient(rgba(39, 228, 245, 0.05) 1px, transparent 1px) 0 0 / 100% 33%;
content: "";
pointer-events: none;
}
.geo-map::after {
position: absolute;
inset: 28px 28px;
z-index: 1;
border-top: 1px solid rgba(39, 228, 245, 0.06);
border-bottom: 1px solid rgba(39, 228, 245, 0.06);
background:
radial-gradient(ellipse at 24% 50%, rgba(37, 228, 245, 0.09), transparent 43%),
radial-gradient(ellipse at 74% 52%, rgba(37, 228, 245, 0.08), transparent 48%);
content: "";
pointer-events: none;
}
.rank-block {
display: grid;
align-content: start;
gap: 8px;
min-width: 0;
}
.panel-empty {
display: grid;
width: 100%;
height: 100%;
min-height: 120px;
place-items: center;
color: #7f9bb7;
font-size: 13px;
}
.globe-map {
position: relative;
z-index: 2;
width: 100%;
height: 100%;
cursor: grab;
touch-action: none;
user-select: none;
}
.globe-map.is-dragging {
cursor: grabbing;
}
.globe-canvas {
display: block;
width: 100%;
height: 100%;
}
.globe-tooltip {
position: absolute;
z-index: 5;
display: grid;
gap: 3px;
min-width: 128px;
padding: 8px 10px;
border: 1px solid rgba(52, 199, 229, 0.48);
border-radius: 4px;
background: rgba(4, 24, 41, 0.94);
box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32), 0 0 18px rgba(37, 228, 245, 0.2);
color: #cfe3f7;
font-size: 11px;
line-height: 1.2;
pointer-events: none;
}
.globe-tooltip strong {
color: #f2fbff;
font-size: 12px;
font-weight: 760;
}
.globe-tooltip span {
color: #9eb7ce;
font-variant-numeric: tabular-nums;
}
.geo-scale {
position: absolute;
bottom: 16px;
left: 16px;
z-index: 4;
display: grid;
gap: 5px;
color: #cdeeff;
font-size: 12px;
line-height: 1;
pointer-events: none;
}
.geo-scale i {
width: 13px;
height: 58px;
border: 1px solid rgba(43, 229, 245, 0.36);
border-radius: 2px;
background: linear-gradient(180deg, #24d79f 0%, #27e4f5 48%, #4281ff 100%);
box-shadow: 0 0 16px rgba(39, 228, 245, 0.32);
}
.rank-list {
display: grid;
align-content: start;
gap: 8px;
min-width: 0;
}
.rank-empty {
display: grid;
min-height: 112px;
place-items: center;
border: 1px dashed rgba(108, 157, 196, 0.22);
border-radius: 8px;
color: #7f9bb7;
font-size: 13px;
}
.rank-row {
display: grid;
grid-template-columns: 20px 20px minmax(0, 1fr) 62px;
align-items: center;
gap: 8px;
min-width: 0;
min-height: 36px;
padding: 0 10px;
border: 1px solid rgba(81, 154, 203, 0.2);
border-radius: 8px;
background: rgba(6, 27, 46, 0.72);
}
.rank-flag {
display: inline-grid;
min-width: 18px;
place-items: center;
font-style: normal;
line-height: 1;
}
.rank-row span,
.bar-row span,
.game-row span {
color: #9eb7ce;
font-variant-numeric: tabular-nums;
}
.rank-row strong,
.bar-row em,
.game-row em {
min-width: 0;
overflow: hidden;
color: #e9f6ff;
font-style: normal;
font-weight: 640;
text-overflow: ellipsis;
white-space: nowrap;
}
.rank-row strong,
.rank-row b {
font-size: 14px;
}
.all-countries-button {
height: 34px;
border: 1px solid rgba(39, 148, 203, 0.5);
border-radius: 8px;
background: rgba(7, 35, 58, 0.72);
color: #2fe8f3;
cursor: pointer;
font-size: 14px;
}
.all-countries-button:disabled {
cursor: not-allowed;
opacity: 0.45;
}
.skeleton-panel {
pointer-events: none;
}
.skeleton-map {
display: grid;
min-height: 170px;
place-items: center;
}
.skeleton-map-glow {
width: 74%;
height: 62%;
border-radius: 8px;
}
.skeleton-rank-title {
width: 120px;
height: 14px;
margin-bottom: 2px;
}
.skeleton-rank-row {
width: 100%;
height: 36px;
border-radius: 8px;
}
.skeleton-button {
width: 100%;
height: 34px;
border-radius: 8px;
}
.country-globe-modal {
position: fixed;
inset: 0;
z-index: 80;
display: grid;
place-items: center;
padding: 32px;
background: rgba(1, 9, 19, 0.72);
backdrop-filter: blur(8px);
animation: modal-overlay-in 180ms ease-out both;
}
.country-globe-dialog {
display: grid;
width: min(1040px, calc(100vw - 64px));
height: min(760px, calc(100vh - 64px));
grid-template-rows: auto minmax(0, 1fr);
overflow: hidden;
border: 1px solid rgba(44, 191, 227, 0.58);
border-radius: 8px;
background:
linear-gradient(180deg, rgba(9, 43, 70, 0.96), rgba(4, 18, 31, 0.98)),
rgba(5, 24, 42, 0.98);
box-shadow: 0 28px 72px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.06);
animation: modal-dialog-in 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.country-globe-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 16px 18px;
border-bottom: 1px solid rgba(111, 148, 183, 0.2);
}
.country-globe-head h2 {
margin: 0;
color: #f3f9ff;
font-size: 20px;
font-weight: 780;
}
.country-globe-head span {
display: block;
margin-top: 4px;
color: #8faac5;
font-size: 12px;
}
.country-globe-head button {
display: inline-flex;
width: 34px;
height: 34px;
align-items: center;
justify-content: center;
padding: 0;
border: 1px solid rgba(64, 148, 197, 0.48);
border-radius: 8px;
background: rgba(7, 29, 48, 0.9);
color: #d8ebff;
cursor: pointer;
}
.country-globe-head button:hover {
border-color: rgba(39, 228, 245, 0.78);
color: #ffffff;
}
.country-globe-body {
min-height: 0;
padding: 18px;
}
.pool-detail-modal {
position: fixed;
inset: 0;
z-index: 90;
display: grid;
place-items: center;
padding: 32px;
background: rgba(1, 9, 19, 0.72);
backdrop-filter: blur(8px);
animation: modal-overlay-in 180ms ease-out both;
}
.metric-trend-modal {
position: fixed;
inset: 0;
z-index: 88;
display: grid;
place-items: center;
padding: 32px;
background: rgba(1, 9, 19, 0.72);
backdrop-filter: blur(8px);
animation: modal-overlay-in 180ms ease-out both;
}
.pool-detail-dialog {
display: grid;
width: min(860px, calc(100vw - 64px));
max-height: min(680px, calc(100vh - 64px));
grid-template-rows: auto auto minmax(0, 1fr);
overflow: hidden;
border: 1px solid rgba(44, 191, 227, 0.58);
border-radius: 8px;
background:
linear-gradient(180deg, rgba(9, 43, 70, 0.96), rgba(4, 18, 31, 0.98)),
rgba(5, 24, 42, 0.98);
box-shadow: 0 28px 72px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.06);
animation: modal-dialog-in 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.metric-trend-dialog {
display: grid;
width: min(760px, calc(100vw - 64px));
height: min(480px, calc(100vh - 64px));
grid-template-rows: auto minmax(0, 1fr);
overflow: hidden;
border: 1px solid rgba(44, 191, 227, 0.58);
border-radius: 8px;
background:
linear-gradient(180deg, rgba(9, 43, 70, 0.96), rgba(4, 18, 31, 0.98)),
rgba(5, 24, 42, 0.98);
box-shadow: 0 28px 72px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.06);
animation: modal-dialog-in 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.pool-detail-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 16px 18px;
border-bottom: 1px solid rgba(111, 148, 183, 0.2);
}
.metric-trend-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 16px 18px;
border-bottom: 1px solid rgba(111, 148, 183, 0.2);
}
.pool-detail-head h2 {
margin: 0;
color: #f3f9ff;
font-size: 20px;
font-weight: 780;
}
.metric-trend-head h2 {
margin: 0;
color: #f3f9ff;
font-size: 20px;
font-weight: 780;
}
.pool-detail-head span {
display: block;
margin-top: 4px;
color: #8faac5;
font-size: 12px;
}
.metric-trend-head span {
display: block;
margin-top: 4px;
color: #8faac5;
font-size: 12px;
}
.pool-detail-head button {
display: inline-flex;
width: 34px;
height: 34px;
align-items: center;
justify-content: center;
padding: 0;
border: 1px solid rgba(64, 148, 197, 0.48);
border-radius: 8px;
background: rgba(7, 29, 48, 0.9);
color: #d8ebff;
cursor: pointer;
}
.metric-trend-head button {
display: inline-flex;
width: 34px;
height: 34px;
align-items: center;
justify-content: center;
padding: 0;
border: 1px solid rgba(64, 148, 197, 0.48);
border-radius: 8px;
background: rgba(7, 29, 48, 0.9);
color: #d8ebff;
cursor: pointer;
}
.pool-detail-head button:hover {
border-color: rgba(39, 228, 245, 0.78);
color: #ffffff;
}
.metric-trend-head button:hover {
border-color: rgba(39, 228, 245, 0.78);
color: #ffffff;
}
.country-globe-modal.is-closing,
.pool-detail-modal.is-closing,
.metric-trend-modal.is-closing {
animation: modal-overlay-out 160ms ease-in both;
}
.country-globe-modal.is-closing .country-globe-dialog,
.pool-detail-modal.is-closing .pool-detail-dialog,
.metric-trend-modal.is-closing .metric-trend-dialog {
animation: modal-dialog-out 160ms ease-in both;
}
.modal-close-mark {
position: relative;
display: block;
width: 16px;
height: 16px;
}
.modal-close-mark::before,
.modal-close-mark::after {
position: absolute;
top: 50%;
left: 50%;
width: 18px;
height: 2px;
border-radius: 999px;
background: currentColor;
content: "";
transform-origin: center;
}
.modal-close-mark::before {
transform: translate(-50%, -50%) rotate(45deg);
}
.modal-close-mark::after {
transform: translate(-50%, -50%) rotate(-45deg);
}
@keyframes modal-overlay-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes modal-overlay-out {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
@keyframes modal-dialog-in {
from {
opacity: 0;
transform: translateY(10px) scale(0.985);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes modal-dialog-out {
from {
opacity: 1;
transform: translateY(0) scale(1);
}
to {
opacity: 0;
transform: translateY(8px) scale(0.99);
}
}
.metric-trend-body {
min-height: 0;
padding: 16px 18px 18px;
}
.metric-trend-chart {
width: 100%;
height: 100%;
}
.pool-detail-summary {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
padding: 16px 18px 8px;
}
.pool-summary-card {
min-width: 0;
padding: 12px 14px;
border: 1px solid rgba(35, 128, 180, 0.46);
border-radius: 8px;
background: rgba(7, 29, 48, 0.76);
}
.pool-summary-card span,
.pool-summary-card small {
color: #8faac5;
font-size: 12px;
}
.pool-summary-card strong {
display: block;
margin-top: 6px;
overflow: hidden;
color: #f6fbff;
font-size: 22px;
font-weight: 780;
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.pool-detail-table-wrap {
min-height: 0;
padding: 10px 18px 18px;
overflow: auto;
}
.pool-detail-table {
width: 100%;
min-width: 720px;
border-collapse: collapse;
}
.pool-detail-table th,
.pool-detail-table td {
height: 34px;
padding: 0 12px;
border-bottom: 1px solid rgba(108, 157, 196, 0.22);
border-right: 1px solid rgba(108, 157, 196, 0.15);
color: #cfe3f7;
font-weight: 620;
text-align: right;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
.pool-detail-table th {
background: rgba(128, 171, 211, 0.08);
color: #9eb7ce;
font-size: 12px;
font-weight: 720;
}
.pool-detail-table th:nth-child(2),
.pool-detail-table td:nth-child(2) {
text-align: left;
}
.pool-detail-table th:first-child,
.pool-detail-table td:first-child {
width: 42px;
text-align: center;
}
.rank-row b,
.bar-row b,
.game-row b,
.country-table td {
color: #cfe3f7;
font-weight: 620;
font-variant-numeric: tabular-nums;
}
.funnel-layout {
display: grid;
grid-template-columns: 1fr;
align-content: center;
gap: 8px;
flex: 1;
min-height: 0;
}
.funnel-stack {
display: grid;
width: min(420px, 88%);
justify-self: center;
gap: 5px;
padding: 2px 0 0;
}
.funnel-stage-row {
display: grid;
grid-template-columns: minmax(210px, 1fr);
align-items: center;
}
.funnel-stage-row > b {
display: none;
color: #9eb7ce;
font-size: 12px;
font-weight: 700;
text-align: right;
font-variant-numeric: tabular-nums;
}
.funnel-stage {
display: flex;
align-items: center;
justify-content: center;
gap: 18px;
height: 37px;
padding: 0 26px;
clip-path: polygon(4% 0, 96% 0, 88% 100%, 12% 100%);
border: 1px solid rgba(196, 241, 255, 0.65);
background: linear-gradient(180deg, rgba(54, 138, 234, 0.94), rgba(30, 106, 196, 0.92));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
color: #edf8ff;
}
.funnel-stage span {
font-size: 14px;
font-weight: 720;
line-height: 1.1;
white-space: nowrap;
}
.funnel-stage strong {
color: #f6fbff;
font-size: 19px;
font-weight: 820;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.funnel-layout .side-metrics {
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
}
.funnel-layout .mini-stat {
height: 72px;
overflow: hidden;
padding: 6px 10px;
}
.funnel-layout .mini-stat > span {
font-size: 12px;
}
.funnel-layout .mini-stat strong {
margin-top: 2px;
font-size: 18px;
line-height: 1.2;
}
.funnel-layout .mini-stat small {
margin-top: 3px;
font-size: 9px;
line-height: 1.15;
}
.funnel-stage--2 {
margin-inline: 18px;
background: linear-gradient(180deg, rgba(20, 174, 194, 0.94), rgba(16, 137, 173, 0.92));
}
.funnel-stage--3 {
margin-inline: 36px;
background: linear-gradient(180deg, rgba(31, 190, 177, 0.94), rgba(19, 155, 157, 0.92));
}
.funnel-stage--4 {
margin-inline: 54px;
background: linear-gradient(180deg, rgba(32, 203, 161, 0.94), rgba(18, 168, 137, 0.92));
}
.skeleton-funnel-stage {
height: 37px;
clip-path: polygon(4% 0, 96% 0, 88% 100%, 12% 100%);
}
.skeleton-funnel-stage--2 {
margin-inline: 18px;
}
.skeleton-funnel-stage--3 {
margin-inline: 36px;
}
.skeleton-funnel-stage--4 {
margin-inline: 54px;
}
.skeleton-mini-stat {
height: 72px;
border-radius: 8px;
}