| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270 |
- /** 首页量化查询界面样式 **/
- .page-container {
- height: 100vh;
- display: flex;
- flex-direction: column;
- background: #f5f6fb;
- }
- .scroll-view {
- flex: 1;
- height: 0;
- }
- .content-wrapper {
- padding: 32rpx 32rpx 48rpx;
- }
- .card {
- background: #ffffff;
- border-radius: 24rpx;
- padding: 32rpx 32rpx 36rpx;
- box-shadow: 0 16rpx 40rpx rgba(37, 52, 94, 0.08);
- margin-bottom: 32rpx;
- position: relative;
- }
- .search-card {
- margin-top: 16rpx;
- z-index: 10;
- }
- .card-title {
- display: block;
- font-size: 32rpx;
- font-weight: 600;
- color: #222222;
- margin-bottom: 32rpx;
- }
- .search-row {
- display: flex;
- align-items: center;
- background: #f7f8fc;
- border-radius: 999rpx;
- padding: 0 8rpx 0 32rpx;
- height: 96rpx;
- box-sizing: border-box;
- }
- .search-input {
- flex: 1;
- font-size: 28rpx;
- color: #222222;
- }
- .search-placeholder {
- color: #b4b8c6;
- }
- .search-button {
- width: 96rpx;
- height: 80rpx;
- margin-left: 12rpx;
- border-radius: 999rpx;
- background: #f5f6fb;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .search-icon {
- width: 48rpx;
- height: 48rpx;
- }
- .search-tip {
- display: block;
- margin-top: 20rpx;
- font-size: 24rpx;
- color: #9ca2b5;
- }
- /* 下拉列表样式 */
- .search-dropdown {
- position: absolute;
- top: 100%; /* 相对于父元素定位,在搜索框下方 */
- left: 0;
- right: 0;
- margin-top: 8rpx;
- background: #ffffff;
- border-radius: 16rpx;
- box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.15);
- max-height: 400rpx;
- overflow-y: auto;
- z-index: 1000; /* 提高层级,确保在最上层 */
- border: 1rpx solid #f0f0f0;
- }
- .dropdown-item {
- padding: 24rpx 32rpx;
- border-bottom: 1rpx solid #f5f6fb;
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .dropdown-item:last-child {
- border-bottom: none;
- }
- .dropdown-item-hover {
- background-color: #f7f8fc;
- }
- .item-name {
- font-size: 28rpx;
- color: #333;
- }
- .item-code {
- font-size: 24rpx;
- color: #999;
- }
- .result-card {
- margin-top: 8rpx;
- }
- .result-loading {
- font-size: 26rpx;
- color: #666a7f;
- }
- .result-error {
- font-size: 26rpx;
- color: #ff5b5b;
- }
- .detail-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 24rpx;
- }
- .detail-name {
- font-size: 30rpx;
- font-weight: 700;
- color: #1f1f2e;
- }
- .detail-sub {
- margin-top: 8rpx;
- font-size: 24rpx;
- color: #9da3b5;
- }
- .score-badge {
- min-width: 140rpx;
- padding: 12rpx 22rpx;
- border-radius: 20rpx;
- background: #f16565;
- color: #ffffff;
- font-size: 40rpx;
- font-weight: 700;
- text-align: right;
- box-shadow: 0 10rpx 24rpx rgba(241, 101, 101, 0.35);
- }
- .section {
- margin-top: 20rpx;
- }
- .section-title {
- font-size: 28rpx;
- font-weight: 700;
- color: #1f1f2e;
- margin-bottom: 16rpx;
- }
- .history-row {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 18rpx 0;
- border-bottom: 1rpx solid #f1f2f6;
- }
- .history-row:last-child {
- border-bottom: none;
- }
- .history-date {
- font-size: 26rpx;
- color: #3c4050;
- }
- .history-score {
- min-width: 96rpx;
- text-align: center;
- padding: 6rpx 18rpx;
- border-radius: 30rpx;
- font-size: 28rpx;
- font-weight: 700;
- color: #ffffff;
- }
- .tag-danger {
- background: #f16565;
- }
- .tag-success {
- background: #3abf81;
- }
- .tag-info {
- background: #4c86ff;
- }
- .history-note {
- display: block;
- margin-top: 12rpx;
- font-size: 22rpx;
- color: #9da3b5;
- }
- .factor-row {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 14rpx 0;
- }
- .factor-name {
- font-size: 26rpx;
- color: #3c4050;
- }
- .factor-score {
- font-size: 28rpx;
- font-weight: 600;
- color: #4c86ff;
- }
- .card-header {
- display: flex;
- align-items: center;
- margin-bottom: 24rpx;
- }
- .card-header-title {
- font-size: 30rpx;
- font-weight: 600;
- color: #222222;
- }
- .icon-circle {
- width: 40rpx;
- height: 40rpx;
- border-radius: 50%;
- background: #e7f7ef;
- display: flex;
- align-items: center;
- justify-content: center;
- margin-right: 16rpx;
- }
- .icon-check {
- font-size: 24rpx;
- color: #28a745;
- }
- .advantage-item {
- margin-bottom: 12rpx;
- font-size: 26rpx;
- line-height: 1.6;
- color: #4a4f63;
- }
- .advantage-label {
- font-weight: 600;
- }
- .advantage-desc {
- font-weight: 400;
- }
- .risk-card {
- margin-bottom: 24rpx;
- }
- .icon-warning {
- width: 40rpx;
- height: 40rpx;
- border-radius: 50%;
- background: #ffecef;
- display: flex;
- align-items: center;
- justify-content: center;
- margin-right: 16rpx;
- }
- .icon-warning-text {
- font-size: 26rpx;
- color: #ff5b5b;
- }
- .risk-text {
- display: block;
- font-size: 24rpx;
- line-height: 1.8;
- color: #666a7f;
- }
- .bottom-safe-area {
- height: 80rpx;
- }
|