/* 轮播图样式 */
.van-swipe {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.van-swipe__track {
    display: flex;
    transition: transform 0.5s ease;
    width: 300%;
    transform: translateX(0);
}

.van-swipe-item {
    width: 100%;
}

.van-swipe-item img {
    width: 100%;
    height: 180px;
}

.van-swipe__indicators {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}

.van-swipe__indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.van-swipe__indicator--active {
    background-color: #1d4ed8;
    transform: scale(1.2);
}

/* 设备状态卡片 */
.device-status-card {
    background: linear-gradient(176deg, #539154 0%, #ffffff 100%);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 10px 10px 2px 10px;
    margin-top: 5px;
    color: #ffffff;
}

.device-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4.8px;
}

.device-status-header h2 {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.status-item {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.status-grid > div:nth-child(1) {
    background-color: #e7ffea80;
}

.status-grid > div:nth-child(2) {
    background-color: #fef2f2;
}

.status-grid > div:nth-child(3) {
    background-color: #fffbeb;
}

.status-grid > div:nth-child(4) {
    background-color: #ecfdf5;
}

.value-container {
    position: relative;
    z-index: 10;
}

.value {
    font-weight: 600;
    margin-bottom: 4px;
}

.status-item {
    color: #1e3a8a;
}

/* 1. 第一个（上线中 95,220）的样式 */
.status-1 .value-container .value {
    color: #059669; /* 示例：绿色 */
    /* 可添加其他样式，比如字号、字体等 */
    font-size: 18px;
}

/* 2. 第二个（维修中 13,086）的样式 */
.status-2 .value-container .value {
    color: #DC2626; /* 示例：红色 */
    font-size: 18px;
}

/* 3. 第三个（充电站 16,732）的样式 */
.status-3 .value-container .value {
    color: #1e3a8a; /* 示例：蓝色 */
    font-size: 18px;
}

.label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.pulse-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: 0;
}

.pulse-down {
    background-color: rgba(59, 130, 246, 0.1);
}

.pulse-up {
    background-color: rgba(34, 197, 94, 0.1);
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

/* 精选加盟 */
.project-list {
    margin: 5px 0px 0 0;
}

.project-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.header-title {
    display: flex;
    align-items: center;
}

.header-title i {
    color: #fcd34d;
    margin-right: 8px;
    font-size: 13px;
}

.header-title span {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
}

.project-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-card {
    background: linear-gradient(90deg, #dae3db 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgb(188 188 188 / 85%);
    position: relative;
    overflow: hidden;
    display: flex;
    height: auto;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hot-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

.badge-content {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    background-color: #ef4444;
    color: white;
    font-size: 12px;
    padding: 0.125rem 8px;
    border-radius: 9999px;
    font-weight: 500;
    display: flex;
    align-items: center;
    position: absolute;
    top: 1.0rem;
    right: -2rem;
}

.badge-content span {
    margin-right: 0.125rem;
}

.project-image {
    width: 33.333333%;
    position: relative;
}

.image-wrapper {
    /* width: 100%; */
    /* height: 100%; */
    /* padding: 8px; */
}

.image-wrapper img {
    height: 200px;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.project-info {
    width: 95%;
    padding: 10px 10px 10px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-title {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 14px;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}

.detail-label {
    font-size: 12px;
    color: #6b7280;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
}

.project-period {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.project-period span {
    color: #2563eb;
}

.join-button {
    width: 100%;
    background-color: #39683a;
    color: white;
    padding: 6px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

.join-button:hover {
    background-color: #39683a;
}

.join-button:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.join-button i {
    margin-right: 4px;
}

/* 字体图标基础样式 */
.fas {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.layui-layer {
    border-radius: 10px;
}

.balanceSel {
    flex: 1;
    padding: 10px 5px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.balanceSel.balSelsel {
    background: linear-gradient(135deg, #39683a 0%, #6c996d 100%);
    color: white;
    border-color: #6c996d;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
}