- input/textarea 添加 box-sizing: border-box - card 添加 overflow: hidden 防止内容溢出 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
727 lines
13 KiB
Plaintext
727 lines
13 KiB
Plaintext
/** app.wxss */
|
|
page {
|
|
--bg-1: #050c17;
|
|
--bg-2: #0a1629;
|
|
--bg-3: #102542;
|
|
--card: rgba(12, 28, 49, 0.82);
|
|
--card-soft: rgba(17, 35, 58, 0.78);
|
|
--line: rgba(139, 177, 223, 0.24);
|
|
--line-strong: rgba(139, 177, 223, 0.38);
|
|
--title: #edf4ff;
|
|
--text: #c7d8ee;
|
|
--sub: #8fa9c7;
|
|
--primary: #ff5a4f;
|
|
--primary-2: #ff7b4f;
|
|
--accent: #23a3ff;
|
|
--accent-2: #2e7dff;
|
|
--success: #2dcf95;
|
|
--danger: #ff6276;
|
|
--warning: #ffb454;
|
|
--radius: 24rpx;
|
|
--radius-sm: 16rpx;
|
|
--shadow: 0 20rpx 54rpx rgba(2, 9, 20, 0.4);
|
|
|
|
min-height: 100%;
|
|
color: var(--text);
|
|
font-family: 'HarmonyOS Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
|
background:
|
|
radial-gradient(circle at 84% -10%, rgba(35, 163, 255, 0.22), transparent 40%),
|
|
radial-gradient(circle at -10% 14%, rgba(255, 90, 79, 0.22), transparent 34%),
|
|
linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
|
|
}
|
|
|
|
.container {
|
|
position: relative;
|
|
padding: 26rpx;
|
|
padding-bottom: calc(48rpx + env(safe-area-inset-bottom));
|
|
}
|
|
|
|
.hero {
|
|
position: relative;
|
|
overflow: hidden;
|
|
padding: 36rpx 30rpx;
|
|
border-radius: 32rpx;
|
|
color: #fff;
|
|
background:
|
|
linear-gradient(130deg, rgba(255, 120, 96, 0.22), rgba(255, 120, 96, 0) 38%),
|
|
linear-gradient(135deg, #102848 0%, #1a4476 46%, #183357 100%);
|
|
border: 1rpx solid rgba(166, 206, 246, 0.3);
|
|
box-shadow: var(--shadow);
|
|
animation: heroGlow 6s ease-in-out infinite alternate;
|
|
}
|
|
|
|
.hero::after {
|
|
content: '';
|
|
position: absolute;
|
|
right: -120rpx;
|
|
top: -88rpx;
|
|
width: 280rpx;
|
|
height: 280rpx;
|
|
border-radius: 50%;
|
|
background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
|
|
pointer-events: none;
|
|
}
|
|
|
|
.hero-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 8rpx 16rpx;
|
|
border-radius: 999rpx;
|
|
border: 1rpx solid rgba(210, 234, 255, 0.4);
|
|
background: rgba(8, 25, 47, 0.42);
|
|
color: #dcecff;
|
|
font-size: 20rpx;
|
|
letter-spacing: 0.6rpx;
|
|
}
|
|
|
|
.hero-title {
|
|
margin-top: 14rpx;
|
|
font-size: 42rpx;
|
|
font-weight: 700;
|
|
letter-spacing: 1.2rpx;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.hero-sub {
|
|
margin-top: 12rpx;
|
|
font-size: 24rpx;
|
|
color: #d2e2f7;
|
|
line-height: 1.68;
|
|
}
|
|
|
|
.hero-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10rpx;
|
|
margin-top: 14rpx;
|
|
}
|
|
|
|
.hero-metric {
|
|
padding: 8rpx 14rpx;
|
|
border-radius: 999rpx;
|
|
font-size: 21rpx;
|
|
color: #dff0ff;
|
|
border: 1rpx solid rgba(186, 219, 250, 0.34);
|
|
background: rgba(7, 24, 45, 0.46);
|
|
}
|
|
|
|
.card {
|
|
margin-top: 20rpx;
|
|
padding: 24rpx;
|
|
border-radius: var(--radius);
|
|
background: var(--card);
|
|
border: 1rpx solid var(--line);
|
|
box-shadow: var(--shadow);
|
|
overflow: hidden;
|
|
transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
|
|
}
|
|
|
|
.card:active {
|
|
transform: scale(0.992);
|
|
border-color: var(--line-strong);
|
|
}
|
|
|
|
.card-title {
|
|
margin-bottom: 12rpx;
|
|
color: var(--title);
|
|
font-size: 30rpx;
|
|
font-weight: 700;
|
|
letter-spacing: 0.5rpx;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.card-desc {
|
|
margin-bottom: 16rpx;
|
|
color: var(--sub);
|
|
font-size: 23rpx;
|
|
line-height: 1.66;
|
|
}
|
|
|
|
.glass-divider {
|
|
margin: 18rpx 0;
|
|
height: 1rpx;
|
|
background: linear-gradient(90deg, rgba(132, 171, 214, 0), rgba(132, 171, 214, 0.42), rgba(132, 171, 214, 0));
|
|
}
|
|
|
|
.field {
|
|
margin-top: 14rpx;
|
|
}
|
|
|
|
.field-label {
|
|
display: block;
|
|
margin-bottom: 8rpx;
|
|
color: var(--sub);
|
|
font-size: 24rpx;
|
|
letter-spacing: 0.3rpx;
|
|
}
|
|
|
|
.field-help {
|
|
margin-top: 8rpx;
|
|
color: var(--sub);
|
|
font-size: 22rpx;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.input,
|
|
.textarea {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
min-height: 88rpx;
|
|
border-radius: 16rpx;
|
|
border: 1rpx solid rgba(125, 163, 204, 0.36);
|
|
background: var(--card-soft);
|
|
color: #eaf4ff;
|
|
padding: 0 20rpx;
|
|
font-size: 28rpx;
|
|
line-height: 88rpx;
|
|
transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
|
|
}
|
|
|
|
.input:focus,
|
|
.textarea:focus {
|
|
border-color: rgba(157, 204, 255, 0.8);
|
|
box-shadow: 0 0 0 2rpx rgba(35, 163, 255, 0.2);
|
|
background: rgba(18, 39, 65, 0.9);
|
|
}
|
|
|
|
.textarea {
|
|
min-height: 220rpx;
|
|
padding-top: 16rpx;
|
|
line-height: 1.65;
|
|
}
|
|
|
|
.picker-value {
|
|
min-width: 180rpx;
|
|
text-align: right;
|
|
color: var(--title);
|
|
font-size: 26rpx;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.btn-row {
|
|
display: flex;
|
|
gap: 14rpx;
|
|
margin-top: 14rpx;
|
|
}
|
|
|
|
.btn-row .btn {
|
|
flex: 1;
|
|
margin-top: 0;
|
|
}
|
|
|
|
.btn {
|
|
margin-top: 16rpx;
|
|
border: none;
|
|
border-radius: 999rpx;
|
|
font-size: 28rpx;
|
|
font-weight: 650;
|
|
padding: 16rpx 24rpx;
|
|
letter-spacing: 0.6rpx;
|
|
transform: translateY(0);
|
|
transition: transform 0.16s ease, box-shadow 0.2s ease, opacity 0.2s ease;
|
|
}
|
|
|
|
button.btn::after {
|
|
border: none;
|
|
}
|
|
|
|
.btn:active {
|
|
transform: translateY(2rpx) scale(0.985);
|
|
}
|
|
|
|
.btn[disabled] {
|
|
opacity: 0.55;
|
|
}
|
|
|
|
.btn-primary {
|
|
color: #fff;
|
|
background: linear-gradient(130deg, var(--primary), var(--primary-2));
|
|
box-shadow: 0 14rpx 30rpx rgba(255, 91, 111, 0.35);
|
|
}
|
|
|
|
.btn-accent {
|
|
color: #fff;
|
|
background: linear-gradient(130deg, var(--accent), var(--accent-2));
|
|
box-shadow: 0 14rpx 30rpx rgba(41, 145, 255, 0.34);
|
|
}
|
|
|
|
.btn-ghost {
|
|
color: #d9e9ff;
|
|
background: rgba(153, 191, 235, 0.14);
|
|
border: 1rpx solid rgba(153, 191, 235, 0.34);
|
|
}
|
|
|
|
.row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 18rpx;
|
|
}
|
|
|
|
.row + .row {
|
|
margin-top: 14rpx;
|
|
}
|
|
|
|
.label {
|
|
color: var(--sub);
|
|
font-size: 25rpx;
|
|
}
|
|
|
|
.value {
|
|
color: var(--title);
|
|
font-size: 27rpx;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.grid-2 {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 14rpx;
|
|
}
|
|
|
|
.grid-3 {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 12rpx;
|
|
}
|
|
|
|
.grid-auto {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(220rpx, 1fr));
|
|
gap: 12rpx;
|
|
}
|
|
|
|
.kpi {
|
|
padding: 18rpx;
|
|
border-radius: 18rpx;
|
|
background: linear-gradient(145deg, rgba(24, 47, 78, 0.68), rgba(16, 31, 53, 0.94));
|
|
border: 1rpx solid rgba(109, 152, 203, 0.24);
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.kpi:active {
|
|
transform: scale(0.985);
|
|
}
|
|
|
|
.kpi-value {
|
|
font-size: 34rpx;
|
|
font-weight: 700;
|
|
color: #f2f7ff;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.kpi-label {
|
|
margin-top: 8rpx;
|
|
font-size: 22rpx;
|
|
color: var(--sub);
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.module-card {
|
|
padding: 20rpx;
|
|
border-radius: 18rpx;
|
|
background: linear-gradient(150deg, rgba(19, 40, 66, 0.88), rgba(14, 28, 48, 0.92));
|
|
border: 1rpx solid rgba(122, 162, 206, 0.24);
|
|
transition: transform 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.module-card:active {
|
|
transform: translateY(2rpx) scale(0.99);
|
|
border-color: rgba(167, 206, 247, 0.44);
|
|
}
|
|
|
|
.module-name {
|
|
color: #eff6ff;
|
|
font-size: 28rpx;
|
|
font-weight: 700;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.module-desc {
|
|
margin-top: 8rpx;
|
|
color: var(--sub);
|
|
font-size: 22rpx;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.module-tag {
|
|
display: inline-block;
|
|
margin-top: 12rpx;
|
|
padding: 4rpx 12rpx;
|
|
border-radius: 999rpx;
|
|
color: #d4e9ff;
|
|
font-size: 20rpx;
|
|
border: 1rpx solid rgba(142, 183, 228, 0.34);
|
|
background: rgba(23, 61, 103, 0.44);
|
|
}
|
|
|
|
.list-item {
|
|
margin-top: 12rpx;
|
|
padding: 18rpx;
|
|
border-radius: 16rpx;
|
|
border: 1rpx solid rgba(109, 152, 203, 0.24);
|
|
background: rgba(18, 35, 58, 0.72);
|
|
transition: transform 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.list-item:active {
|
|
transform: scale(0.992);
|
|
border-color: rgba(160, 200, 244, 0.42);
|
|
}
|
|
|
|
.item-title {
|
|
color: var(--title);
|
|
font-size: 27rpx;
|
|
font-weight: 600;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.item-sub {
|
|
margin-top: 8rpx;
|
|
color: var(--sub);
|
|
font-size: 23rpx;
|
|
line-height: 1.65;
|
|
}
|
|
|
|
.tag {
|
|
display: inline-block;
|
|
margin-right: 8rpx;
|
|
margin-bottom: 8rpx;
|
|
padding: 8rpx 16rpx;
|
|
border-radius: 999rpx;
|
|
font-size: 22rpx;
|
|
background: rgba(255, 181, 71, 0.16);
|
|
border: 1rpx solid rgba(255, 181, 71, 0.4);
|
|
color: #ffd487;
|
|
}
|
|
|
|
.tag-danger {
|
|
background: rgba(255, 91, 111, 0.18);
|
|
border: 1rpx solid rgba(255, 108, 128, 0.42);
|
|
color: #ffdce1;
|
|
}
|
|
|
|
.evidence-grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12rpx;
|
|
margin-top: 12rpx;
|
|
}
|
|
|
|
.evidence-item {
|
|
position: relative;
|
|
width: 120rpx;
|
|
height: 120rpx;
|
|
border-radius: 12rpx;
|
|
overflow: hidden;
|
|
border: 1rpx solid rgba(139, 177, 223, 0.3);
|
|
}
|
|
|
|
.evidence-thumb {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
}
|
|
|
|
.evidence-clickable {
|
|
cursor: pointer;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.evidence-clickable:active {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.evidence-remove {
|
|
position: absolute;
|
|
top: -4rpx;
|
|
right: -4rpx;
|
|
width: 32rpx;
|
|
height: 32rpx;
|
|
border-radius: 50%;
|
|
background: rgba(255, 91, 111, 0.9);
|
|
color: #fff;
|
|
font-size: 24rpx;
|
|
text-align: center;
|
|
line-height: 32rpx;
|
|
}
|
|
|
|
.evidence-add {
|
|
width: 120rpx;
|
|
height: 120rpx;
|
|
border-radius: 12rpx;
|
|
border: 1rpx dashed rgba(139, 177, 223, 0.5);
|
|
background: rgba(17, 35, 58, 0.5);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.evidence-add-icon {
|
|
font-size: 48rpx;
|
|
color: var(--sub);
|
|
}
|
|
|
|
/* 信誉分进度条 */
|
|
.credit-score-bar {
|
|
position: relative;
|
|
width: 180rpx;
|
|
height: 28rpx;
|
|
border-radius: 14rpx;
|
|
background: rgba(85, 123, 166, 0.25);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.credit-fill {
|
|
height: 100%;
|
|
border-radius: inherit;
|
|
background: linear-gradient(90deg, var(--success), var(--accent));
|
|
}
|
|
|
|
.credit-value {
|
|
position: absolute;
|
|
right: 8rpx;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
font-size: 22rpx;
|
|
font-weight: 600;
|
|
color: #f2f7ff;
|
|
}
|
|
|
|
/* 运营报告样式 */
|
|
.report-modal {
|
|
margin-top: 20rpx;
|
|
padding: 24rpx;
|
|
border-radius: 24rpx;
|
|
background: linear-gradient(145deg, rgba(24, 47, 78, 0.95), rgba(16, 31, 53, 0.98));
|
|
border: 1rpx solid rgba(139, 177, 223, 0.35);
|
|
position: relative;
|
|
}
|
|
|
|
.report-header {
|
|
text-align: center;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.report-title {
|
|
font-size: 32rpx;
|
|
font-weight: 700;
|
|
color: #eff6ff;
|
|
}
|
|
|
|
.report-period {
|
|
font-size: 22rpx;
|
|
color: var(--sub);
|
|
margin-top: 6rpx;
|
|
}
|
|
|
|
.report-close {
|
|
position: absolute;
|
|
top: 16rpx;
|
|
right: 16rpx;
|
|
width: 40rpx;
|
|
height: 40rpx;
|
|
border-radius: 50%;
|
|
background: rgba(255, 91, 111, 0.2);
|
|
color: #ffdce1;
|
|
font-size: 28rpx;
|
|
text-align: center;
|
|
line-height: 40rpx;
|
|
}
|
|
|
|
.report-section {
|
|
margin-top: 16rpx;
|
|
padding: 16rpx;
|
|
border-radius: 16rpx;
|
|
background: rgba(17, 35, 58, 0.6);
|
|
}
|
|
|
|
.report-section-title {
|
|
font-size: 26rpx;
|
|
font-weight: 600;
|
|
color: #dceeff;
|
|
margin-bottom: 12rpx;
|
|
}
|
|
|
|
.report-kpi {
|
|
padding: 12rpx;
|
|
border-radius: 12rpx;
|
|
background: rgba(19, 40, 66, 0.7);
|
|
text-align: center;
|
|
}
|
|
|
|
.report-kpi-value {
|
|
font-size: 28rpx;
|
|
font-weight: 700;
|
|
color: #f2f7ff;
|
|
}
|
|
|
|
.report-kpi-label {
|
|
font-size: 20rpx;
|
|
color: var(--sub);
|
|
margin-top: 4rpx;
|
|
}
|
|
|
|
.report-trend-item {
|
|
margin-top: 8rpx;
|
|
}
|
|
|
|
.chip-group {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10rpx;
|
|
margin-top: 12rpx;
|
|
}
|
|
|
|
.chip {
|
|
padding: 8rpx 14rpx;
|
|
border-radius: 999rpx;
|
|
color: #dbeeff;
|
|
font-size: 22rpx;
|
|
border: 1rpx solid rgba(145, 185, 228, 0.3);
|
|
background: rgba(28, 64, 103, 0.34);
|
|
}
|
|
|
|
.progress-track {
|
|
margin-top: 10rpx;
|
|
width: 100%;
|
|
height: 14rpx;
|
|
border-radius: 999rpx;
|
|
background: rgba(85, 123, 166, 0.3);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
border-radius: inherit;
|
|
background: linear-gradient(90deg, #ff7654, #ff4f66);
|
|
}
|
|
|
|
.progress-fill-safe {
|
|
background: linear-gradient(90deg, #1fb6ff, #24d49a);
|
|
}
|
|
|
|
.status-spam,
|
|
.status-ham,
|
|
.status-warn,
|
|
.status-pending {
|
|
display: inline-block;
|
|
padding: 4rpx 14rpx;
|
|
border-radius: 999rpx;
|
|
font-weight: 700;
|
|
font-size: 22rpx;
|
|
}
|
|
|
|
.status-spam {
|
|
color: #ffdce1;
|
|
background: rgba(255, 91, 111, 0.22);
|
|
border: 1rpx solid rgba(255, 108, 128, 0.42);
|
|
}
|
|
|
|
.status-ham {
|
|
color: #d4ffe9;
|
|
background: rgba(53, 196, 140, 0.18);
|
|
border: 1rpx solid rgba(86, 220, 167, 0.34);
|
|
}
|
|
|
|
.status-warn {
|
|
color: #ffe8c7;
|
|
background: rgba(255, 181, 71, 0.2);
|
|
border: 1rpx solid rgba(255, 201, 124, 0.4);
|
|
}
|
|
|
|
.status-pending {
|
|
color: #d6e8ff;
|
|
background: rgba(78, 143, 230, 0.22);
|
|
border: 1rpx solid rgba(123, 175, 245, 0.42);
|
|
}
|
|
|
|
.pager-row {
|
|
margin-top: 16rpx;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 16rpx;
|
|
}
|
|
|
|
.pager-btn {
|
|
flex: 1;
|
|
}
|
|
|
|
.muted {
|
|
color: var(--sub);
|
|
font-size: 24rpx;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.small {
|
|
font-size: 22rpx;
|
|
}
|
|
|
|
.empty {
|
|
text-align: center;
|
|
padding: 30rpx 10rpx;
|
|
color: var(--sub);
|
|
font-size: 25rpx;
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.fade-up {
|
|
animation: fadeUp 0.5s ease both;
|
|
}
|
|
|
|
.fade-up-delay-1 {
|
|
animation-delay: 0.08s;
|
|
}
|
|
|
|
.fade-up-delay-2 {
|
|
animation-delay: 0.16s;
|
|
}
|
|
|
|
.fade-up-delay-3 {
|
|
animation-delay: 0.24s;
|
|
}
|
|
|
|
.pulse {
|
|
animation: pulseGlow 2.1s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes heroGlow {
|
|
0% {
|
|
box-shadow: 0 20rpx 54rpx rgba(3, 8, 19, 0.36);
|
|
}
|
|
100% {
|
|
box-shadow: 0 28rpx 72rpx rgba(3, 8, 19, 0.54);
|
|
}
|
|
}
|
|
|
|
@keyframes fadeUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(12rpx);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes pulseGlow {
|
|
0%,
|
|
100% {
|
|
box-shadow: 0 12rpx 30rpx rgba(255, 91, 111, 0.24);
|
|
}
|
|
50% {
|
|
box-shadow: 0 18rpx 36rpx rgba(255, 91, 111, 0.46);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 360px) {
|
|
.hero-title {
|
|
font-size: 38rpx;
|
|
}
|
|
|
|
.grid-3 {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|