myBusi.css 5.7 KB
html {
    font-size: calc(100vw/7.5);
}
[v-cloak] {
    display: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

body {
    font-family: 'Source Han Sans CN', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f7f8fa;
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    background-color: #f7f8fa;
    margin: 0 auto;
    position: relative;
    padding-bottom: 1.31rem; /* 为底部导航预留空间 */
}

/* 搜索区域 */
.search-section {
    background-color: white;
    padding: 0.2rem;
    border-bottom: 1px solid #f1f1f1;
}

.search-bar {
    background-color: #f7f8fa;
    height: 0.96rem;
    border-radius: 0.16rem;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-container {
    display: flex;
    align-items: center;
    gap: 0.24rem;
    width: 100%;
    padding: 0 0.32rem;
}

.search-icon {
    width: 0.32rem;
    height: 0.32rem;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Source Han Sans CN', sans-serif;
    font-size: 0.28rem;
    color: #999999;
}

.search-input::placeholder {
    color: #999999;
}

/* 标签页统计 */
.tab-stats {
    background-color: white;
    position: relative;
    height: 1.12rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.32rem;
}

.active-indicator {
    position: absolute;
    bottom: 0;
    background-color: #0068ee;
    height: 0.08rem;
    border-radius: 0.04rem;
    transition: all 0.3s ease;
}

.tab-texts {
    display: flex;
    gap: 0.64rem;
    align-items: center;
}

.tab-text {
    font-family: 'Source Han Sans CN', sans-serif;
    font-size: 0.28rem;
    color: #666666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-text.active {
    font-weight: bold;
    font-size: 0.32rem;
    color: #333333;
}

/* 筛选标签 */
.filter-tags {
    display: flex;
    padding: 0.32rem;
}

.filter-tag {
    background-color: #EDEEF0;
    border-radius: 0.08rem;
    padding: 0.12rem 0.2rem;
    font-size: 0.28rem;
    color: #666666;
    margin-right: .16rem;
}

.filter-tag.active {
    background-color: #fff;
    color: #0068EE;
}

/* 商机列表 */
.business-list {
    padding: 0 0.32rem;
    height: calc(100vh - 5.2rem);
    overflow: auto;
}

.business-card {
    background-color: white;
    border-radius: 0.16rem;
    margin-bottom: 0.24rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.business-card:active {
    transform: scale(0.98);
}

/* 卡片头部 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.24rem;
    border-bottom: 1px solid #F1F1F1;
}

.business-number {
    font-family: 'Source Han Sans CN', sans-serif;
    font-size: 0.28rem;
    color: #666666;
    font-weight: 500;
}

.status-badge {
    padding: 0.08rem 0.16rem;
    border-radius: 0.08rem;
    font-family: 'Source Han Sans CN', sans-serif;
    font-size: 0.22rem;
    font-weight: 500;
}

.status-badge.follow-up {
    background-color: #f0e6ff;
    color: #8b5cf6;
}

.status-badge.pending {
    background-color: #e6f3ff;
    color: #3b82f6;
}

.status-badge.completed {
    background-color: #dcfce7;
    color: #16a34a;
}

.status-badge.closed {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* 商机详情 */
.business-details {
    padding: 0 0.32rem 0.24rem;
}

.detail-row {
    display: flex;
    align-items: center;
    margin-top: 0.24rem;
}

.detail-icon {
    width: 0.32rem;
    height: 0.32rem;
    flex-shrink: 0;
    margin-right: 0.16rem;
}

.detail-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-text {
    flex: 1;
    font-family: 'Source Han Sans CN', sans-serif;
    font-size: 0.26rem;
    color: #333333;
    line-height: 0.4rem;
}

/* 商机标签 */
.business-tags {
    display: flex;
    gap: 0.16rem;
}

.business-tag {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.08rem;
    padding: 0.08rem 0.16rem;
    font-family: 'Source Han Sans CN', sans-serif;
    font-size: 0.22rem;
    color: #1d4ed8;
}

/* 处理人信息 */
.processor-info {
    background-color: #f8fafc;
    border-radius: 0.08rem;
    padding: 0.16rem 0.24rem;
    margin: 0.16rem 0;
    font-family: 'Source Han Sans CN', sans-serif;
    font-size: 0.24rem;
    color: #333333;
}

/* 时间信息 */
.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.24rem;
    color: #999999;
}

.submit-time, .update-time {
    flex: 1;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid #f1f1f1;
    height: 1.31rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}
.bottom-nav .nav-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 0.24rem 0;
}
.bottom-nav .nav-icon {
    width: 0.48rem;
    height: 0.48rem;
    margin-right: .16rem;
}
.bottom-nav .nav-text {
    font-family: 'Source Han Sans CN', sans-serif;
    font-size: 0.32rem;
    color: #999999;
    text-align: center;
    white-space: nowrap;
}
.bottom-nav .nav-item.active .nav-text {
    color: #0068ee;
    font-weight: 500;
}

/* 响应式适配 */
@media (min-width: 768px) {
    .app-container {
        max-width: 7.5rem;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }

    .bottom-nav {
        max-width: 7.5rem;
        left: 50%;
        transform: translateX(-50%);
    }
}