/** app.wxss - Apple Design System (Compact) */ page { /* Background Colors */ --bg-canvas: #ffffff; --bg-parchment: #f5f5f7; --bg-pearl: #fafafc; --bg-nav: #000000; /* Text Colors */ --text-primary: #1d1d1f; --text-secondary: #86868b; --text-muted: #cccccc; --text-dark-surface: #ffffff; --text-fine-print: #7a7a7a; /* Accent Colors */ --accent-primary: #0066cc; --accent-focus: #0071e3; --accent-link: #2997ff; /* Status Colors (Apple System) */ --status-spam: #ff3b30; --status-ham: #34c759; --status-warn: #ff9500; --status-pending: #8e8e93; /* Border Colors */ --border-light: #f0f0f0; --border-medium: #e0e0e0; /* Radius */ --radius-none: 0rpx; --radius-sm: 12rpx; --radius-md: 16rpx; --radius-lg: 24rpx; --radius-pill: 9999rpx; /* Spacing (Compact) */ --spacing-xs: 8rpx; --spacing-sm: 16rpx; --spacing-md: 24rpx; --spacing-lg: 48rpx; --spacing-xl: 64rpx; /* Typography */ --font-display: 'PingFang SC', 'SF Pro Display', -apple-system, sans-serif; --font-text: 'PingFang SC', 'SF Pro Text', -apple-system, sans-serif; min-height: 100%; color: var(--text-primary); font-family: var(--font-text); font-size: 28rpx; line-height: 1.4; background: var(--bg-parchment); } .container { position: relative; padding: var(--spacing-sm); padding-bottom: calc(var(--spacing-md) + env(safe-area-inset-bottom)); } /* Hero Section */ .hero { position: relative; padding: var(--spacing-md) 0; text-align: center; } .hero-badge { display: inline-block; padding: 6rpx 12rpx; border-radius: var(--radius-pill); background: var(--bg-pearl); color: var(--accent-primary); font-family: var(--font-text); font-size: 20rpx; font-weight: 600; } .hero-title { margin-top: var(--spacing-sm); font-family: var(--font-display); font-size: 48rpx; font-weight: 600; letter-spacing: -1rpx; color: var(--text-primary); line-height: 1.1; } .hero-sub { margin-top: var(--spacing-xs); font-size: 26rpx; color: var(--text-secondary); line-height: 1.4; max-width: 600rpx; margin-left: auto; margin-right: auto; } .hero-meta { display: flex; flex-wrap: wrap; gap: 8rpx; margin-top: var(--spacing-sm); justify-content: center; } .hero-metric { padding: 6rpx 12rpx; font-size: 22rpx; color: var(--text-secondary); border-radius: var(--radius-sm); background: var(--bg-canvas); } /* Cards */ .card { margin-top: var(--spacing-sm); padding: var(--spacing-sm); background: var(--bg-canvas); border: 1rpx solid var(--border-medium); border-radius: var(--radius-lg); overflow: hidden; } .card-title { margin-bottom: var(--spacing-xs); color: var(--text-primary); font-family: var(--font-display); font-size: 32rpx; font-weight: 600; } .card-desc { margin-bottom: var(--spacing-xs); color: var(--text-secondary); font-size: 24rpx; line-height: 1.4; } /* Divider */ .glass-divider { margin: var(--spacing-xs) 0; height: 1rpx; background: var(--border-light); } /* Fields */ .field { margin-top: var(--spacing-xs); } .field-label { display: block; margin-bottom: 6rpx; color: var(--text-secondary); font-size: 24rpx; } .field-help { margin-top: 6rpx; color: var(--text-secondary); font-size: 22rpx; } /* Inputs */ .input, .textarea { width: 100%; box-sizing: border-box; min-height: 72rpx; padding: 0 var(--spacing-sm); background: var(--bg-parchment); border: 1rpx solid var(--border-light); border-radius: var(--radius-md); color: var(--text-primary); font-size: 28rpx; line-height: 72rpx; } .input:focus, .textarea:focus { outline: none; border-color: var(--accent-primary); } .textarea { min-height: 160rpx; padding-top: var(--spacing-xs); line-height: 1.4; } .picker-value { min-width: 140rpx; text-align: right; color: var(--accent-primary); font-size: 26rpx; } /* Buttons */ .btn-row { display: flex; gap: var(--spacing-xs); margin-top: var(--spacing-xs); } .btn-row .btn { flex: 1; margin-top: 0; } .btn { margin-top: var(--spacing-xs); padding: 16rpx 32rpx; border: none; border-radius: var(--radius-pill); font-family: var(--font-text); font-size: 26rpx; font-weight: 400; color: var(--text-dark-surface); background: var(--accent-primary); transition: transform 0.1s ease; } button.btn::after { border: none; } .btn:active { transform: scale(0.95); } .btn[disabled] { opacity: 0.3; transform: none; } /* Primary Button */ .btn-primary { color: var(--text-dark-surface); background: var(--accent-primary); } /* Ghost Button */ .btn-ghost { color: var(--accent-primary); background: transparent; border: 1rpx solid var(--accent-primary); } .btn-ghost:active { background: rgba(0, 102, 204, 0.1); } .btn-ghost[disabled] { opacity: 0.3; border-color: var(--text-secondary); color: var(--text-secondary); } /* Accent Button */ .btn-accent { color: var(--accent-primary); background: var(--bg-pearl); } .btn-accent:active { background: var(--bg-parchment); } /* Rows */ .row { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-xs); } .row + .row { margin-top: var(--spacing-xs); } .label { color: var(--text-secondary); font-size: 24rpx; } .value { color: var(--text-primary); font-size: 26rpx; font-weight: 400; } /* Grids */ .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-xs); } .grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-xs); } .grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(180rpx, 1fr)); gap: var(--spacing-xs); } /* KPI Cards */ .kpi { padding: var(--spacing-xs); background: var(--bg-parchment); border-radius: var(--radius-md); text-align: center; } .kpi-value { font-family: var(--font-display); font-size: 36rpx; font-weight: 600; color: var(--text-primary); line-height: 1.2; } .kpi-label { margin-top: 4rpx; font-size: 22rpx; color: var(--text-secondary); } /* Module Cards */ .module-card { padding: var(--spacing-xs); background: var(--bg-canvas); border: 1rpx solid var(--border-medium); border-radius: var(--radius-md); transition: transform 0.1s ease; } .module-card:active { transform: scale(0.98); } .module-name { color: var(--text-primary); font-size: 28rpx; font-weight: 600; } .module-desc { margin-top: 4rpx; color: var(--text-secondary); font-size: 22rpx; line-height: 1.4; } .module-tag { display: inline-block; margin-top: var(--spacing-xs); padding: 4rpx 10rpx; color: var(--accent-primary); font-size: 20rpx; font-weight: 600; background: rgba(0, 102, 204, 0.1); border-radius: var(--radius-pill); } /* List Items */ .list-item { margin-top: var(--spacing-xs); padding: var(--spacing-xs); background: var(--bg-canvas); border: 1rpx solid var(--border-light); border-radius: var(--radius-md); } .list-item:active { background: var(--bg-parchment); } .item-title { color: var(--text-primary); font-size: 28rpx; font-weight: 600; line-height: 1.3; } .item-sub { margin-top: 4rpx; color: var(--text-secondary); font-size: 22rpx; line-height: 1.4; } /* Tags & Chips */ .tag { display: inline-block; margin-right: 6rpx; margin-bottom: 6rpx; padding: 4rpx 10rpx; border-radius: var(--radius-sm); font-size: 22rpx; font-family: var(--font-text); color: var(--text-primary); background: var(--bg-parchment); } .tag-danger { color: var(--status-spam); background: rgba(255, 59, 48, 0.1); } .chip-group { display: flex; flex-wrap: wrap; gap: 6rpx; margin-top: var(--spacing-xs); } .chip { padding: 6rpx 12rpx; border-radius: var(--radius-pill); font-size: 22rpx; color: var(--text-secondary); background: var(--bg-parchment); } .chip:active { background: var(--bg-pearl); } /* Progress Track */ .progress-track { margin-top: 6rpx; width: 100%; height: 6rpx; background: var(--border-light); border-radius: var(--radius-pill); } .progress-fill { height: 100%; background: var(--status-spam); border-radius: var(--radius-pill); } .progress-fill-safe { height: 100%; background: var(--status-ham); border-radius: var(--radius-pill); } /* Status Labels */ .status-spam, .status-ham, .status-warn, .status-pending { display: inline-block; padding: 4rpx 12rpx; font-size: 22rpx; font-family: var(--font-text); font-weight: 600; border-radius: var(--radius-pill); } .status-spam { color: var(--text-dark-surface); background: var(--status-spam); } .status-ham { color: var(--text-dark-surface); background: var(--status-ham); } .status-warn { color: var(--text-dark-surface); background: var(--status-warn); } .status-pending { color: var(--text-primary); background: var(--bg-parchment); } /* Pager */ .pager-row { margin-top: var(--spacing-xs); display: flex; justify-content: space-between; gap: var(--spacing-xs); } .pager-btn { flex: 1; } /* Muted & Small */ .muted { color: var(--text-secondary); font-size: 22rpx; line-height: 1.4; } .small { font-size: 20rpx; } .empty { text-align: center; padding: var(--spacing-md); color: var(--text-secondary); font-size: 24rpx; line-height: 1.4; } /* Animations */ .fade-up { animation: fadeUp 0.3s ease both; } .fade-up-delay-1 { animation-delay: 0.05s; } .fade-up-delay-2 { animation-delay: 0.1s; } .fade-up-delay-3 { animation-delay: 0.15s; } @keyframes fadeUp { from { opacity: 0; transform: translateY(12rpx); } to { opacity: 1; transform: translateY(0); } } /* Evidence Upload */ .evidence-grid { display: flex; flex-wrap: wrap; gap: var(--spacing-xs); margin-top: var(--spacing-xs); } .evidence-item { position: relative; width: 100rpx; height: 100rpx; border-radius: var(--radius-sm); overflow: hidden; } .evidence-thumb { width: 100%; height: 100%; display: block; } .evidence-clickable:active { opacity: 0.8; } .evidence-remove { position: absolute; top: -4rpx; right: -4rpx; width: 28rpx; height: 28rpx; background: var(--status-spam); color: var(--text-dark-surface); font-size: 20rpx; text-align: center; line-height: 28rpx; border-radius: 50%; } .evidence-add { width: 100rpx; height: 100rpx; border-radius: var(--radius-sm); background: var(--bg-parchment); display: flex; align-items: center; justify-content: center; } .evidence-add-icon { font-size: 36rpx; color: var(--text-secondary); } /* Credit Score Bar */ .credit-score-bar { position: relative; width: 140rpx; height: 20rpx; background: var(--border-light); border-radius: var(--radius-pill); } .credit-fill { height: 100%; background: var(--status-ham); border-radius: var(--radius-pill); } .credit-value { position: absolute; right: 8rpx; top: 50%; transform: translateY(-50%); font-size: 18rpx; color: var(--text-primary); } /* Report Modal */ .report-modal { margin-top: var(--spacing-sm); padding: var(--spacing-sm); background: var(--bg-canvas); border: 1rpx solid var(--border-medium); border-radius: var(--radius-lg); position: relative; } .report-header { text-align: center; margin-bottom: var(--spacing-xs); } .report-title { font-size: 32rpx; font-weight: 600; color: var(--text-primary); font-family: var(--font-display); } .report-period { font-size: 22rpx; color: var(--text-secondary); margin-top: 4rpx; } .report-close { position: absolute; top: var(--spacing-xs); right: var(--spacing-xs); width: 36rpx; height: 36rpx; color: var(--status-spam); font-size: 28rpx; text-align: center; line-height: 36rpx; } .report-section { margin-top: var(--spacing-xs); padding: var(--spacing-xs); background: transparent; border-top: 1rpx solid var(--border-light); } .report-section-title { font-size: 24rpx; color: var(--text-secondary); margin-bottom: var(--spacing-xs); font-weight: 600; } .report-kpi { padding: var(--spacing-xs); background: var(--bg-parchment); text-align: center; border-radius: var(--radius-md); } .report-kpi-value { font-size: 28rpx; font-weight: 600; color: var(--text-primary); } .report-kpi-label { font-size: 20rpx; color: var(--text-secondary); margin-top: 4rpx; } .report-trend-item { margin-top: 4rpx; } /* Note textarea */ .note-textarea { min-height: 100rpx; } /* Media Query */ @media (max-width: 360px) { .hero-title { font-size: 40rpx; } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }