fix: 修复布局对齐 — 比例flex取代固定宽度 + 去掉彩色横条
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- flex:3/flex:2 比例布局取代固定width(用户60%+统计40%) - flex-wrap:nowrap防止换行堆叠 - 去掉stat-card的border-top改为圆形浅色背景图标 - 所有row统一16px gap + 20px padding - min-width:0防止flex溢出
This commit is contained in:
@@ -1,17 +1,9 @@
|
|||||||
/* ============================================
|
/* ============================================
|
||||||
Dashboard — Design System
|
Dashboard — Design System
|
||||||
Based on UI/UX Pro Max Skill
|
|
||||||
============================================ */
|
============================================ */
|
||||||
|
|
||||||
/* --- Tokens --- */
|
/* Tokens */
|
||||||
:root {
|
:root {
|
||||||
--sp-1: 4px;
|
|
||||||
--sp-2: 8px;
|
|
||||||
--sp-3: 12px;
|
|
||||||
--sp-4: 16px;
|
|
||||||
--sp-5: 20px;
|
|
||||||
--sp-6: 24px;
|
|
||||||
--sp-8: 32px;
|
|
||||||
--text-primary: #1F2937;
|
--text-primary: #1F2937;
|
||||||
--text-secondary: #6B7280;
|
--text-secondary: #6B7280;
|
||||||
--text-tertiary: #9CA3AF;
|
--text-tertiary: #9CA3AF;
|
||||||
@@ -23,37 +15,26 @@
|
|||||||
--accent: var(--color-primary, #4F46E5);
|
--accent: var(--color-primary, #4F46E5);
|
||||||
--success: #059669;
|
--success: #059669;
|
||||||
--danger: #DC2626;
|
--danger: #DC2626;
|
||||||
--shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
|
--shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
|
||||||
--shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
|
--shadow-md: 0 4px 8px rgba(0,0,0,0.06);
|
||||||
--radius: 12px;
|
--radius: 12px;
|
||||||
--radius-sm: 8px;
|
--radius-sm: 8px;
|
||||||
--ease: 200ms ease-out;
|
--ease: 200ms ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- Reset conflicting globals --- */
|
/* Base Reset */
|
||||||
.home-main {
|
.home-main { padding: 0 !important; background: #F5F6FA !important; }
|
||||||
padding: 0 !important;
|
|
||||||
background: #F5F6FA !important;
|
|
||||||
}
|
|
||||||
.home-main .main-card {
|
|
||||||
background: transparent !important;
|
|
||||||
max-width: none !important;
|
|
||||||
padding: 0 !important;
|
|
||||||
margin: 0 !important;
|
|
||||||
}
|
|
||||||
.home-main .main-content {
|
|
||||||
display: block !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* --- Dashboard Container --- */
|
/* Dashboard */
|
||||||
.dashboard {
|
.dashboard {
|
||||||
padding: 24px !important;
|
padding: 20px !important;
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
flex-direction: column !important;
|
flex-direction: column !important;
|
||||||
gap: 20px !important;
|
gap: 16px !important;
|
||||||
|
box-sizing: border-box !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- Card Base --- */
|
/* Card */
|
||||||
.card {
|
.card {
|
||||||
background: var(--surface) !important;
|
background: var(--surface) !important;
|
||||||
border-radius: var(--radius) !important;
|
border-radius: var(--radius) !important;
|
||||||
@@ -62,209 +43,163 @@
|
|||||||
box-sizing: border-box !important;
|
box-sizing: border-box !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ====== Row 1 ====== */
|
/* ====== ROW 1 — 用户信息 + 统计卡片(并排) ====== */
|
||||||
.row-1 {
|
.row-1 {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
flex-direction: row !important;
|
flex-direction: row !important;
|
||||||
gap: 20px !important;
|
flex-wrap: nowrap !important;
|
||||||
|
gap: 16px !important;
|
||||||
align-items: stretch !important;
|
align-items: stretch !important;
|
||||||
}
|
}
|
||||||
|
/* 用户卡片:占 60% */
|
||||||
.card-user {
|
.card-user {
|
||||||
flex: 1 1 0% !important;
|
flex: 3 !important;
|
||||||
min-width: 0 !important;
|
min-width: 0 !important;
|
||||||
padding: 24px !important;
|
padding: 20px 24px !important;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
flex-direction: column !important;
|
flex-direction: column !important;
|
||||||
justify-content: center !important;
|
justify-content: center !important;
|
||||||
gap: 16px !important;
|
gap: 14px !important;
|
||||||
}
|
|
||||||
.user-header {
|
|
||||||
display: flex !important;
|
|
||||||
align-items: center !important;
|
|
||||||
gap: 12px !important;
|
|
||||||
}
|
}
|
||||||
|
.user-header { display: flex !important; align-items: center !important; gap: 12px !important; }
|
||||||
.user-avatar {
|
.user-avatar {
|
||||||
width: 44px !important;
|
width: 42px !important; height: 42px !important; border-radius: 50% !important;
|
||||||
height: 44px !important;
|
background: var(--accent) !important; color: #fff !important;
|
||||||
border-radius: 50% !important;
|
font-size: 16px !important; font-weight: 600 !important;
|
||||||
background: var(--accent) !important;
|
display: flex !important; align-items: center !important; justify-content: center !important;
|
||||||
color: #fff !important;
|
|
||||||
font-size: 17px !important;
|
|
||||||
font-weight: 600 !important;
|
|
||||||
display: flex !important;
|
|
||||||
align-items: center !important;
|
|
||||||
justify-content: center !important;
|
|
||||||
flex-shrink: 0 !important;
|
flex-shrink: 0 !important;
|
||||||
}
|
}
|
||||||
.user-greeting {
|
.user-greeting { font-size: 15px; color: var(--text-primary); line-height: 1.4; }
|
||||||
font-size: 15px;
|
|
||||||
color: var(--text-primary);
|
|
||||||
line-height: 1.4;
|
|
||||||
}
|
|
||||||
.user-greeting strong { font-weight: 600; }
|
.user-greeting strong { font-weight: 600; }
|
||||||
.user-level { margin-left: 4px; font-size: 12px; font-weight: 500; }
|
.user-level { margin-left: 4px; font-size: 12px; font-weight: 500; }
|
||||||
.user-id { font-size: 13px; color: var(--text-tertiary); margin-top: 2px; }
|
.user-id { font-size: 13px; color: var(--text-tertiary); margin-top: 2px; }
|
||||||
.user-contacts {
|
.user-contacts { display: flex !important; gap: 20px !important; flex-wrap: wrap; }
|
||||||
display: flex !important;
|
.contact-item { display: flex !important; align-items: center !important; gap: 6px !important; font-size: 13px; color: var(--text-secondary); }
|
||||||
gap: 20px !important;
|
|
||||||
}
|
|
||||||
.contact-item {
|
|
||||||
display: flex !important;
|
|
||||||
align-items: center !important;
|
|
||||||
gap: 6px !important;
|
|
||||||
font-size: 13px;
|
|
||||||
color: var(--text-secondary);
|
|
||||||
}
|
|
||||||
.contact-item i { font-size: 15px; color: var(--text-tertiary); }
|
.contact-item i { font-size: 15px; color: var(--text-tertiary); }
|
||||||
|
|
||||||
/* --- Stats --- */
|
/* 统计卡片组:占 40% */
|
||||||
.stats-group {
|
.stats-group {
|
||||||
|
flex: 2 !important;
|
||||||
|
min-width: 0 !important;
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
flex-direction: row !important;
|
flex-direction: row !important;
|
||||||
gap: 16px !important;
|
flex-wrap: nowrap !important;
|
||||||
flex-shrink: 0 !important;
|
gap: 12px !important;
|
||||||
}
|
}
|
||||||
|
/* 每个统计卡 — 无彩色横条,用圆形图标背景区分 */
|
||||||
.card-stat {
|
.card-stat {
|
||||||
width: 140px !important;
|
flex: 1 !important;
|
||||||
padding: 20px 16px !important;
|
min-width: 0 !important;
|
||||||
|
padding: 16px !important;
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
flex-direction: column !important;
|
flex-direction: column !important;
|
||||||
align-items: center !important;
|
align-items: center !important;
|
||||||
justify-content: center !important;
|
justify-content: center !important;
|
||||||
gap: 6px !important;
|
gap: 8px !important;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
transition: transform var(--ease), box-shadow var(--ease);
|
border-top: none !important;
|
||||||
}
|
transition: box-shadow var(--ease);
|
||||||
.card-stat:hover {
|
|
||||||
transform: translateY(-2px);
|
|
||||||
box-shadow: var(--shadow-md) !important;
|
|
||||||
}
|
}
|
||||||
|
.card-stat:hover { box-shadow: var(--shadow-md) !important; }
|
||||||
.card-stat:active { transform: scale(0.97); }
|
.card-stat:active { transform: scale(0.97); }
|
||||||
.card-stat i { font-size: 24px; }
|
|
||||||
.stat-value {
|
|
||||||
font-size: 26px;
|
|
||||||
font-weight: 700;
|
|
||||||
line-height: 1;
|
|
||||||
color: var(--text-primary);
|
|
||||||
font-variant-numeric: tabular-nums;
|
|
||||||
}
|
|
||||||
.stat-label {
|
|
||||||
font-size: 11px;
|
|
||||||
color: var(--text-tertiary);
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
.stat-purple { border-top: 2px solid #7C3AED !important; }
|
|
||||||
.stat-purple i { color: #7C3AED; }
|
|
||||||
.stat-blue { border-top: 2px solid #2563EB !important; }
|
|
||||||
.stat-blue i { color: #2563EB; }
|
|
||||||
.stat-amber { border-top: 2px solid #D97706 !important; }
|
|
||||||
.stat-amber i { color: #D97706; }
|
|
||||||
|
|
||||||
/* ====== Row 2 ====== */
|
/* 图标用圆形背景 */
|
||||||
|
.card-stat i {
|
||||||
|
width: 36px; height: 36px; border-radius: 50%;
|
||||||
|
display: flex !important; align-items: center !important; justify-content: center !important;
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
.stat-value {
|
||||||
|
font-size: 24px; font-weight: 700; line-height: 1;
|
||||||
|
color: var(--text-primary); font-variant-numeric: tabular-nums;
|
||||||
|
}
|
||||||
|
.stat-label { font-size: 11px; color: var(--text-tertiary); font-weight: 500; }
|
||||||
|
|
||||||
|
/* 统计卡颜色 — 图标圆形背景 */
|
||||||
|
.stat-purple i { background: #F3F0FF; color: #7C3AED; }
|
||||||
|
.stat-blue i { background: #EFF6FF; color: #2563EB; }
|
||||||
|
.stat-amber i { background: #FFF7ED; color: #D97706; }
|
||||||
|
|
||||||
|
/* ====== ROW 2 — 余额 + 侧边 ====== */
|
||||||
.row-2 {
|
.row-2 {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
flex-direction: row !important;
|
flex-direction: row !important;
|
||||||
gap: 20px !important;
|
flex-wrap: nowrap !important;
|
||||||
|
gap: 16px !important;
|
||||||
align-items: stretch !important;
|
align-items: stretch !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 余额卡 60% */
|
||||||
.card-balance {
|
.card-balance {
|
||||||
flex: 1 1 0% !important;
|
flex: 3 !important;
|
||||||
min-width: 0 !important;
|
min-width: 0 !important;
|
||||||
padding: 24px !important;
|
padding: 20px 24px !important;
|
||||||
}
|
|
||||||
.balance-header {
|
|
||||||
display: flex !important;
|
|
||||||
align-items: center !important;
|
|
||||||
justify-content: space-between !important;
|
|
||||||
}
|
}
|
||||||
|
.balance-header { display: flex !important; align-items: center !important; justify-content: space-between !important; }
|
||||||
.balance-title { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
|
.balance-title { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
|
||||||
.balance-btn {
|
.balance-btn {
|
||||||
font-size: 13px;
|
font-size: 13px; color: #fff; background: var(--accent);
|
||||||
color: #fff;
|
padding: 5px 14px; border-radius: 999px; cursor: pointer; font-weight: 500;
|
||||||
background: var(--accent);
|
|
||||||
padding: 5px 14px;
|
|
||||||
border-radius: 999px;
|
|
||||||
cursor: pointer;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
}
|
||||||
.balance-btn:hover { opacity: 0.85; }
|
.balance-btn:hover { opacity: 0.85; }
|
||||||
.balance-amount {
|
.balance-amount { font-size: 32px; font-weight: 700; color: var(--text-primary); margin: 10px 0 4px; line-height: 1.1; font-variant-numeric: tabular-nums; }
|
||||||
font-size: 32px;
|
.balance-amount .currency { font-size: 18px; margin-right: 2px; font-weight: 500; color: var(--text-secondary); }
|
||||||
font-weight: 700;
|
|
||||||
color: var(--text-primary);
|
|
||||||
margin: 10px 0 4px;
|
|
||||||
line-height: 1.1;
|
|
||||||
font-variant-numeric: tabular-nums;
|
|
||||||
}
|
|
||||||
.balance-amount .currency {
|
|
||||||
font-size: 18px;
|
|
||||||
margin-right: 2px;
|
|
||||||
font-weight: 500;
|
|
||||||
color: var(--text-secondary);
|
|
||||||
}
|
|
||||||
.balance-extra { margin-bottom: 4px; }
|
.balance-extra { margin-bottom: 4px; }
|
||||||
.recharge-link { font-size: 13px; color: var(--accent); cursor: pointer; }
|
.recharge-link { font-size: 13px; color: var(--accent); cursor: pointer; }
|
||||||
.balance-footer {
|
.balance-footer {
|
||||||
display: flex !important;
|
display: flex !important; align-items: center !important;
|
||||||
align-items: center !important;
|
padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--border-light);
|
||||||
padding-top: 16px;
|
|
||||||
margin-top: 16px;
|
|
||||||
border-top: 1px solid var(--border-light);
|
|
||||||
}
|
}
|
||||||
.consume-item {
|
.consume-item { flex: 1; display: flex !important; align-items: center !important; gap: 8px !important; }
|
||||||
flex: 1;
|
.consume-label { font-size: 13px; color: var(--text-tertiary); white-space: nowrap; }
|
||||||
display: flex !important;
|
|
||||||
align-items: center !important;
|
|
||||||
gap: 8px !important;
|
|
||||||
}
|
|
||||||
.consume-label { font-size: 13px; color: var(--text-tertiary); }
|
|
||||||
.consume-value { font-size: 14px; font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; }
|
.consume-value { font-size: 14px; font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; }
|
||||||
.consume-divider { width: 1px; height: 14px; background: var(--border); margin: 0 16px; }
|
.consume-divider { width: 1px; height: 14px; background: var(--border); margin: 0 16px; flex-shrink: 0; }
|
||||||
.trend-up { font-size: 12px; color: var(--success); font-weight: 500; }
|
.trend-up { font-size: 12px; color: var(--success); font-weight: 500; }
|
||||||
.trend-down { font-size: 12px; color: var(--danger); font-weight: 500; }
|
.trend-down { font-size: 12px; color: var(--danger); font-weight: 500; }
|
||||||
|
|
||||||
/* Credit */
|
/* Credit */
|
||||||
.credit-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-light); display: flex; flex-direction: column; gap: 8px; }
|
.credit-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-light); display: flex; flex-direction: column; gap: 8px; }
|
||||||
.credit-row { display: flex; align-items: center; justify-content: space-between; }
|
.credit-row { display: flex; align-items: center; justify-content: space-between; }
|
||||||
.credit-label { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
|
.credit-label { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
|
||||||
.credit-val { font-size: 14px; font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; }
|
.credit-val { font-size: 14px; font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; }
|
||||||
.credit-tag { font-size: 11px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border); color: var(--text-secondary); background: var(--surface-muted); }
|
.credit-tag { font-size: 11px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border); color: var(--text-secondary); background: var(--surface-muted); }
|
||||||
|
|
||||||
/* Coin */
|
/* Coin */
|
||||||
.coin-section { margin-top: 16px; padding: 16px; background: var(--surface-muted); border-radius: var(--radius-sm); }
|
.coin-section { margin-top: 14px; padding: 14px; background: var(--surface-muted); border-radius: var(--radius-sm); }
|
||||||
.coin-header { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--text-secondary); }
|
.coin-header { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--text-secondary); }
|
||||||
.coin-link { font-size: 13px; color: var(--accent); }
|
.coin-link { font-size: 13px; color: var(--accent); }
|
||||||
.coin-amount { margin-top: 8px; font-size: 20px; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
|
.coin-amount { margin-top: 6px; font-size: 20px; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
|
||||||
|
|
||||||
/* Voucher */
|
/* Voucher */
|
||||||
.voucher-row { margin-top: 12px; font-size: 12px; color: var(--text-tertiary); }
|
.voucher-row { margin-top: 10px; font-size: 12px; color: var(--text-tertiary); }
|
||||||
.voucher-link { color: var(--accent); margin-left: 4px; }
|
.voucher-link { color: var(--accent); margin-left: 4px; }
|
||||||
|
|
||||||
/* --- Side Card --- */
|
/* 侧边卡 40% */
|
||||||
.card-side {
|
.card-side {
|
||||||
width: 380px !important;
|
flex: 2 !important;
|
||||||
flex-shrink: 0 !important;
|
min-width: 0 !important;
|
||||||
padding: 24px !important;
|
padding: 20px 24px !important;
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
flex-direction: column !important;
|
flex-direction: column !important;
|
||||||
gap: 20px !important;
|
gap: 16px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Certification */
|
/* Certification */
|
||||||
.cert-section { display: flex; flex-direction: column; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--border-light); }
|
.cert-section { display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
|
||||||
.cert-item { display: flex; align-items: center; gap: 12px; }
|
.cert-item { display: flex; align-items: center; gap: 10px; }
|
||||||
.cert-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--surface-muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
|
.cert-icon {
|
||||||
.cert-icon i { font-size: 18px; color: var(--text-secondary); }
|
width: 34px; height: 34px; border-radius: var(--radius-sm);
|
||||||
|
background: var(--surface-muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
|
||||||
|
}
|
||||||
|
.cert-icon i { font-size: 16px; color: var(--text-secondary); }
|
||||||
.cert-label { font-size: 12px; color: var(--text-tertiary); }
|
.cert-label { font-size: 12px; color: var(--text-tertiary); }
|
||||||
.cert-value { font-size: 14px; color: var(--text-primary); font-weight: 500; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
.cert-value { font-size: 14px; color: var(--text-primary); font-weight: 500; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||||
.cert-action { font-size: 14px; color: var(--accent); cursor: pointer; font-weight: 500; }
|
.cert-action { font-size: 14px; color: var(--accent); cursor: pointer; font-weight: 500; }
|
||||||
|
|
||||||
/* Referral Open */
|
/* Referral Open */
|
||||||
.referral-open { display: flex; flex-direction: column; gap: 14px; }
|
.referral-open { display: flex; flex-direction: column; gap: 12px; }
|
||||||
.referral-title { display: flex; align-items: center; justify-content: space-between; }
|
.referral-title { display: flex; align-items: center; justify-content: space-between; }
|
||||||
.referral-title > span:first-child { font-size: 15px; font-weight: 600; color: var(--text-primary); }
|
.referral-title > span:first-child { font-size: 15px; font-weight: 600; color: var(--text-primary); }
|
||||||
.referral-reward { font-size: 12px; color: #fff; background: var(--danger); padding: 3px 10px; border-radius: 999px; cursor: pointer; display: flex; align-items: center; gap: 4px; }
|
.referral-reward { font-size: 12px; color: #fff; background: var(--danger); padding: 3px 10px; border-radius: 999px; cursor: pointer; display: flex; align-items: center; gap: 4px; }
|
||||||
@@ -272,64 +207,66 @@
|
|||||||
.referral-reward i { font-size: 13px; }
|
.referral-reward i { font-size: 13px; }
|
||||||
.referral-url { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
|
.referral-url { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
|
||||||
.url-text { flex: 1; padding: 8px 12px; font-size: 13px; color: var(--text-secondary); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: var(--surface-muted); line-height: 1.6; }
|
.url-text { flex: 1; padding: 8px 12px; font-size: 13px; color: var(--text-secondary); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: var(--surface-muted); line-height: 1.6; }
|
||||||
.url-copy { padding: 8px 16px; font-size: 13px; color: var(--accent); font-weight: 500; cursor: pointer; border-left: 1px solid var(--border); transition: background var(--ease); }
|
.url-copy { padding: 8px 16px; font-size: 13px; color: var(--accent); font-weight: 500; cursor: pointer; border-left: 1px solid var(--border); }
|
||||||
.url-copy:hover { background: var(--surface-hover); }
|
.url-copy:hover { background: var(--surface-hover); }
|
||||||
.referral-stats { display: flex; gap: 12px; }
|
.referral-stats { display: flex; gap: 10px; }
|
||||||
.ref-stat { flex: 1; padding: 12px 14px; background: var(--surface-muted); border-radius: var(--radius-sm); }
|
.ref-stat { flex: 1; padding: 10px 12px; background: var(--surface-muted); border-radius: var(--radius-sm); }
|
||||||
.ref-amount { font-size: 18px; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
|
.ref-amount { font-size: 16px; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
|
||||||
.ref-label { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
|
.ref-label { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
|
||||||
|
|
||||||
/* Referral Closed */
|
/* Referral Closed */
|
||||||
.referral-closed { text-align: center; padding: 20px 0; }
|
.referral-closed { text-align: center; padding: 16px 0; }
|
||||||
.referral-closed > i { font-size: 36px; color: var(--border); }
|
.referral-closed > i { font-size: 32px; color: var(--border); }
|
||||||
.referral-closed h3 { font-size: 15px; color: var(--text-primary); margin: 10px 0 4px; font-weight: 500; }
|
.referral-closed h3 { font-size: 14px; color: var(--text-primary); margin: 8px 0 4px; font-weight: 500; }
|
||||||
.referral-closed p { font-size: 13px; color: var(--text-tertiary); margin-bottom: 14px; }
|
.referral-closed p { font-size: 13px; color: var(--text-tertiary); margin-bottom: 12px; }
|
||||||
.referral-open-btn { display: inline-block; padding: 7px 20px; background: var(--accent); color: #fff; font-size: 13px; border-radius: 999px; cursor: pointer; font-weight: 500; }
|
.referral-open-btn { display: inline-block; padding: 6px 18px; background: var(--accent); color: #fff; font-size: 13px; border-radius: 999px; cursor: pointer; font-weight: 500; }
|
||||||
.referral-open-btn:hover { opacity: 0.85; }
|
.referral-open-btn:hover { opacity: 0.85; }
|
||||||
.referral-disabled { font-size: 13px; color: var(--text-tertiary); margin-top: 8px; }
|
.referral-disabled { font-size: 13px; color: var(--text-tertiary); margin-top: 6px; }
|
||||||
|
|
||||||
/* ====== Row 3 ====== */
|
/* ====== ROW 3 — 产品列表 + 侧栏 ====== */
|
||||||
.row-3 {
|
.row-3 {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
flex-direction: row !important;
|
flex-direction: row !important;
|
||||||
gap: 20px !important;
|
flex-wrap: nowrap !important;
|
||||||
|
gap: 16px !important;
|
||||||
align-items: flex-start !important;
|
align-items: flex-start !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 产品卡 65% */
|
||||||
.card-products {
|
.card-products {
|
||||||
flex: 1 1 0% !important;
|
flex: 3 !important;
|
||||||
min-width: 0 !important;
|
min-width: 0 !important;
|
||||||
padding: 24px !important;
|
padding: 20px 24px !important;
|
||||||
}
|
}
|
||||||
.section-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin: 0 0 16px; }
|
.section-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin: 0 0 14px; }
|
||||||
.product-link { color: var(--accent); font-weight: 500; text-decoration: none; }
|
.product-link { color: var(--accent); font-weight: 500; text-decoration: none; }
|
||||||
.product-link:hover { text-decoration: underline; }
|
.product-link:hover { text-decoration: underline; }
|
||||||
.text-danger { color: var(--danger); }
|
.text-danger { color: var(--danger); }
|
||||||
|
|
||||||
/* Empty */
|
/* Empty */
|
||||||
.empty-state { text-align: center; padding: 48px 0; }
|
.empty-state { text-align: center; padding: 40px 0; }
|
||||||
.empty-state > i { font-size: 44px; color: var(--border); }
|
.empty-state > i { font-size: 40px; color: var(--border); }
|
||||||
.empty-state h3 { font-size: 15px; color: var(--text-primary); margin: 14px 0 4px; font-weight: 500; }
|
.empty-state h3 { font-size: 15px; color: var(--text-primary); margin: 12px 0 4px; font-weight: 500; }
|
||||||
.empty-state p { font-size: 13px; color: var(--text-tertiary); margin-bottom: 16px; }
|
.empty-state p { font-size: 13px; color: var(--text-tertiary); margin-bottom: 14px; }
|
||||||
.empty-state .el-button { padding: 8px 22px; font-size: 14px; border: none; background: var(--accent); color: #fff; border-radius: 999px; }
|
.empty-state .el-button { padding: 8px 22px; font-size: 14px; border: none; background: var(--accent); color: #fff; border-radius: 999px; }
|
||||||
|
|
||||||
/* Sidebar */
|
/* 侧栏 35% */
|
||||||
.card-sidebar {
|
.card-sidebar {
|
||||||
width: 320px !important;
|
flex: 2 !important;
|
||||||
flex-shrink: 0 !important;
|
min-width: 0 !important;
|
||||||
padding: 24px !important;
|
padding: 20px 24px !important;
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
flex-direction: column !important;
|
flex-direction: column !important;
|
||||||
gap: 20px !important;
|
gap: 20px !important;
|
||||||
}
|
}
|
||||||
.sidebar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
|
.sidebar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
|
||||||
.sidebar-header > span:first-child { font-size: 14px; font-weight: 600; color: var(--text-primary); }
|
.sidebar-header > span:first-child { font-size: 14px; font-weight: 600; color: var(--text-primary); }
|
||||||
.sidebar-more { cursor: pointer; font-size: 16px; color: var(--text-tertiary); padding: 2px 6px; border-radius: 4px; }
|
.sidebar-more { cursor: pointer; font-size: 16px; color: var(--text-tertiary); padding: 2px 6px; border-radius: 4px; }
|
||||||
.sidebar-more:hover { background: var(--surface-muted); }
|
.sidebar-more:hover { background: var(--surface-muted); }
|
||||||
|
|
||||||
/* Tickets */
|
/* Tickets */
|
||||||
.ticket-list { display: flex; flex-direction: column; gap: 6px; }
|
.ticket-list { display: flex; flex-direction: column; gap: 4px; }
|
||||||
.ticket-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--ease); }
|
.ticket-item { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--ease); }
|
||||||
.ticket-item:hover { background: var(--surface-hover); }
|
.ticket-item:hover { background: var(--surface-hover); }
|
||||||
.ticket-status { flex-shrink: 0; font-size: 11px; padding: 2px 8px; border-radius: 4px; color: #fff; font-weight: 500; }
|
.ticket-status { flex-shrink: 0; font-size: 11px; padding: 2px 8px; border-radius: 4px; color: #fff; font-weight: 500; }
|
||||||
.ticket-title { font-size: 13px; color: var(--text-primary); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
.ticket-title { font-size: 13px; color: var(--text-primary); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
||||||
@@ -337,13 +274,13 @@
|
|||||||
|
|
||||||
/* Notices */
|
/* Notices */
|
||||||
.notice-list { display: flex; flex-direction: column; }
|
.notice-list { display: flex; flex-direction: column; }
|
||||||
.notice-item { display: flex; align-items: center; justify-content: space-between; padding: 10px; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--ease); }
|
.notice-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--ease); }
|
||||||
.notice-item:hover { background: var(--surface-hover); }
|
.notice-item:hover { background: var(--surface-hover); }
|
||||||
.notice-title { font-size: 13px; color: var(--text-primary); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
.notice-title { font-size: 13px; color: var(--text-primary); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
||||||
.notice-meta { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
|
.notice-meta { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
|
||||||
.notice-item > i { font-size: 13px; color: var(--border); flex-shrink: 0; }
|
.notice-item > i { font-size: 13px; color: var(--border); flex-shrink: 0; }
|
||||||
|
|
||||||
/* ====== Element UI Table Override ====== */
|
/* ====== Element UI Override ====== */
|
||||||
.card-products .el-table { background: transparent !important; color: var(--text-primary); font-size: 13px; }
|
.card-products .el-table { background: transparent !important; color: var(--text-primary); font-size: 13px; }
|
||||||
.card-products .el-table th { background: var(--surface-muted) !important; color: var(--text-secondary) !important; font-weight: 500 !important; font-size: 12px !important; border-bottom: none !important; }
|
.card-products .el-table th { background: var(--surface-muted) !important; color: var(--text-secondary) !important; font-weight: 500 !important; font-size: 12px !important; border-bottom: none !important; }
|
||||||
.card-products .el-table td { border-bottom: 1px solid var(--border-light) !important; }
|
.card-products .el-table td { border-bottom: 1px solid var(--border-light) !important; }
|
||||||
@@ -351,25 +288,24 @@
|
|||||||
.card-products .el-table::before { display: none; }
|
.card-products .el-table::before { display: none; }
|
||||||
.card-products .el-table__empty-block { display: none; }
|
.card-products .el-table__empty-block { display: none; }
|
||||||
|
|
||||||
/* ====== Dialog ====== */
|
/* Dialog */
|
||||||
.open-dialog { border-radius: var(--radius); font-size: 14px; }
|
.open-dialog { border-radius: var(--radius); }
|
||||||
.open-dialog .dialog-footer .btn-ok { padding: 8px 20px; background: var(--accent); border-radius: 999px; color: #fff; border: none; }
|
.open-dialog .dialog-footer .btn-ok { padding: 8px 20px; background: var(--accent); border-radius: 999px; color: #fff; border: none; }
|
||||||
.open-dialog .dialog-footer .btn-no { padding: 8px 20px; border-radius: 999px; }
|
.open-dialog .dialog-footer .btn-no { padding: 8px 20px; border-radius: 999px; }
|
||||||
|
|
||||||
/* ====== WeChat ====== */
|
/* WeChat */
|
||||||
.wx-code { position: fixed; right: 24px; bottom: 24px; z-index: 100; }
|
.wx-code { position: fixed; right: 24px; bottom: 24px; z-index: 100; }
|
||||||
.wx-box .tit { text-align: center; font-size: 14px; color: var(--text-primary); margin-bottom: 8px; }
|
.wx-box .tit { text-align: center; font-size: 14px; color: var(--text-primary); margin-bottom: 8px; }
|
||||||
.wx-box .img { display: flex; justify-content: center; }
|
.wx-box .img { display: flex; justify-content: center; }
|
||||||
.wx-box .img img { width: 160px; height: 160px; }
|
.wx-box .img img { width: 160px; height: 160px; }
|
||||||
.wx-img { width: 44px; height: 44px; border-radius: 50%; background: #07C160; cursor: pointer; box-shadow: 0 2px 8px rgba(7,193,96,0.25); }
|
.wx-img { width: 44px; height: 44px; border-radius: 50%; background: #07C160; cursor: pointer; box-shadow: 0 2px 8px rgba(7,193,96,0.25); }
|
||||||
|
|
||||||
/* ====== Responsive ====== */
|
/* Responsive */
|
||||||
@media (max-width: 1200px) {
|
@media (max-width: 1100px) {
|
||||||
.row-1, .row-2, .row-3 { flex-direction: column !important; }
|
.row-1, .row-2, .row-3 { flex-wrap: wrap !important; }
|
||||||
.stats-group { width: 100% !important; }
|
.card-user, .card-balance, .card-products { flex: 1 1 100% !important; }
|
||||||
.card-side, .card-sidebar { width: 100% !important; }
|
.stats-group, .card-side, .card-sidebar { flex: 1 1 100% !important; }
|
||||||
.card-stat { width: auto !important; flex: 1 !important; }
|
|
||||||
}
|
}
|
||||||
@media (prefers-reduced-motion: reduce) {
|
@media (prefers-reduced-motion: reduce) {
|
||||||
* { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
|
* { transition-duration: 0.01ms !important; }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user