/* 容器整体 */
.contract-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

/* 每个卡片 */
.contract-card {
    background: rgba(50, 50, 50, 0.1);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.contract-card:hover {
    background: rgba(50, 50, 50, 0.15);
}

/* 顶部标题和地址 */
.contract-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contract-index {
    width: 40px;
    height: 40px;
    background-color: #fff;
    color: #000;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 16px;
    flex-shrink: 0;
}

.contract-title {
    flex: 1;
    min-width: 0;
}

.contract-title h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.contract-title p {
    color: #aaa;
    font-family: monospace;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 按钮组 */
.contract-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.contract-actions button,
.contract-actions a {
    position: relative;
    width: 36px;
    height: 36px;
    background: rgba(50, 50, 50, 0.4);
    color: #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.contract-actions button:hover,
.contract-actions a:hover {
    color: #fff;
    background: rgba(70, 70, 70, 0.6);
}

.contract-actions span {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 120, 255, 0.3), rgba(150, 0, 255, 0.3));
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 8px;
}

.contract-actions button:hover span,
.contract-actions a:hover span {
    opacity: 1;
}

/* 资产展示 */
.contract-assets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.asset-box {
    background: rgba(50, 50, 50, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
}

.asset-box p:first-child {
    font-size: 10px;
    color: #ccc;
}

.asset-box p:last-child {
    font-family: monospace;
    font-size: 14px;
    color: #fff;
}
