模板:MCPlayerInfo/style.css

来自Hokubu Wiki
/* 核心:确保卡片边框和背景显示 */
.mc-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    padding: 12px 15px !important; /* 确保内边距生效 */
    margin: 5px 0 !important; /* 卡片间距 */
    /* 边框和背景 - 重点修复 */
    background-color: #f5f7fa !important; /* 浅灰背景 */
    border: 1px solid #dee2e6 !important; /* 淡灰边框 */
    border-radius: 15px !important; /* 圆角 */
    box-shadow: 0 3px 6px rgba(0,0,0,0.04) !important; /* 轻微阴影 */
    /* 链接样式 */
    text-decoration: none !important;
    color: #333 !important;
}

/* 网格容器 */
.mc-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 15px !important;
    padding: 15px !important;
}

/* 头像容器 */
.mc-avatar {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    margin-right: 15px !important;
    border: 2px solid #e9ecef !important;
}

.mc-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 文字容器 */
.mc-info {
    flex: 1 !important;
}

.mc-name {
    font-weight: bold !important;
    font-size: 16px !important;
    margin-bottom: 4px !important;
}

.mc-cn {
    font-size: 13px !important;
    color: #555 !important;
    margin-bottom: 2px !important;
}

.mc-en {
    font-size: 12px !important;
    color: #777 !important;
    font-style: italic !important;
}